/* ========================================================
   1. CORE RESET & VARIABLES
   ======================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; }

/* Default Variables */
:root {
    --c-bg: #000;
    --c-panel: #111;
    --c-text: #fff;
    --c-sub: #888;
    --c-accent: #3b82f6;
    --f-head: 'Manrope', sans-serif;
    --f-body: 'Inter', sans-serif;
}

body {
    font-family: var(--f-body);
    background: var(--c-bg);
    overflow-x: hidden;
}

/* ========================================================
   2. UNIVERSE THEMES
   ======================================================== */
body[data-universe="1"] {
    --c-bg: #030712;
    --c-panel: linear-gradient(135deg, #0f172a 0%, #172554 100%);
    --c-text: #ffffff;
    --c-sub: #94a3b8;
    --c-accent: #3b82f6;
    --c-modal-bg: #1e293b;
}

body[data-universe="2"] {
    --c-bg: #fdfbf7;
    --c-panel: #fdfbf7;
    --c-text: #1c1917;
    --c-sub: #57534e;
    --c-accent: #1c1917;
    --c-modal-bg: #fff;
    --f-head: 'Cinzel', serif;
}

body[data-universe="3"] {
    --c-bg: #000000;
    --c-panel: #050505;
    --c-text: #eeeeee;
    --c-sub: #888888;
    --c-accent: #00ff41;
    --c-modal-bg: #111;
    --f-head: 'JetBrains Mono', monospace;
    --f-body: 'JetBrains Mono', monospace;
}

/* ========================================================
   3. LAYOUT ENGINE (DESKTOP DEFAULT)
   ======================================================== */
.master-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    height: 100dvh;
    width: 100%;
}

/* -- Visual Side (Slideshow) -- */
.visual-panel {
    position: relative;
    overflow: hidden;
    background: #000;
}
.slideshow-container, .slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
}
.slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.slide.active { opacity: 1; }

.visual-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

/* -- Content Side -- */
.content-panel {
    background: var(--c-panel);
    color: var(--c-text);
    padding: clamp(2rem, 5vw, 6rem);
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
    z-index: 5;
}

/* -- Header -- */
header {
    position: absolute; top: 0; left: 0; right: 0;
    padding: clamp(20px, 4vh, 40px) clamp(2rem, 5vw, 6rem);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 10;
}

.logo-desktop { height: 40px; width: auto; }

.desktop-nav { display: flex; gap: 2rem; }
.nav-link {
    background: none; border: none; cursor: pointer;
    color: var(--c-text); font-family: var(--f-body); font-size: 0.95rem;
    opacity: 0.7; transition: 0.3s;
}
.nav-link:hover { opacity: 1; color: var(--c-accent); }

/* -- Main Content -- */
main { flex: 1; display: flex; align-items: center; position: relative; }
.content-inner { max-width: 600px; width: 100%; }

.badge-pill {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid var(--c-accent); color: var(--c-accent); border-radius: 50px;
}

.hero-title {
    font-family: var(--f-head);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.05; margin-bottom: 1.5rem; font-weight: 800;
}

.hero-desc {
    font-family: var(--f-body);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--c-sub); line-height: 1.6; margin-bottom: 3rem;
}

/* -- Buttons & Socials -- */
.action-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;
}

.btn-main {
    background: var(--c-accent);
    color: var(--c-bg);
    padding: 16px 36px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    border-radius: 6px; transition: all 0.3s ease;
}
.btn-main:hover { filter: brightness(1.2); transform: translateY(-2px); }

.social-icons { display: flex; gap: 20px; align-items: center; }
.social-icons img {
    width: 36px; height: 36px; object-fit: contain;
    transition: 0.3s; filter: grayscale(100%) opacity(0.7);
}
.social-icons img:hover { filter: grayscale(0) opacity(1); transform: scale(1.1); }

footer {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: clamp(20px, 4vh, 40px) clamp(2rem, 5vw, 6rem);
    color: var(--c-sub); font-size: 0.8rem; opacity: 0.6;
}

