/* ==========================================
   CYBERSECURITY PORTFOLIO — Hacker Aesthetic
   ========================================== */

/* Base Tokens */
:root {
  --bg: #050a0e;
  --bg-alt: #0a1018;
  --bg-card: rgba(0, 255, 157, 0.03);
  --bg-card-strong: rgba(0, 255, 157, 0.06);
  --text: #e0e6ed;
  --muted: #6b8299;
  --accent: #00ff9d;
  --accent-2: #00d4ff;
  --accent-3: #bf5af2;
  --border: rgba(0, 255, 157, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  --glow-green: 0 0 20px rgba(0, 255, 157, 0.15), 0 0 60px rgba(0, 255, 157, 0.05);
  --glow-blue: 0 0 20px rgba(0, 212, 255, 0.15), 0 0 60px rgba(0, 212, 255, 0.05);
  --glow-purple: 0 0 20px rgba(191, 90, 242, 0.15), 0 0 60px rgba(191, 90, 242, 0.05);
  --nav-bg: rgba(5, 10, 14, 0.85);
  --footer-bg: rgba(5, 10, 14, 0.9);
  --scroll-progress-bg: rgba(0, 255, 157, 0.06);
  --radius: 14px;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* Scanline overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 157, 0.015) 2px,
      rgba(0, 255, 157, 0.015) 4px);
  pointer-events: none;
  z-index: 9999;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--scroll-progress-bg);
  z-index: 100;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
}

/* ==================== NAV ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.brand::before {
  content: "> ";
  color: var(--muted);
}

.nav__links {
  display: flex;
  gap: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
  letter-spacing: 0.02em;
}

.nav__links a:hover {
  color: var(--accent);
  background: rgba(0, 255, 157, 0.06);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.6;
  box-shadow: 0 0 6px rgba(0, 255, 157, 0.4);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__resume-btn.btn--outline {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  min-height: unset;
  font-family: var(--font-mono);
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.25), 0 0 30px rgba(0, 255, 157, 0.08);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  z-index: 12;
  position: relative;
  transition: background 0.2s ease;
}

.nav__toggle:hover {
  background: rgba(0, 255, 157, 0.06);
  border-color: var(--accent);
}

.nav__toggle-line {
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav__mobile {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 14, 0.98);
  backdrop-filter: blur(20px);
  z-index: 11;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

@media (max-width: 767px) {
  .nav__mobile {
    top: 64px;
  }
}

.nav__mobile[aria-hidden="false"] {
  transform: translateX(0);
}

.nav__mobile-inner {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
}

.nav__mobile a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  min-height: 44px;
}

.nav__mobile a:hover,
.nav__mobile a:focus {
  color: var(--accent);
  background: rgba(0, 255, 157, 0.06);
  border-color: var(--border);
}

body.menu-open {
  overflow: hidden;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
  background: rgba(0, 255, 157, 0.08);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050a0e;
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--glow-green);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #26ffb4, #26ddff);
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.3), 0 0 80px rgba(0, 255, 157, 0.1);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-green);
}

.btn--ghost {
  background: rgba(0, 255, 157, 0.04);
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(0, 255, 157, 0.1);
  border-color: var(--accent);
}

.btn--linkedin {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn--linkedin:hover {
  box-shadow: var(--glow-blue);
  background: rgba(0, 212, 255, 0.08);
}

.btn--twitter {
  border-color: var(--accent-3);
  color: var(--accent-3);
}

.btn--twitter:hover {
  box-shadow: var(--glow-purple);
  background: rgba(191, 90, 242, 0.08);
}

/* ==================== HERO ==================== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
  max-width: 100vw;
}

/* Matrix canvas injected by JS */
#matrixCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  max-width: 100vw;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  max-width: 100vw;
}

.orb--purple {
  width: 400px;
  height: 400px;
  background: rgba(191, 90, 242, 0.3);
  top: -50px;
  left: 5%;
  animation: float 12s ease-in-out infinite;
}

