/* ============================================================
   RESET & VARIABLES
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:           #07071a;
  --bg-2:         #0d0d28;
  --cyan:         #06b6d4;
  --purple:       #8b5cf6;
  --pink:         #ec4899;
  --text:         #f1f5f9;
  --text-dim:     #94a3b8;
  --text-muted:   #475569;
  --card-bg:      rgba(255, 255, 255, 0.03);
  --card-border:  rgba(255, 255, 255, 0.08);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ============================================================
   BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-heading);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
  mix-blend-mode: screen;
}

body:hover .cursor { opacity: 1; }

/* ============================================================
   THREE.JS CANVAS
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(7, 7, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-title span {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 1px;
  margin: 1.5rem 0 3.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  display: inline-block;
}

/* Glitch pseudo-layers — always active, fire on a timer */
.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  overflow: hidden;
  pointer-events: none;
}

.hero-name::before {
  color: var(--cyan);
  left: 2px;
  text-shadow: -2px 0 var(--cyan);
  animation: glitch-top-auto 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  animation-delay: 0.5s;
}

.hero-name::after {
  color: var(--pink);
  left: -2px;
  text-shadow: 2px 0 var(--pink);
  animation: glitch-bot-auto 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  animation-delay: 0.5s;
}

/*
  Total duration: 5 s.
  Glitch burst occupies 0%–12% (= 0.6 s).
  Remaining 88%–100% is invisible idle — creates the "random" pause.
*/
@keyframes glitch-top-auto {
  0%   { clip-path: inset(0 0 85% 0);   transform: translate(-3px,  1px); opacity: 1; }
  2%   { clip-path: inset(60% 0 15% 0); transform: translate( 3px, -1px); opacity: 1; }
  4%   { clip-path: inset(25% 0 55% 0); transform: translate(-2px,  2px); opacity: 1; }
  6%   { clip-path: inset(75% 0  5% 0); transform: translate( 2px, -2px); opacity: 1; }
  8%   { clip-path: inset(40% 0 40% 0); transform: translate(-1px,  1px); opacity: 1; }
  10%  { clip-path: inset(10% 0 70% 0); transform: translate( 1px, -1px); opacity: 1; }
  11%  { clip-path: inset(90% 0  2% 0); transform: translate( 0px,  0px); opacity: 1; }
  12%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); opacity: 0; }
}

@keyframes glitch-bot-auto {
  0%   { clip-path: inset(80% 0 0 0);    transform: translate( 3px, -1px); opacity: 1; }
  2%   { clip-path: inset(10% 0 60% 0);  transform: translate(-3px,  1px); opacity: 1; }
  4%   { clip-path: inset(50% 0 30% 0);  transform: translate( 2px, -2px); opacity: 1; }
  6%   { clip-path: inset( 5% 0 80% 0);  transform: translate(-2px,  2px); opacity: 1; }
  8%   { clip-path: inset(35% 0 45% 0);  transform: translate( 1px, -1px); opacity: 1; }
  10%  { clip-path: inset(65% 0 15% 0);  transform: translate(-1px,  1px); opacity: 1; }
  11%  { clip-path: inset( 2% 0 90% 0);  transform: translate( 0px,  0px); opacity: 1; }
  12%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); opacity: 0; }
}

.hero-name span {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(20px);
  min-height: 1.6em;
}

