/* ===== TOKENS & DESIGN SYSTEM — Tron Legacy × Tron Ares ===== */
:root {
  /* Font Tokens */
  --font-sans:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Backgrounds — Tron black with faint blue tint */
  --bg:           #020408;
  --bg2:          #050b12;
  --bg3:          #0a1520;
  --bg-card:      rgba(0, 200, 255, 0.03);
  --bg-card-hov:  rgba(0, 200, 255, 0.07);

  /* Text — cool white with cyan tint */
  --text:         #d0eeff;
  --muted:        #2a6080;
  --muted2:       #112030;

  /* Brand — Tron cyan + amber */
  --purple:       #00C8FF;   /* Tron cyan — primary accent */
  --purple-dim:   rgba(0, 200, 255, 0.12);
  --gold:         #FF8C00;   /* Tron amber — warm contrast */
  --gold-dim:     rgba(255, 140, 0, 0.12);
  --cyan:         #00E5FF;   /* Bright cyan highlight */
  --green:        #00FFCC;   /* Teal secondary */
  --red:          #FF3300;   /* Dillinger Grid red */

  /* Borders */
  --border:       rgba(0, 200, 255, 0.15);
  --border-hov:   rgba(0, 200, 255, 0.32);

  /* Radius */
  --radius:       8px;
  --radius-sm:    6px;
  --radius-xs:    4px;

  /* Sizing */
  --hdr-h:        68px;
  --max-w:        1200px;

  /* Gradients */
  --grad-brand:   linear-gradient(95deg, #00C8FF, #00E5FF);
  --grad-text:    linear-gradient(135deg, #00C8FF 0%, #00E5FF 60%, #ffffff 100%);
  --grad-glow:    radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(0, 200, 255, 0.07), transparent 70%);
}

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

html {
  scroll-behavior: auto; /* lenis handles smooth scrolling */
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Tron scanline overlay — very subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* Scanlines overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 200, 255,0.015) 3px,
    rgba(0, 200, 255,0.015) 4px
  );
  pointer-events: none;
  z-index: 9990;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.c-purple { color: var(--purple); }
.c-gold { color: var(--gold); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CURSOR ===== */
#cursor-dot, #cursor-ring, #cursor-glow {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  transition: border-color 0.2s, background-color 0.2s;
  transform-origin: center;
}

#cursor-glow {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 200, 255,0.16) 0%, transparent 70%);
  filter: blur(8px);
  opacity: 0.6;
}

@media (hover: none) {
  #cursor-dot, #cursor-ring, #cursor-glow { display: none; }
}

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--grad-brand);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 99998;
  box-shadow: 0 0 8px rgba(0, 200, 255,0.45), 0 0 24px rgba(0, 200, 255,0.22);
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.curtain-top, .curtain-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--bg);
  z-index: 1;
}

.curtain-top {
  top: 0;
  border-bottom: 1px solid rgba(0, 200, 255,0.06);
}

.curtain-bottom {
  bottom: 0;
  border-top: 1px solid rgba(0, 200, 255,0.06);
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 2;
}

.preloader-logo {
  font-size: 3.2rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -2px;
  color: #fff;
}

.preloader-logo span.dot { color: var(--gold); }

.preloader-counter {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: 0.05em;
}

.counter-pct {
  color: var(--muted);
  margin-left: 1px;
}

#counter-num { color: var(--gold); }

.preloader-bar {
  width: 220px; height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: 2px;
  transition: none;
}

.preloader-logo .letter {
  display: inline-block;
  transform-origin: bottom;
}

.preloader-logo .dot {
  display: inline-block;
  transform-origin: center;
}

/* ===== HEADER ===== */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 3rem;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
  background: rgba(5, 5, 5, 0.98);
  border-bottom-color: rgba(0, 200, 255,0.18);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 200, 255,0.04);
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -1px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-link:hover { color: var(--text); }

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--gold);
}

.btn-nav {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.35rem;
  border: 1px solid rgba(0, 200, 255,0.3);
  border-radius: var(--radius-xs);
  color: var(--gold);
  transition: all 0.25s;
}

.btn-nav:hover {
  background: rgba(0, 200, 255,0.1);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(0, 200, 255,0.25);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .main-header { padding-inline: 1.5rem; }
  .hamburger { display: flex; }
}

