/* Custom styles for Becker Driver Training Facility */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #9fb8d8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #789ac8;
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #1e3a5f;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure reveal content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transitions */
.navbar-scrolled {
    background: rgba(13, 29, 51, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text animation - only decorative, content is visible */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* Button hover effects */
a[href="#contact"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* Card hover glow */
.group:hover .group-hover\\:bg-mint-200 {
    transition: background-color 0.3s ease;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}
iframe:hover {
    filter: saturate(1) contrast(1);
}

/* Custom select styling */
select option {
    background: #1e3a5f;
    color: #fff;
    padding: 8px;
}

/* Print styles */
@media print {
    nav, #contact, .cta-section {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
