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

:root {
  /* Pure black & white + electric chartreuse */
  --bg:           #000000;
  --bg-2:         #000000;
  --surface:      #050505;
  --surface-2:    #0a0a0a;
  --line:         rgba(255,255,255,0.12);
  --line-strong:  rgba(255,255,255,0.24);
  --text:         #ffffff;
  --text-soft:    #ffffff;
  --muted:        rgba(255,255,255,0.66);
  --muted-2:      rgba(255,255,255,0.36);

  /* Accent — pure chartreuse */
  --accent:       #7FFF00;
  --accent-soft:  rgba(127,255,0,0.14);
  --accent-line:  rgba(127,255,0,0.4);
  --accent-glow:  rgba(127,255,0,0.45);

  /* Card surface — flat with subtle top sheen instead of blurred glass */
  --glass: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015) 30%, rgba(255,255,255,0.015));
  --gloss-inner: inset 0 1px 0 rgba(255,255,255,0.1);
  --gloss-shadow: 0 16px 40px -20px rgba(0,0,0,0.75);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, monospace;

  /* Spacing */
  --section-gap: 140px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  cursor: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(127,255,0,0.6); border-radius: 99px; }

::selection { background: var(--accent); color: #000; }

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

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR (lightweight, no blend-mode)
═══════════════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  will-change: transform;
  transition: opacity 0.2s;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(127,255,0,0.45);
}
.cursor-ring {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(127,255,0,0.5);
  transition: width 0.22s var(--ease), height 0.22s var(--ease), border-color 0.22s, background 0.22s, margin 0.22s var(--ease), opacity 0.2s;
}
.cursor-ring.hover {
  width: 36px;
  height: 36px;
  margin: -5px 0 0 -5px;
  background: rgba(127,255,0,0.05);
  border-color: var(--accent);
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  a, button, input, textarea, .btn, .filter-tab { cursor: pointer !important; }

  /* Replace hover-driven effects with a slow autoplay so cards feel alive */
  .disc-card::after,
  .project-card::after,
  .skills-group::after {
    animation: shineLoop 7s ease-in-out infinite;
  }
  /* Stagger so all cards don't shine in sync */
  .disc-grid > :nth-child(2)::after  { animation-delay: 2.3s; }
  .disc-grid > :nth-child(3)::after  { animation-delay: 4.6s; }

  .projects-grid > :nth-child(2)::after { animation-delay: 1.2s; }
  .projects-grid > :nth-child(3)::after { animation-delay: 2.4s; }
  .projects-grid > :nth-child(4)::after { animation-delay: 3.6s; }
  .projects-grid > :nth-child(5)::after { animation-delay: 4.8s; }
  .projects-grid > :nth-child(6)::after { animation-delay: 6s; }

  .skills-grid > :nth-child(2)::after { animation-delay: 1.75s; }
  .skills-grid > :nth-child(3)::after { animation-delay: 3.5s; }
  .skills-grid > :nth-child(4)::after { animation-delay: 5.25s; }

  /* Photo cards: slow ken-burns drift so they don't sit static */
  .project-thumb.has-media img {
    animation: kenBurns 14s ease-in-out infinite alternate;
  }

  /* Tap feedback on cards (compensates for no :hover) */
  .project-card:active,
  .disc-card:active,
  .skills-group:active,
  .contact-item:active {
    border-color: var(--accent-line);
    transition: border-color 0.15s, transform 0.15s;
  }
}

@keyframes shineLoop {
  0%, 25% { transform: translateX(-150%); }
  65%, 100% { transform: translateX(160%); }
}
@keyframes kenBurns {
  0%   { transform: scale(1) translateX(0); }
  100% { transform: scale(1.05) translateX(-1%); }
}

