html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 6rem;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

/* Hero Banner Styles */
.hero-banner {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    max-width: none;
    object-fit: cover;
}

.hero-banner-wrapper {
    width: 100%;
    display: block;
}

.logo-hero {
    width: clamp(200px, 50vw, 500px);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2rem;
    color: #b0b0b0;
    font-weight: 300;
}

.motors-container {
    position: relative;
    max-width: 450px;
    margin: 3rem auto;
}

.motors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.5rem;
    justify-items: center;
    position: relative;
}

.control-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 3px solid #00bbff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 30px rgba(0, 187, 255, 0.5);
    z-index: 10;
}

.control-card-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.motor {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    animation: motorVibrate 0.3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.motor::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 60%;
    height: 4px;
    border-radius: 2px;
}

/* Colors Updated: M1 Red, M2 Yellow, M3 Green, M4 Blue */
.motor:nth-child(1) {
    border-color: #ff0044;
    /* Rouge */
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.3);
    animation-delay: 0s;
}

.motor:nth-child(1)::after {
    background: #ff0044;
}

.motor:nth-child(2) {
    border-color: #ffcc00;
    /* Jaune */
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
    animation-delay: 0.15s;
}

.motor:nth-child(2)::after {
    background: #ffcc00;
}

.motor:nth-child(3) {
    border-color: #00ff88;
    /* Vert */
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    animation-delay: 0.3s;
}

.motor:nth-child(3)::after {
    background: #00ff88;
}

.motor:nth-child(4) {
    border-color: #00bbff;
    /* Bleu */
    box-shadow: 0 0 20px rgba(0, 187, 255, 0.3);
    animation-delay: 0.45s;
}

.motor:nth-child(4)::after {
    background: #00bbff;
}

@keyframes motorVibrate {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .motors-container {
        max-width: 300px;
        margin: 2rem auto;
    }

    .motors-grid {
        gap: 2rem 1rem;
    }

    .motor {
        width: 70px;
        height: 70px;
        font-size: 0.9rem;
        border-width: 1.5px;
    }

    .motor::after {
        height: 3px;
        bottom: 6px;
    }

    .control-card {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
        border-width: 2px;
    }

    .control-card-icon {
        font-size: 1.5rem;
    }
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #0088ff, #0066cc);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 30px rgba(0, 136, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 136, 255, 0.6);
    background: linear-gradient(135deg, #00aaff, #0088ff);
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-showcase {
    background: #0a0a0a;
    text-align: center;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 136, 255, 0.2);
    margin-bottom: 2rem;
}

.fifth-element {
    background: linear-gradient(180deg, #000 0%, #0a0a1a 50%, #000 100%);
    text-align: center;
}

.fifth-element h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    color: #00bbff;
}

.fifth-element p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #c0c0c0;
    font-style: italic;
}

.features {
    background: #0f0f0f;
}

.features h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
    color: #00bbff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #00bbff;
    box-shadow: 0 10px 30px rgba(0, 187, 255, 0.2);
}

.feature-card h3 {
    color: #00bbff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.6;
}

.installation-section {
    background: #000;
    text-align: center;
}

.installation-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: #00bbff;
}

.installation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.install-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid #222;
    transition: all 0.3s ease;
}

.install-image:hover {
    border-color: #00bbff;
    transform: scale(1.02);
}

/* Video Grid Layout */
.video-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #0a0a0a;
}

.video-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: #00bbff;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns for desktop */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Maintains video ratio */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        /* Stacked on mobile */
    }
}

.compatibility {
    background: #0f0f0f;
}

.compatibility h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
    color: #00bbff;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.game-tag {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: 1px solid #00bbff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-tag:hover {
    background: linear-gradient(135deg, #0a0a1a, #1a1a1a);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 187, 255, 0.3);
}

.comparison {
    background: linear-gradient(180deg, #0a0a0a 0%, #050510 100%);
    text-align: center;
}

.comparison h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: #00bbff;
}

.vs-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.product-box {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid;
}

.product-box.winner {
    border-color: #00ff88;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

.product-box.loser {
    border-color: #333;
    opacity: 0.6;
}

.vs-text {
    font-size: 2rem;
    font-weight: bold;
    color: #00bbff;
}

.motor-count {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.winner .motor-count {
    background: linear-gradient(135deg, #00ff88, #00bbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loser .motor-count {
    color: #666;
}

.subtitle-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #999;
}

.comparison-result {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #00ff88;
}

.installation-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.compatibility-link {
    text-align: center;
    margin-top: 2rem;
    color: #999;
}

.compatibility-link a {
    color: #00bbff;
    text-decoration: none;
}

.box-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
}

.box-content ul {
    list-style: none;
    font-size: 1.1rem;
    line-height: 2;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

footer {
    background: #000;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #00bbff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #00ff88;
}

@media (max-width: 768px) {
    .vs-container {
        grid-template-columns: 1fr;
    }

    .vs-text {
        transform: rotate(90deg);
    }

    .installation-grid {
        grid-template-columns: 1fr;
    }
}

/* Navigation Styles - Original Wide Design */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #00bbff;
}

.nav-cta {
    padding: 0.5rem 1.5rem;
    background: #00bbff;
    color: #000 !important;
    font-weight: bold !important;
    border-radius: 50px;
    transition: transform 0.3s, background-color 0.3s;
    margin-left: 1rem;
}

.nav-cta:hover {
    background: #00ff88;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Hamburger Button (Default styles) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: #00bbff;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: #00bbff;
}

@media (max-width: 1024px) {
    .main-nav {
        padding: 1rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-cta {
        margin-left: 0;
        width: 80%;
        text-align: center;
    }

    /* Hamburger Styles Override */
    .hamburger {
        display: block;
        z-index: 1001;
    }
}

/* Hero Carousel Styles */
.hero-carousel {
    display: grid;
    grid-template-areas: "slide";
    width: 100%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    grid-area: slide;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-carousel {
        width: clamp(250px, 90vw, 400px);
    }
}

/* Product Showcase Carousel Styles */
.product-carousel {
    display: grid;
    grid-template-areas: 'slide';
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 136, 255, 0.2);
}

.product-slide {
    grid-area: slide;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block;
}

.product-slide.active {
    opacity: 1;
    z-index: 1;
}