/* Atlantic Auto Driving School — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030A17;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 212, 181, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 212, 181, 0.5);
}

/* Selection */
::selection {
    background: rgba(52, 212, 181, 0.3);
    color: #fff;
}

/* Navigation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #34D4B5;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hero decorative lines */
.hero-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(52, 212, 181, 0.1), transparent);
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(52, 212, 181, 0), transparent);
    transition: background 0.5s ease;
}
.service-card:hover::before {
    background: linear-gradient(to right, transparent, #34D4B5, transparent);
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(52, 212, 181, 0.05);
    line-height: 1;
    pointer-events: none;
}

/* Scroll reveal base state (visible by default) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2334D4B5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Nav background on scroll */
nav.scrolled {
    background: rgba(3, 10, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating animation for hero card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Pulse for CTA */
@keyframes pulse-mint {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 212, 181, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(52, 212, 181, 0); }
}
.pulse-cta {
    animation: pulse-mint 2.5s ease-in-out infinite;
}

/* Stats counter */
.stat-number {
    font-variant-numeric: tabular-nums;
}
