/* Additional Responsive Styles */

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid,
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        order: 2;
        text-align: center;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features,
    .download {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.125rem;
    }
    
    .features-grid,
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .download-card {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features,
    .download {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .feature-card,
    .download-card {
        padding: 1.5rem;
    }
    
    .feature-icon,
    .download-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i,
    .download-icon i {
        font-size: 1.5rem;
    }
    
    .download-links {
        gap: 0.5rem;
    }
    
    .download-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .download-card {
        padding: 1.25rem;
    }
}

/* Orientation specific styles */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .download {
        display: none;
    }
    
    .hero {
        padding: 40px 0;
        min-height: auto;
    }
    
    .features {
        padding: 40px 0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --text-primary: #000000;
        --text-secondary: #333333;
        --background: #ffffff;
        --border: #333333;
    }
    
    .feature-card,
    .download-card {
        border: 2px solid var(--border);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-title,
    .hero-description,
    .feature-card,
    .download-card {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-light: #64748b;
        --background: #0f172a;
        --background-secondary: #1e293b;
        --border: #334155;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }
    
    .navbar {
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid var(--border);
    }
    
    .hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .feature-card,
    .download-card {
        background: #1e293b;
        border: 1px solid var(--border);
    }
    
    .nav-menu {
        background-color: #1e293b;
    }
    
    .footer {
        background: #0f172a;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.download-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}