/* ==========================================================================
   Shadow Escape - Professional Cyber Design System & Fixed Fit Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    /* Epic Gold & Metallic Dark Theme (Matching Reference Poster Design) */
    --bg-dark: #06070a;
    --bg-card: rgba(10, 12, 18, 0.75);
    --bg-card-border: rgba(251, 191, 36, 0.35);
    
    --primary-gold: #fbbf24;
    --primary-amber: #f59e0b;
    --primary-cyan: #00f3ff;
    --primary-purple: #a855f7;
    --accent-green: #10b981;
    --accent-red: #ef4444;

    --text-main: #ffffff;
    --text-muted: #cbd5e1;

    /* Fonts */
    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-body: 'Rajdhani', -apple-system, sans-serif;

    /* Shadows & Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-gold: 0 0 30px rgba(251, 191, 36, 0.5);
    --shadow-cyan: 0 0 25px rgba(0, 243, 255, 0.45);
    
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    overflow: hidden; /* No page scrollbars */
    line-height: 1.5;
}

/* Cyber Ambient Background with Real-World World Asset bg1.png & Golden Splatters */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(ellipse at 85% 70%, rgba(251, 191, 36, 0.28) 0%, transparent 55%),
        radial-gradient(circle at 15% 20%, rgba(0, 243, 255, 0.12) 0%, transparent 45%),
        linear-gradient(180deg, rgba(6, 7, 10, 0.45) 0%, rgba(4, 5, 8, 0.85) 100%),
        url('../uploads/bg1.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
    filter: brightness(0.95) contrast(1.15);
}

/* Golden Light Trails & Splatter Effect Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 90% 90%, rgba(245, 158, 11, 0.25) 0%, transparent 40%),
        repeating-linear-gradient(45deg, transparent, transparent 79px, rgba(251, 191, 36, 0.02) 80px),
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.25) 80%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Container */
.app-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Navbar Header */
/* Navbar Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(6, 7, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
    position: relative;
    z-index: 100;
    height: 64px;
    min-height: 64px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.nav-brand .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-amber));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.nav-brand .logo-icon .logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffffff 0%, #fbbf24 60%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: clamp(0.75rem, 1.4vw, 1.8rem);
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
    line-height: 1.2;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-gold);
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.9);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-amber));
    box-shadow: var(--shadow-gold);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-audio-btn {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-gold);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 0 14px;
    height: 34px;
    border-radius: 20px;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.nav-audio-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
    transform: translateY(-1px);
}

.nav-audio-btn.muted {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-fullscreen-btn {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-gold, #fbbf24);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.45);
    padding: 0 14px;
    height: 34px;
    border-radius: 20px;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    line-height: 1;
}

.nav-fullscreen-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: var(--primary-gold, #fbbf24);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

.nav-fullscreen-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #fbbf24);
    border-color: #fef08a;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
}

.mobile-header-music-btn {
    display: none;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-gold, #fbbf24);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 5px 12px;
    border-radius: 16px;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.mobile-header-music-btn .music-label-full {
    display: inline;
}

.mobile-header-music-btn .music-label-short {
    display: none;
}

.mobile-header-music-btn:hover, .mobile-header-music-btn:active {
    background: rgba(251, 191, 36, 0.25);
    border-color: var(--primary-gold, #fbbf24);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* Mobile Header Actions Cluster */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.mobile-header-btn {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-gold, #fbbf24);
    background: rgba(251, 191, 36, 0.14);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    user-select: none;
    padding: 0;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
    outline: none;
}

.mobile-header-btn:hover, .mobile-header-btn:active {
    background: rgba(251, 191, 36, 0.25);
    border-color: var(--primary-gold, #fbbf24);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
    transform: scale(1.05);
}

.mobile-header-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #fbbf24);
    border-color: #fef08a;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.mobile-header-btn.muted {
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.mobile-nav-toggle {
    font-size: 1.15rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.laptop-home-only {
    display: list-item;
}

.laptop-home-fullscreen-btn {
    display: inline-flex;
}

.mobile-home-music-btn {
    display: none;
}

/* Utility Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Hero Persona Showcase Card */
.hero-showcase-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.35);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.28), inset 0 0 30px rgba(0, 0, 0, 0.85);
    background: linear-gradient(135deg, rgba(12, 18, 38, 0.88), rgba(5, 8, 20, 0.95));
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-showcase-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.45), inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.hero-showcase-img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.35));
    transition: transform var(--transition-normal);
}

.hero-showcase-card:hover .hero-showcase-img {
    transform: scale(1.04);
}

.hero-persona-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(6, 10, 24, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-animation {
    animation: floatAnim 4s ease-in-out infinite;
}

/* Responsive Layout */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-gold);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0.6rem 1.2rem;
    }

    .nav-brand {
        min-width: 0;
        gap: 10px;
    }

    .nav-brand .logo-text {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        letter-spacing: 1.5px;
        white-space: nowrap;
        line-height: 1;
    }
    
    .mobile-header-music-btn {
        display: inline-flex;
        margin-left: auto;
        margin-right: 10px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(8, 12, 26, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 1.4rem 1.8rem;
        border-bottom: 1px solid var(--bg-card-border);
        gap: 1.2rem;
        z-index: 200;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-header-actions {
        display: flex;
    }

    .laptop-home-only {
        display: block !important;
        width: 100%;
        margin-top: 0.4rem;
    }

    .laptop-home-only .nav-fullscreen-btn {
        width: 100%;
        height: 42px;
        border-radius: 10px;
        font-size: 0.88rem;
        justify-content: center;
    }

    .mobile-home-music-btn {
        display: inline-flex;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.4rem 0.6rem !important;
        height: 52px !important;
        min-height: 52px !important;
    }

    .nav-brand {
        gap: 6px;
    }

    .nav-brand .logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav-brand .logo-text {
        font-size: 0.9rem !important;
        letter-spacing: 0.5px !important;
    }

    .mobile-header-actions {
        gap: 8px;
    }

    .mobile-header-btn, .mobile-nav-toggle {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.98rem !important;
        border-radius: 10px !important;
    }
}
