/* ============================================
   RESPONSIVE CSS - DUDU LIMA MSFS SCENERIES
   Mobile-First Responsive Design
   ============================================ */

/* Mobile First Approach */

/* Base Mobile Styles (default) */
@media screen and (max-width: 767px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-md);
        border-top: 1px solid var(--dark-border);
        gap: var(--spacing-sm);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: var(--spacing-xs);
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-cart {
        margin-top: var(--spacing-sm);
    }
    
    /* Hero Section */
    .hero {
        height: 80vh;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: var(--spacing-md);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .cockpit-frame {
        width: 120px;
        height: 120px;
        margin-top: var(--spacing-lg);
    }
    
    .cockpit-frame i {
        font-size: 2.5rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    /* Featured Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .product-category,
    .product-rating {
        width: 100%;
        justify-content: space-between;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Features Grid */
    .features-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }
    
    .feature-card,
    .partner-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon,
    .partner-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto var(--spacing-sm);
    }
    
    .feature-icon i,
    .partner-logo i {
        font-size: 1.5rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .developer-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .developer-social {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-section {
        padding: 0;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Utility Classes */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }
    
    .section-footer {
        text-align: center;
        padding: 0 var(--spacing-sm);
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.7rem;
    }
    
    .nav-logo {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
    
    .feature-card,
    .partner-card {
        padding: var(--spacing-md);
    }
    
    .developer-name {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .nav-container {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .features-grid,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .cockpit-frame {
        width: 150px;
        height: 150px;
    }
    
    .cockpit-frame i {
        font-size: 3rem;
    }
}

/* Desktop Styles */
@media screen and (min-width: 1025px) {
    .nav-container {
        padding: var(--spacing-sm) var(--spacing-xl);
    }
    
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .hero-text {
        flex: 1;
        max-width: 600px;
    }
    
    .hero-visual {
        flex: 0 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: var(--spacing-xxl);
    }
}

/* Large Desktop */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cockpit-frame {
        width: 250px;
        height: 250px;
    }
    
    .cockpit-frame i {
        font-size: 5rem;
    }
}

/* Ultra Wide */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Orientation Specific */
@media screen and (orientation: landscape) and (max-width: 896px) {
    .hero {
        height: 90vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cockpit-frame {
        width: 100px;
        height: 100px;
    }
    
    .cockpit-frame i {
        font-size: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .product-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-background::before {
        animation: none;
    }
    
    .cockpit-frame {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-visual,
    .social-links,
    .nav-cart {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    /* Override for light mode if needed */
}

/* Focus Styles for Accessibility */
@media (prefers-contrast: high) {
    .btn:focus,
    .nav-link:focus,
    .social-link:focus {
        outline: 2px solid var(--neon-blue);
        outline-offset: 2px;
    }
}

/* Custom Scrollbar for Webkit Browsers */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--dark-bg);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--neon-blue);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--neon-blue-light);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background: rgba(0, 163, 255, 0.1);
    }
    
    .btn,
    .nav-link,
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
}