/* Custom styles for Roggenkamp, Leanne — Driving & Language Instruction */

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background-color: rgba(181, 38, 74, 0.2);
    color: inherit;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Fade-in animation for below-fold sections */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-hidden {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 1;
        transform: translateY(0);
    }
    
    .fade-in-section.is-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Floating stat card animations */
@media (prefers-reduced-motion: no-preference) {
    .stat-card {
        animation: float 6s ease-in-out infinite;
    }
    
    .stat-card:nth-child(2) {
        animation-delay: -1.5s;
    }
    
    .stat-card:nth-child(3) {
        animation-delay: -3s;
    }
    
    .stat-card:nth-child(4) {
        animation-delay: -4.5s;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(9, 21, 38, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #b5264a;
}

/* Print styles */
@media print {
    nav, #contact-form, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #0f2440;
        background: white;
    }
    
    header {
        min-height: auto;
        background: #0f2440;
    }
}
