html {
  scroll-behavior: smooth;
}
body {
  font-family: "Lexend", sans-serif;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

#mainNav {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    padding 0.25s ease;
}

#mainNav.nav-scrolled {
  box-shadow: 0 18px 45px rgba(13, 27, 20, 0.15);
  border-color: transparent;
  background-color: rgba(255, 255, 255, 0.92);
}

.dark #mainNav.nav-scrolled {
  background-color: rgba(16, 34, 25, 0.92);
}

.lang-toggle.is-active {
  background-color: #11d473;
  color: #ffffff;
  border-color: #0ea85c;
  box-shadow: 0 10px 25px rgba(17, 212, 115, 0.35);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 0.35rem;
  gap: 0.35rem;
  color: #0d1b14;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.dark .nav-link {
  color: #f1f5f0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #11d473;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #11d473;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link .material-symbols-outlined {
  font-size: 0.95rem;
}

/* Language Toggle Button Styles */
.lang-btn-toggle {
  background-color: white;
  color: #0d1b14;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn-toggle.active {
  background-color: #11d473;
  color: white;
  box-shadow: 0 4px 12px rgba(17, 212, 115, 0.3);
}

.dark .lang-btn-toggle {
  background-color: #2d3748;
  color: #f1f5f0;
}

.dark .lang-btn-toggle.active {
  background-color: #11d473;
  color: white;
}

.lang-btn-toggle-mobile {
  background-color: white;
  color: #0d1b14;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn-toggle-mobile:hover {
  transform: translateY(-1px);
}

.lang-btn-toggle-mobile.active {
  background-color: #11d473;
  color: white;
}

.dark .lang-btn-toggle-mobile {
  background-color: #2d3748;
  color: #f1f5f0;
}

.dark .lang-btn-toggle-mobile.active {
  background-color: #11d473;
  color: white;
}

/* Mobile Navigation Styles */
.mobile-nav-link {
  display: flex;
  align-items: center;
  color: #0d1b14;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link .material-symbols-outlined {
  font-size: 1rem;
}

.dark .mobile-nav-link {
  color: #f1f5f0;
}

#mobileMenu {
  animation: slideDown 0.3s ease-out forwards;
}

#mobileMenu.hidden {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Language dropdown animation */
#langMenu {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#langMenu.hidden {
  opacity: 0;
  visibility: hidden;
}

#langMenu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  animation: slideDownLang 0.2s ease-out;
}

@keyframes slideDownLang {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Transition Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section Animation Classes */
section {
  opacity: 0;
}

section.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.section-animate-left {
  opacity: 0;
}

.section-animate-left.animate-in {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.section-animate-right {
  opacity: 0;
}

.section-animate-right.animate-in {
  animation: fadeInRight 0.8s ease-out forwards;
}

.section-animate-scale {
  opacity: 0;
}

.section-animate-scale.animate-in {
  animation: scaleIn 0.8s ease-out forwards;
}

/* Stagger animation for child elements */
.stagger-item {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Improvements */
@media (max-width: 1024px) {
  /* Remove sticky behavior on tablets and below */
  .lg\:sticky {
    position: relative !important;
    top: auto !important;
  }

  /* Adjust timeline height for smaller screens */
  .absolute.left-7.top-8 {
    height: auto;
  }
}

@media (max-width: 768px) {
  /* Better spacing on mobile */
  .space-y-20 {
    --tw-space-y-reverse: 0;
    margin-top: calc(3rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(3rem * var(--tw-space-y-reverse));
  }

  /* Reduce gap on mobile grid */
  .gap-12 {
    gap: 2rem;
  }

  /* Adjust heading sizes */
  h2.text-4xl {
    font-size: 1.875rem;
  }

  /* Better padding on mobile */
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Improve timeline item spacing */
  .flex.gap-6 {
    gap: 1rem;
  }

  /* Adjust icon size on mobile */
  .h-16.w-16 {
    height: 3rem;
    width: 3rem;
  }

  .text-2xl {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  /* Extra small devices improvements */
  .text-4xl,
  .md\:text-5xl {
    font-size: 1.5rem;
  }

  .text-lg {
    font-size: 0.875rem;
  }

  /* Reduce padding further */
  .py-16 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .py-20 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* Better button spacing */
  .px-8 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Adjust grid gap */
  .gap-12 {
    gap: 1.5rem;
  }

  /* Better margin for sections */
  .mb-16 {
    margin-bottom: 2rem;
  }

  /* Allow hero dropdown to render fully */
  #main {
    overflow: visible;
  }
}

