/* Responsive Styles - Desktop First Strategy */

/* Large Desktop */
@media (max-width: 1400px) {
    .hero-title,
    .section-title {
        font-size: var(--font-size-5xl);
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .mega-menu-content {
        gap: var(--space-lg);
    }
    
    .hero-split,
    .about-split,
    .contact-split {
        gap: var(--space-lg);
    }
    
    .code-overlay {
        bottom: -20px;
        right: -20px;
        max-width: 300px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-split,
    .about-split,
    .contact-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .hero-right {
        order: -1;
    }
    
    .code-overlay {
        position: static;
        margin-top: var(--space-md);
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    :root {
        --font-size-6xl: 2.5rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
        --space-3xl: 6rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-overlay);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }
    
    .mega-menu.active {
        max-height: 600px;
    }
    
    .mega-menu-content {
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    :root {
        --font-size-6xl: 2rem;
        --font-size-5xl: 1.75rem;
        --font-size-4xl: 1.5rem;
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-container {
        padding: var(--space-sm);
    }
    
    .hero-split,
    .about-split,
    .contact-split {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .code-overlay {
        padding: var(--space-sm);
    }
    
    .code-overlay pre {
        font-size: 0.7rem;
    }
    
    .product-card,
    .why-card {
        padding: var(--space-md);
    }
    
    .contact-form {
        padding: var(--space-md);
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    :root {
        --font-size-6xl: 1.75rem;
        --font-size-5xl: 1.5rem;
    }
    
    .brand-name {
        font-size: var(--font-size-lg);
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-value {
        font-size: var(--font-size-2xl);
    }
}
