/* Custom Styles for Crack Driving Test */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #080f0b;
    color: #f5f5f0;
}

/* Font Families */
.font-cinzel {
    font-family: 'Cinzel', serif;
}

.font-manrope {
    font-family: 'Manrope', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: #080f0b;
}

::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 5px;
}

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

/* Selection Color */
::selection {
    background: #c9a84c;
    color: #080f0b;
}

/* Gold Gradient Text */
.text-gold-gradient {
    background: linear-gradient(135deg, #c9a84c 0%, #d4b55c 50%, #b8943f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(201, 168, 76, 0.1);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Pulse Animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 168, 76, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* Input Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #c9a84c !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Button Active State */
button:active {
    transform: scale(0.98);
}

/* Image Hover Zoom */
img {
    transition: transform 0.5s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(8, 15, 11, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Gold Accent Line Animation */
@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 4rem;
    }
}

.expand-line {
    animation: expandWidth 0.6s ease-out forwards;
}
