/* =============================================================
   KRISHNA. ✯ — PORTFOLIO STYLESHEET
   Dark cyberpunk / space dimension aesthetic
   JetBrains Mono + Space Grotesk
   ============================================================= */

/* === CSS VARIABLES === */
:root {
  --bg:          #07080f;
  --bg2:         #0c0e1a;
  --surface:     rgba(255,255,255,0.04);
  --surface-h:   rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(138,79,255,0.4);

  /* Accent palette */
  --cyan:        #00f0ff;
  --purple:      #8a4fff;
  --pink:        #ff2dce;
  --gold:        #ffd166;

  /* Text */
  --text:        #e8eaf6;
  --text-muted:  #6b7280;
  --text-dim:    #3d4358;

  /* Glow */
  --glow-cyan:   0 0 20px rgba(0,240,255,0.35), 0 0 60px rgba(0,240,255,0.15);
  --glow-purple: 0 0 20px rgba(138,79,255,0.35), 0 0 60px rgba(138,79,255,0.15);

  /* Type */
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-sans:   'Space Grotesk', system-ui, sans-serif;

  /* Transitions */
  --t-fast:      0.15s ease;
  --t-med:       0.3s ease;
  --t-slow:      0.6s cubic-bezier(0.16,1,0.3,1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { cursor: none; font-family: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }

/* =============================================================
   CANVAS BACKGROUND
   ============================================================= */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =============================================================
   MOUSE GLOW
   ============================================================= */
#mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,79,255,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--t-med);
}

/* =============================================================
   CUSTOM CURSOR
   ============================================================= */
#cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease, background 0.2s ease;
  box-shadow: var(--glow-cyan);
}
#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(138,79,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, transform 0.1s ease;
}
#cursor-ring.hover {
  width: 50px;
  height: 50px;
  border-color: var(--cyan);
}

/* =============================================================
   INTRO OVERLAY
   ============================================================= */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 8888;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#intro-overlay.out {
  opacity: 0;
  pointer-events: none;
}
#intro-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,240,255,0.015) 2px,
    rgba(0,240,255,0.015) 4px
  );
  pointer-events: none;
}
#intro-content {
  text-align: center;
  font-family: var(--font-mono);
  z-index: 1;
}
#intro-logo {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--cyan);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-shadow: var(--glow-cyan);
}
.intro-bracket {
  color: var(--purple);
  opacity: 0.7;
}
#intro-bar-wrap {
  width: 280px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  margin: 0 auto 1.2rem;
  overflow: hidden;
}
#intro-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 1px;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--cyan);
}
#intro-sub {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* =============================================================
   NAVIGATION
   ============================================================= */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 64px;
  background: rgba(7,8,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-med);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-logo .star { color: var(--cyan); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--t-fast);
  position: relative;
}
.nav-link::before {
  content: attr(data-dim) " ";
  font-size: 0.6em;
  color: var(--purple);
  opacity: 0.7;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--t-fast);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

#nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
#nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--t-med);
}

#mobile-nav {
  position: fixed;
  top: 64px; right: -100%;
  width: 220px;
  background: rgba(7,8,15,0.97);
  border-left: 1px solid var(--border);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.5rem;
  transition: right var(--t-slow);
}
#mobile-nav.open { right: 0; }
#mobile-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#mobile-nav a:hover { color: var(--cyan); }

/* =============================================================
   MAIN CONTENT
   ============================================================= */
#main-content { position: relative; z-index: 2; }

/* =============================================================
   GLASS UTILITY
   ============================================================= */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
}

/* =============================================================
   DIMENSION SECTIONS — SHARED
   ============================================================= */
.dimension {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 4vw, 3rem);
}
.dim-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--purple);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.dim-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  color: var(--text);
}
.dim-title .accent { color: var(--cyan); }

/* =============================================================
   PATH CONNECTORS
   ============================================================= */
.path-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
}
.path-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--purple), transparent);
  opacity: 0.4;
}
.path-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

