/* ===== COMPREHENSIVE RESPONSIVE BREAKPOINTS ===== */

/* Mobile First - Base styles above are for mobile */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-6xl: 2.25rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: var(--font-size-base) !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .section-heading {
        font-size: 1.75rem !important;
    }

    .section-description {
        font-size: var(--font-size-sm) !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-3);
    }

    .stat-number {
        font-size: var(--font-size-4xl) !important;
    }

    .btn-modern {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
    }

    .btn-modern.btn-lg {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-base);
    }

    .card-modern {
        padding: var(--space-3);
    }

    .card-icon {
        width: 56px;
        height: 56px;
        font-size: var(--font-size-2xl);
    }

    .social-icons {
        gap: var(--space-2);
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }

    .section-modern {
        padding: var(--space-6) 0;
    }

    .section-title-modern {
        margin-bottom: var(--space-5);
    }

    .footer-modern {
        padding: var(--space-6) 0 var(--space-3);
    }
}

/* Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl) !important;
    }

    .hero-subtitle {
        font-size: var(--font-size-lg) !important;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-buttons .btn-modern {
        flex: 1;
        min-width: 200px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .section-modern {
        padding: var(--space-8) 0;
    }

    .section-heading {
        font-size: var(--font-size-3xl) !important;
    }

    .card-modern {
        padding: var(--space-4);
    }
}

/* Small Tablet / Large Phone (600px - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .header-modern .logo img {
        height: 32px;
    }

    .header-modern.scrolled .logo img {
        height: 28px;
    }

    .nav-modern {
        gap: var(--space-2);
    }

    .nav-modern a {
        font-size: 0.8rem;
        padding: var(--space-1);
    }
}

/* Tablet (769px - 1024px) - iPad and similar devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reduce navigation spacing to prevent wrapping */
    .nav-modern {
        gap: var(--space-1);
    }

    .nav-modern a {
        font-size: 0.8rem;
        padding: var(--space-1) 0.25rem;
    }

    .header-modern {
        padding: var(--space-2) 0;
    }

    /* Smaller logo to save space */
    .header-modern .logo img {
        height: 32px;
    }

    .header-modern.scrolled {
        padding: var(--space-1) 0;
    }

    .header-modern.scrolled .logo img {
        height: 28px;
    }

    /* Reduce header action area spacing */
    .header-action-area {
        gap: var(--space-2);
    }
}

/* Specific fix for iPad portrait (768px - 834px) */
@media (min-width: 768px) and (max-width: 834px) {
    .nav-modern {
        gap: 0.5rem;
    }

    .nav-modern a {
        font-size: 0.75rem;
        padding: var(--space-1) 0.2rem;
    }

    .header-modern .logo img {
        height: 30px;
    }

    .header-modern.scrolled .logo img {
        height: 26px;
    }
}

/* Desktop Small (1025px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Medium (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Large (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-heading {
        font-size: var(--font-size-5xl);
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-modern {
        min-height: auto;
        padding: var(--space-12) 0;
    }

    .section-modern {
        padding: var(--space-8) 0;
    }
}

/* Print Styles */
@media print {

    .header-modern,
    .scroll-to-top,
    .btn-menu,
    .off-canvas-wrapper {
        display: none !important;
    }

    .hero-modern {
        min-height: auto;
        padding: var(--space-6) 0;
    }

    .section-modern {
        padding: var(--space-5) 0;
        page-break-inside: avoid;
    }
}