/* ===== BACKGROUND BLOBS & SPOTLIGHT ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.blob-1 { width: 500px; height: 500px; background: #00C8FF; top: -12%; left: -8%; opacity: 0.06; }
.blob-2 { width: 450px; height: 450px; background: #00C8FF; bottom: 5%; right: -8%; opacity: 0.05; }
.blob-3 { width: 380px; height: 380px; background: #1a3300; top: 40%; left: 35%; opacity: 0.10; }

.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    700px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 200, 255,0.06) 0%,
    rgba(0, 200, 255,0.03) 40%,
    transparent 70%
  );
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-brand);
  color: #0a0a0a;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0s;
}

.btn-primary:hover::after {
  transform: translateX(100%);
  transition: transform 0.65s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 200, 255,0.22), 0 0 40px rgba(0, 200, 255,0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 200, 255,0.12), rgba(0, 200, 255,0.12));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline:hover {
  color: var(--gold);
  border-color: rgba(0, 200, 255,0.45);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 200, 255,0.2);
}

.btn-outline span, .btn-outline i {
  position: relative;
  z-index: 1;
}

.btn-accent {
  background: var(--grad-brand);
  color: #050d1a;
  padding: 0.55rem 1.35rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
  border-radius: var(--radius-xs);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 200, 255,0.35), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn--full {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-xs);
}

/* ===== GLASS CARDS ===== */
.glass-card {
  background: rgba(5, 11, 18, 0.52);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  border-color: rgba(0, 200, 255,0.28);
  background: rgba(0, 200, 255,0.04);
  box-shadow: 0 0 24px rgba(0, 200, 255,0.07), inset 0 0 24px rgba(0, 200, 255,0.03);
}

.glass-card--sm {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.6rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.glass-card--sm .sep { color: var(--muted2); }

.glass-card--icon {
  padding: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ===== SECTION BASE ===== */
.section {
  padding-block: 8rem;
  position: relative;
  overflow: hidden;
}

.section--alt {
  background: var(--bg2);
  background-image:
    linear-gradient(rgba(0, 200, 255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(0, 200, 255,0.28);
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  box-shadow: 0 0 10px rgba(0, 200, 255,0.1);
}

.sec-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-top: 1rem;
}

.sec-header {
  text-align: center;
  margin-bottom: 3.8rem;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--hdr-h);
  position: relative;
  overflow: hidden;
}

/* Tron perspective grid floor */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: -20%; right: -20%;
  height: 45%;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(500px) rotateX(65deg);
  transform-origin: bottom center;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-inline: 1.5rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  min-height: 1.5rem;
}

.hero-title {
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: visible;
  perspective: 1000px;
  white-space: nowrap;
}

.split-text { display: inline-block; }

.hero-sub {
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 2.8rem;
  max-width: 620px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 200, 255,0.18);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--gold);
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(0, 200, 255,0.08);
}

.hero-float-badge i { color: var(--gold); font-size: 0.9rem; }
.badge-1 { top: 24%; left: 8%; }
.badge-2 { top: 32%; right: 7%; }
.badge-3 { bottom: 28%; left: 12%; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mouse-icon {
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  margin-inline: auto;
}

.mouse-wheel {
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

.scroll-hint-text {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--muted2);
  margin-top: 8px;
  display: block;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-cursor {
  display: inline-block;
  width: 2px;
  color: var(--gold);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 768px) {
  .hero-float-badge { display: none; }
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.body-text {
  font-size: 1.08rem;
  line-height: 1.8;
}

.stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-num {
  font-size: 2.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
}

.stat-plus {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Avatar Card */
.avatar-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.avatar-img-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-img {
  width: 72px; height: 108px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 13px;
  background: var(--grad-brand);
  z-index: -1;
  animation: ring-spin 6s linear infinite;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg2);
}

.avatar-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avatar-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.avatar-role {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--muted);
}

.avatar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
  margin-top: 4px;
}

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

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-header i {
  font-size: 2.5rem;
}

.quote-header h4 {
  font-size: 1.1rem;
  margin: 0;
}

.quote-text {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-style: italic;
}

/* ===== HORIZONTAL SCROLL SECTION ===== */
/* ===== SKILLS HUD ===== */
.skills-hud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hud-panel,
.hud-certs {
  background: rgba(5, 11, 18, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.hud-panel-bar {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--grad-brand);
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 8px rgba(0, 200, 255,0.28);
}

.hud-panel-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  display: block;
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.certs-notable {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.certs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.cert-img-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.cert-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.cert-img-link:hover .cert-img {
  transform: scale(1.05);
}

.cert-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

.cert-img-link:hover .cert-img-overlay {
  opacity: 1;
}

/* Cert lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cert-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.cert-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.cert-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: min(90vw, 960px);
}

.cert-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 200, 255,0.12);
  transform: scale(0.92);
  transition: transform 0.25s ease;
  display: block;
}

.cert-lightbox.is-open .cert-lightbox-img {
  transform: scale(1);
}

.cert-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.25rem;
  gap: 1rem;
}

.cert-lightbox-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex: 1;
}

.cert-lightbox-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border: 1px solid rgba(0, 200, 255,0.3);
  border-radius: var(--radius-xs);
  padding: 0.4rem 0.85rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.cert-lightbox-verify:hover {
  background: rgba(0, 200, 255,0.1);
  border-color: rgba(0, 200, 255,0.5);
}

.cert-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(0, 200, 255,0.12);
  border: 1px solid rgba(0, 200, 255,0.25);
  color: var(--green);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cert-lightbox-close:hover {
  background: rgba(0, 200, 255,0.22);
  transform: rotate(90deg);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(0, 200, 255,0.02);
  border: 1px solid rgba(0, 200, 255,0.08);
  border-radius: var(--radius-sm);
  position: relative;
  clip-path: inset(0 0% 0 0 round 6px);
  transition: border-color 0.25s, background 0.25s;
}

.skill-card:hover {
  border-color: rgba(0, 200, 255,0.22);
  background: rgba(0, 200, 255,0.05);
}

.skill-icon {
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.skill-meta { flex: 1; }

.skill-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.skill-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 2px 0 0;
  font-family: var(--font-mono);
}

.skill-bar-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(0, 200, 255,0.06);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: visible;
}

.skill-bar {
  height: 100%; width: 0%;
  background: var(--grad-brand);
  border-radius: inherit;
  position: relative;
  box-shadow: 0 0 6px rgba(0, 200, 255,0.28);
}

.skill-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(0, 200, 255,0.02);
  border: 1px solid rgba(0, 200, 255,0.08);
  border-radius: var(--radius-sm);
  clip-path: inset(0 0% 0 0 round 6px);
  transition: border-color 0.25s, background 0.25s;
}

.cert-card:hover {
  border-color: rgba(0, 200, 255,0.2);
  background: rgba(0, 200, 255,0.04);
}

.cert-card i {
  font-size: 1.6rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===== GITHUB REPOS ===== */
.repos-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  width: fit-content;
  margin-inline: auto;
}

.repos-stat-item {
  text-align: center;
  padding: 0 1.5rem;
}

.repos-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--gold);
}

