/* ---------------------------------------
   Layout & Structure
   - Grid/Flex container
   - Positioning
   - Z-indexes
---------------------------------------- */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
}

/* Replaces old spline-container */
#nebula-canvas,
#nebula-orb,
#nebula-vortex {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    /* Background */
    pointer-events: auto;
    /* Needs to catch mouse for fluid sim */
    background: transparent;
    opacity: 0;
    transition: opacity 1.5s ease;
    will-change: opacity;
}

/* Default active one */
#nebula-canvas {
    opacity: 1;
}

.glass-panel {
    position: absolute;
    bottom: 22%;
    /* Moved up slightly for better balance */
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    /* Tighter spacing */

    width: auto;
    min-width: 320px;
    z-index: 100;
    pointer-events: auto;
    padding: 2.5rem;

    /* Stronger glass effect for contrast against nebula */
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);

    /* Enable fade out transition */
    transition: opacity 0.2s ease;
}

.simple-logo {
    transition: opacity 0.2s ease;
}

.space-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Vignette and scanlines */
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Helper for spacing if needed */
.spacer {
    height: 2rem;
}

/* Visual Switcher UI */
#visualSwitcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.visual-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.visual-btn:hover,
.visual-btn.active {
    background: white;
    color: black;
}

/* ----------------------------------------
   Mobile Responsive Styles
---------------------------------------- */
@media screen and (max-width: 768px) {
    .glass-panel {
        bottom: 30%;
        min-width: 280px;
        max-width: 90vw;
        padding: 2rem 1.5rem;
        gap: 1.2rem;
    }

    .simple-logo {
        bottom: 24px;
        gap: 8px;
    }

    .logo-image {
        width: 24px;
        height: 24px;
    }

    .logo-name {
        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }
}

@media screen and (max-width: 480px) {
    .glass-panel {
        bottom: 25%;
        min-width: 260px;
        padding: 1.5rem 1.2rem;
        gap: 1rem;
    }

    .simple-logo {
        bottom: 20px;
    }
}