/* Custom styles for Grasshopper Montessori */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled a:not([class*="bg-"]) {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1e;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 152, 46, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 152, 46, 0.5);
}

/* Selection color */
::selection {
    background: rgba(201, 152, 46, 0.3);
    color: #fff;
}

/* Fade-in animations for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure form inputs are readable */
input::placeholder,
textarea::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

/* Map contrast fix */
iframe[title*="map"] {
    opacity: 0.9;
}
