/* Cousins Class Motors - Main Styles */

/* Icon Font Fix */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* Cinematic Entrance Animation */
.cinematic-entrance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.logo-glow {
    font-size: 3rem;
    color: #D4AF37;
    text-shadow: 0 0 20px #D4AF37, 0 0 40px #D4AF37, 0 0 60px #D4AF37;
    animation: logoRotate 3s ease-in-out;
}

@keyframes logoRotate {
    0% { 
        transform: scale(0.8) rotateY(-10deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.1) rotateY(5deg); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1) rotateY(0deg); 
        opacity: 1; 
    }
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&h=1080&fit=crop&crop=center&v=1');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    animation: holographicShimmer 4s ease-in-out infinite;
}

@keyframes holographicShimmer {
    0%, 100% { 
        transform: translateX(-100%); 
    }
    50% { 
        transform: translateX(100%); 
    }
}

/* Navigation */
.glass-nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Golden Glow Effects */
.golden-glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.golden-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* Brand Cards */
.brand-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.brand-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* Vehicle Cards */
.vehicle-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
    position: relative;
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.vehicle-card:hover::before {
    left: 100%;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #D4AF37;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s linear infinite;
}

@keyframes float {
    0% { 
        transform: translateY(100vh) translateX(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.6; 
    }
    90% { 
        opacity: 0.6; 
    }
    100% { 
        transform: translateY(-10vh) translateX(50px); 
        opacity: 0; 
    }
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-glow {
        font-size: 2rem;
    }
    
    .hero-bg h1 {
        font-size: 3rem;
    }
    
    .brand-card {
        padding: 1.5rem;
    }
    
    .vehicle-card {
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-shadow-gold {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.border-gold {
    border-color: #D4AF37;
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8860B;
}
