

/* Large Desktops (1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
    
    h1 {
        font-size: 5rem;
    }
    
    .section {
        padding: 120px 0;
    }
}

/* Desktops (1440px - 1919px) */
@media (max-width: 1919px) and (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }
}

/* Medium Devices (768px - 1439px) */
@media (max-width: 1439px) and (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .glass-card {
        padding: 24px;
    }
}

/* Tablets (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .container {
        padding: 0 30px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .glass-card {
        padding: 20px;
    }
    
    .header-inner {
        padding: 0 20px;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .glass-card {
        padding: 16px;
    }
    
    .header-inner {
        padding: 0 15px;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .mobile-menu {
        width: 280px;
        padding: 80px 30px 30px;
    }
    
    /* Hide complex animations on mobile */
    .particle-orb,
    .particle-grid {
        display: none;
    }
    
    /* Simplify glass effects on mobile */
    .glass-effect {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

/* Portrait Tablet Optimization */
@media (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        min-height: 80vh;
    }
    
    .text-rotator {
        display: block;
        height: auto;
    }
    
    .rotating-text {
        display: block;
        animation: none;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: 120vh;
    }
    
    .site-header {
        padding: 10px 0;
    }
    
    .logo-image {
        height: 30px;
    }
}

/* High Pixel Density Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-effect {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .mobile-menu,
    .theme-switcher,
    .particle-container,
    .hero-particles {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
}

/* Reduced Motion Preference */
@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;
    }
    
    .text-rotator,
    .rotating-text,
    .float,
    .pulse,
    .glow {
        animation: none !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        animation: fadeIn 0.5s ease forwards !important;
    }
}

/* Dark Mode Overrides for Specific Elements */
@media (prefers-color-scheme: dark) {
    [data-theme="light"] .dark-mode-only {
        display: none;
    }
}

@media (prefers-color-scheme: light) {
    [data-theme="dark"] .light-mode-only {
        display: none;
    }
}