.type-cursor {
  display: inline-block;
  color: var(--cyan);
  font-weight: 300;
  animation: blink-cursor 0.9s step-end infinite;
  margin-left: 1px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.btn-primary {
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  /* opacity driven by JS in sync with neural network */
  opacity: 0.2;
  transform-origin: top;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.85;
  font-weight: 400;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Terminal window */
.terminal-window {
  background: #080b10;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 48px rgba(74, 222, 128, 0.04), 0 24px 64px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: #0f1117;
  border-bottom: 1px solid rgba(74, 222, 128, 0.09);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.td-red    { background: #ff5f57; }
.td-yellow { background: #febc2e; }
.td-green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  min-height: 210px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.9;
}

.t-line   { display: block; white-space: pre; }
.t-green  { color: #4ade80; }
.t-key    { color: #67e8f9; }
.t-val    { color: #e879f9; }
.t-dim    { color: rgba(74, 222, 128, 0.38); }
.t-muted  { color: rgba(255, 255, 255, 0.22); }

.t-caret {
  display: inline-block;
  width: 0.52em;
  height: 1em;
  background: #4ade80;
  vertical-align: text-bottom;
  animation: t-blink 1s step-end infinite;
  margin-left: 1px;
  border-radius: 1px;
}

@keyframes t-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   EDUCATION
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.timeline-school {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-degree {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 400;
}

.timeline-location {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.timeline-note {
  margin-top: 0.85rem;
  padding: 0.6rem 1rem;
  background: rgba(6, 182, 212, 0.06);
  border-left: 2px solid var(--cyan);
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 400;
}

.timeline-note strong {
  color: var(--text);
}

/* ============================================================
   JOURNEY (Experience + Competitions unified timeline)
   ============================================================ */
.journey-wrap {
  position: relative;
  padding-left: 3.5rem;
  max-width: 820px;
}

/* The animated draw-down line */
.journey-track {
  position: absolute;
  left: 19px;          /* centre of the 40px node */
  top: 20px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--cyan) 0%,
    var(--purple) 55%,
    rgba(139, 92, 246, 0.15) 100%
  );
  transform-origin: top center;
  transform: scaleY(0);
}

/* Individual item */
.journey-item {
  position: relative;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin-bottom: 2.75rem;
}

.journey-item:last-child {
  margin-bottom: 0;
}

/* The circular node */
.journey-node {
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.3);
  z-index: 2;
  background: var(--bg-2);
  border: 2px solid;
  transition: box-shadow 0.3s ease;
}

/* Default (internship) — cyan */
.node-default {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0);
}
.node-default svg {
  width: 16px;
  height: 16px;
}
.node-default:hover {
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12), 0 0 24px rgba(6, 182, 212, 0.3);
}

/* Silver (2nd place) */
.node-silver {
  border-color: #94a3b8;
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.35);
  animation: glow-silver 2.8s ease-in-out infinite;
}
.node-silver .node-rank {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bronze (3rd place) */
.node-bronze {
  border-color: #b87333;
  box-shadow: 0 0 16px rgba(184, 115, 51, 0.35);
  animation: glow-bronze 2.8s ease-in-out infinite;
}
.node-bronze .node-rank {
  background: linear-gradient(135deg, #f4a261, #b87333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.node-rank {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.node-rank sup {
  font-size: 0.55rem;
  vertical-align: super;
}

@keyframes glow-silver {
  0%, 100% { box-shadow: 0 0 8px  rgba(148, 163, 184, 0.25); }
  50%       { box-shadow: 0 0 22px rgba(148, 163, 184, 0.6),
                          0 0 40px rgba(148, 163, 184, 0.2); }
}
@keyframes glow-bronze {
  0%, 100% { box-shadow: 0 0 8px  rgba(184, 115, 51, 0.25); }
  50%       { box-shadow: 0 0 22px rgba(184, 115, 51, 0.6),
                          0 0 40px rgba(184, 115, 51, 0.2); }
}

/* The card next to the node */
.journey-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  opacity: 0;
  transform: translateX(24px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.journey-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.journey-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.journey-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.journey-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.07em;
}

.journey-date-wrap {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.journey-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.journey-loc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.journey-bullets {
  list-style: none;
  padding: 0;
}

.journey-bullets li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.journey-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0.38rem;
  color: var(--cyan);
  font-size: 0.65rem;
}

.journey-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* "Chapter one complete" tagline */
.exp-first-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  background: linear-gradient(
    105deg,
    rgba(6, 182, 212, 0.07) 0%,
    rgba(139, 92, 246, 0.07) 100%
  );
  border: 1px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.5;
  isolation: isolate;
}

/* Animated gradient border via ::before */
.exp-first-line::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 14px;
  background: linear-gradient(
    105deg,
    rgba(6, 182, 212, 0.5) 0%,
    rgba(139, 92, 246, 0.5) 50%,
    rgba(6, 182, 212, 0.5) 100%
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: exp-border-flow 4s linear infinite;
  pointer-events: none;
}
@keyframes exp-border-flow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Left accent stripe */
.exp-first-line::after {
  content: '';
  position: absolute;
  left: 0; top: 14%; bottom: 14%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.exp-cursor {
  color: var(--cyan);
  font-size: 0.65rem;
  flex-shrink: 0;
  animation: exp-blink 1.1s step-end infinite;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
}
@keyframes exp-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.exp-text {
  background: linear-gradient(90deg, var(--text) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.exp-spark {
  animation: exp-zap 2.6s ease-in-out infinite;
  display: inline-block;
  font-size: 1.05rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.7));
}
@keyframes exp-zap {
  0%, 78%, 100% { transform: scale(1)   rotate(0deg);   filter: drop-shadow(0 0 4px rgba(250,204,21,0.5));  }
  82%            { transform: scale(1.5) rotate(-15deg); filter: drop-shadow(0 0 14px rgba(250,204,21,1));   }
  88%            { transform: scale(0.9) rotate(10deg);  filter: drop-shadow(0 0 8px rgba(250,204,21,0.7));  }
}

/* Podium chips */
.podium-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.chip-gold {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.12);
}

.chip-silver {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.12);
}

.chip-bronze {
  background: rgba(184, 115, 51, 0.1);
  border: 1px solid rgba(184, 115, 51, 0.4);
  color: #f4a261;
  box-shadow: 0 0 10px rgba(184, 115, 51, 0.12);
}

/* ============================================================
   TROPHY CARDS  (Achievements section)
   ============================================================ */

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}

.trophy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem 1.75rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(48px);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  cursor: default;
  isolation: isolate;
}

.trophy-card:hover {
  transform: translateY(-8px);
}

/* ── Rank-coloured top accent bar ── */
.trophy-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}
.rank-silver .trophy-top-bar {
  background: linear-gradient(90deg, transparent 0%, #94a3b8 30%, #f1f5f9 55%, #94a3b8 80%, transparent 100%);
  animation: trophy-bar-slide 3.5s ease-in-out infinite;
}
.rank-bronze .trophy-top-bar {
  background: linear-gradient(90deg, transparent 0%, #b87333 30%, #f4a261 55%, #b87333 80%, transparent 100%);
  animation: trophy-bar-slide 3.5s ease-in-out infinite;
}
@keyframes trophy-bar-slide {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── Corner ambient glow ── */
.trophy-corner-glow {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}
.rank-silver .trophy-corner-glow {
  background: radial-gradient(circle, #cbd5e1 0%, transparent 70%);
}
.rank-bronze .trophy-corner-glow {
  background: radial-gradient(circle, #f4a261 0%, transparent 70%);
}
.trophy-card:hover .trophy-corner-glow {
  opacity: 0.28;
  transition: opacity 0.4s ease;
}

/* ── Shimmer sweep on hover ── */
.trophy-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 65%
  );
  transform: translateX(-110%);
  pointer-events: none;
  z-index: 1;
}
.trophy-card:hover .trophy-shimmer {
  transform: translateX(110%);
  transition: transform 0.6s ease;
}

/* ── Big rank number ── */
.trophy-rank-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.05rem;
  margin-bottom: 0.4rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.trophy-rank-num {
  font-size: 5.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-silver .trophy-rank-num {
  background-image: linear-gradient(160deg, #f8fafc 10%, #94a3b8 45%, #e2e8f0 75%, #64748b 100%);
  filter: drop-shadow(0 0 18px rgba(148, 163, 184, 0.55));
}
.rank-bronze .trophy-rank-num {
  background-image: linear-gradient(160deg, #fde8c8 10%, #b87333 45%, #f4a261 75%, #92400e 100%);
  filter: drop-shadow(0 0 18px rgba(184, 115, 51, 0.55));
}
.trophy-rank-suffix {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

/* ── Medal emoji ── */
.trophy-medal {
  font-size: 2.4rem;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
  position: relative;
  z-index: 2;
  animation: trophy-float 3.2s ease-in-out infinite;
}
@keyframes trophy-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-5px); }
}

/* ── Text elements ── */
.trophy-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 2;
}
.trophy-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.rank-silver .trophy-category { color: #94a3b8; }
.rank-bronze .trophy-category { color: #b87333; }

.trophy-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

/* ── Tag row ── */
.trophy-tag-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.trophy-tag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

/* ── Hover border glow ── */
.rank-silver.trophy-card:hover {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.035);
}
.rank-bronze.trophy-card:hover {
  border-color: rgba(184, 115, 51, 0.45);
  background: rgba(184, 115, 51, 0.035);
}

/* ============================================================
   PROJECTS
   ============================================================ */

/* Filter bar */
.projects-filters {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.38rem 1.1rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover:not(.active) {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--cyan);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(139,92,246,0.12));
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--cyan);
}

/* Orbit scene */
.projects-wrap {
  position: relative;
}

.orbit-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: visible;
  /* 3-D perspective so the oval tilted-plane illusion reads clearly */
  perspective: 1200px;
}

/* Decorative ring tracks — oval to match the ellipse */
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orbit-track-outer {
  /* width × 0.59 = height  →  same aspect as RX_FRAC/RY_FRAC (0.44/0.26 ≈ 1.69) */
  width:  580px;
  height: 220px;
  border: 1px dashed rgba(139, 92, 246, 0.18);
  transform: translate(-50%, -50%);
  animation: orbit-track-spin 80s linear infinite;
}

.orbit-track-inner {
  width:  140px;
  height: 54px;
  border: 1px solid rgba(6, 182, 212, 0.13);
  transform: translate(-50%, -50%);
}

@keyframes orbit-track-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Faint shadow ellipse on the "floor" for extra depth */
.orbit-stage::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

/* Center hub */
.orbit-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.orbit-hub-pulse {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: 50%;
  animation: hub-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.orbit-hub-pulse--2 {
  animation-delay: 1.3s;
}

@keyframes hub-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0;   }
}