.orb--blue {
  width: 450px;
  height: 450px;
  background: rgba(0, 212, 255, 0.2);
  bottom: -100px;
  right: -5%;
  animation: float 15s ease-in-out infinite reverse;
}

.orb--green {
  width: 350px;
  height: 350px;
  background: rgba(0, 255, 157, 0.15);
  top: 40%;
  left: 50%;
  animation: float 10s ease-in-out infinite 2s;
}

.gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 157, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.6), transparent 75%);
  animation: drift 20s linear infinite;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero__text h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 0;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  text-shadow: 0 0 30px rgba(0, 255, 157, 0.4);
}

.typewriter {
  position: relative;
  min-height: 1.2em;
  display: inline-block;
}

.typewriter::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
  animation: cursor 0.8s step-end infinite;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
  text-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

.hero__banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.08), rgba(0, 212, 255, 0.04));
  border: 1px solid rgba(0, 255, 157, 0.25);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
  transition: all 0.3s ease;
  animation: glowPulse 3s infinite ease-in-out;
}

.hero__banner:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.12), rgba(0, 212, 255, 0.08));
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.3);
}

.hero__banner span {
  color: var(--accent);
  font-weight: 700;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
  line-height: 1.7;
  max-width: 560px;
}

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

/* Stats Row */
.hero__stats {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
  line-height: 1;
}

.stat__label {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat__divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* Hero badges */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(0, 255, 157, 0.04);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  font-family: var(--font-mono);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
  transition: all 0.2s;
}

.badge:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-green);
}

.badge--highlight {
  background: rgba(255, 189, 46, 0.1);
  border-color: rgba(255, 189, 46, 0.4);
  color: #ffbd2e;
  text-shadow: 0 0 12px rgba(255, 189, 46, 0.3);
  animation: glowPulse 2s ease-in-out infinite;
}

.badge--highlight:hover {
  border-color: #ffbd2e;
  box-shadow: 0 0 20px rgba(255, 189, 46, 0.25), 0 0 50px rgba(255, 189, 46, 0.1);
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.15);
  }

  50% {
    box-shadow: 0 0 16px rgba(255, 189, 46, 0.3);
  }
}

/* Hero profile card */
.hero__card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(0, 255, 157, 0.02);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero__card--profiles {
  grid-template-rows: auto 1fr;
  align-items: start;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero__card:hover::before {
  opacity: 0.5;
}

.hero__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
}

.hero__avatar--image {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.profile-links {
  display: grid;
  gap: 10px;
}

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

/* ==================== TERMINAL BOX ==================== */
.terminal {
  background: rgba(5, 10, 14, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glow-green);
  max-width: 100%;
  word-break: break-all;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 255, 157, 0.04);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red {
  background: #ff5f57;
}

.terminal__dot--yellow {
  background: #ffbd2e;
}

.terminal__dot--green {
  background: #28c840;
}

.terminal__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}

.terminal__body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--accent);
  min-height: 180px;
  overflow: hidden;
  word-break: break-all;
  overflow-wrap: break-word;
}

.terminal__line {
  opacity: 0;
  animation: terminalReveal 0.3s ease forwards;
}

.terminal__line--prompt {
  color: var(--accent-2);
}

.terminal__line--output {
  color: var(--muted);
}

.terminal__line--success {
  color: var(--accent);
}

.terminal__line--warning {
  color: #ffbd2e;
}

@keyframes terminalReveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== HALL OF FAME ==================== */
.hall-of-fame__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.fame-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fame-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(from 120deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fame-card:hover::before {
  opacity: 0.6;
}

.fame-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
}

.fame-card__icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}

.fame-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}

.fame-card__type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fame-card--featured {
  background: rgba(255, 189, 46, 0.05);
  border-color: rgba(255, 189, 46, 0.3);
}

