/* ----------------------------------------------------
   IGLOO CSS Style System (Glacial/Procedural Theme)
---------------------------------------------------- */

:root {
    --bg-dark: #07090e;
    --card-bg: rgba(10, 15, 26, 0.45);
    --border-color: rgba(201, 242, 201, 0.15);
    --text-primary: #f1f3f7;
    --text-muted: #8a99ad;
    --accent-frost: #00f3ff; /* Cyan frost */
    --accent-glow: rgba(0, 243, 255, 0.2);
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------
   WebGL Background Canvas
---------------------------------------------------- */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Tech Blueprint Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* ----------------------------------------------------
   Telemetry Sidebar
---------------------------------------------------- */
.telemetry-sidebar {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(7, 9, 14, 0.7);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.05em;
}

.telemetry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
    color: var(--accent-frost);
    font-weight: 600;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-frost);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-frost);
}

.status-dot.pulsing {
    animation: pulse 1.5s infinite alternate;
}

.telemetry-line {
    margin: 0.25rem 0;
    color: var(--text-muted);
}

.telemetry-line span {
    color: var(--text-primary);
    font-weight: 500;
}

/* ----------------------------------------------------
   Scroll Layout
---------------------------------------------------- */
#scroll-wrapper {
    position: relative;
    width: 100%;
    z-index: 2;
}

.scroll-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 10%;
    position: relative;
}

.content-box {
    max-width: 540px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem 3rem;
    border-radius: 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.content-box:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 243, 255, 0.05);
}

.scroll-section.align-right {
    justify-content: flex-end;
}

.content-box.align-right {
    margin-left: auto;
}

/* Section elements styling */
.category-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--accent-frost);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.accent-text {
    background: linear-gradient(135deg, #00f3ff 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desc-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Scroll Prompt Indicator */
.scroll-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-icon .wheel {
    width: 3px;
    height: 6px;
    background-color: var(--accent-frost);
    border-radius: 1.5px;
    animation: scrollWheel 1.5s infinite;
}

/* Spec Elements */
.tech-spec {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
}

/* Progress bar spec */
.stat-progress-bar {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.progress-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00f3ff 0%, #00a8ff 100%);
    transform: scaleX(1);
    transform-origin: left;
}

/* CTA Return Button */
.cta-wrapper {
    margin-top: 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-frost);
    color: #07090e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.55);
}

.btn-back svg {
    transition: transform 0.2s;
}

.btn-back:hover svg {
    transform: translateX(3px);
}

/* ----------------------------------------------------
   Animations
---------------------------------------------------- */
@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Styling */
@media (max-width: 768px) {
    .scroll-section {
        padding: 4rem 1.5rem;
    }
    .content-box {
        padding: 2rem 2rem;
    }
    .main-title {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .telemetry-sidebar {
        display: none; /* Hide telemetry on mobile for clean screen space */
    }
}
