/* genpatsu.io - Nuclear Control Panel Aesthetic */

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

:root {
    --bg-primary: #1c1c1e;
    --bg-secondary: #242428;
    --panel-bg: #2a2a2e;
    --blue: #2e86de;
    --cyan: #0af0f0;
    --green: #33ff66;
    --red: #ff3b3b;
    --amber: #f5a623;
    --text-primary: #c7c7cc;
    --text-muted: #888;
    --text-dim: #666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
}

/* ==================== STATUS BAR ==================== */

#status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #0f0f11;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    z-index: 1000;
    font-family: 'Share Tech Mono', monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.status-content {
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.readout-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--cyan);
    text-transform: uppercase;
    font-weight: 400;
}

.status-readouts {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.readout-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--green);
}

.readout-name {
    color: var(--text-dim);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.readout-value {
    font-weight: 700;
    color: var(--green);
}

.separator {
    color: var(--text-dim);
    opacity: 0.5;
}

.status-led {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: led-pulse 1.5s ease-in-out infinite;
    margin-left: 2px;
    flex-shrink: 0;
}

@keyframes led-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
    50% { opacity: 0.6; box-shadow: 0 0 4px var(--green); }
}

/* ==================== MAIN LAYOUT ==================== */

main {
    margin-top: 56px;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ==================== TITLE SECTION ==================== */

.title-section {
    background: linear-gradient(135deg, #1c1c1e 0%, #242428 100%);
    text-align: center;
}

.main-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(10, 240, 240, 0.3);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.subtitle-desc {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    font-style: italic;
}

/* ==================== SCHEMATIC SECTION ==================== */

.schematic-section {
    background: linear-gradient(to bottom, #1c1c1e, #242428);
}

.schematic-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    aspect-ratio: 4 / 5;
    border: 2px solid var(--cyan);
    border-radius: 4px;
    padding: 20px;
    background: rgba(10, 240, 240, 0.02);
    overflow: hidden;
}

.reactor-schematic {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(10, 240, 240, 0.2));
}

.schematic-group {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.schematic-group:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(10, 240, 240, 0.5));
}

.core-highlight:hover {
    animation: core-pulse 0.6s ease;
}

@keyframes core-pulse {
    0%, 100% { r: 50px; }
    50% { r: 55px; }
}

.schematic-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    fill: #0af0f0;
    letter-spacing: 0.05em;
}

.schematic-lines {
    animation: flow-animation 3s ease-in-out infinite;
}

@keyframes flow-animation {
    0%, 100% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 5; }
}

.schematic-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
    font-style: italic;
}

/* ==================== CONTROL SECTION ==================== */

.control-section {
    background: linear-gradient(180deg, #1c1c1e 0%, #242428 50%, #1c1c1e 100%);
}

.section-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--blue);
    letter-spacing: -0.01em;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.control-block {
    background: var(--panel-bg);
    border: 1px solid var(--blue);
    padding: 24px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.control-block:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(10, 240, 240, 0.15);
    background: rgba(10, 240, 240, 0.02);
}

.control-header {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--text-dim);
}

.readout-display {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.readout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #3a3a3e;
}

.readout-row:last-child {
    border-bottom: none;
}

.readout-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex: 1;
    font-weight: 400;
}

.seven-segment {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--green);
    text-shadow: 0 0 4px var(--green);
    letter-spacing: 0.08em;
    padding: 4px 8px;
    background: rgba(51, 255, 102, 0.05);
    border-radius: 2px;
}

/* ==================== WARNING SECTION ==================== */

.warning-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a1c 0%, #242428 100%);
    padding-bottom: 120px;
}

.warning-title {
    color: var(--red);
    text-shadow: 0 0 20px rgba(255, 59, 59, 0.2);
    font-family: 'Black Ops One', cursive;
    letter-spacing: 0.15em;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 3;
}