/* ========================================================
   4. MODALS & POPUPS
   ======================================================== */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-card {
    background: var(--c-modal-bg);
    border: 1px solid var(--c-sub);
    padding: 40px;
    width: 100%; max-width: 500px;
    border-radius: 12px;
    position: relative;
    transform: translateY(20px); transition: 0.3s;
}
.modal-backdrop.active .modal-card { transform: translateY(0); }

.modal-close {
    position: absolute; top: 15px; right: 15px;
    background: none; border: none; color: var(--c-sub);
    font-size: 24px; cursor: pointer;
}
.modal-card h2 { margin-bottom: 20px; color: var(--c-accent); font-family: var(--f-head); }
.modal-body p { line-height: 1.6; color: var(--c-text); margin-bottom: 15px; }

.contact-item {
    display: block; margin-top: 10px; color: var(--c-text); text-decoration: none;
    border-bottom: 1px solid var(--c-sub); padding-bottom: 5px;
}
.contact-item span { color: var(--c-sub); margin-right: 10px; }

/* ========================================================
   5. MOBILE SPECIFIC & HAMBURGER
   ======================================================== */
.hamburger-btn { display: none; }
.mobile-logo-wrapper { display: none; }
.mobile-menu-overlay { display: none; }

@media (max-width: 900px) {
    .master-container { 
        display: block; /* Stack vertically */
        height: auto; 
        min-height: 100dvh;
    }

    /* 1. SMALLER TOP IMAGE (25% Height) */
    .visual-panel {
        display: block;
        height: 25vh; /* Takes up top quarter of screen */
        width: 100%;
        position: relative;
    }

    /* 2. LARGER CONTENT AREA (75% Minimum) */
    .content-panel {
        height: auto;
        min-height: 75vh; 
        padding: 5rem 1.5rem 2rem 1.5rem; /* Top padding creates space under logo */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Align to top naturally */
    }

    /* 3. LOGO POSITIONING */
    .mobile-logo-wrapper {
        display: block;
        position: absolute;
        bottom: -40px; /* Half of height (80px) to straddle the line */
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
        width: 80px; height: 80px; /* Slightly smaller circle */
    }
    .logo-circle {
        width: 100%; height: 100%;
        background: var(--c-panel); /* Matches content background */
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
        padding: 12px;
    }
    .logo-circle img { width: 100%; height: 100%; object-fit: contain; }

    /* 4. CONTENT ADJUSTMENTS */
    header { position: relative; padding: 0; margin-bottom: 0.5rem; }
    .logo-desktop, .desktop-nav { display: none; }

    /* Hamburger on top of everything */
    .hamburger-btn {
        display: flex; flex-direction: column; gap: 5px;
        background: none; border: none; cursor: pointer;
        z-index: 30; 
        position: absolute; top: 1.5rem; right: 0; /* Align right in relative header */
    }
    .hamburger-btn span {
        width: 28px; height: 3px; background: var(--c-text);
        display: block; border-radius: 2px;
    }

    /* Make Text Smaller so it fits */
    .hero-title { font-size: 2.2rem; margin-bottom: 1rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 2rem; }
    .badge-pill { margin-bottom: 1rem; font-size: 0.65rem; }

    /* Stack Actions */
    .action-row { flex-direction: column; align-items: flex-start; gap: 1.5rem; width: 100%; }
    .btn-main { width: 100%; text-align: center; padding: 14px 20px; }
    .social-icons { width: 100%; justify-content: center; margin-top: 1rem; }

    /* 5. FOOTER FIX - Make it flow naturally, not fixed */
    footer {
        position: relative;
        padding: 2rem 0 0 0;
        margin-top: auto; /* Push to bottom of flex container */
        text-align: center;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed; inset: 0;
        background: var(--c-bg);
        z-index: 2000;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .mobile-menu-overlay.active { opacity: 1; visibility: visible; }
    
    .mobile-menu-overlay .close-btn {
        position: absolute; top: 20px; right: 20px;
        font-size: 3rem; background: none; border: none; color: var(--c-text);
    }
    .menu-content button {
        display: block; width: 100%; margin: 20px 0;
        background: none; border: none; 
        font-size: 2rem; color: var(--c-text);
        font-family: var(--f-head);
    }
}