/* Scroll progress (top bar) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 200;
  transition: width 0.05s linear;
}

/* ═══════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: var(--section-gap) 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 0 24px var(--accent-glow);
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-glow);
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: 64px;
  letter-spacing: -0.04em;
  color: #fff;
}
.section-title .accent { color: var(--accent); text-shadow: 0 0 60px var(--accent-glow); }

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

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  cursor: none;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--font-sans);
  position: relative;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(180deg, #93ff21, #7fff00);
  color: #000;
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 8px 32px rgba(127,255,0,0.22);
}
.btn-primary:hover {
  background: #000;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 48px rgba(127,255,0,0.35);
}

.btn-outline {
  background: rgba(255,255,255,0.02);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 48px rgba(127,255,0,0.3);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* Arrow icon helper */
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav-header.scrolled {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  font-family: var(--font-sans);
  position: relative;
  cursor: none;
}
.nav-logo .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); opacity: 1; }
  50% { box-shadow: 0 0 18px var(--accent-glow); opacity: 0.65; }
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.nav-cta {
  padding: 10px 22px !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  color: #000 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border: 1px solid var(--accent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 4px 20px rgba(127,255,0,0.25);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  background: #000 !important;
  color: var(--accent) !important;
  box-shadow: 0 4px 24px rgba(127,255,0,0.35);
}
.nav-cta::after { display: none !important; }

.nav-clock {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.nav-clock .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: dotPulse 2s ease-in-out infinite;
}
.nav-right { display: flex; align-items: center; gap: 24px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: var(--accent); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: var(--accent); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(127,255,0,0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(127,255,0,0.04), transparent 60%),
    var(--bg);
}

/* hero noise/dots backdrop */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 80% at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at center, #000 30%, transparent 80%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 100px;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.9s 0.15s var(--ease-out) forwards;
  text-shadow: 0 0 20px var(--accent-glow);
}
.hero-greeting::before {
  content: '// ';
  color: var(--muted-2);
  text-shadow: none;
}

.hero-name {
  font-size: clamp(3rem, 8.5vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
  color: #fff;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s var(--ease-out) forwards;
}
.hero-name .gradient-text { display: inline-block; }

.hero-title {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 28px;
  min-height: 2rem;
  font-family: var(--font-mono);
  opacity: 0;
  animation: fadeUp 0.9s 0.45s var(--ease-out) forwards;
}
.typed { color: #fff; }
.cursor {
  display: inline-block;
  animation: blink 0.9s step-end infinite;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  text-shadow: 0 0 12px var(--accent-glow);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  max-width: 600px;
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 44px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  opacity: 0;
  animation: fadeUp 0.9s 0.6s var(--ease-out) forwards;
  position: relative;
}
.hero-desc::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.75s var(--ease-out) forwards;
}

.hero-meta {
  display: flex;
  gap: 56px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s var(--ease-out) forwards;
  position: relative;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.hero-meta-item + .hero-meta-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 14px var(--accent-glow);
}
.hero-meta-val {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.005em;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(30px); }
}
@keyframes fadeIn {
  to { opacity: 1; }
  from { opacity: 0; }
}

/* ═══════════════════════════════════════════════════
   MARQUEE — minimal single-word ticker
═══════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #000;
  padding: 32px 0;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, #000 5%, transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #000 5%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding-right: 64px;
}
.marquee-label {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 1;
}
.marquee-star {
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
  font-size: 1rem;
  margin-left: 32px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
}

.avatar-ring {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  padding: 2px;
  position: relative;
  background:
    conic-gradient(from 0deg, var(--accent), transparent 25%, transparent 75%, var(--accent));
  animation: ringRotate 8s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
  animation: ringRotateBack 8s linear infinite;
}
@keyframes ringRotateBack { to { transform: rotate(-360deg); } }
.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 50%;
}

.availability-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(127,255,0,0.06);
  border: 1px solid var(--accent-line);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 0 28px rgba(127,255,0,0.08);
}
.availability-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(127,255,0,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(127,255,0,0); }
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 22px;
  font-size: 1.08rem;
  line-height: 1.75;
}
.about-text strong { color: #fff; font-weight: 600; }
.about-text .accent { color: var(--accent); }

.about-stats {
  display: flex;
  gap: 36px;
  margin: 36px 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-num .accent { color: var(--accent); text-shadow: 0 0 24px var(--accent-glow); }
.stat-label {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}

.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   DISCIPLINES (What I Do)
═══════════════════════════════════════════════════ */
.disciplines {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.disc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.disc-card {
  position: relative;
  padding: 38px 32px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--gloss-inner), var(--gloss-shadow);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.disc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), transparent 70%);
  pointer-events: none;
}
.disc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(127,255,0,0.16) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 1s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.disc-card:hover {
  border-color: var(--accent-line);
  box-shadow:
    var(--gloss-inner),
    0 24px 50px -20px rgba(0,0,0,0.8),
    0 0 60px -20px var(--accent-glow);
}
.disc-card:hover::after { transform: translateX(160%); }
.disc-card > * { position: relative; z-index: 1; }

