/* Custom styles for Mcford Kids Academy */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #091738;
}
::-webkit-scrollbar-thumb {
  background: #1e3f8a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #284fa8;
}

/* Selection color */
::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #f0fdf7;
}

/* Service cards */
.service-card {
  opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
  opacity: 1;
}

/* Fade-in animations for scroll-reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    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; }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(9, 23, 56, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Select dropdown styling */
select option {
  background: #0f2654;
  color: #ffffff;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #0f2654 0%, #16326e 100%);
}

/* Subtle grain texture overlay for hero */
.hero-grain {
  position: relative;
}
.hero-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}
