/* ============================================
   Auto-École de Mougins - VELOCITY EDITION (V2)
   Concept: Glassmorphism / Dark Mode / Neon Red
   ============================================ */

:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-red: #FF2E2E;
    --neon-glow: rgba(255, 46, 46, 0.4);
    --text-main: #FFFFFF;
    --text-muted: #888888;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --blur-strong: blur(20px);
    --blur-light: blur(10px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   Background Effects
   ============================================ */
.velocity-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #111, #000);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--neon-red);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #2a0a0a;
    /* Darker red/brown */
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* ============================================
   Navigation (Glass)
   ============================================ */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}

.text-neon {
    color: var(--neon-red);
    text-shadow: 0 0 15px var(--neon-glow);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.version-switch {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-display);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 20px;
    transition: 0.2s;
}

.version-switch:hover {
    background: var(--neon-red);
    border-color: var(--neon-red);
}

/* ============================================
   Buttons
   ============================================ */
.btn-neon {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.1);
}

.btn-neon:hover {
    background: var(--neon-red);
    color: white;
    box-shadow: 0 0 30px var(--neon-glow);
}

.btn-primary-v2 {
    position: relative;
    padding: 16px 40px;
    background: var(--text-main);
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    /* Brutalist touch */
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-v2 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    margin-top: 40px;
    /* Offset fixed header */
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--neon-red);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 24px;
    backdrop-filter: var(--blur-light);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 32px;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-secondary-v2 {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.btn-secondary-v2:hover {
    opacity: 0.8;
}

/* Hero Visual 3D */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.glass-card-3d {
    width: 500px;
    height: 600px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
}

.glass-card-3d:hover {
    transform: rotateY(-5deg) rotateX(2deg);
}

.vehicle-preview .vehicle-img {
    width: 150%;
    margin-left: -25%;
    margin-top: 100px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
    transform: rotate(-15deg);
}

.stat-item {
    position: absolute;
    top: 40px;
    right: 40px;
    text-align: right;
}

.stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--neon-red);
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ============================================
   Marquee
   ============================================ */
.tech-marquee {
    background: var(--neon-red);
    padding: 15px 0;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05);
    margin: 50px 0;
    box-shadow: 0 0 50px var(--neon-glow);
}

.track {
    white-space: nowrap;
    animation: marqueeScroll 20s linear infinite;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Sections & Cards
   ============================================ */
.section-v2 {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 10px;
}

.card-price {
    color: var(--neon-red);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
}

.card-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features i {
    color: var(--text-main);
}

.btn-link {
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.btn-link:hover {
    gap: 15px;
    color: var(--neon-red);
}

/* Featured Card */
.glass-card.featured {
    border-color: var(--neon-red);
    box-shadow: 0 0 30px rgba(255, 46, 46, 0.1);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--neon-red);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-nav {
        padding: 0 15px;
        height: 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-v2 {
        flex-direction: column;
        height: auto;
        padding-top: 150px;
    }

    .hero-visual {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}