/* ============================================
   RESPONSIVE STYLES
   Mobile First Approach
   ============================================ */

/* Mobile Devices (up to 576px) */
@media screen and (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-lg);
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm) 0;
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-section {
        gap: var(--spacing-xs);
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-tagline {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--spacing-md);
        margin-top: 0;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Forms */
    .form-group {
        grid-template-columns: 1fr;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Featured Logos */
    .featured-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Courses */
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    /* Podcast */
    .podcast-content {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Tablets (576px to 768px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .podcast-content {
        grid-template-columns: 1fr;
    }
    
    /* Video Gallery */
    .video-item {
        flex: 0 0 calc(50% - 12px);
    }
}

/* Small Desktops (768px to 992px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Video Gallery */
    .video-item {
        flex: 0 0 calc(50% - 12px);
    }
}

/* Large Desktops (992px and up) */
@media screen and (min-width: 992px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Desktops (1400px and up) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
}

/* Landscape Orientation for Mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .hero-video {
        object-fit: cover;
        object-position: center;
    }
    
    /* Fix for iOS viewport height */
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Android Specific Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .hero-video {
        transform: scale(1.01);
    }
}

/* High DPI Displays */
@media screen and (min-resolution: 192dpi) {
    .logo-img,
    .testimonial-image img,
    .course-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Page Header Responsive */
/* Video Carousel Responsive */
@media screen and (max-width: 767px) {
    .video-item {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }
    
    .video-carousel-wrapper {
        padding: 0 40px;
    }
}

@media screen and (max-width: 575px) {
    .video-item {
        flex: 0 0 160px;
        min-width: 160px;
        max-width: 160px;
    }
    
    .video-carousel-wrapper {
        padding: 0 20px;
    }
    
    .video-title {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 767px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .course-detail-content {
        grid-template-columns: 1fr;
    }
    
    .course-detail:nth-child(even) .course-detail-content {
        direction: ltr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .course-detail-text h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-preview-content,
    .about-header-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    /* Change order on mobile: text first, then image */
    .about-preview-image {
        order: 2;
    }
    
    .about-preview-text {
        order: 1;
    }
    
    .offer-title {
        font-size: 2.5rem;
    }
    
    .offer-price,
    .offer-page-price {
        font-size: 2.5rem;
    }
    
    .offer-benefits-grid,
    .chart-features,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Video Gallery */
    .video-carousel-wrapper {
        padding: 0 50px;
    }
    
    .video-item {
        flex: 0 0 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-modal-content {
        padding: var(--spacing-md);
    }
    
    .video-modal-close {
        top: -40px;
        width: 36px;
        height: 36px;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .faq-question {
        font-size: 1.2rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-image {
        margin: 0 auto;
    }
    
    .quote {
        font-size: 1.5rem;
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-list li {
        flex-direction: column;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title {
        page-break-after: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
}

/* Booking CTA Section Responsive */
@media screen and (max-width: 767px) {
    .booking-cta-section {
        padding: var(--spacing-lg) 0;
    }
    
    .booking-cta-title {
        font-size: 2rem;
    }
    
    .booking-cta-description {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    .btn-booking-cta {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 575px) {
    .booking-cta-title {
        font-size: 1.75rem;
    }
    
    .booking-cta-description {
        font-size: 0.95rem;
    }
    
    .btn-booking-cta {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        padding: 15px;
        max-height: 95vh;
    }
    
    .google-form {
        height: 1600px;
    }
}