.orbit-hub-glyph {
  font-size: 1.4rem;
  color: var(--cyan);
  line-height: 1;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Cards */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  width: 188px;
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  will-change: left, top, opacity;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

/* Hide description in orbit — full text shown in detail panel */
.orbit-stage .project-desc {
  display: none;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover::before { transform: scaleX(1); }

.project-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.14), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.project-metric {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.metric-gold {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.08);
}

.metric-cyan {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.06);
}

.metric-purple {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
}

.metric-dim {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

.project-event {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.project-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-tag {
  padding: 0.15rem 0.55rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #a78bfa;
  letter-spacing: 0.04em;
}

/* Orbit detail panel */
.orbit-panel {
  display: none;
  overflow: hidden;
  margin-top: 2.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  position: relative;
}

.orbit-panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.orbit-panel-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.op-meta  { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.op-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.op-desc  { font-size: 0.92rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 1.25rem; }
.op-tags  { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.radar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.radar-wrap svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  overflow: visible;
}

.skills-tags {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(6, 182, 212, 0.2);
}

.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: all 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

/* ============================================================
   ASSOCIATIONS
   ============================================================ */
.assoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.assoc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.assoc-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.assoc-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}

.assoc-card:hover::before {
  transform: scaleX(1);
}

.assoc-org {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.assoc-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.assoc-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.cert-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.03);
  transform: translateY(-2px);
}

.cert-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.cert-name {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  font-weight: 400;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.02), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Signal Form ───────────────────────────────────── */
.signal-form {
  margin-bottom: 2rem;
}

.signal-field {
  margin-bottom: 1.75rem;
}

.signal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  opacity: 0.8;
}

