/* TAMOOH - Responsive Styles */

/* Large Devices (desktops, less than 1200px) */
@media (max-width: 1199px) {
    .hero-content {
        gap: var(--space-8);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-stats {
        gap: var(--space-6);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-courses-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .trainers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (tablets, less than 992px) */
@media (max-width: 991px) {
    :root {
        --navbar-height: 70px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + var(--space-8));
        padding-bottom: var(--space-12);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 0;
        max-width: 400px;
        margin: 0 auto var(--space-8);
    }

    .hero-description {
        margin: 0 auto var(--space-8);
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .trainers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-card {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-content {
        flex-direction: column;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
}

/* Small Devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .stat-item {
        flex: 0 0 calc(50% - var(--space-2));
    }

    .section {
        padding: var(--space-12) 0;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .section-description {
        font-size: var(--font-size-base);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .live-courses-slider {
        grid-template-columns: 1fr;
    }

    .trainers-grid {
        grid-template-columns: 1fr;
    }

    .projects-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        justify-content: center;
    }

    .cta-content h2 {
        font-size: var(--font-size-2xl);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .course-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
    }

    .course-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-shrink: 0;
    }
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-3);
    }

    .feature-card {
        padding: var(--space-6);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

    .course-card-image {
        height: 180px;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 220px;
    }

    .testimonial-card {
        padding: var(--space-6);
    }

    .newsletter-card {
        padding: var(--space-6);
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    /* Additional mobile optimizations */
    .btn-large {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-base);
    }

    .countdown {
        justify-content: center;
        flex-wrap: wrap;
    }

    .countdown-item {
        min-width: 50px;
        padding: var(--space-2);
    }

    .countdown-number {
        font-size: var(--font-size-lg);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .course-card:hover,
    .feature-card:hover,
    .trainer-card:hover,
    .testimonial-card:hover {
        transform: none;
    }

    .project-overlay {
        transform: translateY(0);
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    }

    /* Larger tap targets */
    .btn {
        min-height: 48px;
    }

    .nav-link {
        min-height: 48px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Sharper shadows */
    .card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .scroll-top,
    .hero-bg,
    .hero-shapes {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .section {
        padding: var(--space-8) 0;
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
}

/* Landscape mode on mobile */
@media (max-width: 991px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero-image {
        max-width: 300px;
    }
}