@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Exo+2:ital,wght@0,200;0,300;0,400;0,600;1,300&family=Share+Tech+Mono&display=swap');

/* ═══════════════════════════════════════════════════════════
   COSMIC DESIGN SYSTEM
═══════════════════════════════════════════════════════════ */
:root {
    --void: #010408;
    --abyss: #050d1a;
    --deep: #081428;
    --ion: #0a6ef5;
    --plasma: #00d4ff;
    --aurora: #8b3fff;
    --nova: #ff5c35;
    --quasar: #00ffb3;
    --starlight: #e6f0ff;
    --dust: #7a9ab8;
    --dim: #3d5a78;

    --glow-plasma: 0 0 15px rgba(0,212,255,0.5), 0 0 40px rgba(0,212,255,0.2);
    --glow-aurora: 0 0 15px rgba(139,63,255,0.5), 0 0 40px rgba(139,63,255,0.2);
    --glow-nova: 0 0 15px rgba(255,92,53,0.5), 0 0 40px rgba(255,92,53,0.2);
    --border-hud: 1px solid rgba(0,212,255,0.18);

    --font-hud: 'Orbitron', monospace;
    --font-body: 'Exo 2', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    --ease-warp: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-spring: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════════════════ */
@keyframes starField {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}
@keyframes nebulaFloat {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.35; }
    33%      { transform: translate(30px,-20px) scale(1.08); opacity: 0.5; }
    66%      { transform: translate(-20px,15px) scale(0.95); opacity: 0.3; }
}
@keyframes plasmaFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes glitchSlide {
    0%,100%  { clip-path: inset(0 0 100% 0); transform: translate(0); }
    10%      { clip-path: inset(10% 0 80% 0); transform: translate(-4px, 2px); }
    20%      { clip-path: inset(60% 0 20% 0); transform: translate(4px, -2px); }
    30%      { clip-path: inset(30% 0 55% 0); transform: translate(-2px, 0); }
    40%      { clip-path: inset(80% 0 5% 0);  transform: translate(2px, 1px); }
    50%      { clip-path: inset(0 0 0 0);     transform: translate(0); }
}
@keyframes scanDown {
    0%   { top: -2px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes hudBlink {
    0%,49% { opacity: 1; }
    50%,100% { opacity: 0; }
}
@keyframes orbitPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4), var(--glow-plasma); }
    50%      { box-shadow: 0 0 0 12px rgba(0,212,255,0), var(--glow-plasma); }
}
@keyframes fadeRise {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
    from { left: -120%; }
    to   { left: 200%; }
}
@keyframes cornerPulse {
    0%,100% { opacity: 0.6; }
    50%      { opacity: 1; }
}
@keyframes rotateOrbit {
    from { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}
@keyframes typing {
    from { width: 0; }
    to   { width: 100%; }
}
@keyframes blink-caret {
    from,to { border-color: transparent; }
    50% { border-color: var(--plasma); }
}
@keyframes dataStream {
    0%   { transform: translateY(-100%); opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0; padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--void);
    color: var(--starlight);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
}

/* Custom cursor */
body::after {
    content: '';
    position: fixed;
    width: 12px; height: 12px;
    background: var(--plasma);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    box-shadow: var(--glow-plasma);
    transition: transform 0.1s;
}

/* CRT scanline overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.04) 3px,
        rgba(0,0,0,0.04) 4px
    );
    pointer-events: none;
    z-index: 9998;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--plasma), var(--aurora));
    border-radius: 3px;
    box-shadow: var(--glow-plasma);
}
::selection { background: rgba(0,212,255,0.25); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   ANIMATED STAR FIELD CANVAS
═══════════════════════════════════════════════════════════ */
#star-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   NEBULA BACKGROUND BLOBS
═══════════════════════════════════════════════════════════ */
.nebula-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.nebula-bg span {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}
.nebula-bg span:nth-child(1) {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(139,63,255,0.18), transparent 70%);
    top: -200px; left: -150px;
    animation: nebulaFloat 20s ease-in-out infinite;
}
.nebula-bg span:nth-child(2) {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 70%);
    top: 30%; right: -100px;
    animation: nebulaFloat 25s ease-in-out infinite reverse;
}
.nebula-bg span:nth-child(3) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,255,179,0.08), transparent 70%);
    bottom: 10%; left: 20%;
    animation: nebulaFloat 18s ease-in-out infinite 5s;
}

