/* Prompt #4 — Add active navigation link highlighting when scrolling or navigating to sections */

:root {
  --light-bg: #ffffff;
  --light-text: #111;
  --dark-bg: #121212;
  --dark-text: #ffffff;
  --primary: #ff6f61;
  --secondary: #6c63ff;
  --grass-green: #a3bffa;
  --grass-light: #e6ffe6;  /* ✅ Correct */
}

body.light {
  background: linear-gradient(135deg, #ffefba, #ffffff);
  color: var(--light-text);
  padding-top: 0;
}
body.dark {
  background: linear-gradient(135deg, #1e1e2f, #111);
  color: var(--dark-text);
  padding-top: 0;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* HEADER */
header {
  width: 90%;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), radial-gradient(circle at top center, rgba(0, 0, 0, 0.15), transparent);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.dark header {
  background: linear-gradient(rgba(18, 18, 18, 0.2), rgba(18, 18, 18, 0.2)), radial-gradient(circle at top center, rgba(255, 255, 255, 0.15), transparent);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header.scrolled {
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), radial-gradient(circle at top center, rgba(0, 0, 0, 0.15), transparent);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

body.dark header.scrolled {
  background: linear-gradient(rgba(18, 18, 18, 0.3), rgba(18, 18, 18, 0.3)), radial-gradient(circle at top center, rgba(255, 255, 255, 0.15), transparent);
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: auto;
  border-radius: 15px;
}

.nav-center {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-center li a {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  transition: color 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.nav-center li a:hover {
  color: var(--primary);
}

body.dark .nav-center li a:hover {
  color: var(--secondary);
}

.nav-center li a.active {
  color: var(--primary);
  background-color: rgba(255, 111, 97, 0.1); /* Subtle background for active link */
  padding: 5px 10px;
  border-radius: 5px;
}

body.dark .nav-center li a.active {
  color: var(--secondary);
  background-color: rgba(108, 99, 255, 0.1);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grass-green);
  border-radius: 50%;
  padding: 0.3rem;
  position: absolute;
  left: 1.5rem;
}

body.dark .hamburger {
  color: var(--grass-light);
}

/* Theme Toggle */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 80px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#theme-toggle:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.3);
}

body.dark #theme-toggle {
  background: rgba(255, 255, 255, 0.1);
}

body.dark #theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

#theme-toggle .slider {
  width: 26px;
  height: 26px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

body.dark #theme-toggle .slider {
  transform: translateX(46px);
}

#theme-toggle .icon {
  width: 16px;
  height: 16px;
  stroke: var(--light-text);
  transition: stroke 0.3s ease;
}

body.dark #theme-toggle .icon {
  stroke: var(--dark-text);
}

#theme-toggle .sun-icon {
  display: block;
}

body.dark #theme-toggle .sun-icon {
  display: none;
}

#theme-toggle .moon-icon {
  display: none;
}

body.dark #theme-toggle .moon-icon {
  display: block;
}

#theme-toggle .label {
  font-size: 10px;
  font-weight: 600;
  color: var(--light-text);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  z-index: 1;
}

body.dark #theme-toggle .label {
  color: var(--dark-text);
}

#theme-toggle .light-label {
  right: 12px;
  opacity: 1;
}

body.dark #theme-toggle .light-label {
  opacity: 0;
}

#theme-toggle .dark-label {
  left: 12px;
  opacity: 0;
}

body.dark #theme-toggle .dark-label {
  opacity: 1;
}

/* HERO SECTION */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background: none;
}

body.dark #hero {
  background: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  padding: 0 1.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-text h2 {
  font-size: 7rem;
  margin: 0.5rem 0;
  font-weight: 700;
  color: inherit;
}

.hero-text h1 {
  font-size: 3.7rem;
  margin: 0.5rem 0;
  font-weight: 700;
  color: inherit;
}

