@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ===================== CSS VARIABLES ===================== */
:root {
    --bg-color: #080808;
    --bg-card: #0f0f0f;
    --bg-card-hover: #161616;
    --primary-silver: #c8c8c8;
    --primary-silver-dim: rgba(200, 200, 200, 0.10);
    --primary-silver-glow: rgba(210, 210, 210, 0.25);
    --silver-bright: #e8e8e8;
    --silver-mid: #b8b8b8;
    --silver-dark: #888888;
    --chrome-gradient: linear-gradient(135deg, #d0d0d0 0%, #f0f0f0 40%, #b0b0b0 60%, #e0e0e0 100%);
    --text-main: #f0f0f0;
    --text-muted: #707070;
    --text-soft: #aaaaaa;
    --accent-silver: #d4d4d4;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 72px;
    --radius-lg: 16px;
    --radius-md: 10px;
}

/* ===================== RESET ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================== UTILITIES ===================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.glow-text {
    text-shadow: 0 0 40px var(--primary-silver-glow);
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-silver);
    margin-bottom: 14px;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--chrome-gradient);
    color: #0a0a0a;
    box-shadow: 0 6px 24px rgba(200, 200, 200, 0.20);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(220, 220, 220, 0.30);
    filter: brightness(1.08);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--silver-mid);
    background: rgba(200, 200, 200, 0.07);
    transform: translateY(-3px);
}

/* ===================== NAVBAR ===================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease, height 0.4s ease;
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.97);
    height: 60px;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 28px;
    /* Reduced from previous turns */
    width: auto;
    display: block;
    transition: var(--transition);
}

nav.scrolled .logo-img {
    height: 22px;
    /* Smoother scaling on scroll */
}


.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-silver);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-wa-btn {
    background: var(--chrome-gradient);
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(200, 200, 200, 0.15);
}

.nav-wa-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: transparent;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    padding: 24px 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
}

.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    transition: color 0.25s;
}

.mobile-menu a:hover {
    color: var(--accent-silver);
}

.mobile-menu .mobile-wa-btn {
    display: block;
    margin: 20px 24px 0;
    text-align: center;
    background: var(--chrome-gradient);
    color: #0a0a0a;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 14px;
    border-radius: 8px;
}

/* ===================== HERO ===================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Subtle vignette overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 30% 50%, rgba(200, 200, 200, 0.03) 0%, transparent 60%),
        linear-gradient(to right, rgba(8, 8, 8, 1) 30%, rgba(8, 8, 8, 0.5) 60%, rgba(8, 8, 8, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--nav-height);
    max-width: 620px;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-silver);
    margin-bottom: 22px;
    position: relative;
    padding-left: 0;
    /* Align text with the heading below */
}

.hero-tagline::before {
    content: '';
    position: absolute;
    left: -40px;
    /* Decorative line hangs in the margin */
    width: 30px;
    height: 1px;
    background: var(--accent-silver);
}

.hero-content h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 22px;
    color: #fff;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Car image — right-side absolute */
.hero-image {
    position: absolute;
    right: -2%;
    top: 0;
    width: 62%;
    height: 100%;
    z-index: 0;
}

/* Slider base styles */
.hero-image img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.6) 25%, black 55%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.6) 25%, black 55%);
    opacity: 0;
    transform: translateX(40px) scale(1.02);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.hero-image img.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 1;
}

.hero-image img.slide.previous {
    opacity: 0;
    transform: translateX(-40px) scale(0.98);
    z-index: 0;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    animation: scrollBounce 2.5s infinite;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--accent-silver) 0%, transparent 100%);
}

/* ===================== SECTION SHARED ===================== */
section {
    padding: clamp(64px, 10vw, 120px) 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* ===================== FEATURES ===================== */
#features {
    position: relative;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.65) 50%, rgba(8, 8, 8, 0.94) 100%),
        url('assets/img/BYD%20RANDOM%20IMG/techno%20section-bydsale.png') center/cover no-repeat;
    background-attachment: fixed;
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.section-header-split .right-desc {
    max-width: 380px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
    flex-shrink: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(14, 14, 14, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(200, 200, 200, 0.25);
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200,200,200,0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(200, 200, 200, 0.07);
    color: var(--accent-silver);
    border: 1px solid rgba(200,200,200,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* ===================== FLEET ===================== */
#fleet {
    position: relative;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.5) 50%, rgba(8, 8, 8, 0.92) 100%),
        url('assets/img/BYD%20RANDOM%20IMG/market-performance.webp') center/cover no-repeat;
    background-attachment: fixed;
}

.fleet-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: rgba(14, 14, 14, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.fleet-info {
    padding: clamp(32px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.fleet-info h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.fleet-info p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
    flex: 1;
}

.fleet-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.3s;
    margin-top: 8px;
}

.fleet-link:hover {
    color: var(--accent-silver);
}

.fleet-link svg {
    transition: transform 0.3s;
}

.fleet-link:hover svg {
    transform: translateX(4px);
}

.fleet-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 16px 16px 0;
}

.car-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
    background: #111;
}

.car-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.car-card:hover img {
    transform: scale(1.08);
}

.car-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}

.car-series {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-silver);
    margin-bottom: 6px;
}

.car-card h4 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================== FLOATING WHATSAPP ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
}

/* ===================== FOOTER ===================== */
footer {
    padding: 80px 0 60px;
    background: #050505;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-addr {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-top: 20px;
    margin-bottom: 15px;
}

