/* Additional responsive styles */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 800px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.2);
        --glass-border: rgba(255, 255, 255, 0.5);
        --accent-cyan: #00FFFF;
        --accent-blue: #0080FF;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes,
    .hero-stats,
    .service-card:hover,
    .system-category:hover,
    .tech-platform:hover,
    .feature-item:hover {
        transform: none !important;
    }
}

/* Dark/Light mode toggle */
@media (prefers-color-scheme: light) {
    :root {
        --primary-dark: #FFFFFF;
        --primary-light: #F8F9FA;
        --text-primary: #212529;
        --text-secondary: #6C757D;
        --text-light: #495057;
        --glass-bg: rgba(0, 0, 0, 0.05);
        --glass-border: rgba(0, 0, 0, 0.1);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-links a:hover::after {
        width: 0;
    }
    
    .service-link:hover {
        gap: 5px;
    }
    
    .platform-tag:hover,
    .feature-item:hover,
    .tech-platform:hover,
    .system-widget:hover {
        transform: none;
    }
}

/* Foldable devices */
@media (max-width: 350px) and (max-height: 650px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}