/* ==========================================
   CleanRide Bénin - ULTIMATE EDITION
   High-End / Automotive / Cyber-Luxury
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Core Universe */
    --bg-deep: #050505;
    --bg-surface: #0a0a0a;
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Neon & Accents */
    --primary: #00D26A;
    /* Super vibrant neon green */
    --primary-dim: rgba(0, 210, 106, 0.15);
    --secondary: #2563EB;
    /* Deep tech blue for depth */
    --accent-gold: #FFD700;

    /* Text */
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-dark: #000000;

    /* Gradients */
    --grad-glow: radial-gradient(circle at center, rgba(0, 210, 106, 0.2) 0%, rgba(5, 5, 5, 0) 70%);
    --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --grad-border: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));

    /* Dimensions */
    --container: 1280px;
    --radius: 20px;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 210, 106, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 106, 0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.animate-delay-1 {
    animation: fadeInUp 0.8s ease forwards 0.1s;
    opacity: 0;
}

.animate-delay-2 {
    animation: fadeInUp 0.8s ease forwards 0.3s;
    opacity: 0;
}

.animate-delay-3 {
    animation: fadeInUp 0.8s ease forwards 0.5s;
    opacity: 0;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 320px;
    max-width: 90%;
    z-index: 1000;
    padding: 12px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.header:hover {
    background: rgba(15, 15, 15, 0.8);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-50%) translateY(-2px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
    gap: 40px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #bababa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    margin: 0;
}

.logo span {
    color: var(--primary);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 210, 106, 0.4);
}

/* ==========================================
   HERO SECTION - THE WOW FACTOR
   ========================================== */
.hero {
    min-height: 90vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 200px;
    /* Account for fixed header + stats strip */
    overflow: hidden;
}

/* Background Grids & Glows */
.hero::before {
    content: '';
    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;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: var(--primary);
    filter: blur(180px);
    opacity: 0.15;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.badge-hero {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 64px;
    /* Massive */
    line-height: 1.05;
    margin-bottom: 24px;
    color: white;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Underline effect */
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary);
    opacity: 0.2;
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    position: relative;
    padding: 18px 40px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border-radius: 12px;
    font-size: 16px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 210, 106, 0.6);
}

/* Shine effect on button */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

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

.btn-secondary {
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   STATS STRIP
   ========================================== */
.stats-strip {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    z-index: 10;
    padding: 24px 40px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    left: auto;
    top: auto;
    transform: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-strip:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

.stats-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
    flex-wrap: nowrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item h3 {
    font-size: 28px;
    color: white;
    margin: 0;
    font-weight: 800;
}

.stat-item p {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
}

/* ==========================================
   SERVICES - CARDS 2.0
   ========================================== */
.section-padding {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 16px;
    display: block;
    text-transform: uppercase;
}

.section-title {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--grad-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(0, 210, 106, 0.2);
}

/* Number in background */
.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    line-height: 0.8;
}

.glass-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    margin-top: 10px;
}

.glass-card p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 15px;
}

.price-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

/* ==========================================
   PROCESS (STEPS)
   ========================================== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    color: var(--primary);
    position: relative;
}

/* Connection line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
    display: none;
}

@media(min-width: 768px) {
    .steps-container::before {
        display: block;
    }
}

.step-item h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
}

/* ==========================================
   ZONES & TESTIMONIALS
   ========================================== */
.zone-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.zone-chip {
    padding: 12px 24px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--text-gray);
    transition: 0.3s;
}

.zone-chip:hover {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
}

.testimonial-card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 210, 106, 0.15);
    border-left-color: #fff;
}

/* ==========================================
   INFINITE MARQUEE (WAOUH EFFECT)
   ========================================== */
.marquee-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 30px;
    margin-bottom: 30px;
}

/* Animation Speed & Direction */
.marquee-left {
    animation: scrollLeft 40s linear infinite;
}

.marquee-right {
    animation: scrollRight 40s linear infinite;
}

/* Pause on Hover for better UX */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.testimonial-card-marquee {
    width: 400px;
    flex-shrink: 0;
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Decoration for marquee cards */
.testimonial-card-marquee::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.02);
    font-family: serif;
    line-height: 1;
}

/* ==========================================
   FINAL CTA
   ========================================== */
.cta-box {
    background: linear-gradient(135deg, #103020 0%, #000 100%);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 106, 0.2);
}

.cta-box h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    text-align: center;
    color: var(--text-gray);
}

footer a:hover {
    color: var(--primary);
}

/* ==========================================
   BOUTON WHATSAPP FLOTTANT
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #000;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 210, 106, 0.5);
    animation: pulse-glow 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 35px rgba(0, 210, 106, 0.8);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {

    /* Hero plus compact */
    .hero-title {
        font-size: 36px !important;
        line-height: 1.1;
    }

    .hero {
        min-height: auto;
        padding-top: 180px;
        /* Account for fixed header + stats on mobile */
        padding-bottom: 80px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .badge-hero {
        font-size: 11px;
    }

    /* Header */
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo h1 {
        font-size: 22px;
    }

    /* Sections */
    .section-title {
        font-size: 32px;
    }

    .section-tag {
        font-size: 12px;
    }

    .section-padding {
        padding: 40px 0;
    }

    /* Boutons CTA empilés */
    .cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .cta-group a {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }

    /* Services en colonne unique */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .glass-card {
        padding: 30px 20px;
    }

    /* Stats strip mobile */
    .stats-strip {
        margin-top: 20px;
        padding: 12px 20px;
        max-width: 95%;
    }

    .stats-flex {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-item h3 {
        font-size: 22px;
    }

    .stat-item p {
        font-size: 9px;
    }

    /* Steps en colonne */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA Box moins de padding */
    .cta-box {
        padding: 50px 25px;
    }

    .cta-box h2 {
        font-size: 32px;
    }

    /* Bouton WhatsApp flottant plus petit */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    /* Zone section plus compacte sur mobile */
    .section-padding[style*="padding: 60px"] {
        padding: 40px 0 !important;
    }
}