:root {
  --void: #00020a;
  --deep: #010510;
  --midnight: #020c1b;
  --navy: #040f22;
  --cobalt: #071830;
  --ice: #4fc3f7;
  --ice-bright: #81d4fa;
  --ice-dim: rgba(79,195,247,0.08);
  --ice-glow: rgba(79,195,247,0.3);
  --plasma: #0d47a1;
  --arc: #29b6f6;
  --neon: #00e5ff;
  --gold: #ffd600;
  --white: #e8f4fd;
  --muted: rgba(232,244,253,0.55);
  --subtle: rgba(232,244,253,0.18);
  --ghost: rgba(232,244,253,0.06);
  --border: rgba(79,195,247,0.12);
  --border-hi: rgba(79,195,247,0.35);
  --font-hud: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Exo 2', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: auto;
}

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: crosshair;
}

#launch-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 320px;
}

.loader-icon {
  width: 80px;
  height: 80px;
  animation: float 3s ease-in-out infinite;
  margin-bottom: 20px;
}

.loader-title {
  font-family: var(--font-hud);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--white);
  margin-bottom: 4px;
}

.loader-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ice);
  opacity: 0.5;
  margin-bottom: 32px;
}

.loader-bar-wrap {
  width: 100%;
}

.loader-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(79,195,247,0.5);
  margin-bottom: 8px;
}

.loader-track {
  width: 100%;
  height: 1px;
  background: var(--ghost);
  border-radius: 999px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--ice);
  border-radius: 999px;
  transition: width 0.4s var(--ease-out);
  box-shadow: 0 0 12px var(--ice-glow);
}

nav#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s ease, padding 0.4s ease;
}

nav#nav.scrolled {
  background: rgba(1,5,16,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
  transition: color 0.2s;
}

.nav-logo { width: 24px; height: 24px; }
.brand-x { color: var(--ice); }

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ice);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--ice); }
.nav-link:hover::after { width: 100%; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(79,195,247,0.6);
}

#hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hud-tl {
  position: absolute;
  top: 20px;
  left: 20px;
  opacity: 0.7;
}

.hud-phase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -120%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: rgba(79,195,247,0.5);
  transition: color 0.3s;
}

.hud-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-hud);
  font-size: 96px;
  font-weight: 700;
  color: var(--ice);
  text-shadow: 0 0 40px var(--ice-glow), 0 0 80px rgba(79,195,247,0.3);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s;
}

.hud-countdown.visible { opacity: 1; }

.hud-bl {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-br {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hud-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.hud-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--subtle);
}

.hud-val {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 600;
  color: var(--ice);
  text-shadow: 0 0 8px var(--ice-glow);
  letter-spacing: 0.05em;
}

.hud-nominal { color: #00e5a0; }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.5s;
}

.scroll-cue-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--subtle);
}

.scroll-arrow {
  font-size: 20px;
  color: var(--ice);
  animation: bounce 1.5s ease-in-out infinite;
  opacity: 0.6;
}

#scroll-wrapper {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.scroll-panel {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-content {
  position: relative;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.panel-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-panel {
  background: rgba(2,12,27,0.72);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  max-width: 600px;
  width: 90vw;
}

.hero-content {
  text-align: left;
  position: absolute;
  left: 8vw;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
}

.hero-content.visible { opacity: 1; transform: translateY(-50%); }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--ice);
  opacity: 0.6;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-hud);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.92;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--ice);
  text-shadow: 0 0 40px var(--ice-glow), 0 0 80px rgba(79,195,247,0.2);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 400px;
}

.ignition-content {
  text-align: center;
}

.ignition-label {
  font-family: var(--font-hud);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 700;
  color: var(--ice);
  text-shadow: 0 0 60px var(--ice-glow), 0 0 120px rgba(79,195,247,0.3);
  letter-spacing: 0.05em;
  line-height: 1;
}

.ignition-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--muted);
  margin-top: 12px;
}

.liftoff-content {
  text-align: center;
  mix-blend-mode: screen;
}

.liftoff-word {
  font-family: var(--font-hud);
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  text-shadow: 0 0 40px var(--ice-glow);
}

.liftoff-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--muted);
  margin-top: 8px;
}

.about-content {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
}

.about-content.visible { opacity: 1; transform: translateY(-50%); }

.section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.45em;
  color: rgba(79,195,247,0.5);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-hud);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.accent-text {
  color: var(--ice);
  text-shadow: 0 0 20px var(--ice-glow);
}

.about-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.stats-row {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--font-hud);
  font-size: 28px;
  font-weight: 700;
  color: var(--ice);
  text-shadow: 0 0 12px var(--ice-glow);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--subtle);
  margin-top: 2px;
}

