html {
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(to bottom, #fdfbfb, #ebedee);
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
}
.hero-section {
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-section h1 {
  font-size: 3.5rem;
  animation: fadeInDown 1s ease-in-out;
}

.hero-section p {
  font-size: 1.25rem;
  animation: fadeInUp 1s ease-in-out;
}

.hero-section a.btn {
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
}

.hero-section a.btn:hover {
  background-color: #222;
  color: #fff;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

code, pre {
  font-family: 'Fira Code', monospace;
}

section {
  min-height: 100vh; /* Fill screen height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
}
.about-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  color: #333;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-item .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item .card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: 0.4s;
}


/* Default image style for all projects */
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Exception for design project images */
.project-item[data-category="design"] .card-img-top {
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Optional: ensure design cards can grow with image */
.project-item[data-category="design"] .card {
  height: auto;
}
.filter-btn {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background-color: #4e54c8;
  color: white;
  box-shadow: 0 0 10px rgba(78, 84, 200, 0.3);
}
#skills h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#skills p {
  font-size: 1rem;
  color: #444;
}
#skills img {
  max-width: 80%;
  margin-top: 2rem;
}
/* CV Section */
#cv {
  background-color: #f8f9fa;
  color: #333;
}

#cv h2 {
  font-weight: 600;
  font-size: 2.5rem;
}

#cv p {
  font-size: 1.1rem;
}

#cv a.btn {
  margin-top: 1rem;
}
/* Animated CTA Button */
.cv-cta h3 {
  font-weight: 600;
  font-size: 1.75rem;
  animation: fadeInUp 1s ease-in-out;
}

.pulse-btn {
  animation: pulse 2s infinite;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease-in-out;
}

.pulse-btn:hover {
  background-color: #4e54c8;
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 84, 200, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(78, 84, 200, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 84, 200, 0);
  }
}

footer {
  background: #222;
  color: #bbb;
  font-size: 0.9rem;
}
footer p {
  margin: 0;
}
/* Custom Scrollbar for WebKit */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
