/* Custom styles for Little Scholars Nursery and Learning Center */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar scroll effect */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 27, 42, 0.08);
}

#navbar.scrolled .nav-link {
  color: #0d1b2a;
}

#navbar.scrolled .menu-line {
  background: #0d1b2a;
}

#navbar.scrolled .logo-text {
  color: #0d1b2a;
}

/* Mobile menu animations */
.menu-line {
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(4px, -4px);
}

#mobile-menu.open {
  transform: translateX(0);
}

/* Program card hover effects */
.program-card {
  will-change: transform;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c8a951;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f3f8;
}

::-webkit-scrollbar-thumb {
  background: #b3c0db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8d9fc9;
}

/* Selection color */
::selection {
  background: #c8a951;
  color: #0d1b2a;
}
