:root {
    --bg-light: #f5f7fa;
    --text-dark: #111;
    --text-light: #666;
    --accent: #000;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Hide Native scrollbar */
    /* Height will be set by JS for scroll track */
}

/* Background Atmosphere */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(220, 235, 255, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(200, 255, 220, 0.3) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Fixed UI */
.fixed-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--accent);
}

.scroll-ind {
    display: flex;
    align-items: center;
    gap: 15px;
}

.track-line {
    width: 100px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.fill-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
}

.pct {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    width: 40px;
}

/* Horizontal World */
.horizon-wrapper {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    padding-left: 15vw;
    will-change: transform;
}

.card-section {
    flex-shrink: 0;
    width: 25vw;
    /* Adjust for density */
    min-width: 350px;
    margin-right: 5vw;
    perspective: 1000px;
}

.intro {
    width: 40vw;
    margin-right: 15vw;
}

.intro h1 {
    font-family: 'Space Grotesk';
    font-size: 6rem;
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.arrow-hint {
    font-size: 2rem;
    animation: bounceRight 2s infinite;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
    /* Handled by JS mostly */
    transform-style: preserve-3d;
}

.id-num {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 3rem;
    color: #555555;
    /* High contrast solid gray */
    position: absolute;
    top: 20px;
    right: 30px;
}

h2 {
    font-family: 'Space Grotesk';
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--text-dark);
    /* Ensure high contrast heading */
}

.summary {
    font-weight: 600;
    /* Increased weight */
    color: var(--text-dark);
    margin-bottom: 20px;
}

hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    /* Darker divider */
    margin: 20px 0;
}

.details p {
    font-size: 0.95rem;
    color: #333333;
    /* Very dark gray for maximum readability */
    line-height: 1.5;
    margin-bottom: 15px;
}

.details ul {
    list-style: none;
    padding-left: 0;
}

.details li {
    font-size: 0.9rem;
    color: #444444;
    /* Dark gray list items */
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* End Spacer */
.end-spacer {
    width: 20vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-text {
    font-family: 'Space Grotesk';
    font-size: 2rem;
    color: #222222;
    /* High contrast almost black */
    opacity: 1;
    /* Full opacity */
    text-align: center;
}

/* Floating Navigation Dock */
.bottom-dock {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-dock:hover {
    transform: translateX(-50%) scale(1.05);
}

.dock-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 30px;
    transition: 0.3s;
}

.dock-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dock-btn .material-symbols-outlined {
    font-size: 20px;
}

.dock-btn .label {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.bottom-dock .divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 5px;
}

/* Mobile Fallback */
@media (max-width: 768px) {
    .horizon-wrapper {
        position: relative;
        height: auto;
        flex-direction: column;
        padding: 100px 20px;
        transform: none !important;
    }

    body {
        height: auto !important;
        /* Override JS */
        overflow-y: auto;
    }

    .card-section,
    .intro {
        width: 100%;
        margin-right: 0;
        margin-bottom: 60px;
    }

    .intro h1 {
        font-size: 4rem;
    }

    .fixed-ui {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }
}
