/* Premium Dark Theme Mobile Brands Styles - FINAL FIX */
@media (max-width: 767px) {

    /* 1. CRITICAL SCROLL FIXES */
    /* Force native scrolling and disable any JS scroll hijacking effects */
    html,
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh !important;
        position: static !important;
        background-color: #000000 !important;
        touch-action: auto !important;
    }

    #smooth-wrapper,
    #smooth-content,
    main,
    .tp-porfolio-10-area {
        overflow: visible !important;
        height: auto !important;
        position: static !important;
        transform: none !important;
        /* Disable GSAP transforms */
    }

    /* 2. Base Layout */
    .mobile-brands-section {
        padding: 40px 0 100px 0;
        /* Extra padding at bottom for scroll space */
        background-color: #000000;
        background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 70%);
        min-height: 100vh;
        height: auto !important;
        position: relative;
        z-index: 10;
        margin-bottom: 0;
        overflow: visible !important;
    }

    /* Container */
    .mobile-brands-section .container {
        padding: 0 15px;
    }

    /* 3. HIDE HEADER (Per User Request) */
    .mobile-brands-title {
        display: none !important;
    }

    /* 4. Grid Layout */
    .mobile-brands-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 20px 0;
        /* Added padding since header is gone */
    }

    /* 5. Premium Card Styling */
    .brand-item {
        background: rgba(20, 20, 20, 0.6);
        border: 1px solid rgba(255, 188, 0, 0.3);
        /* Thin Gold Border */
        border-radius: 12px;
        overflow: hidden;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        position: relative;
    }

    /* Glow Effect */
    .brand-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: radial-gradient(circle at top, rgba(255, 188, 0, 0.15), transparent 70%);
        opacity: 0.5;
        pointer-events: none;
    }

    .brand-item:active {
        transform: scale(0.98);
        border-color: rgba(255, 188, 0, 0.8);
        box-shadow: 0 0 15px rgba(255, 188, 0, 0.2);
    }

    .brand-link {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        height: 100%;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    /* Image Wrapper */
    .brand-image {
        width: 100%;
        aspect-ratio: 16/9;
        overflow: hidden;
        margin-bottom: 0;
        background: #000;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .brand-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
        opacity: 0.9;
    }

    /* Content Styling */
    .brand-info {
        padding: 15px 10px;
        text-align: center;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .brand-info h3 {
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 5px;
        letter-spacing: 0.3px;
    }

    .brand-info p {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
        font-weight: 400;
        line-height: 1.3;
    }

    /* Animations */
    .brand-item {
        animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        opacity: 0;
        transform: translateY(30px);
    }

    .brand-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .brand-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .brand-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .brand-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .brand-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .brand-item:nth-child(6) {
        animation-delay: 0.35s;
    }

    .brand-item:nth-child(7) {
        animation-delay: 0.4s;
    }

    .brand-item:nth-child(8) {
        animation-delay: 0.45s;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Desktop Hide */
@media (min-width: 768px) {
    .mobile-brands-section {
        display: none !important;
    }
}