/* riron.net - HUD Mid-Century Data Visualization */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Bebas Neue (headings), Inter (body) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Scanline Overlay */
#hud-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* Background Grid Canvas */
#bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Fish Layer */
#fish-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fish {
    position: absolute;
    opacity: 0;
    animation: fishSwim 20s linear infinite;
}

.fish-1 {
    top: 15%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.fish-2 {
    top: 35%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.fish-3 {
    top: 55%;
    animation-delay: 8s;
    animation-duration: 25s;
}

.fish-4 {
    top: 72%;
    animation-delay: 12s;
    animation-duration: 20s;
}

.fish-5 {
    top: 88%;
    animation-delay: 2s;
    animation-duration: 16s;
}

@keyframes fishSwim {
    0% {
        left: -100px;
        opacity: 0;
        transform: translateY(0px) scaleX(1);
    }
    5% {
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) scaleX(1);
    }
    50% {
        transform: translateY(10px) scaleX(1);
    }
    75% {
        transform: translateY(-8px) scaleX(1);
    }
    95% {
        opacity: 0.6;
    }
    100% {
        left: calc(100% + 100px);
        opacity: 0;
        transform: translateY(5px) scaleX(1);
    }
}

/* HUD Container */
#hud-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
#hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(74, 144, 217, 0.3);
}

.hud-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hud-panel-right {
    align-items: flex-end;
}

.hud-label {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #6c757d;
    text-transform: uppercase;
}

.hud-value {
    font-family: "Bebas Neue", cursive;
    font-size: 24px;
    color: #4a90d9;
    letter-spacing: 3px;
}

.hud-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-text {
    font-family: "Bebas Neue", cursive;
    font-size: 48px;
    color: #f5f0e8;
    letter-spacing: 8px;
    line-height: 1;
}

.logo-sub {
    font-family: "Bebas Neue", cursive;
    font-size: 28px;
    color: #e8b84b;
    letter-spacing: 2px;
}

.signal-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
}

.signal-bars .bar {
    width: 4px;
    background-color: #4a90d9;
    border-radius: 1px;
}

.bar-1 { height: 4px; }
.bar-2 { height: 8px; }
.bar-3 { height: 12px; }
.bar-4 { height: 16px; }
.bar-5 { height: 20px; }

/* Hero Section */
#hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: "Bebas Neue", cursive;
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 0.95;
    color: #f5f0e8;
    letter-spacing: 6px;
    margin-bottom: 24px;
    text-shadow: 0 0 40px rgba(74, 144, 217, 0.2);
}

.hero-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #6c757d;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.divider-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8b84b, transparent);
}

.divider-fish.flipped {
    transform: scaleX(-1);
}

.hero-hud-overlay {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    pointer-events: none;
}

.hud-corner {
    position: absolute;
    width: 30px;
    height: 30px;
}

.hud-corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid rgba(74, 144, 217, 0.4);
    border-left: 2px solid rgba(74, 144, 217, 0.4);
}

.hud-corner-tr {
    top: 0;
    right: 0;
    border-top: 2px solid rgba(74, 144, 217, 0.4);
    border-right: 2px solid rgba(74, 144, 217, 0.4);
}

.hud-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid rgba(74, 144, 217, 0.4);
    border-left: 2px solid rgba(74, 144, 217, 0.4);
}

.hud-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid rgba(74, 144, 217, 0.4);
    border-right: 2px solid rgba(74, 144, 217, 0.4);
}

/* Section Titles */
.section-title {
    font-family: "Bebas Neue", cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #f5f0e8;
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e8b84b;
    margin: 12px auto 0;
}

/* Dashboard */
#dashboard {
    padding: 80px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dash-panel {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 4px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dash-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90d9, transparent);
    opacity: 0.5;
}

.dash-panel:hover {
    border-color: rgba(74, 144, 217, 0.5);
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-title {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #6c757d;
}

.panel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6c757d;
}

.panel-indicator.active {
    background-color: #4a90d9;
    box-shadow: 0 0 8px rgba(74, 144, 217, 0.6);
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dash-panel canvas {
    width: 100%;
    height: 180px;
    display: block;
}

.panel-footer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.metric-value {
    font-family: "Bebas Neue", cursive;
    font-size: 36px;
    color: #e8b84b;
    letter-spacing: 2px;
}

.metric-unit {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #6c757d;
    letter-spacing: 1px;
}

/* Stat Panels */
.stat-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}

.stat-icon {
    margin-bottom: 12px;
}

.stat-value {
    font-family: "Bebas Neue", cursive;
    font-size: 48px;
    color: #e8b84b;
    letter-spacing: 2px;
    line-height: 1;
}

.stat-label {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #6c757d;
    margin-top: 8px;
}

/* Info Cards */
#info-panels {
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 4px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 184, 75, 0.4);
}

.card-number {
    font-family: "Bebas Neue", cursive;
    font-size: 72px;
    color: rgba(74, 144, 217, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.card-title {
    font-family: "Bebas Neue", cursive;
    font-size: 32px;
    color: #f5f0e8;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.card-text {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #6c757d;
    max-width: 400px;
}

.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e8b84b, #4a90d9, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover .card-accent {
    opacity: 1;
}

/* Geometric Section */
#geometric-section {
    padding: 60px 0;
}

.geo-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#geo-svg {
    width: 100%;
    height: auto;
}

.geo-rotate {
    transform-origin: center;
    animation: geoRotate 20s linear infinite;
}

.geo-rotate-reverse {
    transform-origin: 440px 163px;
    animation: geoRotateReverse 25s linear infinite;
}

.geo-pulse {
    animation: geoPulse 3s ease-in-out infinite;
}

@keyframes geoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes geoRotateReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes geoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Wave Section */
#wave-section {
    padding: 80px 0;
}

.wave-container {
    width: 100%;
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.5);
}

.wave-container canvas {
    width: 100%;
    height: 200px;
    display: block;
}

.wave-metrics {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.wave-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wave-metric-label {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #6c757d;
}

.wave-metric-value {
    font-family: "Bebas Neue", cursive;
    font-size: 28px;
    color: #4a90d9;
    letter-spacing: 2px;
}

/* Footer */
#hud-footer {
    padding: 40px 0 20px;
    border-top: 1px solid rgba(74, 144, 217, 0.2);
    margin-top: 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-center {
    align-items: center;
    text-align: center;
}

.footer-right {
    align-items: flex-end;
    text-align: right;
}

.footer-label {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #6c757d;
}

.footer-value {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #4a90d9;
    letter-spacing: 1px;
}

.footer-logo {
    font-family: "Bebas Neue", cursive;
    font-size: 28px;
    color: #f5f0e8;
    letter-spacing: 4px;
}

.footer-copy {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: #6c757d;
    letter-spacing: 2px;
}

.footer-bar {
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90d9, #e8b84b, #4a90d9, transparent);
    margin-top: 20px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .wave-metrics {
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    #hud-header {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col,
    .footer-right {
        align-items: center;
        text-align: center;
    }
}