.disc-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  text-shadow: 0 0 12px var(--accent-glow);
}
.disc-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: #fff;
}
.disc-card p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 22px;
}
.disc-card .disc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 22px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.disc-card .disc-tools span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  border: 1px solid var(--line-strong);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════ */
.projects-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.projects-head .section-title { margin-bottom: 0; }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  cursor: none;
  transition: all 0.25s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.filter-tab:hover { color: #fff; border-color: #fff; }
.filter-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(127,255,0,0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--gloss-inner), var(--gloss-shadow);
  transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.4s, opacity 0.4s;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card > .project-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.project-card .project-body > * { position: relative; z-index: 1; }
.project-card.hidden {
  display: none;
}
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(127,255,0,0.16) 50%, transparent 70%);
  transform: translateX(-150%);
  transition: transform 1s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.project-card:hover {
  border-color: var(--accent-line);
  box-shadow:
    var(--gloss-inner),
    0 30px 60px -20px rgba(0,0,0,0.85),
    0 0 80px -30px var(--accent-glow);
}
.project-card:hover::after { transform: translateX(160%); }

.project-thumb {
  height: 210px;
  background: linear-gradient(135deg, #0a0a0a 0%, #161616 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(127,255,0,0.1), transparent 50%);
}
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 14px,
    rgba(255,255,255,0.02) 14px,
    rgba(255,255,255,0.02) 15px
  );
  mask-image: radial-gradient(ellipse 85% 70% at center, #000 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at center, #000 30%, transparent 95%);
}

/* Designed line-art frame for icon-style thumbs */
.thumb-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.thumb-frame > span {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(127,255,0,0.55);
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), border-color 0.4s;
}
.thumb-frame > span:nth-child(1) { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; }
.thumb-frame > span:nth-child(2) { top: 18px; right: 18px; border-top-width: 1px; border-right-width: 1px; }
.thumb-frame > span:nth-child(3) { bottom: 18px; left: 18px; border-bottom-width: 1px; border-left-width: 1px; }
.thumb-frame > span:nth-child(4) { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; }
.thumb-frame > .ring {
  width: 124px;
  height: 124px;
  top: 50%;
  left: 50%;
  margin: -62px 0 0 -62px;
  border: 1px dashed rgba(127,255,0,0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,255,0,0.06), transparent 65%);
  animation: ringSpin 40s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.project-card:hover .thumb-frame > span:not(.ring) {
  width: 30px;
  height: 30px;
  border-color: var(--accent);
}
.project-card:hover .thumb-frame > .ring {
  border-color: rgba(127,255,0,0.4);
}

.thumb-index {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: rgba(127,255,0,0.7);
  z-index: 2;
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Icon-style thumbs (Shopify, Brand, Next.js, SEO) */
.project-thumb-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: var(--accent);
  filter: drop-shadow(0 0 16px var(--accent-glow));
}
.project-thumb-icon svg {
  width: 100%;
  height: 100%;
}
.project-thumb-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  z-index: 1;
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(0,0,0,0.4);
}

/* Photo-style thumbs (TraxQ, Flyer) */
.project-thumb.has-media {
  padding: 0;
  background: #000;
}
.project-thumb.has-media::before,
.project-thumb.has-media::after { display: none; }
.project-thumb.has-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-thumb.has-media img {
  transform: scale(1.04);
}
.project-thumb.has-media .project-cat,
.project-thumb.has-media .project-status {
  z-index: 2;
}