.repos-stat-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.repos-stat-sep {
  width: 1px; height: 40px;
  background: var(--border);
}

.repos-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.8rem;
}

.filter-btn {
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 200, 255,0.15);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-dim);
  border-color: rgba(0, 200, 255,0.22);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(0, 200, 255,0.15);
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.repos-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem;
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.repo-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: rgba(5, 11, 18, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(0, 200, 255, 0.07);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  color: var(--text);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.repo-card:hover {
  border-color: rgba(0, 200, 255, 0.38);
  background: rgba(5, 11, 18, 0.70);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 200, 255, 0.22), inset 0 1px 0 rgba(0, 200, 255, 0.12);
}

.repo-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.repo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.45s ease;
}

.repo-card:hover .repo-thumb img {
  transform: scale(1.06);
}

.repo-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.repo-thumb--placeholder {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--lang-color, #00C8FF) 18%, #020408) 0%,
    #020408 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--lang-color, #00C8FF) 25%, transparent);
}

.repo-card-top {
  padding: 1.25rem 1.5rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.repo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.repo-icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.repo-ext-icon {
  font-size: 0.85rem;
  color: var(--muted2);
  transition: color 0.2s, transform 0.2s;
}

.repo-card:hover .repo-ext-icon {
  color: var(--gold);
  transform: translate(2px, -2px);
}

.repo-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.5rem 1rem;
}

.repo-topic {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(0, 200, 255,0.25);
}

.repo-footer {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.repo-meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.repo-updated {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--muted2);
}

.repo-border-anim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: var(--bg2) padding-box,
              linear-gradient(135deg, var(--purple), var(--gold), var(--purple)) border-box;
  border: 1px solid transparent;
  pointer-events: none;
}

.repo-card:hover .repo-border-anim { opacity: 1; }

.repos-cta { text-align: center; margin-top: 2.8rem; }
.repos-error { grid-column: 1 / -1; text-align: center; padding: 3rem; }

/* ===== SERVICES SECTION ===== */
.svc-group { margin-bottom: 4rem; }

.svc-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.45rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  flex-wrap: wrap;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.svc-card {
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}

.svc-curtain {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  z-index: 10;
  transform-origin: top;
}

.svc-img {
  width: 100%; height: 190px;
  object-fit: cover;
  transition: transform 0.5s;
}

.svc-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.svc-title { font-size: 1.15rem; font-weight: 700; }
.svc-text { font-size: 0.9rem; color: var(--muted); flex: 1; line-height: 1.6; }

/* ===== PROJECTS SECTION (BENTO GRID) ===== */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.bento-large { grid-column: 1; grid-row: 1 / 3; }
.bento-small { grid-column: 2; }
.bento-wide { grid-column: 1 / -1; }

