/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg: #060608;
  --surface: #0c0c12;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e8e8f0;
  --muted: #606070;
  --muted2: #2e2e3a;
  --accent: #7cffb2;
  --blue: #00d4ff;
  --pink: #ff7aff;
  --gold: #f5c77a;
  --orange: #ff9f3c;

  --glow-green: rgba(124, 255, 178, 0.18);
  --glow-blue: rgba(0, 212, 255, 0.15);
  --glow-pink: rgba(255, 122, 255, 0.18);
  --glow-gold: rgba(245, 199, 122, 0.18);
  --glow-orange: rgba(255, 159, 60, 0.18);

  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--pink));
  z-index: 10001;
  transition: width 0.08s linear;
}

/* =============================================
   AURORA BACKGROUND
   ============================================= */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.aurora-blob.a1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 255, 178, 0.07), transparent 70%);
  top: -200px;
  left: -150px;
  animation: blob1 22s infinite alternate ease-in-out;
}

.aurora-blob.a2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07), transparent 70%);
  top: 35%;
  right: -100px;
  animation: blob2 28s infinite alternate ease-in-out;
}

.aurora-blob.a3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 122, 255, 0.055), transparent 70%);
  bottom: 5%;
  left: 25%;
  animation: blob3 19s infinite alternate ease-in-out;
}

@keyframes blob1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, 60px) scale(1.1);
  }

  100% {
    transform: translate(-40px, 100px) scale(0.9);
  }
}

@keyframes blob2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-70px, 40px) scale(1.15);
  }

  100% {
    transform: translate(50px, -80px) scale(0.95);
  }
}

@keyframes blob3 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, -50px) scale(1.1);
  }

  100% {
    transform: translate(-80px, 30px) scale(0.9);
  }
}

/* =============================================
   PARTICLE CANVAS
   ============================================= */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  position: fixed;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(124, 255, 178, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 6%;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color 0.25s;
  position: relative;
}

.nav-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.6;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: right 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  right: 0;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 6% 100px;
  isolation: isolate;
}

/* Dot-grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Green glow core */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 255, 178, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border: 1px solid rgba(124, 255, 178, 0.25);
  border-radius: 20px;
  font-size: 0.73rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  background: rgba(124, 255, 178, 0.04);
  animation: fadeDown 0.7s ease both;
  position: relative;
  overflow: hidden;
}

/* Badge shimmer */
.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 255, 178, 0.12), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.5);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(124, 255, 178, 0);
  }
}

/* GLITCH H1 with gradient */
.glitch {
  position: relative;
  font-size: clamp(3.8rem, 10.5vw, 7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 22px;
  animation: fadeDown 0.7s 0.1s ease both;
  background: linear-gradient(140deg, #fff 0%, var(--accent) 45%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-text-fill-color: unset;
  background: none;
}

.glitch::before {
  color: rgba(255, 0, 255, 0.55);
  animation: glitch1 4s infinite;
  clip-path: inset(0 0 90% 0);
}

.glitch::after {
  color: rgba(0, 255, 255, 0.55);
  animation: glitch2 3s infinite;
  clip-path: inset(80% 0 5% 0);
}

@keyframes glitch1 {

  0%,
  93%,
  100% {
    transform: translate(0);
    clip-path: inset(0 0 90% 0);
  }

  94% {
    transform: translate(-4px, 1px);
    clip-path: inset(15% 0 65% 0);
  }

  96% {
    transform: translate(4px, -1px);
    clip-path: inset(55% 0 25% 0);
  }
}

@keyframes glitch2 {

  0%,
  91%,
  100% {
    transform: translate(0);
    clip-path: inset(80% 0 5% 0);
  }

  92% {
    transform: translate(4px, 2px);
    clip-path: inset(65% 0 18% 0);
  }

  95% {
    transform: translate(-4px, -2px);
    clip-path: inset(8% 0 78% 0);
  }
}

.subtitle {
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  color: var(--muted);
  letter-spacing: 0.2px;
  animation: fadeDown 0.7s 0.2s ease both;
  margin-bottom: 12px;
}

.tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(232, 232, 240, 0.6);
  animation: fadeDown 0.7s 0.3s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.7s 0.4s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  background: #5dffa0;
  box-shadow: 0 0 40px rgba(124, 255, 178, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 13px 26px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  border-color: rgba(124, 255, 178, 0.4);
  color: var(--accent);
  box-shadow: 0 0 30px var(--glow-green);
  transform: translateY(-2px);
}

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.35;
  animation: fadeDown 1s 1.2s ease both;
}

.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* =============================================
   SECTIONS GENERAL
   ============================================= */
.section {
  position: relative;
  z-index: 1;
  padding: 110px 10%;
}

/* Section eyebrow label — has number + line + text */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.eyebrow-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 1px;
  opacity: 0.8;
}

