@media (max-width: 768px) {

    /* 1. Header & Hamburger Fixes */
    .glass-nav {
        padding: 10px 4% !important;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }

    /* Hide text links by default on mobile */
    .nav-links {
        display: none !important;
    }

    /* SHOW links when menu is toggled active via JS */
    .nav-links.active {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        font-size: 1.5rem;
        color: white;
    }

    /* Hamburger Icon Styling */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .bar {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 10px;
        transition: 0.4s;
    }

    /* Hamburger to "X" Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo-text {
        font-size: 1rem !important;
        white-space: nowrap;
    }

    #main-logo {
        height: 28px !important;
    }

    /* 2. Hero Section Fixes */
    .hero-content {
        padding: 0 15px;
        margin-top: 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 20px auto 0 auto;
    }

    .btn-main,
    .btn-outline {
        width: 100%;
        margin: 0 !important;
        padding: 14px 0;
        text-align: center;
        display: block;
    }

    /* 3. Card & Grid Fixes - UPDATED FOR PEEK EFFECT */
    .value-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* This fixes the "Giant" card and restores the carousel look */
    .v-card {
        width: 280px !important;
        height: 420px !important;
        padding: 25px 20px;
        flex-shrink: 0 !important;
        /* Prevents card from squishing */
    }

    /* 4. Carousel Touch Optimization */
    /* Ensure arrows show on mobile */
    /* 4. Carousel Fix: Lock Arrows in Place */
    .scroll-container {
        position: relative !important;
        /* The Anchor */
        width: 100vw;
        /* Full width of the phone */
        overflow-x: hidden !important;
        /* STOPS the container from scrolling manually */
        padding: 0;
        margin-left: calc(-4%);
        /* Aligns with your nav padding if needed */
    }

    .scroll-track {
        display: flex !important;
        width: max-content !important;
        padding-left: 20px;
        padding-right: 50px;
        gap: 15px;
        /* This is the ONLY thing that should move */
        transition: transform 0.5s ease-out;
    }

    .nav-arrow {
        position: absolute !important;
        /* Pinned relative to scroll-container */
        top: 50%;
        transform: translateY(-50%);
        z-index: 999;
        /* High z-index to stay on top */
        display: flex !important;
        pointer-events: auto !important;
    }

    /* Fixed Positions */
    .nav-arrow.left {
        left: 15px !important;
    }

    .nav-arrow.right {
        right: 15px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hide the prev arrow only when at the very start */
    .nav-arrow.left {
        transition: opacity 0.3s ease;
    }

    .scroll-container {
        overflow-x: auto;
        /* Enable finger swiping */
        -webkit-overflow-scrolling: touch;
    }

    .scroll-track {
        display: flex !important;
        /* Force items to stay side-by-side */
        width: max-content !important;
        /* Track grows with content */
        padding-left: 20px;
        gap: 15px;
    }
}