/* Custom styles for Oregon Driver Education Center */

:root {
    --forest-50: #f0f7f0;
    --forest-600: #166534;
    --forest-950: #05140b;
    --gold-400: #d4a017;
    --gold-500: #b8860b;
    --dark-950: #030704;
    --dark-900: #070f08;
    --dark-800: #0d1a0f;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--dark-950);
    color: #f5f5f5;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(3, 7, 4, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #f5d76a 0%, #d4a017 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Metallic gold border effect */
.gold-border {
    border-image: linear-gradient(135deg, #d4a017, #b8860b, #d4a017) 1;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-950);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--forest-700), var(--forest-900));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--forest-600), var(--forest-800));
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #ffffff;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(212, 160, 23, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.2) !important;
}

/* Card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(212, 160, 23, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: transform 0.6s;
}

.btn-shine:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

/* Gradient divider */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.3), transparent);
}

/* Floating animation for hero orbs */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation with custom timing */
@keyframes pulse-gold {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.pulse-gold {
    animation: pulse-gold 4s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Image hover zoom */
.img-zoom {
    transition: transform 0.6s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 30px 30px;
}

/* Gold accent line */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-400), transparent);
}

/* Process step connector */
.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -40%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.5), transparent);
}

@media (max-width: 768px) {
    .step-connector::after {
        display: none;
    }
}

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