/* =========================================================
   RESPONSIVE — Mobile First Breakpoints (FIXED)
   ========================================================= */

/* Global Fix for Horizontal Scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* =========================================================
   iPad Pro / Tablets Fix (1200px)
   ========================================================= */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 14px !important;
        padding: 10px 8px !important;
    }
    .logo-text {
        font-size: 18px;
    }
    .header-cta {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    .header-inner {
        gap: 15px;
    }
}

/* ---------- Large tablets / small desktops (1024px) ---------- */
@media (max-width: 1024px) {
    .nav-list { gap: 2px; }
    .nav-link { padding: 10px 11px; font-size: 14.5px; }
    .header-cta { padding: 11px 20px; font-size: 14px; }
    .hero-title { font-size: 46px; }
    .hero-video-section { min-height: auto; padding: 100px 0 80px; }
    .metric-box { padding: 20px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .why-choose-section .section-title { font-size: 36px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-slider .slick-prev { left: 0px; }
    .testimonial-slider .slick-next { right: 0px; }
}

/* ---------- Tablets / Mobile Menu (900px) ---------- */
@media (max-width: 900px) {
    :root {
        --header-h: 70px;
    }

    .hamburger {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    /* Mobile nav panel */
    .main-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        width: min(320px, 85vw);
        height: calc(100vh - var(--header-h));
        background: #ffffff;
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 40px rgba(11, 27, 59, 0.12);
        padding: 24px 20px;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 0;
        display: flex;
        flex-direction: column;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 16px;
        color: var(--text);
        box-sizing: border-box;
    }

    .nav-link.active {
        color: var(--primary);
    }

    /* 🔴 MEGA MENU MOBILE FIX */

    /* 1. Hover ko completely band karein */
    .main-nav .has-dropdown:hover .mega-menu {
        display: none !important;
    }

    /* 2. Normal state (Jab band ho) */
    .main-nav .has-dropdown .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none; /* Default mein hidden */
        transform: none !important;
        transition: none !important;
        padding: 0;
    }

    /* 3. Jab open ho (Click karne par) */
    .main-nav .has-dropdown.open .mega-menu {
        display: block !important; /* Force show */
        padding: 10px 0 10px 15px; /* Thoda indent */
    }

    /* 4. Arrow rotate */
    .has-dropdown.open .chevron {
        transform: rotate(180deg) !important;
    }

    /* 5. Inner items ki styling */
    .mega-menu-grid {
        display: grid;
        grid-template-columns: 1fr; /* 1 column list */
        gap: 8px;
    }

    .mega-menu-item {
        display: flex !important; /* Force flex taake icon aur text side-by-side hon */
        align-items: center;
        padding: 10px 12px;
        background: #f8fafc; /* Halka grey background taake items alag dikhein */
        border-radius: 8px;
        color: #334155 !important;
        font-size: 15px;
    }

    .mega-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        background: #eff6ff;
        color: #0b5cff;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        margin-right: 12px;
    }

    .mega-text span {
        font-weight: 600;
        font-size: 14px;
    }

    .mega-menu-footer {
        text-align: left;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }

    /* Mobile CTA Button */
    .nav-cta-mobile {
        display: flex;
        width: 100%;
        margin-top: 24px;
        padding: 16px;
        font-size: 16px;
        justify-content: center;
        box-sizing: border-box;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(10, 26, 51, 0.85) 0%, rgba(10, 26, 51, 0.65) 100%);
    }

    .hero-bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-text {
        margin: 0 auto 50px;
        text-align: center;
    }

    .hero-title { font-size: 40px; }
    .hero-actions { justify-content: center; }

    .hero-metrics-strip {
        flex-direction: column;
        margin: 0 auto;
        width: 100%;
    }

    .metric-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        text-align: center;
        padding: 20px;
    }

    .metric-box:last-child {
        border-bottom: none;
    }
}

/* ---------- Small Tablets / Large Phones (768px) ---------- */
@media (max-width: 768px) {
    .why-choose-section, .services-section, .testimonials-section {
        padding: 70px 0;
    }

    .why-choose-section .section-title, .services-section .section-title, .testimonials-section .section-title {
        font-size: 30px;
    }

    .why-choose-section .section-desc, .services-section .section-desc, .testimonials-section .section-desc {
        font-size: 16px;
        padding: 0 10px;
    }

    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-card { padding: 30px 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 30px 20px; }

    .testimonial-slider .slick-prev,
    .testimonial-slider .slick-next {
        display: none !important;
    }
}

/* ---------- Small Phones (480px) ---------- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .logo-text { font-size: 17px; }
    .logo-img { width: 34px; height: 34px; }
    .main-nav { width: 100%; border-left: none; }
    .hero-title { font-size: 32px; letter-spacing: -1px; }
    .hero-desc { font-size: 16px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-lg { width: 100%; }
    .hero-badge { font-size: 12px; padding: 6px 12px; }
}

/* ---------- Large Screens (1440px) ---------- */
@media (min-width: 1440px) {
    .container { max-width: 1280px; }
}

/* =========================================================
   CTA SECTION RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .cta-box { flex-direction: column; text-align: center; padding: 50px 40px; }
    .cta-content { max-width: 100%; }
    .cta-actions { flex-direction: row; width: 100%; justify-content: center; }
    .cta-actions .btn { flex: 1; max-width: 300px; }
}

@media (max-width: 768px) {
    .cta-section { padding: 0 0 70px 0; }
    .cta-box { padding: 40px 24px; border-radius: 24px; }
    .cta-content h2 { font-size: 32px; }
    .cta-content p { font-size: 16px; }
    .cta-actions { flex-direction: column; gap: 12px; }
    .cta-actions .btn { width: 100%; max-width: 100%; }
}

/* =========================================================
   PROCESS SECTION RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .process-grid::before { display: none; }
}

@media (max-width: 768px) {
    .process-section { padding: 70px 0; }
    .process-section .section-title { font-size: 30px; }
    .process-section .section-desc { font-size: 16px; padding: 0 10px; }
    .process-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-card { padding: 30px 20px; }
}

/* =========================================================
   FOOTER RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-desc { max-width: 100%; }
}

@media (max-width: 768px) {
    .site-footer { padding: 60px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .payment-methods { flex-wrap: wrap; }
}

/* =========================================================
   TOP BAR RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .top-bar { display: none; }
}


@media (max-width: 900px) {
    /* ... baaki mobile code ... */

    /* 🔴 Mobile par heading ko hide karein */
    .mega-menu-title {
        display: none !important;
    }
}