.footer-map-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-silver);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--accent-silver);
    padding-bottom: 2px;
    transition: var(--transition);
}

.footer-map-link:hover {
    color: #fff;
    border-color: #fff;
    padding-left: 5px;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--accent-silver);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===================== KEYFRAME ANIMATIONS ===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.9;
        transform: translateX(-50%) translateY(6px);
    }
}

/* ===================== AOS overrides ===================== */
[data-aos] {
    will-change: transform, opacity;
}

/* ===================== RESPONSIVE: TABLET (≤1024px) ===================== */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fleet-layout {
        grid-template-columns: 1fr;
    }

    .fleet-cards {
        padding: 0 16px 16px;
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================== RESPONSIVE: MOBILE (≤768px) ===================== */
@media (max-width: 768px) {

    /* Nav */
    .nav-links {
        display: none !important;
    }

    .nav-wa-btn {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .mobile-menu {
        display: block !important;
    }

    /* Hero */
    #hero {
        align-items: flex-end;
        padding-bottom: 80px;
    }

    #hero::before {
        background:
            linear-gradient(to top, rgba(5, 5, 5, 1) 30%, rgba(5, 5, 5, 0.6) 60%, rgba(5, 5, 5, 0.2) 100%);
    }

    .hero-image {
        width: 100%;
        height: 100%;
        right: 0;
        top: 0;
    }

    .hero-image img.slide {
        object-position: center top;
        mask-image: linear-gradient(to top, transparent 30%, rgba(0, 0, 0, 0.3) 60%);
        -webkit-mask-image: linear-gradient(to top, transparent 30%, rgba(0, 0, 0, 0.3) 60%);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        padding-top: 0;
    }

    .hero-tagline {
        justify-content: center;
        padding-left: 0;
    }

    .hero-tagline::before {
        position: static;
        margin-right: 10px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 320px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Features */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-header-split .right-desc {
        max-width: 100%;
    }

    /* Fleet */
    .fleet-layout {
        border-radius: var(--radius-lg);
    }

    .fleet-info {
        padding: 32px 24px 0;
    }

    .fleet-cards {
        grid-template-columns: 1fr;
        padding: 16px 24px 24px;
    }

    .car-card {
        aspect-ratio: 16/9;
    }

    /* Footer — ensure it never overlaps anything */
    footer {
        position: static !important;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        position: static !important;
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ===================== RESPONSIVE: SMALL MOBILE (≤480px) ===================== */
@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
}

/* ===================== CATALOG PAGE ===================== */
.catalog-hero {
    padding: 160px 0 80px;
    background: radial-gradient(circle at 70% 30%, rgba(200,200,200,0.05) 0%, transparent 50%), var(--bg-color);
    text-align: center;
}

.catalog-hero .small-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-silver);
    margin-bottom: 20px;
    display: block;
}

.catalog-hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.highlight-box {
    display: inline-block;
    background: var(--chrome-gradient);
    padding: 8px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.highlight-text {
    color: #000;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.catalog-hero .hero-desc {
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}

/* Filters */
.filter-wrapper {
    margin-top: 40px;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--chrome-gradient);
    color: #0a0a0a;
    border-color: var(--silver-mid);
    box-shadow: 0 4px 20px rgba(200,200,200,0.15);
}

/* Product Grid */
.catalog-grid-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(200, 200, 200, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge.primary {
    background: var(--primary-silver);
    color: #000;
}

.badge.available {
    background: #2ecc71;
    color: #fff;
}

.badge.limited {
    background: #e74c3c;
    color: #fff;
}

.badge.eco {
    background: #1abc9c;
    color: #fff;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.card-header h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-header .price {
    color: var(--accent-silver);
    font-weight: 700;
    font-size: 18px;
}

.product-card .description {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.spec-highlights {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-icon {
    font-size: 20px;
}

.spec-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
    margin-top: auto;
}

/* Tech Section */
.tech-section {
    padding: 100px 0;
    background: #060606;
}

.section-title-wrapper {
    margin-bottom: 60px;
}

.section-title-wrapper h2 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

.tech-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.tech-card:hover {
    border-color: rgba(200,200,200,0.25);
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.tech-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--accent-silver);
}

.tech-card p {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 15px;
}

/* Global CTA */
.global-cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-content h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-soft);
    margin-bottom: 40px;
}

.btn-large {
    padding: 20px 48px;
    font-size: 16px;
    border-radius: 50px;
}

/* ===================== MEGA MENU ===================== */
.mega-menu {
    position: fixed;
    top: -100%; /* Hidden by default */
    left: 0;
    width: 100%;
    background: #090909; /* Dark Silver Theme */
    color: var(--text-main);
    z-index: 1001; 
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    padding-top: calc(var(--nav-height) + 40px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mega-menu.active {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.mm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.mm-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.mm-item {
    text-align: center;
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
}

.mm-item:hover {
    transform: translateY(-8px);
}

.mm-item img {
    width: 100%;
    height: auto;
    max-width: 180px;
    margin: 0 auto 15px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.mm-item:hover img {
    transform: scale(1.1);
}

.mm-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-soft);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mm-item:hover .mm-name {
    color: var(--accent-silver);
}

/* Body Backdrop when MM active */
.mm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mm-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure Navbar is always on top */
#navbar {
    z-index: 1002 !important;
}

@media (max-width: 1024px) {
    .mm-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .mm-grid { grid-template-columns: repeat(2, 1fr); }
    .mega-menu { display: none; } 
}