.warning-card {
    background: var(--panel-bg);
    padding: 20px;
    border-left: 4px solid;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.warning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.warning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.warning-card:hover::before {
    opacity: 0.08;
}

.ines-0 {
    border-color: var(--green);
}

.ines-0::before {
    background: var(--green);
}

.ines-1 {
    border-color: #ffcc00;
}

.ines-1::before {
    background: #ffcc00;
}

.ines-3 {
    border-color: var(--amber);
}

.ines-3::before {
    background: var(--amber);
}

.ines-5 {
    border-color: #ff6b35;
}

.ines-5::before {
    background: #ff6b35;
}

.ines-7 {
    border-color: var(--red);
    background: rgba(255, 59, 59, 0.08);
}

.ines-7::before {
    background: var(--red);
}

.ines-badge {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ines-0 .ines-badge {
    background: rgba(51, 255, 102, 0.2);
    color: var(--green);
}

.ines-1 .ines-badge {
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

.ines-3 .ines-badge {
    background: rgba(245, 166, 35, 0.2);
    color: var(--amber);
}

.ines-5 .ines-badge {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.ines-7 .ines-badge {
    background: rgba(255, 59, 59, 0.2);
    color: var(--red);
}

.warning-card h3 {
    font-size: 1rem;
    margin: 8px 0 6px 0;
    color: var(--text-primary);
}

.warning-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.radiation-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: watermark-rotate 120s linear infinite;
}

@keyframes watermark-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==================== TIMELINE SECTION ==================== */

.timeline-section {
    background: linear-gradient(to bottom, #242428, #1c1c1e);
}

.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--cyan) 10%, var(--cyan) 90%, transparent);
    transform: translateX(-50%);
}

.timeline-event {
    margin-bottom: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.timeline-event:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--cyan);
    text-align: right;
}

.timeline-event:nth-child(odd) .timeline-year {
    text-align: left;
}

.timeline-content {
    flex: 1;
    background: var(--panel-bg);
    padding: 20px;
    border-left: 2px solid var(--cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.timeline-event:nth-child(odd) .timeline-content {
    border-left: none;
    border-right: 2px solid var(--cyan);
}

.timeline-content:hover {
    background: rgba(10, 240, 240, 0.05);
    box-shadow: 0 0 12px rgba(10, 240, 240, 0.1);
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 0;
    }

    .timeline-event,
    .timeline-event:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-year {
        text-align: left !important;
    }

    .timeline-content {
        border-left: 2px solid var(--cyan) !important;
        border-right: none !important;
    }
}

/* ==================== EDUCATION SECTION ==================== */

.education-section {
    background: linear-gradient(135deg, #1c1c1e 0%, #242428 100%);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.education-card {
    background: var(--panel-bg);
    padding: 24px;
    border: 1px solid var(--blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(10, 240, 240, 0.15);
    background: rgba(10, 240, 240, 0.02);
}

.education-card h3 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.education-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==================== CLOSING SECTION ==================== */

.closing-section {
    background: linear-gradient(to bottom, #1c1c1e 0%, #0f0f11 100%);
    text-align: center;
}

.centered {
    text-align: center;
}

.closing-message {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--cyan);
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(10, 240, 240, 0.2);
}

.closing-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .section {
        padding: 60px 24px;
    }

    .status-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .status-readouts {
        flex-direction: column;
        gap: 8px;
    }

    .readout-item {
        justify-content: space-between;
        width: 100%;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }

    .warning-grid {
        grid-template-columns: 1fr;
    }

    .schematic-container {
        max-width: 100%;
    }
}

/* ==================== ANIMATIONS ==================== */

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: slide-in 0.8s ease-out;
}

.section:nth-child(n+2) {
    animation-delay: 0.1s;
}

/* ==================== UTILITY CLASSES ==================== */

.centered {
    text-align: center;
}

ruby {
    font-size: 1em;
}

rt {
    font-size: 0.5em;
    color: var(--text-muted);
}