.fame-card--featured::before {
  background: conic-gradient(from 120deg, #ffbd2e, #ff9500, #ffbd2e);
  opacity: 0.5;
}

.fame-card--featured .fame-card__name {
  color: #ffbd2e;
}

.fame-card--featured .fame-card__type {
  color: rgba(255, 189, 46, 0.7);
}

.fame-card--featured:hover {
  box-shadow: 0 0 20px rgba(255, 189, 46, 0.2), 0 0 60px rgba(255, 189, 46, 0.05);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 80px 0;
}

.section__header {
  margin-bottom: 32px;
}

.section__header h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section__header h2::before {
  content: "// ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
  opacity: 0.6;
}

.section__header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.4;
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(0, 255, 157, 0.4);
  animation: pulse 3s ease-in-out infinite;
}

/* Grid */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.education__grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cards */
.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(from 120deg, rgba(0, 255, 157, 0.3), rgba(0, 212, 255, 0.3), rgba(191, 90, 242, 0.3), rgba(0, 255, 157, 0.3));
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--glow-green);
}

/* ★ FEATURED PROJECT CARD */
.card--featured-project {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.04), rgba(0, 212, 255, 0.03), rgba(191, 90, 242, 0.03));
  border: 1px solid rgba(0, 255, 157, 0.2);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.card--featured-project::before {
  opacity: 0.4;
}

.card--featured-project::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.card--featured-project:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.15), 0 0 80px rgba(0, 255, 157, 0.05);
  transform: translateY(-4px);
}

.card--featured-project h3 {
  font-size: clamp(18px, 3vw, 22px);
}

.card--featured-project .sub {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 4px;
}

.card--featured-project ul {
  font-size: 14px;
  line-height: 1.7;
}

.card--featured-project ul li {
  margin-bottom: 10px;
}

.card__featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.25);
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
  margin-bottom: 16px;
  animation: glowPulse 2s ease-in-out infinite;
}

.tag--live {
  background: rgba(0, 255, 157, 0.1);
  border-color: rgba(0, 255, 157, 0.3);
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.card__featured-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip--glow {
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.15);
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
  transition: all 0.2s ease;
}

.chip--glow:hover {
  background: rgba(0, 255, 157, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.2);
}

.card__featured-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.card__featured-actions .btn {
  font-size: 13px;
  padding: 10px 20px;
}

.skills__grid .card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card__top > div {
  min-width: 0;
  flex: 1;
}

.card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--text);
  word-wrap: break-word;
}

.sub {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.sub a {
  color: var(--accent-2);
  transition: color 0.2s;
}

.sub a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.tag {
  display: inline-flex;
  padding: 5px 12px;
  min-width: 68px;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 11px;
  font-family: var(--font-mono);
  white-space: nowrap;
  align-self: flex-start;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.card ul {
  margin: 10px 0 0 18px;
  color: var(--muted);
  padding: 0;
  font-size: 14px;
}

.card li {
  margin-bottom: 8px;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(0, 255, 157, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.08), transparent);
  transition: left 0.5s ease;
}

.chip:hover::after {
  left: 100%;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

a.chip--link {
  text-decoration: none;
  cursor: pointer;
  color: var(--accent-2);
}

a.chip--link:hover {
  color: var(--accent);
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--footer-bg);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
}

.footer p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 14px;
}

.footer__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  font-family: var(--font-mono);
}

.meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1023px) {
  .container {
    width: min(1200px, 94vw);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero__text h1 {
    font-size: clamp(26px, 6vw, 38px);
  }

  .lede {
    font-size: clamp(15px, 2.5vw, 17px);
  }

  .section {
    padding: 60px 0;
  }

  .education__grid {
    grid-template-columns: 1fr;
  }

  .hero__card {
    justify-self: center;
    max-width: 400px;
  }

  .hero__avatar--image {
    max-width: 180px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .container {
    width: 92vw;
    max-width: 100%;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__inner {
    height: 64px;
  }

  .hero {
    padding: 80px 0 48px;
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__text {
    gap: 14px;
  }

  .hero__text h1 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
  }

  .typewriter {
    white-space: normal;
    word-wrap: break-word;
  }

  .pill {
    padding: 5px 12px;
    font-size: 12px;
  }

  .hero__banner {
    padding: 5px 12px;
    font-size: 11px;
    gap: 6px;
  }

  .card__featured-badge {
    padding: 4px 12px;
    font-size: 10px;
  }

  .lede {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero__badges {
    gap: 6px;
  }

  .badge {
    padding: 5px 10px;
    font-size: 11px;
  }

  .badge--highlight {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

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

  .hero__stats {
    gap: 16px;
  }

  .stat__num {
    font-size: 22px;
  }

  .stat__label {
    font-size: 10px;
  }

  .hero__card {
    padding: 16px;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
  }

  .terminal {
    max-width: 100%;
  }

  .terminal__body {
    font-size: 10px;
    min-height: 120px;
    padding: 10px 12px;
    line-height: 1.7;
  }

  .terminal__title {
    font-size: 10px;
  }

  .hero__avatar--image {
    max-width: 140px;
    margin: 0 auto;
    display: block;
  }

  .profile-links {
    gap: 8px;
  }

  .orb {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section__header h2 {
    font-size: clamp(20px, 6vw, 24px);
  }

  .section__header p {
    font-size: 13px;
  }

  .timeline {
    padding-left: 16px;
    gap: 16px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline__item::before {
    left: -12px;
    top: 18px;
    width: 8px;
    height: 8px;
  }

  .card {
    padding: 16px;
  }

  .card__top {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .timeline__item .card__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .timeline__item .tag {
    flex-shrink: 0;
  }

  .card h3 {
    font-size: clamp(15px, 4vw, 17px);
  }

  .tag {
    font-size: 10px;
    padding: 4px 10px;
    min-width: auto;
  }

  .card ul {
    margin-left: 16px;
    font-size: 13px;
  }

  .card li {
    margin-bottom: 6px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .chips {
    gap: 8px;
  }

  .chip {
    padding: 7px 10px;
    font-size: 12px;
  }

  .hall-of-fame__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .fame-card {
    padding: 16px;
  }

  .fame-card__icon {
    font-size: 24px;
  }

  .fame-card__name {
    font-size: 14px;
  }

  .terminal__body {
    font-size: 11px;
    min-height: 140px;
    padding: 12px 16px;
  }

  .footer {
    padding: 32px 0 20px;
  }

  .footer__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .footer__actions .btn {
    width: 100%;
  }

  .footer__bottom {
    margin-top: 20px;
    font-size: 11px;
    word-break: break-word;
  }

  .btn {
    padding: 12px 18px;
    font-size: 13px;
  }

  .gridlines {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 374px) {
  .container {
    width: 92vw;
  }

  .hero__text h1 {
    font-size: 20px;
  }

  .section__header h2 {
    font-size: 18px;
  }

  .card {
    padding: 14px;
  }

  .hall-of-fame__grid {
    grid-template-columns: 1fr;
  }
}

/* Disable hover on touch */
@media (hover: none) and (pointer: coarse) {

  .card:hover,
  .hero__card:hover,
  .chip:hover,
  .btn:hover,
  .fame-card:hover {
    transform: none;
    box-shadow: none;
  }

  .card:hover::before,
  .hero__card:hover::before,
  .fame-card:hover::before {
    opacity: 0;
  }
}

/* Tablet+ nav */
@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nav__mobile {
    display: none;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, -10px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes cursor {

  0%,
  45% {
    opacity: 1;
  }

  55%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(0, 255, 157, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(0, 255, 157, 0.1), 0 0 20px rgba(0, 255, 157, 0.5);
  }

  100% {
    box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(0, 255, 157, 0.4);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Glitch text effect for headings */
@keyframes glitch {
  0% {
    text-shadow: 2px 0 var(--accent-2), -2px 0 var(--accent-3);
  }

  25% {
    text-shadow: -2px 0 var(--accent-2), 2px 0 var(--accent-3);
  }

  50% {
    text-shadow: 2px 2px var(--accent-2), -2px -2px var(--accent-3);
  }

  75% {
    text-shadow: -2px 2px var(--accent-2), 2px -2px var(--accent-3);
  }

  100% {
    text-shadow: 2px 0 var(--accent-2), -2px 0 var(--accent-3);
  }
}