/* Responsive Design Styles */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Research Grid */
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Sections */
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* Vision Grid */
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Research Grid */
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* CTA Actions */
    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Partners Grid */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Vision */
    .lead-text {
        font-size: 1.125rem;
    }
    
    .vision-item {
        padding: 1.5rem;
    }
    
    /* Feature Card */
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Research Card */
    .research-card {
        padding: 1.5rem;
    }
    
    /* News Card */
    .news-content {
        padding: 1rem;
    }
    
    /* Partners Grid */
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.5rem;
    }
}

/* High Resolution Displays */
@media (min-width: 1440px) {
    /* Container */
    .container {
        max-width: 1320px;
    }
    
    /* Typography */
    h1 { font-size: 3.5rem; }
    h2 { font-size: 3rem; }
    
    /* Hero */
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .nav-toggle,
    .lang-switch,
    .scroll-indicator,
    .hero-actions,
    .cta,
    .social-links,
    .footer-bottom {
        display: none;
    }
    
    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    /* Page breaks */
    .section-padding {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f0f0f0;
        --text-light: #cccccc;
        --background-color: #1a1a1a;
        --border-color: #333333;
    }
    
    body {
        background-color: var(--background-color);
        color: var(--text-color);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .feature-card,
    .research-card,
    .news-card {
        background: #2a2a2a;
    }
    
    .bg-gray {
        background-color: #222222;
    }
}