/* Responsive CSS - Mobile First Approach */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-padding {
        padding: 100px 0;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Tablet (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 var(--spacing-md);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .about-grid,
    .certificate-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-image {
        order: -1;
    }
    
    .curriculum-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .instructors-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

/* Medium Tablet (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    :root {
        --section-padding: 60px 0;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        gap: var(--spacing-md);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: 100px 0 var(--spacing-xl);
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .curriculum-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .curriculum-item {
        padding: var(--spacing-lg);
    }
    
    .curriculum-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .instructors-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .cookie-actions {
        justify-content: center;
    }
}

/* Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-md);
    }
    
    :root {
        --font-size-base: 15px;
        --section-padding: 50px 0;
    }
    
    .hero {
        padding: 80px 0 var(--spacing-xl);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
    }
    
    .curriculum-grid,
    .benefits-grid,
    .instructors-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .instructor-image {
        width: 100px;
        height: 100px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .certificate-mockup {
        padding: var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
    }
}

/* Mobile Landscape (481px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    :root {
        --font-size-base: 14px;
        --section-padding: 40px 0;
    }
    
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .hero {
        padding: 70px 0 var(--spacing-lg);
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .form-group input,
    .form-group textarea {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .curriculum-item,
    .benefit-card,
    .instructor-card,
    .testimonial-card,
    .stat-item {
        padding: var(--spacing-lg);
    }
    
    .curriculum-icon,
    .benefit-icon,
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .instructor-image {
        width: 80px;
        height: 80px;
    }
    
    .expertise-tag {
        font-size: 0.75rem;
        padding: 2px var(--spacing-sm);
    }
    
    .testimonial-author img {
        width: 40px;
        height: 40px;
    }
    
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        gap: var(--spacing-lg);
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    :root {
        --spacing-xs: 0.2rem;
        --spacing-sm: 0.4rem;
        --spacing-md: 0.8rem;
        --spacing-lg: 1.2rem;
        --spacing-xl: 1.6rem;
        --spacing-xxl: 2rem;
        --spacing-huge: 2.5rem;
    }
    
    .header {
        padding: 0;
    }
    
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .logo {
        font-size: var(--font-size-lg);
    }
    
    .hero {
        padding: 60px 0 var(--spacing-lg);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-features {
        gap: var(--spacing-sm);
    }
    
    .feature-item {
        font-size: var(--font-size-sm);
        gap: var(--spacing-xs);
    }
    
    .contact-form {
        padding: var(--spacing-md);
        border-radius: var(--border-radius);
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    h2 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-bottom: var(--spacing-sm);
    }
    
    h3 {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
        margin-bottom: var(--spacing-sm);
    }
    
    h4 {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .lead {
        font-size: var(--font-size-base);
    }
    
    .point-item,
    .detail-item,
    .contact-item {
        gap: var(--spacing-md);
    }
    
    .point-item i,
    .detail-item i,
    .contact-item i {
        font-size: 1.2em;
    }
    
    .curriculum-item,
    .benefit-card,
    .instructor-card,
    .testimonial-card,
    .stat-item {
        padding: var(--spacing-md);
        border-radius: var(--border-radius);
    }
    
    .curriculum-icon,
    .benefit-icon,
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }
    
    .instructor-image {
        width: 70px;
        height: 70px;
        margin-bottom: var(--spacing-md);
    }
    
    .instructor-role {
        font-size: var(--font-size-sm);
    }
    
    .instructor-bio {
        font-size: var(--font-size-sm);
    }
    
    .expertise-tag {
        font-size: 0.7rem;
        padding: 1px var(--spacing-xs);
    }
    
    .testimonial-stars {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .testimonial-text {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .testimonial-author {
        gap: var(--spacing-sm);
    }
    
    .testimonial-author img {
        width: 35px;
        height: 35px;
    }
    
    .author-info h4 {
        font-size: var(--font-size-sm);
    }
    
    .author-info p {
        font-size: 0.75rem;
    }
    
    .certificate-mockup {
        padding: var(--spacing-md);
        max-width: 100%;
    }
    
    .certificate-header i {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .certificate-body h4 {
        font-size: var(--font-size-base);
    }
    
    .faq-question {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .disclaimer {
        padding: var(--spacing-md);
    }
    
    .footer {
        padding: var(--spacing-lg) 0;
    }
    
    .footer-logo {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .footer-description {
        font-size: var(--font-size-sm);
    }
    
    .footer-links h4,
    .footer-legal h4 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding-top: var(--spacing-md);
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .cookie-banner {
        padding: var(--spacing-md);
    }
    
    .cookie-content h4 {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .cookie-content p {
        font-size: 0.75rem;
    }
    
    .cookie-actions {
        gap: var(--spacing-md);
        margin-top: var(--spacing-sm);
    }
    
    .cookie-actions .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.75rem;
    }
    
    .cookie-more-info {
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .curriculum-item,
    .benefit-card,
    .instructor-card,
    .testimonial-card,
    .stat-item {
        padding: var(--spacing-sm);
    }
    
    .curriculum-icon,
    .benefit-icon,
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .instructor-image {
        width: 60px;
        height: 60px;
    }
    
    .certificate-mockup {
        padding: var(--spacing-sm);
        font-size: 0.75rem;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Hover effects disable on touch devices */
@media (hover: none) {
    .curriculum-item:hover,
    .benefit-card:hover,
    .instructor-card:hover,
    .testimonial-card:hover,
    .stat-item:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    .about-image img:hover {
        transform: none;
    }
    
    .back-to-top:hover {
        transform: none;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .curriculum-icon,
    .benefit-icon,
    .stat-icon {
        background-image: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0 var(--spacing-lg);
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .navbar {
        padding: var(--spacing-xs) 0;
    }
}

/* Print styles */
@media print {
    .header,
    .back-to-top,
    .cookie-banner {
        display: none;
    }
    
    .hero {
        padding-top: 0;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    .section-padding {
        padding: 20px 0;
    }
}

/* Focus styles for better accessibility */
@media (min-width: 768px) {
    .nav-link:focus,
    .btn:focus,
    input:focus,
    textarea:focus,
    button:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: rgba(0, 210, 255, 0.2);
    }
    
    .navbar-nav {
        background: rgba(26, 26, 26, 0.98);
    }
    
    .hero {
        background: linear-gradient(135deg, var(--darker-color) 0%, #1a1a2e 50%, rgba(0, 210, 255, 0.1) 100%);
    }
    
    .alt-bg {
        background: linear-gradient(135deg, var(--gray-800) 0%, #1a1a2e 100%);
    }
    
    .contact-form,
    .curriculum-item,
    .benefit-card,
    .instructor-card,
    .testimonial-card,
    .stat-item,
    .faq-item {
        background: var(--gray-800);
        border-color: rgba(0, 210, 255, 0.2);
    }
    
    .certificate-mockup {
        background: var(--gray-800);
        color: var(--light-color);
    }
}

/* Animation performance optimization */
@media (prefers-reduced-motion: no-preference) {
    .curriculum-item,
    .benefit-card,
    .instructor-card,
    .testimonial-card,
    .stat-item {
        will-change: transform;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-features,
    .hero-form {
        will-change: transform, opacity;
    }
}