/* ============================================
   SYNTHEthIC EU - MOBILE RESPONSIVE STYLES
   ============================================ */

/* ============================================
   MOBILE NAVIGATION - Fixed Transparent Bar
   ============================================ */

/* Hide mobile elements on desktop */
.mobile-home,
.mobile-menu-btn,
.mobile-menu-overlay,
.mobile-logo {
    display: none;
}

@media (max-width: 768px) {
    
    /* --- Fixed Transparent Navigation --- */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: transparent !important;
        z-index: 2000;
        padding: 0.75rem 1rem;
    }
    
    .nav-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 100%;
    }
    
    /* Hide desktop nav */
    .desktop-logo,
    .desktop-nav {
        display: none !important;
    }
    
    /* Mobile Home button - CENTERED & TRIGGER */
    .mobile-home {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        color: #00ff88;
        background: none;
        border: none;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 700;
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 2px;
        padding: 0.5rem;
        z-index: 1001;
        cursor: pointer;
    }
    
    /* Hide old menu button */
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* ============================================
       FULL SCREEN BLUR MENU
       ============================================ */
    
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
    }
    
    .mobile-menu-overlay.active {
        display: flex;
    }
    
    /* Full screen blur background */
    .mobile-menu-blur {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 10, 15, 0.7);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-blur.active {
        opacity: 1;
    }
    
    /* Centered menu content on blurred background */
    .mobile-menu-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-content.active {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Close button - top right */
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: #00ff88;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 10000;
    }
    
    /* Vertical nav links - centered */
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .mobile-nav-links a {
        color: #fff;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 600;
        font-family: 'Orbitron', sans-serif;
        padding: 0.75rem 1.5rem;
        transition: color 0.3s, transform 0.3s;
    }
    
    .mobile-nav-links a:hover,
    .mobile-nav-links a:active {
        color: #00ff88;
        transform: scale(1.05);
    }
    
    /* ============================================
       MOBILE LOGO - Full width, no gaps
       ============================================ */
    
    body .logo-section {
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        line-height: 0 !important;
        font-size: 0 !important;
        background: #0a0a0f !important;
    }
    
    .logo-section::before {
        display: none !important;
    }
    
    /* Full logo hidden on portrait mobile */
    .full-logo {
        display: none !important;
    }
    
    /* Mobile logo - full width, no gaps */
    .mobile-logo {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        vertical-align: bottom !important;
    }
    
    /* Scroll indicator hidden on mobile */
    .scroll-indicator {
        display: none !important;
    }
    
    /* Content section - no top gap */
    .content-section {
        padding: 0 1rem 2rem 1rem !important;
        margin: 0 !important;
    }
    
    .content-wrapper h1 {
        margin-top: 0 !important;
        padding-top: 1rem !important;
    }
}

/* Hide mobile logo on larger screens and landscape */
@media (min-width: 769px), (orientation: landscape) {
    .mobile-logo {
        display: none !important;
    }
}

/* Landscape mobile - show full logo */
@media (max-width: 768px) and (orientation: landscape) {
    .full-logo {
        display: block !important;
        width: 100vw;
        height: 80vh;
        object-fit: cover;
    }
    
    .mobile-logo {
        display: none !important;
    }
    
    .logo-section {
        height: auto;
        min-height: 80vh;
        display: flex;
        padding-top: 4rem;
    }
}

/* ============================================
   BASE MOBILE STYLES
   ============================================ */
@media (max-width: 768px) {
    
    h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }
    
    h3 {
        font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    section {
        padding: 3rem 1rem !important;
    }
    
    .hero {
        min-height: auto;
        padding: 5rem 1rem 3rem !important;
    }
    
    .content-wrapper {
        padding: 0;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .divisions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .division-card {
        padding: 2rem 1.5rem;
    }
    
    .project-hero {
        min-height: 50vh;
        padding-top: 80px;
    }
    
    .project-hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    /* Project pages hero - show full image without cropping */
    .hero {
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        position: relative !important;
    }
    
    /* Synthethic Studio hero - push content down below nav */
    body .hero {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-bg {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: top center !important;
        display: block !important;
    }
    
    .hero-headline {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .hero::before {
        display: none !important;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .features, .competence-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* AI Infrastructure page - stack content blocks vertically */
    .content-block {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-bottom: 3rem !important;
    }
    
    .content-block.reverse {
        direction: ltr !important;
    }
    
    .content-image {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .content-text h2 {
        font-size: 1.5rem !important;
    }
    
    .content-text p {
        font-size: 1rem !important;
    }
    
    .cta-button, button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-home {
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav-links a {
        font-size: 1.2rem;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .mobile-menu-btn:active,
    .mobile-nav-links a:active {
        transform: scale(0.95);
    }
}

/* Safe area insets */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        nav {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }
    }
}