.eyebrow-line {
  flex: none;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-eyebrow>span:last-child {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 1px;
}

.section h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 30%, rgba(232, 232, 240, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 52px;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   PROFILE TERMINAL
   ============================================= */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-terminal {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(0, 255, 153, 0.12);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(124, 255, 178, 0.04),
    0 0 80px rgba(0, 255, 100, 0.07),
    0 24px 80px rgba(0, 0, 0, 0.6);
  font-family: var(--mono);
  color: #00ff99;
  overflow: visible;
  margin-top: 200px;
}

/* Scan-line effect */
.scanline {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.06) 3px,
      rgba(0, 0, 0, 0.06) 4px);
  pointer-events: none;
  z-index: 6;
}

.terminal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 16, 0.95);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 7;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
  box-shadow: 0 0 6px rgba(255, 95, 86, 0.4);
}

.dot.yellow {
  background: #ffbd2e;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.4);
}

.dot.green {
  background: #27c93f;
  box-shadow: 0 0 6px rgba(39, 201, 63, 0.4);
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: #444;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: #27c93f;
}

.status-dot {
  width: 5px;
  height: 5px;
  background: #27c93f;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.terminal-avatar {
  position: absolute;
  top: -252px;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 -8px 40px rgba(124, 255, 178, 0.1));
}

.profile-terminal pre {
  margin: 0;
  padding: 52px 28px 28px;
  line-height: 1.75;
  white-space: pre-wrap;
  font-size: 0.88rem;
  height: 360px;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

/* Blinking cursor */
.cursor-blink {
  display: inline-block;
  color: #00ff99;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */
.exp-block {
  margin-bottom: 60px;
}

.exp-block-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.exp-block-icon {
  font-size: 1.4rem;
  margin-top: 2px;
}

.exp-block-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.exp-block-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.exp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.exp-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(14, 14, 22, 0.9), rgba(8, 8, 16, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
  /* 3D tilt via JS — needs transform-style */
  transform-style: preserve-3d;
}

/* Shine reflection for tilt effect */
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  mix-blend-mode: screen;
}

.exp-card:hover .card-shine,
.case-card:hover .card-shine {
  opacity: 1;
}

/* Left accent bar */
.exp-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.exp-card:hover::before {
  opacity: 1;
}

.exp-card:not(.mod):not(.og):not(.orange):not(.blue):hover {
  border-color: rgba(124, 255, 178, 0.3);
  box-shadow: 0 8px 30px rgba(124, 255, 178, 0.08);
}

/* MOD */
.exp-card.mod {
  border-color: rgba(245, 199, 122, 0.18);
}

.exp-card.mod::before {
  background: var(--gold);
}

.exp-card.mod:hover {
  border-color: rgba(245, 199, 122, 0.4);
  box-shadow: 0 8px 30px var(--glow-gold);
}

/* OG */
.exp-card.og {
  border-color: rgba(255, 122, 255, 0.18);
}

.exp-card.og::before {
  background: var(--pink);
}

.exp-card.og:hover {
  border-color: rgba(255, 122, 255, 0.4);
  box-shadow: 0 8px 30px var(--glow-pink);
}

/* Orange */
.exp-card.orange {
  border-color: rgba(255, 159, 60, 0.18);
}

.exp-card.orange::before {
  background: var(--orange);
}

.exp-card.orange:hover {
  border-color: rgba(255, 159, 60, 0.4);
  box-shadow: 0 8px 30px var(--glow-orange);
}

/* Blue */
.exp-card.blue {
  border-color: rgba(0, 212, 255, 0.18);
}

.exp-card.blue::before {
  background: var(--blue);
}

.exp-card.blue:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 8px 30px var(--glow-blue);
}