/* =============================================================
   SCROLL REVEAL ANIMATION
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   HERO
   ============================================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.5rem, 4vw, 3rem) clamp(4rem, 8vh, 6rem);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 860px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Floating geometric shapes */
.geo {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  animation: float 8s ease-in-out infinite;
}
.geo-1 {
  width: 200px; height: 200px;
  border: 1px solid var(--cyan);
  border-radius: 24px;
  top: -60px; right: -40px;
  transform: rotate(20deg);
  animation-delay: 0s;
}
.geo-2 {
  width: 120px; height: 120px;
  border: 1px solid var(--purple);
  border-radius: 50%;
  bottom: 40px; right: 80px;
  animation-delay: 2s;
  opacity: 0.08;
}
.geo-3 {
  width: 80px; height: 80px;
  border: 1px solid var(--pink);
  top: 30%; left: -60px;
  transform: rotate(45deg);
  animation-delay: 4s;
}
.geo-4 {
  width: 50px; height: 50px;
  background: rgba(0,240,255,0.06);
  border: 1px solid var(--cyan);
  bottom: 20%; right: 20%;
  transform: rotate(30deg);
  animation-delay: 1s;
  border-radius: 8px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--r, 0deg)); }
}
.geo-1 { --r: 20deg; }
.geo-3 { --r: 45deg; }
.geo-4 { --r: 30deg; }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}
.hero-name {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.name-krishna {
  background: linear-gradient(135deg, #e8eaf6 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.name-star {
  -webkit-text-fill-color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan), 0 0 60px rgba(0,240,255,0.3);
  display: inline-block;
  animation: starPulse 2s ease-in-out infinite;
}
@keyframes starPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.typewriter-wrap {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--cyan);
  margin-bottom: 2.5rem;
  min-height: 1.8em;
}
.tw-prefix { color: var(--purple); opacity: 0.8; }
.tw-cursor {
  display: inline-block;
  animation: blink 0.9s step-end infinite;
  color: var(--cyan);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn-primary {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bg);
  transition: filter var(--t-med), transform var(--t-med), box-shadow var(--t-med);
  border: none;
}
.btn-primary:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(138,79,255,0.4);
}
.btn-ghost {
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 1px solid var(--border-h);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--t-med), border-color var(--t-med), background var(--t-med);
}
.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0,240,255,0.05);
}
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--text-dim);
  border-bottom: 1px solid var(--text-dim);
  transform: rotate(45deg);
  animation: arrowBounce 1.5s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* =============================================================
   DIMENSION 01 — IDENTITY
   ============================================================= */
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.identity-card {
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.id-avatar {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ringRotate 4s linear infinite;
}
.ring1 {
  border: 1px solid rgba(0,240,255,0.4);
  animation-direction: normal;
}
.ring2 {
  border: 1px dashed rgba(138,79,255,0.3);
  inset: -6px;
  animation-direction: reverse;
  animation-duration: 7s;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.avatar-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(138,79,255,0.3), rgba(0,240,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  position: relative;
  z-index: 1;
}
.id-info { flex: 1; }
.id-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.id-name .star { color: var(--cyan); }
.id-age {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}
.id-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.id-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  padding: 0.25rem 0.65rem;
  background: rgba(138,79,255,0.12);
  border: 1px solid rgba(138,79,255,0.3);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--purple);
  letter-spacing: 0.04em;
}
.identity-side { display: flex; flex-direction: column; gap: 1rem; }
.id-stat-card { padding: 1.25rem 1.5rem; }
.isc-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}
.isc-val {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stack-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0,240,255,0.07);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 4px;
  color: var(--cyan);
}

/* =============================================================
   DIMENSION 02 — LAB
   ============================================================= */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.lab-card {
  padding: 1.75rem;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  position: relative;
  overflow: hidden;
}
.lab-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.lab-card:hover::before { opacity: 1; }
.lab-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138,79,255,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), var(--glow-purple);
}
.lab-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }
.lab-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.lab-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 8px var(--cyan);
}
.lab-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lab-tags span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.15);
  border-radius: 4px;
  color: var(--cyan);
  opacity: 0.8;
}

