/* Custom Styles for Nat's Driving School */

:root {
    --navy-900: #0a1628;
    --navy-800: #1a2744;
    --navy-700: #2a3f5f;
    --navy-600: #3d5a80;
    --navy-200: #94a3b8;
    --navy-300: #cbd5e1;
    --gold-400: #d4a853;
    --gold-500: #c9982e;
    --gold-600: #b8860b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--navy-900);
    color: white;
    line-height: 1.6;
}

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

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(-3deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(3deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

.floating-card-1 {
    animation: float 3s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-reverse 3.5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float 4s ease-in-out infinite;
}

/* Hover effects */
.group:hover .group-hover\:rotate-0 {
    transform: rotate(0deg);
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
