:root {
    --bg-color: #020b1c;
    --primary: #4f8eff;
    --accent: #ffd700;
    --text: #e0e6ed;
    --glass: rgba(79, 142, 255, 0.08);
    --border: rgba(79, 142, 255, 0.2);
    --font-ui: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

/* HUD Overlay */
.hud-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    background: rgba(2, 11, 28, 0.8);
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

/* Mission Control Sidebar */
.hud-sidebar {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}

.hud-sidebar ul {
    list-style: none;
}

.hud-sidebar li {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(224, 230, 237, 0.5);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.hud-sidebar li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
}

.hud-sidebar li:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(79, 142, 255, 0.5);
}

.hud-sidebar li.active {
    color: var(--text);
    font-size: 1.3rem;
}

.hud-sidebar li.active::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--primary);
}

/* Ambient Data */
#ambient-data-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-item {
    position: absolute;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0.4;
    white-space: nowrap;
    animation: floatData 10s linear infinite;
}

@keyframes floatData {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-10vh);
        opacity: 0;
    }
}

.scroll-indicator {
    align-self: center;
    text-align: center;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
    animation: fadePulse 3s infinite;
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.blink {
    animation: blink 2s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 5;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    pointer-events: none;
}

.content-section {
    position: absolute;
    opacity: 0;
    transform: translateZ(-500px);
    scale: 0;
    transition: opacity 0.5s ease;
    /* Transform handled by GSAP */
    text-align: center;
    display: none;
    width: 100%;
    padding-left: 100px;
    /* Offset for sidebar */
    pointer-events: auto;
    justify-content: center;
}

.content-section.active {
    opacity: 1;
    transform: translateZ(0);
    scale: 1;
    display: flex;
}

/* Typography & Cards */
h1 {
    font-family: var(--font-ui);
    font-size: 4.5rem;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--text);
    letter-spacing: -2px;
}

.subtitle {
    font-family: var(--font-ui);
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Card Styles (Preserved) */
.holo-card {
    background: linear-gradient(135deg, rgba(2, 11, 28, 0.9), rgba(79, 142, 255, 0.05));
    border: 1px solid var(--border);
    padding: 50px;
    max-width: 700px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    position: relative;
    transform-style: preserve-3d;
}

.holo-card h2 {
    color: var(--text);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 1px;
    transform: translateZ(30px);
}

.holo-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #b0c0d0;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

/* Variants */
.card-profile {
    border-left: 4px solid var(--primary);
}

.card-profile .deco-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.card-profile .deco-barcode {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 15px;
    background-image: repeating-linear-gradient(90deg, var(--text) 0, var(--text) 2px, transparent 2px, transparent 4px);
    opacity: 0.3;
}

.card-venture {
    border-top: 4px solid var(--accent);
}

.card-venture .deco-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    opacity: 0.05;
    pointer-events: none;
}

.card-venture h2 {
    color: var(--accent);
}

.card-vision {
    border-bottom: 4px solid var(--primary);
}

.card-vision .deco-circle {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border: 1px dashed var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    transform: translateZ(25px);
}

.stat {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat span {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hud-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 35px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 600;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    transform: translateZ(40px);
    position: relative;
}

.hud-btn:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(79, 142, 255, 0.4);
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .content-section {
        padding-left: 0;
    }

    .hud-sidebar {
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: auto;
        transform: none;
        display: flex;
        justify-content: center;
        background: rgba(2, 11, 28, 0.9);
        border-top: 1px solid var(--border);
        padding: 10px 0;
    }

    .hud-sidebar ul {
        display: flex;
        gap: 15px;
        padding: 0;
        overflow-x: auto;
    }

    .hud-sidebar li {
        margin-bottom: 0;
        font-size: 0.9rem;
        padding-left: 0;
    }

    .hud-sidebar li::before {
        display: none;
    }
}