/* Custom styles for TireZone Car Sales */

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #0A0A14;
    color: #ffffff;
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-track {
    background: #0A0A14;
}

::-webkit-scrollbar-thumb {
    background: #222240;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #ffffff;
}

/* Hero image shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(10, 10, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

/* Gold glow effect */
.gold-glow {
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.15);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 162, 39, 0.08);
}

/* 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 right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: left 0.6s ease;
}

.btn-shine:hover::after {
    left: 100%;
}

/* Fade in animations for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .fade-in-up.delay-1 { transition-delay: 0.1s; }
    .fade-in-up.delay-2 { transition-delay: 0.2s; }
    .fade-in-up.delay-3 { transition-delay: 0.3s; }
    .fade-in-up.delay-4 { transition-delay: 0.4s; }
    .fade-in-up.delay-5 { transition-delay: 0.5s; }
    .fade-in-up.delay-6 { transition-delay: 0.6s; }
}

/* Pulse animation for badge */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
}

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

/* Decorative line animation */
@keyframes expand-width {
    from { width: 0; }
    to { width: 60px; }
}

.line-expand {
    animation: expand-width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Print styles */
@media print {
    nav, button, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
