/* Responsive Styles */

/* Mobile First Approach */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Typography */
    html {
        font-size: 14px;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Products */
    .product-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Stats */
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-content {
        padding: 2rem;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 3rem auto 0;
    }
}

/* Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Container */
    .container {
        padding: 0 2rem;
    }
    
    /* Products Grid */
    .products-grid {
        gap: 1.5rem;
    }
    
    /* About Grid */
    .about-grid {
        gap: 2rem;
    }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    /* Container */
    .container {
        max-width: 1200px;
    }
}

/* Large Desktop (1441px+) */
@media (min-width: 1441px) {
    /* Container */
    .container {
        max-width: 1400px;
    }
    
    /* Typography Scale Up */
    html {
        font-size: 18px;
    }
}

/* Height-based Media Queries */
@media (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Orientation Queries */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-stats {
        display: none;
    }
    
    .hero-cta {
        margin-top: 1rem;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .product-card,
    .stat-card {
        border-width: 0.5px;
    }
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    .main-nav,
    .hero-background,
    .particles,
    .scroll-indicator,
    .social-links,
    .btn {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        background: white;
        color: black;
    }
    
    .hero-title,
    .section-title,
    .product-name {
        color: black;
    }
    
    /* Remove animations */
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Accessibility - Reduced Motion */
@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;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add overrides here */
}

/* Specific Component Breakpoints */

/* Navigation Breakpoint */
@media (max-width: 768px) {
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .cta-nav {
        margin: 1rem 2rem;
        display: inline-block;
    }
}

/* Product Cards Breakpoint */
@media (max-width: 600px) {
    .product-content {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 2rem;
    }
    
    .product-features {
        gap: 0.5rem;
    }
    
    .feature {
        font-size: 0.875rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Footer Breakpoint */
@media (max-width: 480px) {
    .footer-content {
        padding: 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
}

/* Utility Responsive Classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Responsive Text Utilities */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
    
    .text-left-mobile {
        text-align: left;
    }
    
    .text-right-mobile {
        text-align: right;
    }
}

/* Responsive Spacing Utilities */
@media (max-width: 768px) {
    .p-mobile-0 {
        padding: 0;
    }
    
    .m-mobile-0 {
        margin: 0;
    }
    
    .gap-mobile-sm {
        gap: var(--space-sm);
    }
}
