/* Responsive Layout Breakpoints */

/* 1. Large Screens & Laptops (Max 1200px) */
@media (max-width: 1200px) {
    :root {
        --max-width: 960px;
    }
    
    .hero-grid {
        gap: 20px;
    }
    
    .hero-visual-container {
        height: 450px;
    }
    
    .hero-layer-bg {
        width: 300px;
        height: 300px;
    }
    
    .hero-layer-grid {
        width: 380px;
        height: 380px;
    }
    
    .hero-layer-mockup-2 {
        width: 220px;
        height: 440px;
        margin-left: -110px;
        margin-top: -220px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* 2. Tablets in Landscape (Max 992px) */
@media (max-width: 992px) {
    :root {
        --max-width: 720px;
        --section-padding: 80px 0;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-text-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual-container {
        height: 480px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-layer-mockup-2 {
        width: 220px;
        height: 440px;
        margin-left: -110px;
        margin-top: -220px;
        transform: translateZ(50px) rotateY(0deg) rotateX(0deg) !important;
    }
    
    /* Turn off heavy pointer effects */
    .custom-cursor,
    .custom-cursor-ring {
        display: none !important;
    }
    
    html, body {
        cursor: auto !important;
    }
    
    .nav-menu,
    .btn-nav {
        display: none !important;
    }
    
    .nav-toggle-btn {
        display: block !important;
    }
    
    .ecosystem-mapping-wrapper {
        transform: scale(0.9) !important;
        margin: -25px auto;
        transform-origin: center center;
    }
}

/* 3. Tablets in Portrait (Max 768px) */
@media (max-width: 768px) {
    :root {
        --max-width: 540px;
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        width: 100%;
    }
    
    .ecosystem-mapping-wrapper {
        transform: scale(0.7) !important;
        margin: -75px auto;
        transform-origin: center center;
        width: 100%;
        max-width: 460px;
    }
}

/* 4. Small Mobile Devices (Max 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-tagline {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .hero-visual-container {
        height: 380px;
    }
    
    .hero-layer-bg {
        width: 240px;
        height: 240px;
    }
    
    .hero-layer-grid {
        width: 280px;
        height: 280px;
    }
    
    .hero-layer-mockup-2 {
        width: 180px;
        height: 360px;
        margin-left: -90px;
        margin-top: -180px;
        transform: translateZ(50px) rotateY(0deg) rotateX(0deg) !important;
    }
    
    .hero-layer-floating-card {
        transform: translateZ(100px) translateX(-80px) translateY(-80px) scale(0.8) !important;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .ecosystem-mapping-wrapper {
        transform: scale(0.55) !important;
        margin: -110px auto;
        transform-origin: center center;
        width: 100%;
        max-width: 460px;
    }
}

/* Mobile Navigation Toggle Overlay styles */
.nav-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 8, 0.98);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu-list a {
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.mobile-menu-list a:hover {
    color: var(--text-primary);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