/* ═══════════════════════════════════════════════════════════
   DATA STREAM (decorative vertical text columns)
═══════════════════════════════════════════════════════════ */
.data-stream {
    position: fixed;
    top: 0;
    width: 1px;
    height: 200px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.15;
}
.data-stream::before {
    content: '01101001 10110100 01001101 00110111 10101010';
    position: absolute;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--plasma);
    writing-mode: vertical-rl;
    white-space: nowrap;
    animation: dataStream 8s linear infinite;
}
.data-stream:nth-child(1) { left: 2%; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 98%; animation-delay: -3s; }

/* ═══════════════════════════════════════════════════════════
   HEADER — DEEP SPACE COCKPIT
═══════════════════════════════════════════════════════════ */
header {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    border-bottom: var(--border-hud);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--plasma), var(--aurora), var(--plasma), transparent);
    box-shadow: 0 0 20px rgba(0,212,255,0.4);
}

/* Animated scan line on header */
.header-scanline {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.6), transparent);
    animation: scanDown 6s linear infinite;
    pointer-events: none;
}

/* HUD corner decorations */
.hud-corner {
    position: absolute;
    width: 60px; height: 60px;
    pointer-events: none;
    animation: cornerPulse 3s ease-in-out infinite;
}
.hud-corner.tl { top: 20px; left: 20px; border-top: 2px solid var(--plasma); border-left: 2px solid var(--plasma); box-shadow: -3px -3px 15px rgba(0,212,255,0.3); }
.hud-corner.tr { top: 20px; right: 20px; border-top: 2px solid var(--plasma); border-right: 2px solid var(--plasma); box-shadow: 3px -3px 15px rgba(0,212,255,0.3); }
.hud-corner.bl { bottom: 30px; left: 20px; border-bottom: 2px solid var(--aurora); border-left: 2px solid var(--aurora); box-shadow: -3px 3px 15px rgba(139,63,255,0.3); animation-delay: 1.5s; }
.hud-corner.br { bottom: 30px; right: 20px; border-bottom: 2px solid var(--aurora); border-right: 2px solid var(--aurora); box-shadow: 3px 3px 15px rgba(139,63,255,0.3); animation-delay: 1.5s; }

/* HUD data readouts */
.hud-data {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6em;
    color: var(--plasma);
    opacity: 0.5;
    letter-spacing: 0.08em;
    pointer-events: none;
}
.hud-data.top-left  { top: 90px; left: 30px; text-align: left; }
.hud-data.top-right { top: 90px; right: 30px; text-align: right; }

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE IMAGE — STELLAR CORE
═══════════════════════════════════════════════════════════ */
.profile-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.profile-image {
    width: 170px; height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,212,255,0.5);
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: var(--glow-plasma), 0 0 0 8px rgba(0,212,255,0.06), 0 0 0 16px rgba(0,212,255,0.03);
    animation: orbitPulse 3s ease-in-out infinite;
    transition: transform 0.5s var(--ease-warp);
}
.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0,212,255,0.7), 0 0 80px rgba(0,212,255,0.3), 0 0 120px rgba(139,63,255,0.2);
}