.signal-input-wrap {
  position: relative;
}

.signal-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 0.6rem 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}

.signal-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.signal-input:focus {
  border-bottom-color: transparent;
}

/* Animated scan-line that sweeps L→R on focus */
.signal-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.signal-input:focus + .signal-bar {
  width: 100%;
}

.signal-textarea {
  min-height: 96px;
  line-height: 1.7;
}

/* Submit row */
.signal-send-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.signal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  overflow: visible;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.signal-btn:hover {
  background: rgba(6, 182, 212, 0.07);
  border-color: var(--cyan);
}

.signal-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.signal-btn:hover .signal-arrow {
  transform: translateX(4px);
}

/* Pulse rings — positioned absolute, animated by JS */
.pulse-ring {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
}

.signal-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #4ade80;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.contact-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.12);
}

/* ── World Map ────────────────────────────────────── */
.map-wrap {
  position: sticky;
  top: 7rem;
}

.map-frame {
  background: linear-gradient(160deg, #030a1a 0%, #040412 60%, #060620 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1),
    0 24px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 120px rgba(6, 182, 212, 0.06),
    0 0 40px rgba(6, 182, 212, 0.04);
}

#world-map {
  width: 100%;
  height: auto;
  display: block;
  padding: 1.25rem;
  box-sizing: border-box;
}