.skills-list { display: flex; flex-direction: column; gap: 12px; }

.skill-row {
  display: grid;
  grid-template-columns: 160px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

.skill-bar {
  height: 1px;
  background: var(--ghost);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(79,195,247,0.4), var(--ice));
  border-radius: 99px;
  box-shadow: 0 0 6px var(--ice-glow);
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ice);
  text-align: right;
}

.maxq-content {
  text-align: center;
}

.maxq-badge {
  font-family: var(--font-hud);
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(255,214,0,0.5), 0 0 80px rgba(255,214,0,0.2);
  letter-spacing: 0.1em;
}

.maxq-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.45em;
  color: var(--muted);
  margin-top: 10px;
}

.maxq-alt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--subtle);
  margin-top: 6px;
}

.projects-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  max-width: 1100px;
}

.projects-content.visible { opacity: 1; transform: translate(-50%, -50%); }

.projects-content .section-title { margin-bottom: 32px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: rgba(4,15,34,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: default;
}

.project-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 30px rgba(79,195,247,0.08), 0 16px 40px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.project-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--card-accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-card:hover .project-card-glow { opacity: 0.05; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(79,195,247,0.5);
}

.project-year-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--subtle);
  letter-spacing: 0.2em;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid;
}

.project-title {
  font-family: var(--font-hud);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid;
}

.project-card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
  transition: width 0.4s var(--ease-out);
}

.project-card:hover .project-card-line { width: 100%; }

.space-content {
  text-align: center;
}

.space-badge {
  font-family: var(--font-hud);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 40px rgba(0,229,255,0.5), 0 0 80px rgba(0,229,255,0.2);
  letter-spacing: 0.08em;
}

.space-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.45em;
  color: var(--muted);
  margin-top: 10px;
}

.space-coords {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--subtle);
  margin-top: 6px;
}

.contact-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.contact-content.visible { opacity: 1; transform: translate(-50%, -50%); }

.contact-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--subtle);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-bottom-color: var(--ice); }
.form-input::placeholder { color: var(--subtle); }

.form-textarea {
  resize: none;
  min-height: 80px;
}

.form-submit {
  margin-top: 8px;
  padding: 14px;
  background: var(--ice);
  color: var(--void);
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(79,195,247,0.3);
  pointer-events: auto;
}

.form-submit:hover {
  background: var(--ice-bright);
  box-shadow: 0 0 30px rgba(79,195,247,0.5);
}

#site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  background: rgba(0,2,10,0.9);
  pointer-events: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--subtle);
}

.footer-logo { width: 20px; height: 20px; }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ghost);
}

.footer-links { display: flex; gap: 24px; }

.footer-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--subtle);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--ice); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 768px) {
  nav#nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .glass-panel { padding: 28px 22px; }
  .hero-content { left: 5vw; max-width: 90vw; }
  .about-content { right: 5vw; }
  .projects-grid { grid-template-columns: 1fr; }
  .hud-bl, .hud-br { display: none; }
  .hud-countdown { font-size: 64px; }
}
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background: var(--void);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.85) saturate(0.9);
}

.carousel:hover .carousel-img {
  transform: scale(1.03);
  filter: brightness(1) saturate(1.1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 12, 27, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--ice);
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s, background 0.2s, border-color 0.2s;
  z-index: 4;
  pointer-events: auto;
}

.carousel:hover .carousel-btn { opacity: 1; }

.carousel-btn:hover {
  background: rgba(79, 195, 247, 0.15);
  border-color: var(--border-hi);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.carousel-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--subtle);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--ice);
  transform: scale(1.4);
  box-shadow: 0 0 6px var(--ice-glow);
}

.carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 3;
}

.project-github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-decoration: none;
  background: var(--ghost);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.project-github-link:hover {
  color: var(--ice);
  border-color: var(--border-hi);
  background: var(--ice-dim);
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.1);
}

.github-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.project-github-link:hover .github-icon { opacity: 1; }

.link-arrow {
  margin-left: 2px;
  font-size: 12px;
  transition: transform 0.2s;
}

.project-github-link:hover .link-arrow {
  transform: translate(2px, -2px);
}
.projects-content {
  position: relative;
  left: unset;
  top: unset;
  transform: none;
  margin: 0 auto;
  width: 92vw;
  max-width: 1100px;
}

.projects-content.visible {
  opacity: 1;
  transform: none;
}

.projects-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

#panel-projects .panel-content {
  opacity: 1 !important;
  transform: none !important;
}