.exp-card-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.exp-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-card-info {
  flex: 1;
  min-width: 0;
}

.exp-card-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.exp-card-info p {
  font-size: 0.76rem;
  color: var(--muted);
}

.exp-badge {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.exp-badge.mod-badge {
  border-color: rgba(245, 199, 122, 0.45);
  color: var(--gold);
}

.exp-badge.og-badge {
  border-color: rgba(255, 122, 255, 0.45);
  color: var(--pink);
}

.exp-badge.orange-badge {
  border-color: rgba(255, 159, 60, 0.5);
  color: var(--orange);
}

.exp-badge.blue-badge {
  border-color: rgba(0, 212, 255, 0.45);
  color: var(--blue);
}

/* =============================================
   TOP CASES
   ============================================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(12, 12, 18, 0.9);
  transition: transform 0.15s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  transform-style: preserve-3d;
  position: relative;
}

.case-card:hover {
  border-color: rgba(124, 255, 178, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 255, 178, 0.06);
}

.case-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.case-card:hover .case-img {
  transform: scale(1.05);
  filter: brightness(0.28) saturate(0.6);
}

.case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: linear-gradient(to top, rgba(6, 6, 8, 0.9) 0%, rgba(6, 6, 8, 0.3) 100%);
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.case-overlay-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.6;
  max-width: 240px;
}

.case-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.case-btn:hover {
  background: #5dffa0;
  box-shadow: 0 0 28px var(--glow-green);
  transform: translateY(-2px);
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.case-footer h3 {
  font-size: 0.92rem;
  font-weight: 600;
}

.case-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid rgba(124, 255, 178, 0.22);
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  text-align: center;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

.contact-sub {
  color: var(--muted);
  font-size: .9rem;
  margin: 10px 0 44px;
}

.x-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(14, 14, 22, 0.8), rgba(8, 8, 16, 0.8));
  color: var(--text);
  transition: all 0.3s var(--ease);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.x-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 255, 178, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.x-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--blue), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.x-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.x-link:hover::before {
  opacity: 1;
}

.x-link:hover::after {
  opacity: 1;
}

.x-icon {
  position: relative;
  font-size: 1.3rem;
  color: var(--accent);
  transition: color 0.3s;
}

.x-link:hover .x-icon {
  color: #fff;
}

.x-text {
  position: relative;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.x-ping {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.x-ping::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: ping 2s infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: .7;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 5% 44px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer a {
  color: var(--muted);
  transition: color .25s;
}

.footer a:hover {
  color: var(--accent);
}

.footer-sep {
  opacity: 0.4;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* Nav */
  .nav {
    padding: 0 5%;
  }

  .nav-inner {
    justify-content: center;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-num {
    display: none;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    padding: 80px 5% 80px;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .glitch {
    font-size: clamp(3rem, 12vw, 4.5rem);
    letter-spacing: -2px;
  }

  .subtitle {
    font-size: 0.78rem;
    /* Break the middle dots to separate lines */
    line-height: 1.9;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
    padding: 13px 24px;
  }

  /* Sections */
  .section {
    padding: 72px 5%;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  /* Profile terminal — show avatar smaller, stacked above */
  .profile-terminal {
    margin-top: 110px;
  }

  .terminal-avatar {
    width: 220px;
    top: -110px;
  }

  .profile-terminal pre {
    padding: 48px 18px 20px;
    font-size: 0.82rem;
    height: 400px;
    line-height: 1.7;
  }

  /* Experience cards — 2 per row on tablet */
  .exp-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cases — 1 per row */
  .cases-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .x-link {
    padding: 16px 28px;
  }

  /* Aurora — less heavy blur */
  .aurora-blob {
    filter: blur(70px);
  }

  .aurora-blob.a1 {
    width: 400px;
    height: 400px;
  }

  .aurora-blob.a2 {
    width: 350px;
    height: 350px;
  }

  .aurora-blob.a3 {
    width: 280px;
    height: 280px;
  }

  /* Cursor is fine on tablets with pointer */
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {

  /* Disable cursor (touch screens) */
  .cursor,
  .cursor-follower {
    display: none;
  }

  /* Nav — compact */
  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  /* Hero */
  .hero {
    padding: 70px 5% 70px;
    min-height: 100svh;
  }

  .glitch {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
    letter-spacing: -1.5px;
  }

  .subtitle {
    font-size: 0.72rem;
    /* show as vertical stack */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
  }

  /* Hide text separators on small screen */
  .subtitle>*:not(:first-child)::before {
    content: '·';
    margin-right: 6px;
    opacity: 0.4;
  }

  .tagline {
    font-size: 0.85rem;
    opacity: 0.6;
  }

  .scroll-hint {
    display: none;
  }

  /* Hero grid dots — lighter on mobile */
  .hero-grid-overlay {
    opacity: 0.6;
  }

  /* Terminal */
  .profile-terminal {
    margin-top: 90px;
    border-radius: 10px;
  }

  .terminal-avatar {
    width: 180px;
    top: -90px;
  }

  .profile-terminal pre {
    padding: 44px 14px 16px;
    font-size: 0.78rem;
    height: 420px;
    line-height: 1.65;
  }

  /* Experience — single column */
  .exp-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .exp-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .exp-card-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .exp-card-info h4 {
    font-size: 0.88rem;
  }

  .exp-block-title {
    font-size: 1rem;
  }

  /* Cases */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-overlay {
    padding: 16px;
  }

  .case-overlay-desc {
    font-size: 0.76rem;
  }

  .case-btn {
    padding: 8px 18px;
    font-size: 0.76rem;
  }

  .case-footer {
    padding: 12px 16px;
  }

  .case-footer h3 {
    font-size: 0.85rem;
  }

  /* Sections */
  .section {
    padding: 60px 5%;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .section-sub {
    font-size: 0.82rem;
    margin-bottom: 36px;
  }

  /* Section eyebrow */
  .eyebrow-line {
    width: 20px;
  }

  /* Contact */
  .x-link {
    padding: 16px 24px;
    gap: 10px;
  }

  .x-text {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    font-size: 0.72rem;
    gap: 8px;
  }

  /* Aurora — minimal on mobile */
  .aurora-blob {
    filter: blur(50px);
    opacity: 0.7;
  }

  .aurora-blob.a1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
  }

  .aurora-blob.a2 {
    width: 250px;
    height: 250px;
  }

  .aurora-blob.a3 {
    width: 200px;
    height: 200px;
  }

  /* Disable 3D tilt on touch (no hover) */
  .tilt-card {
    transform: none !important;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 380px)
   ============================================= */
@media (max-width: 380px) {
  .glitch {
    font-size: 2.6rem;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-link {
    font-size: 0.7rem;
  }

  .terminal-avatar {
    width: 160px;
    top: -80px;
  }

  .profile-terminal {
    margin-top: 76px;
  }

  .profile-terminal pre {
    font-size: 0.72rem;
    height: 440px;
  }

  .btn-primary,
  .btn-secondary {
    max-width: 100%;
  }

  .exp-card-logo {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }
}