/* ===== RESPONSIVE DESIGN ===== */

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== DESKTOP (1024px - 1199px) ===== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 1023px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }
    
    .hero-actions {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stats .stat-item {
        min-width: 100px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.85rem;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .features-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .catalog-filters .filter-group {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .testimonials-slider {
        max-width: 100%;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .cta-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===== MOBILE (480px - 767px) ===== */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        min-width: auto;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .about-text h3 {
        font-size: 1.25rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-features {
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .feature-icon {
        align-self: center;
    }
    
    .features-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .features-stats .stat-item {
        padding: 1.5rem;
    }
    
    .features-stats .stat-number {
        font-size: 2rem;
    }
    
    .catalog-filters {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .filter-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: 120px;
        text-align: center;
    }
    
    .program-card {
        margin: 0;
    }
    
    .program-header {
        padding: 1.5rem;
    }
    
    .program-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .program-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .program-level {
        font-size: 0.85rem;
        padding: 0.25rem 0.75rem;
    }
    
    .program-content {
        padding: 1.5rem;
    }
    
    .program-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .program-features {
        margin-bottom: 1.25rem;
    }
    
    .program-features li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .program-duration {
        font-size: 0.85rem;
        padding-top: 0.75rem;
    }
    
    .program-actions {
        padding: 1rem 1.5rem;
    }
    
    .program-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .testimonials-controls {
        gap: 1rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-section {
        padding: 0 1rem;
    }

    .footer-section h3 {
        justify-content: center;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-contact i {
        width: auto;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding: 1.5rem 1rem 0;
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 0 2rem;
        overflow: hidden;
    }

    .footer-content {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.5rem;
        margin: 0 -15px 2rem;
        padding: 0 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .footer-content::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .footer-section {
        flex: 0 0 300px;
        scroll-snap-align: start;
        padding: 0 1rem;
        text-align: left;
    }

    .footer-section h3 {
        justify-content: flex-start;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        justify-content: flex-start;
    }

    .footer-contact li {
        justify-content: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-actions .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.25rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .about-text h3 {
        font-size: 1.1rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .features-stats .stat-item {
        padding: 1rem;
    }
    
    .features-stats .stat-number {
        font-size: 1.75rem;
    }
    
    .features-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .program-header {
        padding: 1.25rem;
    }
    
    .program-icon {
        font-size: 2.25rem;
    }
    
    .program-content {
        padding: 1.25rem;
    }
    
    .program-description {
        font-size: 0.85rem;
    }
    
    .program-features li {
        font-size: 0.8rem;
    }
    
    .program-duration {
        font-size: 0.8rem;
    }
    
    .program-actions {
        padding: 1rem 1.25rem;
    }
    
    .program-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-content {
        font-size: 0.95rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-contact li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 1.25rem 0.75rem 0;
        font-size: 0.8rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        margin: 0 -12px 1.75rem;
        padding: 0 12px;
        gap: 1.25rem;
    }

    .footer-section {
        flex: 0 0 280px;
        padding: 0 0.75rem;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .catalog-grid {
        gap: 1rem;
    }
    
    .program-card {
        margin-bottom: 0.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .footer-section {
        padding: 0 0.75rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-contact li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding: 1.25rem 0.75rem 0;
        font-size: 0.8rem;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-illustration,
    .about-illustration {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .logo-icon,
    .feature-icon,
    .program-icon {
        transform: translateZ(0);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .floating-shapes,
    .back-to-top,
    .search-modal,
    .testimonial-modal {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        color: black !important;
    }
    
    .hero-description {
        color: #333 !important;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .program-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .btn {
        display: none !important;
    }
    
    .footer {
        background: white !important;
        color: black !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f7fafc;
        --text-light: #e2e8f0;
        --text-muted: #a0aec0;
        --white: #1a202c;
        --gray-50: #2d3748;
        --gray-100: #4a5568;
        --gray-200: #718096;
        --gray-300: #a0aec0;
        --gray-400: #cbd5e0;
        --gray-500: #e2e8f0;
        --gray-600: #edf2f7;
        --gray-700: #f7fafc;
        --gray-800: #ffffff;
        --gray-900: #ffffff;
    }
    
    .navbar {
        background: rgba(26, 32, 44, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar.scrolled {
        background: rgba(26, 32, 44, 0.98);
    }
    
    .nav-link {
        color: var(--text-dark);
    }
    
    .search-btn,
    .mobile-menu {
        color: var(--text-dark);
    }
    
    .search-btn:hover,
    .mobile-menu:hover {
        background: var(--gray-100);
        color: var(--primary-color);
    }
    
    .search-container {
        background: var(--white);
        color: var(--text-dark);
    }
    
    .search-header h3 {
        color: var(--text-dark);
    }
    
    .search-input-group input,
    .search-filters select {
        background: var(--gray-50);
        border-color: var(--gray-200);
        color: var(--text-dark);
    }
    
    .search-result-item {
        background: var(--gray-50);
        border-color: var(--gray-200);
    }
    
    .search-result-item:hover {
        background: var(--gray-100);
    }
    
    .search-result-item h4 {
        color: var(--text-dark);
    }
    
    .search-result-item p {
        color: var(--text-light);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-illustration,
    .shape,
    .floating-shapes {
        animation: none !important;
    }
    
    .loading-progress {
        animation: none !important;
    }
    
    .logo-loader {
        animation: none !important;
    }
    
    .nav-link::after {
        transition: none !important;
    }
    
    .btn::before {
        transition: none !important;
    }
    
    .feature-card::before {
        transition: none !important;
    }
    
    .program-card:hover {
        transform: none !important;
    }
    
    .testimonial-slide {
        transition: none !important;
    }
    
    .search-container {
        transition: none !important;
    }
    
    .modal-content {
        transition: none !important;
    }
}

/* ===== FOCUS VISIBLE ===== */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus-visible,
    .nav-link:focus-visible,
    .search-btn:focus-visible,
    .mobile-menu:focus-visible,
    .filter-btn:focus-visible,
    .control-btn:focus-visible,
    .close-search:focus-visible,
    .close-modal:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* ===== HOVER SUPPORT ===== */
@media (hover: hover) {
    .btn:hover::before {
        left: 100%;
    }
    
    .feature-card:hover::before {
        transform: scaleX(1);
    }
    
    .program-card:hover {
        transform: translateY(-10px);
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
}

@media (hover: none) {
    .btn::before,
    .feature-card::before,
    .nav-link::after {
        display: none;
    }
    
    .program-card:hover {
        transform: none;
    }
} 