/* Tablet (768px - 1024px) */
/* Tablet & Mobile (<= 1024px) */
@media (max-width: 1024px) {
    /* Hamburger Nav activation */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav {
        position: absolute;
        top: calc(100% + 1.1rem);
        left: -1.5rem;
        right: -1.5rem;
        width: calc(100% + 3rem);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.75rem 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-list {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 1.25rem;
        margin: 0;
        width: 100%;
        align-items: center;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.6rem 1.25rem;
        width: 100%;
        display: block;
        border-radius: 10px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(26, 86, 219, 0.06);
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto 0;   /* centred in the open menu */
        gap: 0.75rem;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Features: 2 columns at tablet */
    .features-grid { grid-template-columns: repeat(2, 1fr); }

    /* Tech Specs: 2 columns at tablet */
    .tech-grid { justify-content: flex-start; }
    .spec-card { flex: 1 1 calc(50% - 0.5rem); max-width: calc(50% - 0.5rem); }
    .spec-card:last-child { flex: 1 1 100%; max-width: 100%; }

    /* Pricing: 2 columns at tablet */
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .price-card.featured { transform: scale(1.02); }

    /* Video: thodi kam height tablet par */
    .video-container-wrapper { height: 460px; border-radius: 28px; }

    /* Hero: reduce top padding */
    .hero-v5 { padding: 100px 0 60px; }

    /* Section spacing reduce */
    section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Welcome Section: text + cards ko ek column mein stack karo */
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Welcome Cards: 1 per row on mobile */
    .welcome-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 25px;
    }

    .contact-header h2,
    .faq-header h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .form-control {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    /* FAQ Mobile Fix */
    .accordion-item {
        border-radius: 20px;
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0px;
    }

    .accordion-header {
        padding: 1.25rem;
        align-items: flex-start;
        gap: 1rem;
    }

    .accordion-header h4 {
        font-size: 0.95rem;
        line-height: 1.4;
        flex: 1;
        padding-right: 0.5rem;
    }

    .accordion-header .icon {
        margin-top: 2px;
        flex-shrink: 0;
    }

    .accordion-content p {
        padding: 0.75rem 1rem 1rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Performance / Tech Specs Mobile Fix */
    .spec-box {
        padding: 2rem;
    }

    .spec-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Logos Slider Gap Fix */
    .slider-track {
        gap: 15px;
    }

    .logo-slide img {
        width: 150px;
        height: 70px;
    }

    /* Hero heading center fix */
    .hero-v5 { text-align: center; }
    .hero-content h1 { font-size: 1.9rem; line-height: 1.2; }

    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .hero-v5 {
        padding: 120px 0 60px;
    }

    /* Video: mobile par height kaafi kam, radius bhi chhota */
    .video-container-wrapper {
        height: 220px;
        border-radius: 18px;
        transform: scale(1);
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .btn-xl {
        padding: 1.1rem 2.2rem;
        font-size: 1.1rem;
    }

    /* Features: 1 column on mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .tech-grid { grid-template-columns: 1fr; }

    /* Tech Specs: 1 column on mobile */
    .tech-grid { justify-content: center; }
    .spec-card { flex: 1 1 100%; max-width: 100%; }
    .spec-card:last-child { flex: 1 1 100%; max-width: 100%; }

    /* Pricing: 1 column on mobile */
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }

    /* FAQ + Contact gap fix */
    .faq-v5 { padding: 40px 0; }
    .faq-header { margin-bottom: 2rem; }
    .contact-v5 { padding: 40px 0; }
    .contact-header { margin-bottom: 2rem; }

    /* Footer: single column stack */
    .footer { padding: 50px 0 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand { grid-column: span 1; text-align: center; margin-bottom: 0.5rem; }
    .footer-links { text-align: center; }
    .footer-links h5 { font-size: 1rem; margin-bottom: 0.75rem; }
    .footer-links a { font-size: 0.9rem; margin-bottom: 0.75rem; }
    .contact-info { font-size: 0.85rem; justify-content: center; gap: 0.5rem; }
    .contact-info i { margin-top: 0; }
}

/* Very Small Phones (<= 420px) */
@media (max-width: 420px) {
    .container { padding: 0 1rem; }

    .logo { font-size: 1.35rem; }
    .logo i { font-size: 1.5rem; }

    .badge { font-size: 0.7rem; padding: 0.4rem 1.1rem; }

    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 2rem; }

    .video-container-wrapper { height: 170px; border-radius: 14px; }

    .stat-card { padding: 1.75rem 1rem; border-radius: 20px; }
    .stat-icon { font-size: 2rem; margin-bottom: 1rem; }

    .logo-slide img { width: 110px; height: 55px; }

    .feature-item { padding: 1.25rem 1rem; }
    .feature-item h3 { font-size: 1.05rem; }

    .spec-card { padding: 1.5rem 1.25rem; min-height: unset; }

    .price-card { padding: 2rem 1.25rem; }
    .amount { font-size: 1.8rem; }

    .accordion-header { padding: 1.5rem; }
    .accordion-header h4 { font-size: 0.9rem; }
    .accordion-content { padding: 0 1.5rem; }
    .accordion-content p { font-size: 0.85rem; }

    .contact-form-wrapper { padding: 1.5rem 1.1rem; border-radius: 20px; }
    .form-control { padding: 0.9rem 1.1rem; font-size: 0.95rem; }
}