.proj-card {
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.proj-img-wrap {
  position: relative;
  overflow: hidden;
}

.bento-large .proj-img-wrap { height: 350px; }
.bento-small .proj-img-wrap { height: 180px; }
.bento-wide .proj-img-wrap { height: 240px; }

.proj-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.proj-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.proj-tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 10px;
  border: 1px solid rgba(0, 200, 255,0.22);
  border-radius: var(--radius-xs);
  color: var(--gold);
}

.proj-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.proj-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.proj-year {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--muted2);
}

.proj-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.proj-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-link {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  transition: all 0.25s;
}

.contact-link:hover {
  color: var(--gold);
  letter-spacing: 0.02em;
}

.social-row {
  display: flex;
  gap: 0.85rem;
}

.social-btn {
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--muted);
  transition: all 0.25s;
  background: transparent;
  perspective: 1000px;
}

.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.contact-form-card { padding: 2.5rem; }

/* Floating Label Fields */
.float-field {
  position: relative;
  margin-bottom: 1.5rem;
}

.float-field input,
.float-field textarea {
  width: 100%;
  padding: 1.2rem 1.1rem 0.6rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.float-field input:focus,
.float-field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(0, 200, 255,0.15);
}

.float-field label {
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  font-size: 0.9rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.2s ease;
  transform-origin: left;
}

.float-field input:focus ~ label,
.float-field input:not(:placeholder-shown) ~ label,
.float-field textarea:focus ~ label,
.float-field textarea:not(:placeholder-shown) ~ label {
  top: 0.35rem;
  font-size: 0.72rem;
  color: var(--purple);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding-block: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
}

.footer-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: scaleX(0);
  transform-origin: center;
}

/* ===== WORD REVEAL ===== */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word-inner {
  display: inline-block;
}

/* ===== SECTION BACKGROUND IMAGES ===== */

/* Hero: perspective grid floor photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Media/hero-bg.jpg') center/cover no-repeat;
  filter: hue-rotate(60deg) saturate(0.65) brightness(0.28);
  z-index: 0;
  pointer-events: none;
}

/* About: circuit board texture */
#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Media/about-bg.jpg') center/cover no-repeat;
  filter: hue-rotate(60deg) saturate(0.5) brightness(0.15);
  z-index: 0;
  pointer-events: none;
}

/* Skills: HUD panels in the dark */
#skills::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Media/skills-bg.jpg') center/cover no-repeat;
  filter: hue-rotate(60deg) saturate(0.45) brightness(0.18);
  z-index: 0;
  pointer-events: none;
}

/* Repos: floating 3D shapes background */
#repos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Media/projects-bg.jpg') center/cover no-repeat;
  filter: hue-rotate(60deg) saturate(0.45) brightness(0.14);
  z-index: 0;
  pointer-events: none;
}

/* Ensure content sits above bg image pseudo-elements */
#about .container,
#skills .container,
#repos .container,
#contact .container {
  position: relative;
  z-index: 1;
}

/* Disable bg images on mobile (performance) */
@media (max-width: 768px) {
  .hero::before,
  #about::before,
  #skills::before,
  #repos::before { display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .repos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-nav {
    display: none; /* Mobile menu handles this */
  }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .repos-grid { grid-template-columns: 1fr; }
  
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .bento-large, .bento-small, .bento-wide {
    grid-column: 1;
    grid-row: auto;
  }
  
  .bento-large .proj-img-wrap { height: 240px; }

  /* Skills HUD mobile */
  .skills-hud { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .certs-notable { grid-template-columns: 1fr; }
  .certs-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .stats-row { gap: 1.8rem; }
  .section { padding-block: 5rem; }

  /* Tron FX: disable heavy GPU effects on mobile */
  .hero::after { display: none; }
  body::before { display: none; }

  /* Hero title: allow wrapping, smaller size */
  .hero-title { white-space: normal !important; }
  .hero-title .split-text { font-size: clamp(2rem, 9vw, 3.2rem); }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .svc-grid { grid-template-columns: 1fr; }
  .repos-stats-bar { padding: 1rem; }
  .repos-stat-item { padding: 0 0.75rem; }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  border: none;
  color: #0a0a0a;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  z-index: 998;
  box-shadow: 0 0 16px rgba(0, 200, 255,0.3);
  transition: box-shadow 0.25s, transform 0.2s;
}
.scroll-top:hover {
  box-shadow: 0 0 28px rgba(0, 200, 255,0.3);
  transform: scale(1.05);
}
.scroll-top:active {
  transform: scale(0.95);
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mouse-wheel,
  .anim-right,
  .status-dot,
  .avatar-ring,
  .eyebrow-cursor {
    animation: none !important;
  }
  .blob { display: none; }
}