/* Rotating orbit ring */
.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 220px; height: 220px;
    margin: -110px 0 0 -110px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,0.15);
    z-index: 1;
}
.orbit-ring::before {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    background: var(--plasma);
    border-radius: 50%;
    top: 50%; left: -4px;
    margin-top: -4px;
    box-shadow: var(--glow-plasma);
    animation: rotateOrbit 8s linear infinite;
    transform-origin: 114px 4px;
}
.orbit-ring-2 {
    position: absolute;
    top: 50%; left: 50%;
    width: 260px; height: 260px;
    margin: -130px 0 0 -130px;
    border-radius: 50%;
    border: 1px solid rgba(139,63,255,0.1);
    z-index: 1;
    transform: rotate(45deg);
}
.orbit-ring-2::before {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    background: var(--aurora);
    border-radius: 50%;
    top: 50%; right: -2.5px;
    margin-top: -2.5px;
    box-shadow: var(--glow-aurora);
    animation: rotateOrbit 14s linear infinite reverse;
    transform-origin: -127px 2.5px;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1 {
    font-family: var(--font-hud);
    font-size: clamp(2em, 6vw, 3.5em);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--plasma) 35%, var(--aurora) 65%, #fff 100%);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: plasmaFlow 5s ease infinite;
    filter: drop-shadow(0 0 25px rgba(0,212,255,0.4));
    margin-bottom: 6px;
}

/* Glitch variant for h1 */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff 0%, var(--plasma) 35%, var(--aurora) 65%, #fff 100%);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: plasmaFlow 5s ease infinite;
}
.glitch::before {
    left: 2px;
    background: linear-gradient(135deg, var(--nova), var(--aurora));
    -webkit-background-clip: text;
    background-clip: text;
    animation: glitchSlide 8s steps(1) infinite;
    opacity: 0.5;
}
.glitch::after {
    left: -2px;
    background: linear-gradient(135deg, var(--plasma), var(--quasar));
    -webkit-background-clip: text;
    background-clip: text;
    animation: glitchSlide 8s steps(1) infinite reverse;
    opacity: 0.4;
}

.subtitle-tag {
    font-family: var(--font-mono);
    font-size: clamp(0.7em, 2vw, 0.9em);
    color: var(--plasma);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
}

blockquote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1em, 2.5vw, 1.3em);
    font-weight: 200;
    color: var(--dust);
    letter-spacing: 0.05em;
    margin-top: 8px;
    padding: 12px 24px;
    border-left: 2px solid rgba(0,212,255,0.3);
    background: rgba(0,212,255,0.03);
    border-radius: 0 4px 4px 0;
    position: relative;
    text-shadow: 0 0 30px rgba(0,212,255,0.2);
}

h2 {
    font-family: var(--font-hud);
    font-size: clamp(1.1em, 2.5vw, 1.6em);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plasma);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
h2::before {
    content: '';
    display: inline-block;
    width: 4px; height: 1.2em;
    background: linear-gradient(var(--plasma), var(--aurora));
    border-radius: 2px;
    box-shadow: var(--glow-plasma);
    flex-shrink: 0;
}
h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,212,255,0.4), transparent);
    margin-left: 5px;
}

h3 {
    font-family: var(--font-hud);
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--starlight);
    margin-bottom: 8px;
}

p { color: var(--dust); font-weight: 300; letter-spacing: 0.02em; }

/* ═══════════════════════════════════════════════════════════
   NAV — MISSION CONTROL HUD BAR
═══════════════════════════════════════════════════════════ */
nav {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    justify-content: center;
    background: rgba(1, 4, 8, 0.9);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: var(--border-hud);
    padding: 0 20px;
}
nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--plasma), var(--aurora), var(--plasma), transparent);
    opacity: 0.7;
    box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

/* Live indicator */
nav::after {
    content: '● LIVE';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.6em;
    color: var(--quasar);
    letter-spacing: 0.15em;
    animation: hudBlink 1.5s step-end infinite;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-links li { position: relative; }
.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dust);
    text-decoration: none;
    font-family: var(--font-hud);
    font-size: 0.65em;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 20px 18px;
    transition: color 0.3s;
    position: relative;
}
.nav-links a .nav-num {
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--dim);
    transition: color 0.3s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--plasma), var(--aurora));
    box-shadow: var(--glow-plasma);
    transition: left 0.35s var(--ease-warp), right 0.35s var(--ease-warp);
}
.nav-links a:hover { color: var(--plasma); }
.nav-links a:hover .nav-num { color: var(--plasma); }
.nav-links a:hover::after { left: 0; right: 0; }