.subtitle {
  font-size: 1.5rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.subtitle span {
  color: #000000;
}

#role-text {
  color: var(--primary);
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  animation: blinkCursor 0.7s step-end infinite;
  font-size: 1.5rem;
  font-weight: 700;
}

@keyframes blinkCursor {
  0%, 100% { border-right-color: var(--primary); }
  50% { border-right-color: transparent; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes deleting {
  from { width: 100%; }
  to { width: 0; }
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 15px;
}

.btn.contact-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  line-height: 24px;
  width: auto;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

/* Force consistent contact button style in Projects, Skills, and Contact sections */
.project-box .btn.contact-btn,
.skills-box .btn.contact-btn,
.contact-box .btn.contact-btn {
  display: block;
  margin: 1rem auto 0 auto;
  width: 200px;
  text-align: center;
}

.btn.contact-btn:hover {
  background: var(--secondary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px) scale(1.05);
}

.social-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.social-btn {
  width: 50px;
  height: 50px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .social-btn {
  background: var(--dark-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.social-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark .social-btn:hover {
  background: var(--primary);
}

.social-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

body.light .social-icon.light-icon {
  display: block;
}

body.light .social-icon.dark-icon {
  display: none;
}

body.dark .social-icon.light-icon {
  display: none;
}

body.dark .social-icon.dark-icon {
  display: block;
}

.hero-image {
  position: relative;
  margin-left: 50px;
  margin-right: 5px;
  animation: floatImage 5s ease-in-out infinite; /* NEW: float parent */
}

@keyframes morphBlob {
  0%, 100% {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="white" d="M50,15 C85,8 105,30 135,35 C165,40 185,65 180,95 C175,125 150,145 120,155 C90,165 65,150 45,135 C25,120 10,100 15,70 C20,40 35,20 50,15 Z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="white" d="M50,15 C85,8 105,30 135,35 C165,40 185,65 180,95 C175,125 150,145 120,155 C90,165 65,150 45,135 C25,120 10,100 15,70 C20,40 35,20 50,15 Z"/></svg>');
  }
  50% {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="white" d="M45,20 C80,10 100,35 130,40 C160,45 180,70 175,100 C170,130 145,150 115,160 C85,170 60,155 40,140 C20,125 5,105 10,75 C15,45 30,25 45,20 Z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="white" d="M45,20 C80,10 100,35 130,40 C160,45 180,70 175,100 C170,130 145,150 115,160 C85,170 60,155 40,140 C20,125 5,105 10,75 C15,45 30,25 45,20 Z"/></svg>');
  }
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: 0;
  background: var(--primary);

  animation: morphBlob 5s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% {
    transform: translateX(0) translateY(0) scale(1);
  }
  25% {
    transform: translateX(-10px) translateY(-20px) scale(1.05);
  }
  50% {
    transform: translateX(10px) translateY(20px) scale(1.03);
  }
  75% {
    transform: translateX(-5px) translateY(-10px) scale(1.05);
  }
}

.hero-image img {
  width: 500px;
  height: auto;
  position: relative;
  z-index: 1;
  opacity: 1;
  background: url('assets/profile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* animation: floatImage 5s ease-in-out infinite; */
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="white" d="M56,10 C90,5 110,25 140,30 C170,35 190,60 185,90 C180,120 155,140 125,150 C95,160 70,145 50,130 C30,115 15,95 20,65 C25,35 40,15 56,10 Z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="white" d="M56,10 C90,5 110,25 140,30 C170,35 190,60 185,90 C180,120 155,140 125,150 C95,160 70,145 50,130 C30,115 15,95 20,65 C25,35 40,15 56,10 Z"/></svg>');
}

section {
  padding: 80px 20px;
}

section[data-animate] {
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.container {
  max-width: 1000px;
  margin: auto;
}

/* ABOUT */

.about-box {
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), radial-gradient(circle at top center, rgba(0, 0, 0, 0.05), transparent);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.dark .about-box {
  background: linear-gradient(rgba(18, 18, 18, 0.2), rgba(18, 18, 18, 0.2)), radial-gradient(circle at top center, rgba(255, 255, 255, 0.05), transparent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.light .about-box h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  fill: #111;
}

body.dark .about-box h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  fill: #fff;
}

/* Highlight the word "Me" in the About heading */
.about-box h2 span {
  color: #ff6f61;
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.about-box p {
  text-align: justify;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.about-box .btn.contact-btn {
  margin-top: 1rem;
}

#about p {
  text-align: justify;
  line-height: 1.6;
}

/* EDUCATION */
.education-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.education-list li {
  background: var(--light-bg);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 1.1rem;
}

body.dark .education-list li {
  background: var(--dark-bg);
  border-color: #333;
}

.education-list li:hover {
  transform: translateY(-5px);
}

.education-list li strong {
  color: var(--primary);
  font-weight: 600;
}

/* PROJECTS */
.project-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-list li {
  background: var(--light-bg);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 1.1rem;
}

body.dark .project-list li {
  background: var(--dark-bg);
  border-color: #333;
}

.project-list li:hover {
  transform: translateY(-5px);
}

.project-list li strong {
  color: var(--primary);
  font-weight: 600;
}

/* SKILLS */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.skills-list li {
  padding: 8px 12px;
  background: var(--secondary);
  border-radius: 20px;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

.skills-list li:hover {
  background: var(--primary);
}

/* CONTACT */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: auto;
}

form input,
form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

form input:focus,
form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

form button {
  background: var(--primary);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  font-size: 1rem;
}

form button:hover {
  background: var(--secondary);
}

.form-message {
  margin-top: 12px;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  padding: 8px;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.form-message.show {
  opacity: 1;
}

.form-message.success {
  background: #e6f3ff;
  color: var(--secondary);
}

body.dark .form-message.success {
  background: #2a2a4a;
}

.form-message.error {
  background: #ffe6e6;
  color: var(--primary);
}

body.dark .form-message.error {
  background: #4a2a2a;
}

.contact-info {
  margin-top: 20px;
  text-align: center;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--secondary);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  margin: 0 1.5rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  color: var(--grass-green);
  font-size: 0.9rem;
}

body.dark footer {
  background: rgba(18, 18, 18, 0.1);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  color: var(--secondary);
}

/* MOBILE RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    position: relative;
    justify-content: space-between;
  }

  .nav-center {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-center.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-center li a {
    font-size: 1rem;
  }

  .hamburger {
    display: block;
    font-size: 1.4rem;
  }

  #theme-toggle {
    width: 70px;
    height: 30px;
    bottom: 15px;
    right: 15px;
  }

  #theme-toggle .slider {
    width: 22px;
    height: 22px;
    top: 4px;
  }

  body.dark #theme-toggle .slider {
    transform: translateX(40px);
  }

  #theme-toggle .icon {
    width: 14px;
    height: 14px;
  }

  #theme-toggle .label {
    font-size: 9px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .hero-text h2 {
    font-size: 3rem;
  }
  .hero-text h1 {
    font-size: 1rem;
  }

  .subtitle {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-image {
    margin-left: 20px;
  }

  .hero-image img {
    width: 400px;
  }

  .hero-image::before {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
  }

  @keyframes floatImage {
    0%, 100% {
      transform: translateX(0) translateY(0) scale(1);
    }
    25% {
      transform: translateX(-8px) translateY(-15px) scale(1.03);
    }
    50% {
      transform: translateX(8px) translateY(15px) scale(1.02);
    }
    75% {
      transform: translateX(-4px) translateY(-8px) scale(1.03);
    }
  }

  .btn.contact-btn {
    padding: 8px 26px;
    font-size: 0.9rem;
    height: 36px;
    line-height: 20px;
    width: 120px;
  }

  .social-btn {
    width: 36px;
    height: 36px;
  }

  .social-btn img {
    width: 20px;
    height: 20px;
  }

  section {
    padding: 50px 15px;
  }

  .container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
  }

  #about p {
    max-width: 100%;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.6;
  }

  .education-list li,
  .project-list li {
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 12px;
    font-size: 0.95rem;
  }

  .skills-list {
    gap: 6px;
  }

  .skills-list li {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  form {
    padding: 0 10px;
  }

  form input,
  form textarea {
    padding: 10px;
    font-size: 0.95rem;
  }

  form button {
    padding: 10px;
    font-size: 0.95rem;
  }

  .form-message {
    font-size: 0.9rem;
    padding: 6px;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  footer {
    margin: 0 1rem;
    padding: 0.8rem 0;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 1rem;
  }

  .hamburger {
    font-size: 1.3rem;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }
  .hero-text h1 {
    font-size: 1rem;
  }

  .subtitle {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-image {
    margin-left: 10px;
  }

  .hero-image img {
    width: 300px;
  }

  .hero-image::before {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
  }

  @keyframes floatImage {
    0%, 100% {
      transform: translateX(0) translateY(0) scale(1);
    }
    25% {
      transform: translateX(-6px) translateY(-10px) scale(1.02);
    }
    50% {
      transform: translateX(6px) translateY(10px) scale(1.015);
    }
    75% {
      transform: translateX(-3px) translateY(-5px) scale(1.02);
    }
  }

  .btn.contact-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    height: 32px;
    line-height: 20px;
    width: 100px;
  }

  .social-btn {
    width: 32px;
    height: 32px;
  }

  .social-btn img {
    width: 18px;
    height: 18px;
  }

  section {
    padding: 40px 10px;
  }

  .container {
    padding: 0 10px;
  }

  #about p {
    font-size: 0.9rem;
  }

  .education-list li,
  .project-list li {
    padding: 10px;
    font-size: 0.9rem;
  }

  .skills-list li {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .form-message {
    font-size: 0.85rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  footer {
    margin: 0 0.5rem;
    padding: 0.6rem 0;
    font-size: 0.8rem;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .nav-center li a:hover,
  .btn:hover,
  .education-list li:hover,
  .project-list li:hover,
  .skills-list li:hover,
  .contact-info a:hover,
  #theme-toggle:hover,
  form button:hover,
  .social-btn:hover {
    transform: none;
    background: inherit;
    color: inherit;
  }

  .nav-center li a.active {
    background: rgba(255, 111, 97, 0.1); /* Ensure active style persists on touch devices */
  }

  /* body.dark .nav-center li a.active {
    background: rgba(108, 99, 255, 0.1);
  } */
}
/* Arrow in contact button */
.btn.contact-btn .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn.contact-btn:hover .arrow {
  transform: translateX(5px);
}

.human-icon {
  vertical-align: baseline;
  position: relative;
  top: 3px;
  margin-right: 8px;
}

body.light .human-icon {
  fill: #111;
  color: #111;
}

body.dark .human-icon {
  fill: #fff;
  color: #fff;
}
.section-heading h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: inherit;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  margin-bottom: 1rem;
}
/* Scroll indicator with bounce animation and transition for slide-down */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-indicator p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.mouse-icon {
  position: relative;
  margin-top: 8px;
  width: 24px;
  height: 36px;
}

.mouse-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  rx: 12;
  ry: 12;
}

.mouse-icon .scroll-wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

.hide-scroll-indicator {
  opacity: 0;
  transform: translate(-50%, 40px);
  pointer-events: none;
}
.project-box,
.skills-box,
.contact-box {
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
              radial-gradient(circle at top center, rgba(0, 0, 0, 0.05), transparent);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.dark .project-box,
body.dark .skills-box,
body.dark .contact-box {
  background: linear-gradient(rgba(18, 18, 18, 0.2), rgba(18, 18, 18, 0.2)),
              radial-gradient(circle at top center, rgba(255, 255, 255, 0.05), transparent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