.graticule line {
  display: none;
}

/* Scan line */
.map-scan {
  stroke: rgba(6, 182, 212, 0.28);
  stroke-width: 1.5;
}

.landmass path {
  fill:         rgba(30, 70, 130, 0.55);
  stroke:       rgba(80, 160, 230, 0.65);
  stroke-width: 0.8;
  stroke-linejoin: round;
  stroke-linecap:  round;
  transition: fill 0.3s;
}
.landmass path:hover {
  fill: rgba(40, 90, 160, 0.75);
}

/* Tunisia dot */
.tn-dot {
  fill: #22d3ee;
  filter: drop-shadow(0 0 6px #06b6d4) drop-shadow(0 0 14px #06b6d4);
}

/* Expanding pulse rings */
.tn-ring {
  fill: none;
  stroke: #06b6d4;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: tn-pulse 2.8s ease-out infinite;
}

.tn-ring-2 {
  animation-delay: 1.4s;
}

@keyframes tn-pulse {
  0%   { transform: scale(1);  opacity: 0.9; }
  100% { transform: scale(7);  opacity: 0;   }
}

.tn-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  fill: #67e8f9;
  font-weight: 700;
  letter-spacing: 0.16em;
  paint-order: stroke;
  stroke: rgba(3, 10, 26, 0.95);
  stroke-width: 4px;
  text-shadow: 0 0 8px #06b6d4;
}

.tn-tick {
  stroke: rgba(6, 182, 212, 0.7);
  stroke-width: 1.2;
}

.map-coords {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem 0.9rem;
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  background: rgba(6, 182, 212, 0.03);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.map-coords-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--cyan);
  animation: coords-blink 2s ease-in-out infinite;
}

@keyframes coords-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

/* ============================================================
   SCROLL REVEAL CLASSES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .trophy-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .skills-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .map-wrap {
    position: static;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .section-inner {
    padding: 5rem 1.25rem;
  }

  /* Orbit → vertical list on mobile */
  .orbit-stage {
    min-height: unset;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .orbit-stage .project-card {
    position: static !important;
    left:    auto   !important;
    top:     auto   !important;
    transform: none !important;
    width:   100%   !important;
    opacity: 1      !important;
  }

  .orbit-stage .project-desc { display: block; }
  .orbit-track, .orbit-hub   { display: none; }
  .orbit-panel { margin-top: 1rem; }

  .skills-grid,
  .assoc-grid,
  .certs-grid {
    grid-template-columns: 1fr;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }
}