#theme-switcher {
    background: none;
    border: 1px solid rgba(0,212,255,0.25);
    color: var(--dust);
    font-family: var(--font-hud);
    font-size: 0.6em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s;
}
#theme-switcher:hover {
    background: rgba(0,212,255,0.08);
    border-color: var(--plasma);
    color: var(--plasma);
    box-shadow: var(--glow-plasma);
}

/* ═══════════════════════════════════════════════════════════
   MAIN
═══════════════════════════════════════════════════════════ */
main { padding: 60px 20px; max-width: 1000px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════
   SECTION — SPACE STATION MODULES
═══════════════════════════════════════════════════════════ */
section {
    position: relative;
    max-width: 820px;
    margin: 60px auto;
    padding: 40px 36px;
    background: linear-gradient(135deg,
        rgba(8, 20, 40, 0.97) 0%,
        rgba(5, 13, 26, 0.99) 100%
    );
    border: var(--border-hud);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
    box-shadow: 0 25px 70px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,212,255,0.04);
}
section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50px; height: 50px;
    border-top: 2px solid var(--plasma);
    border-left: 2px solid var(--plasma);
    box-shadow: -2px -2px 20px rgba(0,212,255,0.3);
}
section::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 50px; height: 50px;
    border-bottom: 2px solid var(--aurora);
    border-right: 2px solid var(--aurora);
    box-shadow: 2px 2px 20px rgba(139,63,255,0.3);
}
section:hover {
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 30px 90px rgba(0,0,0,0.8), 0 0 60px rgba(0,212,255,0.05) inset;
}

/* Section inner shimmer on hover */
.section-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.04), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: none;
}
section:hover .section-shimmer {
    animation: shimmer 1s var(--ease-warp) forwards;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — TERMINAL STYLE
═══════════════════════════════════════════════════════════ */
#about p {
    font-size: 1em;
    line-height: 1.9;
    color: var(--dust);
}
#about p b {
    font-weight: 600;
    color: var(--starlight);
    font-style: normal;
}
.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--quasar);
    margin-bottom: 16px;
    opacity: 0.7;
    letter-spacing: 0.05em;
}
.terminal-line::before { content: '> '; color: var(--plasma); }
.cursor-blink::after {
    content: '▊';
    animation: hudBlink 1s step-end infinite;
    color: var(--plasma);
    margin-left: 3px;
}

/* ═══════════════════════════════════════════════════════════
   JOURNEY — STELLAR MAP
═══════════════════════════════════════════════════════════ */
#journey {
    background: linear-gradient(135deg,
        rgba(8, 20, 40, 0.97) 0%,
        rgba(5, 13, 26, 0.99) 100%
    );
}

.journey-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 20px;
    gap: 20px;
    position: relative;
}

/* Connecting orbit path */
.journey-container::before {
    content: '';
    position: absolute;
    top: 75px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--plasma), var(--aurora), var(--plasma), transparent);
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

.star {
    flex: 0 1 auto;
    min-width: 160px; max-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.5s var(--ease-warp);
}
.star:hover { transform: translateY(-10px); }

