/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Mobile First Approach - Base styles are mobile */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        padding-top: 70px;
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Typography Adjustments */
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    /* Reduce padding on mobile */
    section {
        padding: var(--space-12) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    /* Cards */
    .glass-card,
    .service-card,
    .why-card {
        padding: var(--space-6);
    }

    /* Stats */
    .hero-stats-inline {
        flex-direction: column;
        gap: var(--space-3);
    }

    .stat-inline {
        width: 100%;
        justify-content: center;
    }

    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-sm);
    }

    /* Footer */
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
    body {
        padding-top: 80px;
    }

    .nav-container {
        min-height: 80px;
        padding: var(--space-4) var(--space-8);
    }

    .hero-header {
        min-height: 90vh;
    }

    section {
        padding: var(--space-20) 0;
    }

    /* Grids become 2 columns */
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cards get more padding */
    .glass-card,
    .service-card,
    .why-card {
        padding: var(--space-8);
    }

    .cta-card-modern {
        padding: var(--space-16) var(--space-12);
    }
}

/* Large Devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-12);
    }

    .hero-header {
        min-height: 100vh;
    }

    /* Full navigation visible */
    .nav-menu {
        display: flex !important;
    }

    /* 3-column layouts */
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Larger spacing */
    section {
        padding: var(--space-24) 0;
    }

    .section-header {
        margin-bottom: var(--space-16);
    }

    /* Enhanced hover effects */
    .feature-card:hover,
    .service-card:hover,
    .why-card:hover {
        transform: translateY(-10px);
    }

    /* Buttons side by side */
    .hero-buttons {
        flex-direction: row;
    }

    .cta-buttons {
        flex-direction: row;
    }
}

/* Extra Large Devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }

    /* Even more spacing for large screens */
    section {
        padding: clamp(var(--space-20), 8vw, var(--space-24)) 0;
    }

    /* 4-column grids where appropriate */
    .training-stats-modern {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin: 0 auto;
    }
}

/* Extra Extra Large Devices (1536px and up) */
@media (min-width: 1536px) {
    .container {
        max-width: var(--container-2xl);
    }

    .hero-content {
        max-width: 1200px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-header {
        min-height: 100vh;
        padding: var(--space-20) var(--space-4);
    }

    .hero-scroll-indicator {
        display: none;
    }

    .nav-container {
        min-height: 60px;
    }

    body {
        padding-top: 60px;
    }
}

/* Print Styles */
@media print {
    body {
        padding-top: 0;
    }

    .navbar,
    .hero-scroll-indicator,
    .mobile-menu-toggle,
    footer,
    .btn,
    .cta-buttons {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
    }

    .hero-header {
        min-height: auto;
        padding: var(--space-8);
    }
}



/* Dark Mode Support (Optional Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Uncomment when implementing dark mode */
    /*
    :root {
        --bg-primary: var(--gray-900);
        --bg-secondary: var(--gray-800);
        --text-primary: var(--gray-100);
        --text-secondary: var(--gray-400);
    }
    */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Make interactive elements larger for touch */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu a {
        padding: var(--space-4) var(--space-5);
    }

    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .why-card:hover,
    .testimonial-card-modern:hover {
        transform: none;
    }

    /* Ensure glass effects work well */
    .glass-card,
    .btn-glass {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.9);
    }
}