/* Custom styles for All Star Driver Education */

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography scale */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Selection color */
::selection {
    background: #e04f25;
    color: #fff;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #e04f25;
    outline-offset: 2px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 252, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#close-menu.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#close-menu.active .menu-line:nth-child(2) {
    opacity: 0;
}
#close-menu.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Service card image hover effect */
.service-card img {
    transition: transform 0.4s ease;
}

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

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

.cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn:hover::after {
    opacity: 1;
}

/* Form input styles */
.form-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: #e04f25;
}

/* Testimonial card hover */
.bg-white.rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-3xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(224, 79, 37, 0.1);
}

/* Mobile menu */
.mobile-menu {
    will-change: transform;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* 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;
    }
    .marquee-track {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, .marquee-track, #contact-form, .geo-circle, .geo-diamond, .geo-rect {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Large screens */
@media (min-width: 1921px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