/* Planet placeholder (for when model-viewer isn't available) */
.planet-orb {
    width: 100px; height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    position: relative;
    flex-shrink: 0;
}
.planet-orb.sun {
    background: radial-gradient(circle at 35% 35%, #fff8e1, #ffb347, #ff6b35, #8b0000);
    box-shadow: 0 0 30px rgba(255,150,50,0.6), 0 0 60px rgba(255,100,30,0.3);
    animation: orbitPulse 3s ease infinite;
}
.planet-orb.earth {
    background: radial-gradient(circle at 35% 35%, #87ceeb, #2e8b57, #1a5276, #0a2d62);
    box-shadow: 0 0 20px rgba(30,144,255,0.5), 0 0 40px rgba(30,100,200,0.2);
}
.planet-orb.moon {
    background: radial-gradient(circle at 35% 35%, #e8e8e8, #b0b0b0, #707070, #404040);
    box-shadow: 0 0 20px rgba(180,180,180,0.4), 0 0 40px rgba(140,140,140,0.2);
}

/* model-viewer styling */
model-viewer {
    border-radius: 50%;
    --poster-color: transparent;
    margin-bottom: 10px;
}
.glow-effect model-viewer {
    filter: drop-shadow(0 0 20px rgba(255,150,50,0.5));
}
.moon-glow-effect model-viewer {
    filter: drop-shadow(0 0 15px rgba(180,180,180,0.4));
}

.star-info {
    background: rgba(0,212,255,0.04);
    border: var(--border-hud);
    border-radius: 3px;
    padding: 16px 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: auto;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
}
.star:hover .star-info {
    border-color: rgba(0,212,255,0.35);
    box-shadow: var(--glow-plasma);
}
.star-info h3 { font-size: 0.7em; color: var(--plasma); margin: 0; }
.star-info p { font-size: 0.82em; color: var(--dust); margin: 0; line-height: 1.5; }
.star-info p strong { color: var(--quasar); font-weight: 600; font-family: var(--font-mono); font-size: 0.9em; }

/* ═══════════════════════════════════════════════════════════
   PROJECTS — QUANTUM GRID
═══════════════════════════════════════════════════════════ */
#projects {
    max-width: 820px;
    margin: 60px auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 20px;
}
#projects::before, #projects::after { display: none; }
#projects h2 { margin-bottom: 30px; padding: 0; }

.timeline { list-style: none; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--plasma) 20%, var(--aurora) 80%, transparent);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    padding: 24px 24px 24px 32px;
    margin-bottom: 16px;
    margin-left: 20px;
    background: linear-gradient(135deg, rgba(8,20,40,0.95), rgba(5,13,26,0.98));
    border: var(--border-hud);
    border-radius: 2px;
    border-left: 2px solid var(--plasma);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideRight 0.6s var(--ease-warp) forwards;
    animation-delay: calc(0.15s * var(--item-index));
    transition: border-left-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-warp);
    overflow: hidden;
}
.timeline-item::before {
    content: attr(data-index);
    position: absolute;
    left: -36px;
    top: 22px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--void);
    border: 1px solid var(--plasma);
    color: var(--plasma);
    font-family: var(--font-mono);
    font-size: 0.65em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-plasma);
    z-index: 2;
}
.timeline-item::after {
    content: '';
    position: absolute;
    left: -36px;
    top: 22px;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,0.3);
    animation: orbitPulse 2.5s ease-in-out infinite;
    animation-delay: calc(0.5s * var(--item-index));
    z-index: 1;
}
.timeline-item:hover {
    border-left-color: var(--aurora);
    transform: translateX(6px);
    box-shadow: -4px 0 25px rgba(139,63,255,0.2), var(--glow-aurora);
}
.timeline-item h3 { color: var(--starlight); margin-bottom: 8px; }
.timeline-item p { font-size: 0.9em; }

/* Project tag */
.proj-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65em;
    color: var(--quasar);
    border: 1px solid rgba(0,255,179,0.25);
    border-radius: 2px;
    padding: 2px 8px;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT — TRANSMISSION CONSOLE
═══════════════════════════════════════════════════════════ */
#contact {
    max-width: 620px;
    margin: 60px auto;
    padding: 50px 42px;
    background: linear-gradient(135deg, rgba(8,20,40,0.97), rgba(5,13,26,0.99));
    border: var(--border-hud);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
#contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50px; height: 50px;
    border-top: 2px solid var(--plasma);
    border-left: 2px solid var(--plasma);
    box-shadow: -2px -2px 20px rgba(0,212,255,0.3);
}
#contact::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 50px; height: 50px;
    border-bottom: 2px solid var(--aurora);
    border-right: 2px solid var(--aurora);
    box-shadow: 2px 2px 20px rgba(139,63,255,0.3);
}