.project-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 99px;
  color: #fff;
  z-index: 2;
}
.project-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 3;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 6px 20px rgba(127,255,0,0.4),
    0 0 28px rgba(127,255,0,0.5);
}
.project-status .dot {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  animation: pulseDotBlack 1.6s ease-in-out infinite;
}
@keyframes pulseDotBlack {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.55); }
  50% { box-shadow: 0 0 0 5px rgba(0,0,0,0); }
}

.project-body { padding: 28px; }
.project-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.project-body p {
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tags span {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  border: 1px solid var(--line-strong);
  letter-spacing: 0.03em;
}

.projects-more { text-align: center; margin-top: 56px; }

/* ═══════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.skills-group {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 32px;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
  box-shadow: var(--gloss-inner), var(--gloss-shadow);
  position: relative;
  overflow: hidden;
}
.skills-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 80%);
  pointer-events: none;
}
.skills-group > * { position: relative; }
.skills-group::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(127,255,0,0.14) 50%, transparent 70%);
  transform: translateX(-150%);
  transition: transform 1s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.skills-group:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
}
.skills-group:hover::after { transform: translateX(160%); }

.skills-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.skills-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.skills-group h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.skills-group h3 .accent { color: var(--accent); }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags span {
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  border: 1px solid var(--line-strong);
  transition: all 0.25s var(--ease);
  cursor: none;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.skill-tags span:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(127,255,0,0.25);
}

/* ═══════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
═══════════════════════════════════════════════════ */
.experience {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.timeline {
  position: relative;
  max-width: 780px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-node {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 24px var(--accent-glow);
}
.timeline-node::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-card {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
  box-shadow: var(--gloss-inner);
}
.timeline-card:hover {
  border-color: var(--accent-line);
  transform: translateX(4px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px var(--accent-glow);
}
.timeline-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.04);
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
}
.timeline-badge.current {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.timeline-badge.freelance {
  background: rgba(127,255,0,0.06);
  color: var(--accent);
  border-color: var(--accent-line);
}

.timeline-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: -0.02em;
}
.timeline-company {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.timeline-card p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.75;
}
.timeline-card ul li {
  font-size: 0.96rem;
}
.timeline-card ul {
  list-style: none;
  margin-top: 10px;
}
.timeline-card ul li {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}
.timeline-card ul li strong {
  color: #fff;
  font-weight: 600;
}
.timeline-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.timeline-clients-label {
  font-family: var(--font-mono);
  font-size: 0.7rem !important;
  color: var(--accent) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 16px !important;
  margin-bottom: 6px !important;
  text-shadow: 0 0 12px var(--accent-glow);
}

/* Education sub-block */
.education-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.edu-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.3s;
}
.edu-card:hover { border-color: var(--accent-line); }
.edu-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.edu-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.edu-card p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════ */
.contact-desc {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-top: -40px;
  margin-bottom: 64px;
  max-width: 520px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 52px 20px 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.4s var(--ease-out);
  cursor: none;
  position: relative;
  box-shadow: var(--gloss-inner);
}
.contact-item::after {
  content: '→';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 1.1rem;
  transition: all 0.3s var(--ease);
}
.contact-item:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--gloss-inner), 0 20px 40px -20px rgba(127,255,0,0.25);
}
.contact-item:hover::after {
  color: var(--accent);
  transform: translate(4px, -50%);
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(127,255,0,0.08);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.contact-icon::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-out);
}
.contact-item:hover .contact-icon {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: scale(1.05);
}
.contact-item:hover .contact-icon svg { transform: scale(1.1); }
.contact-label {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: color 0.3s;
}
.contact-item:hover .contact-label { color: var(--accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--gloss-inner), var(--gloss-shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  text-shadow: 0 0 10px var(--accent-glow);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  resize: vertical;
  transition: all 0.25s var(--ease);
  cursor: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 0 4px rgba(127,255,0,0.08);
}
.form-group .error-msg {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  display: none;
  letter-spacing: 0.02em;
}
.form-group.error .error-msg { display: block; color: #b87878; }
.form-group.error input,
.form-group.error textarea { border-color: rgba(184,120,120,0.55); }

/* Web3Forms honeypot — must stay visually & physically hidden from real users */
.contact-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Form-level error (network / API failure) */
.form-error {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: #b87878;
  display: none;
  padding: 10px 14px;
  border: 1px solid rgba(184,120,120,0.4);
  border-radius: 8px;
  background: rgba(184,120,120,0.05);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.form-error.visible { display: block; }

.btn .btn-success { display: none; }
.btn.sent .btn-text { display: none; }
.btn.sent .btn-success { display: inline; }
.btn.sent {
  background: rgba(127,255,0,0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 32px rgba(127,255,0,0.2);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  text-align: center;
  background: var(--bg);
}
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  letter-spacing: -0.04em;
}
.footer-logo .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
}
.footer p { font-size: 0.9rem; color: var(--text-soft); }
.footer-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 8px;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.footer-social a {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: all 0.35s var(--ease-out);
  cursor: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--gloss-inner);
}
.footer-social a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.footer-social a svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-out);
}
.footer-social a:hover {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(127,255,0,0.35);
}
.footer-social a:hover svg { transform: scale(1.1); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .disc-grid      { grid-template-columns: 1fr; }
  .about-grid     { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid   { grid-template-columns: 1fr; }
  .nav-clock      { display: none; }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
    --nav-h: 60px;
    --gloss-shadow: 0 8px 22px -10px rgba(0,0,0,0.65);
  }

  /* Let native momentum scrolling take over on touch */
  html { scroll-behavior: auto; }

  /* Stop infinite CSS animations — these force paint on every frame */
  .avatar-ring,
  .avatar-inner,
  .thumb-frame > .ring {
    animation: none;
  }
  .avatar-ring {
    background: conic-gradient(from 90deg, var(--accent), transparent 35%, transparent 65%, var(--accent));
  }

  /* Lighter nav blur for cheaper scroll repaints */
  .nav-header.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.88);
  }

  /* Drop the radial-dot hero pattern on mobile */
  .hero::before { display: none; }

  /* Faster, smaller reveal animation */
  .reveal {
    transition-duration: 0.5s;
    transform: translateY(18px);
  }

  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-clock { display: none; }
  .nav-right { gap: 14px; }

  .hero-name { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-desc { font-size: 1rem; padding-left: 14px; }
  .marquee-label { font-size: 1.6rem; }
  .marquee-item { padding-right: 40px; }
  .marquee-star { margin-left: 24px; font-size: 0.9rem; }

  .section-title { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 44px; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
  .stat-num { font-size: 1.9rem; }

  .projects-grid  { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .skills-grid    { grid-template-columns: 1fr; }
  .education-row  { grid-template-columns: 1fr; }
  .projects-head  { flex-direction: column; align-items: flex-start; gap: 24px; }
  .filter-tabs    { overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .filter-tabs::-webkit-scrollbar { height: 0; }

  .disc-card     { padding: 30px 24px; }
  .skills-group  { padding: 28px 24px; }
  .timeline-card { padding: 22px; }
  .contact-form  { padding: 28px 22px; }
  .contact-item  { padding: 18px 44px 18px 18px; }
  .project-body  { padding: 22px 20px; }

  /* Trim the hero vertical padding so the section doesn't dominate */
  .hero-content { padding-top: 24px; padding-bottom: 60px; }
  .hero-meta { gap: 22px; margin-top: 36px; padding-top: 24px; }
  .hero-desc { margin-bottom: 30px; }
  .about-stats { padding: 24px 0; margin: 28px 0; gap: 20px; }
  .stat-num { font-size: 1.7rem; }
  .education-row { margin-top: 36px; padding-top: 32px; }

  .timeline::before { left: 15px; }
  .timeline-node { width: 30px; height: 30px; }
  .timeline-item { gap: 22px; }

  .hero-meta { gap: 28px; }
  .hero-meta-item + .hero-meta-item::before { display: none; }
  .footer-social a { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; padding: 14px 24px; }
  .hero-meta { gap: 22px; flex-direction: column; padding-top: 28px; margin-top: 48px; }
  .hero-meta-val { font-size: 1rem; }
  .about-actions { flex-direction: column; align-items: stretch; }
  .stat { min-width: 0; }
}

/* Hide cursor visuals on reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