/* =============================================================
   DIMENSION 03 — STUDIO
   ============================================================= */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.studio-card {
  padding: 2rem;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  overflow: hidden;
}
.studio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,240,255,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0,240,255,0.08);
}
.studio-icon { font-size: 1.6rem; margin-bottom: 0.9rem; }
.studio-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.studio-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.studio-visual {
  height: 80px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.uiux-preview {
  background: linear-gradient(135deg,
    rgba(138,79,255,0.15) 0%,
    rgba(0,240,255,0.1) 100%
  );
}
.uiux-preview::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(138,79,255,0.2);
  border-radius: 4px;
}
.canva-preview {
  background: linear-gradient(135deg,
    rgba(255,45,206,0.12) 0%,
    rgba(255,209,102,0.1) 100%
  );
}
.brand-preview {
  background: linear-gradient(135deg,
    rgba(0,240,255,0.1) 0%,
    rgba(138,79,255,0.15) 100%
  );
}
.visual-preview {
  background: radial-gradient(ellipse at center,
    rgba(138,79,255,0.2) 0%,
    transparent 70%
  );
}

/* =============================================================
   DIMENSION 04 — PROJECT VAULT
   ============================================================= */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.project-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-med);
  border-radius: 16px;
}
.project-card[data-project="sterix"] .project-glow {
  background: radial-gradient(ellipse at top left, rgba(138,79,255,0.15), transparent 70%);
}
.project-card[data-project="sanatani"] .project-glow {
  background: radial-gradient(ellipse at top left, rgba(255,209,102,0.1), transparent 70%);
}
.project-card[data-project="luxorax"] .project-glow {
  background: radial-gradient(ellipse at top left, rgba(0,240,255,0.1), transparent 70%);
}
.project-card[data-project="ai"] .project-glow {
  background: radial-gradient(ellipse at top left, rgba(138,79,255,0.12), transparent 70%);
}
.project-card[data-project="devtools"] .project-glow {
  background: radial-gradient(ellipse at top left, rgba(0,240,255,0.08), transparent 70%);
}
.project-card:hover .project-glow { opacity: 1; }
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138,79,255,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(138,79,255,0.1);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.project-icon { font-size: 1.8rem; }
.project-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  color: var(--cyan);
}
.project-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.project-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--purple);
  margin-bottom: 0.9rem;
  letter-spacing: 0.05em;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.project-links { display: flex; gap: 0.75rem; }
.plink {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.plink:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0,240,255,0.05);
}
.plink-primary {
  background: rgba(138,79,255,0.12);
  border-color: rgba(138,79,255,0.35);
  color: var(--purple);
}
.plink-primary:hover {
  background: rgba(138,79,255,0.2);
  color: var(--text);
  border-color: var(--purple);
}

/* =============================================================
   DIMENSION 05 — TIMELINE
   ============================================================= */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--purple) 10%, var(--cyan) 90%, transparent 100%);
  opacity: 0.3;
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: center;
  padding: 1rem 0;
}
.tl-item[data-side="left"] .tl-card { grid-column: 1; text-align: right; }
.tl-item[data-side="left"] .tl-dot { grid-column: 2; justify-self: center; }
.tl-item[data-side="left"]::after { content: ''; grid-column: 3; }

.tl-item[data-side="right"] .tl-card { grid-column: 3; text-align: left; }
.tl-item[data-side="right"] .tl-dot { grid-column: 2; justify-self: center; }
.tl-item[data-side="right"]::before { content: ''; grid-column: 1; }