#contact h2 { color: var(--plasma); justify-content: center; }
#contact > p {
    text-align: center;
    margin-bottom: 28px;
    font-size: 0.9em;
    color: var(--dust);
}

#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

#contact input, #contact textarea {
    width: 100%; max-width: 440px;
    margin: 7px 0;
    padding: 14px 18px;
    background: rgba(0,212,255,0.03);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 2px;
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 300;
    letter-spacing: 0.02em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
#contact input::placeholder, #contact textarea::placeholder {
    color: rgba(122,154,184,0.4);
    font-style: italic;
}
#contact input:focus, #contact textarea:focus {
    border-color: var(--plasma);
    background: rgba(0,212,255,0.06);
    box-shadow: var(--glow-plasma), 0 0 0 3px rgba(0,212,255,0.04);
}
#contact textarea { min-height: 110px; resize: vertical; }

#contact button {
    width: 100%; max-width: 440px;
    margin-top: 14px;
    padding: 16px 30px;
    background: transparent;
    border: 1px solid var(--plasma);
    border-radius: 2px;
    color: var(--plasma);
    font-family: var(--font-hud);
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-warp);
}
#contact button::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.25), transparent);
    transform: skewX(-20deg);
}
#contact button:hover {
    background: rgba(0,212,255,0.08);
    border-color: var(--aurora);
    color: #fff;
    box-shadow: var(--glow-plasma), var(--glow-aurora);
    transform: translateY(-3px);
}
#contact button:hover::before {
    animation: shimmer 0.7s var(--ease-warp);
}
#contact button:active { transform: translateY(-1px); }

.error {
    font-family: var(--font-mono);
    font-size: 0.75em;
    color: var(--nova);
    margin-top: 8px;
    min-height: 20px;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL MEDIA — SIGNAL ARRAY
═══════════════════════════════════════════════════════════ */
.social-media {
    text-align: center;
    margin: 40px auto 20px;
    max-width: 620px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(8,20,40,0.6), rgba(5,13,26,0.7));
    border: var(--border-hud);
    border-radius: 2px;
    position: relative;
}
.social-media::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--plasma), var(--aurora), transparent);
    opacity: 0.5;
}
.social-media h3 {
    font-family: var(--font-hud);
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--dust);
    text-transform: uppercase;
    margin-bottom: 22px;
}

.social-icon {
    display: inline-block;
    margin: 0 10px;
    position: relative;
    vertical-align: middle;
}
.social-icon::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,0.3);
    opacity: 0;
    transition: opacity 0.3s, transform 0.4s var(--ease-spring);
    transform-origin: center;
}
.social-icon:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--glow-plasma);
}
.social-icon img {
    width: 38px; height: 38px;
    border-radius: 50%;
    filter: brightness(0.7) saturate(0.5);
    transition: filter 0.4s, transform 0.4s var(--ease-spring);
    vertical-align: middle;
}
.social-icon img:hover {
    filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 8px rgba(0,212,255,0.6));
    transform: translateY(-4px) scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
    text-align: center;
    padding: 28px 20px;
    background: var(--void);
    border-top: var(--border-hud);
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.72em;
    color: var(--dim);
    letter-spacing: 0.12em;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--plasma), var(--aurora), var(--plasma), transparent);
    opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL UTILITY
═══════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-warp), transform 0.7s var(--ease-warp);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    main { padding: 40px 10px; }
    section { padding: 28px 20px; margin: 40px auto; }
    h1 { font-size: 1.8em; }
    .nav-links a { padding: 16px 10px; font-size: 0.58em; }
    .journey-container { flex-direction: column; align-items: center; }
    .journey-container::before { display: none; }
    .star { max-width: 90%; }
    #contact { padding: 30px 20px; }
    .hud-data { display: none; }
    .orbit-ring, .orbit-ring-2 { display: none; }
    nav::after { display: none; }
}