@media (max-width: 900px) {
    .nav-links { display: none; } /* Mobile menu implementation can follow */
    .hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-text h1 { font-size: 45px; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-visual { order: -1; } /* Image moves to top on mobile */
    .hero-visual img { max-width: 320px; }
    .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary);
    }

    .nav-links {
        display: none; /* Default hidden on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-light);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex; /* Show when active class is added by JS */
    }
}/* --- RESPONSIVE FIXES --- */

@media (max-width: 1024px) {
    .hero {
        padding: 120px 5% 60px;
        gap: 30px;
    }
    .hero-text h1 {
        font-size: 50px;
    }
    .footer-top {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    @media (max-width: 900px) {
    /* Hide Desktop Nav */
    .nav-menu { display: none; }
    .mobile-toggle { display: none; }
    }
    .mobile-bottom-nav .nav-item {
    position: relative;
    color: rgba(255, 255, 255, 0.5); 
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy feel */
}

/* Active State: Icon ko upar shift karo aur color change karo */
.mobile-bottom-nav .nav-item.active {
    color: #FF9800 !important;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    display: inline-block; /* Scale ke liye zaroori hai */
    transition: all 0.4s ease;
}

/* Jab click ho toh icon bada ho kar vahi ruke, gayab na ho */
.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-8px) scale(1.2); /* Thoda upar aur bada */
    opacity: 1 !important; /* Force visibility */
}

.mobile-bottom-nav .nav-item span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.mobile-bottom-nav .nav-item.active span {
    opacity: 1;
}


    /* Padding for page content so it doesn't hide behind nav */
    body { padding-bottom: 100px; }


/* Desktop par ye bar nahi dikhega */
@media (min-width: 901px) {
    .mobile-bottom-nav { display: none; }
}

    /* Hero Stacking */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-visual img {
        max-width: 300px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    /* Collection Grid */
    .collection {
        padding: 60px 5%;
        border-radius: 40px 40px 0 0;
    }

    .section-header h2 {
        font-size: 36px;
    }

    /* Footer Responsive */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .logo-box img {
        height: 35px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
    }

    .product-card {
        padding: 30px 15px;
    }

    .product-card img {
        height: 200px;
    }
}
@media (max-width: 900px) {
    .story-sec {
        padding: 100px 8%;
        text-align: center;
        justify-content: center;
    }

    .floating-kulfi-trigger {
        top: 25%;
        right: 50%;
        transform: translate(50%, -50%);
        width: 250px;
        opacity: 0.15; /* Background texture feel */
    }

    .story-info h1 { font-size: 42px; }
    .story-info p { font-size: 16px; }
    
    .navbar { padding: 15px 0; }
}
@media (max-width: 768px) {
    .traditional-showcase {
        height: auto !important;
        min-height: 600px;
        padding: 60px 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .matka-stage {
        width: 100vw !important;
        height: 450px !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important; /* Matka ko niche lane ke liye */
        margin: 0 auto !important;
    }

    /* Matka ko exact center-bottom mein lane ke liye */
    .matka-anchor {
        width: 210px !important;
        position: absolute !important;
        left: 50% !important;
        bottom: 15% !important; /* Niche se 10% upar */
        transform: translateX(-50%) !important;
        z-index: 10;
    }

    /* Thread/Kulfi Container Alignment */
    .thread, .kulfi-item {
        position: absolute !important;
        width: 1px !important;
        background: #d2b48c !important;
        transform-origin: top;
    }

    .thread img, .kulfi-item img {
        width: 45px !important; /* Proper size for mobile */
        position: absolute !important;
        bottom: -55px !important;
        left: -22px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* --- Precise Arch Positions (Over the Matka) --- */
    /* Humne top values badhayi hain taaki kulfi matke ke upar latke */
    .h-1, .k1 { left: 10% !important; top: 180px !important; height: 100px !important; }
    .h-2, .k2 { left: 22% !important; top: 110px !important; height: 120px !important; }
    .h-3, .k3 { left: 38% !important; top: 60px !important; height: 130px !important; }
    .h-4, .k4 { left: 50% !important; top: 30px !important; height: 140px !important; } /* Center Top */
    .h-5, .k5 { left: 62% !important; top: 60px !important; height: 130px !important; }
    .h-6, .k6 { left: 78% !important; top: 110px !important; height: 120px !important; }
    .h-7, .k7 { left: 90% !important; top: 180px !important; height: 100px !important; }
}
@media (max-width: 768px) {
    /* Text ko center align aur calligraphy font dena */
    .funny-header, .showcase-header {
        text-align: center !important;
        width: 100% !important;
        margin-top: 30px !important;
        margin-bottom: 20px !important;
        padding: 0 15px !important;
        display: block !important;
    }

    .funny-header h2, .showcase-header h2 {
        /* Creative Calligraphy Font */
        font-family: 'Great Vibes', cursive !important; 
        font-size: 32px !important; /* Mobile ke liye perfect size */
        line-height: 1.2 !important;
        color: #4A2C2A !important;
        font-weight: 400 !important;
    }

    .funny-header h2 span, .showcase-header h2 span {
        display: block;
        font-size: 28px !important;
        color: #FF9800 !important;
        margin-top: 5px;
    }

    /* Matka aur Kulfi stage ko thoda niche shift karna taaki text se na takraye */
    .matka-stage {
        margin-top: 20px !important;
    }
}