.tl-card {
  padding: 1.5rem;
  transition: transform var(--t-med), border-color var(--t-med);
  max-width: 440px;
}
.tl-item[data-side="left"] .tl-card { margin-left: auto; }
.tl-item[data-side="right"] .tl-card { margin-right: auto; }
.tl-card:hover {
  transform: scale(1.02);
  border-color: rgba(138,79,255,0.3);
}
.tl-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--purple);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.now-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(0,240,255,0.12);
  border: 1px solid rgba(0,240,255,0.3);
  border-radius: 4px;
  color: var(--cyan);
}
.future-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(138,79,255,0.12);
  border: 1px solid rgba(138,79,255,0.3);
  border-radius: 4px;
  color: var(--purple);
}
.tl-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.tl-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.tl-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--purple);
  position: relative;
  z-index: 1;
}
.tl-dot-active {
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan), 0 0 30px rgba(0,240,255,0.3);
  animation: pulseActive 2s ease-in-out infinite;
}
.tl-dot-future {
  background: transparent;
  border-color: var(--purple);
  border-style: dashed;
}
@keyframes pulseActive {
  0%, 100% { box-shadow: 0 0 16px var(--cyan); }
  50% { box-shadow: 0 0 28px var(--cyan), 0 0 50px rgba(0,240,255,0.4); }
}
.tl-current { border-color: rgba(0,240,255,0.25); }
.tl-future { opacity: 0.6; border-style: dashed; }

/* =============================================================
   DIMENSION 06 — STATS
   ============================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--t-med), border-color var(--t-med);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, transparent 40%, rgba(138,79,255,0.2) 100%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity var(--t-med);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138,79,255,0.35);
}
.stat-icon { font-size: 2rem; margin-bottom: 1rem; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* =============================================================
   DIMENSION 07 — CONTACT
   ============================================================= */
.contact-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity var(--t-med);
}
.contact-card[data-type="discord"]::after {
  background: linear-gradient(135deg, rgba(88,101,242,0.08), transparent);
}
.contact-card[data-type="github"]::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
}
.contact-card[data-type="email"]::after {
  background: linear-gradient(135deg, rgba(0,240,255,0.06), transparent);
}
.contact-card[data-type="website"]::after {
  background: linear-gradient(135deg, rgba(138,79,255,0.08), transparent);
}
.contact-card:hover::after { opacity: 1; }
.contact-card:hover {
  transform: translateX(5px);
  border-color: rgba(138,79,255,0.35);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--t-med), border-color var(--t-med);
  position: relative;
  z-index: 1;
}
.contact-card:hover .contact-icon {
  color: var(--cyan);
  border-color: rgba(0,240,255,0.3);
}
.contact-info { flex: 1; position: relative; z-index: 1; }
.contact-platform {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.contact-handle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.contact-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: transform var(--t-med), color var(--t-med);
  position: relative;
  z-index: 1;
}
.contact-card:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--cyan);
}

/* =============================================================
   FOOTER
   ============================================================= */
#footer {
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-name .star { color: var(--cyan); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}
.footer-line {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* =============================================================
   STAR SHARED
   ============================================================= */
.star { color: var(--cyan); }
.accent { color: var(--cyan); }

/* =============================================================
   RESPONSIVE — TABLET
   ============================================================= */
@media (max-width: 900px) {
  .identity-grid { grid-template-columns: 1fr; }
  .identity-side { grid-template-columns: 1fr 1fr; display: grid; }

  .timeline::before { left: 20px; transform: none; }
  .tl-item {
    grid-template-columns: 40px 1fr;
    padding: 0.75rem 0;
  }
  .tl-item[data-side="left"] .tl-card,
  .tl-item[data-side="right"] .tl-card {
    grid-column: 2;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
  .tl-item[data-side="left"] .tl-dot,
  .tl-item[data-side="right"] .tl-dot {
    grid-column: 1;
    grid-row: 1;
  }
  .tl-item[data-side="left"]::after,
  .tl-item[data-side="right"]::before { display: none; }
  .tl-item[data-side="right"]::before { content: none; }
}

/* =============================================================
   RESPONSIVE — MOBILE
   ============================================================= */
@media (max-width: 640px) {
  .nav-links { display: none; }
  #nav-hamburger { display: flex; }

  .identity-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .id-badges { justify-content: center; }
  .identity-side { grid-template-columns: 1fr; }

  .vault-grid, .lab-grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .hero-cta-row { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }

  .geo-1, .geo-2, .geo-3, .geo-4 { opacity: 0.03; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
