:root {
  /* Depth palette */
  --surface: #0D1B2A;
  --twilight: #0A1626;
  --midnight: #081221;
  --deep: #060E1C;
  --abyssal: #040A15;
  --hadal: #020710;
  --floor: #01040A;

  /* Core colors */
  --bioluminescence: #00D4FF;
  --bioluminescence-dim: rgba(0, 212, 255, 0.45);
  --teal-secondary: #0A7E9C;
  --warm-contrast: #FF8C5A;
  --card-surface: #1A2A3A;

  /* Text */
  --text-main: #f8fafc;
  --text-muted: #c0cad8;

  /* Glow */
  --glow-accent: var(--bioluminescence);
  --glow-primary: var(--bioluminescence);
  --glow-secondary: #22D3EE;

  /* Borders */
  --border: rgba(148, 163, 184, 0.24);
  --border-hover: rgba(0, 212, 255, 0.35);

  /* Typography */
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Aliases for backward compatibility */
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --abyss: var(--surface);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at 50% -5%,
      rgba(0, 212, 255, 0.18) 0%,
      rgba(0, 212, 255, 0.06) 14%,
      transparent 36%
    ),
    radial-gradient(
      circle at 50% 18%,
      rgba(6, 182, 212, 0.06) 0,
      transparent 28%
    ),
    linear-gradient(180deg,
      #0D1B2A 0%,
      #0A1626 14%,
      #081221 28%,
      #060E1C 48%,
      #040A15 72%,
      #020710 88%,
      #01040A 100%
    );
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 212, 255, 0.02) 12%, transparent 24%),
    radial-gradient(
      ellipse 72% 28% at 50% 6%,
      rgba(0, 212, 255, 0.08) 0%,
      rgba(0, 212, 255, 0.035) 30%,
      transparent 66%
    ),
    radial-gradient(
      ellipse 54% 24% at 20% 20%,
      rgba(6, 182, 212, 0.045) 0%,
      transparent 56%
    ),
    radial-gradient(
      ellipse 58% 34% at 82% 16%,
      rgba(10, 126, 156, 0.035) 0%,
      transparent 58%
    );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 118px,
    rgba(147, 197, 253, 0.02) 118px,
    rgba(147, 197, 253, 0.02) 119px
  ),
  repeating-linear-gradient(
    92deg,
    transparent,
    transparent 220px,
    rgba(125, 211, 252, 0.015) 220px,
    transparent 221px
  );
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

canvas#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
}

nav.scrolled {
  background: linear-gradient(180deg, rgba(6, 14, 30, 0.9), rgba(3, 7, 18, 0.82));
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  border-bottom-color: rgba(148, 163, 184, 0.16);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    inset 0 -1px 0 rgba(6, 182, 212, 0.03);
}

nav.scrolled .nav-logo {
  color: rgba(240, 249, 255, 0.96);
}

nav.scrolled .nav-links a {
  color: rgba(226, 232, 240, 0.88);
  text-shadow: 0 0 0 transparent;
  font-weight: 500;
}

nav.scrolled .nav-links a:hover {
  color: rgba(125, 211, 252, 0.98);
}

nav.scrolled .nav-cta {
  border-color: rgba(125, 211, 252, 0.26);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.06), rgba(6, 182, 212, 0.02));
  color: rgba(248, 250, 252, 0.98);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(6, 182, 212, 0.03);
}

nav.scrolled .nav-cta:hover {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.12), rgba(6, 182, 212, 0.05));
  border-color: rgba(125, 211, 252, 0.42);
  color: rgba(255, 255, 255, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(125, 211, 252, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(125, 211, 252, 0.95);
  letter-spacing: 0.05em;
  text-decoration: none;
  font-weight: 500;
}

.nav-logo span {
  color: rgba(226, 232, 240, 0.76);
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.72);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.2s,
    text-shadow 0.2s;
  text-shadow: 0 0 0 transparent;
}

.nav-links a:hover {
  color: rgba(125, 211, 252, 0.95);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.14);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(125, 211, 252, 0.36);
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
  text-shadow: 0 0 0 transparent;
}

.nav-cta:hover {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.14), rgba(6, 182, 212, 0.06));
  border-color: rgba(125, 211, 252, 0.5);
  color: rgba(255, 255, 255, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(125, 211, 252, 0.08);
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 2;
  background: transparent;
}

section:nth-of-type(even) {
  background: transparent;
}

#hero {
  border-top: 0;
  background: transparent;
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -2rem 0 -4rem;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 12%, rgba(0, 212, 255, 0.08) 0%, rgba(0, 212, 255, 0.03) 20%, transparent 42%),
    linear-gradient(180deg, rgba(0, 212, 255, 0.03) 0%, transparent 28%, rgba(2, 6, 23, 0.06) 100%);
  filter: blur(12px);
  opacity: 0.75;
}

#hero::after {
  content: "";
  position: absolute;
  inset: -2rem 0 -4rem;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0%, rgba(186, 230, 253, 0.03) 8%, transparent 18%),
    linear-gradient(90deg, transparent 20%, rgba(125, 211, 252, 0.025) 28%, transparent 38%),
    linear-gradient(90deg, transparent 50%, rgba(34, 211, 238, 0.03) 58%, transparent 68%),
    linear-gradient(90deg, transparent 78%, rgba(20, 184, 166, 0.022) 86%, transparent 96%);
  background-size: 240px 100%, 320px 100%, 280px 100%, 360px 100%;
  background-position: 0 0, 80px 0, 160px 0, 40px 0;
  background-repeat: repeat-x;
  filter: blur(10px);
  opacity: 0.45;
  mix-blend-mode: screen;
}

section::before {
  content: "";
  position: absolute;
  inset: -8rem 0 -8rem;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 80% 30% at 50% 0%,
      rgba(186, 230, 253, 0.03) 0%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.008) 0%,
      rgba(2, 6, 23, 0.02) 16%,
      rgba(2, 6, 23, 0.012) 52%,
      rgba(2, 6, 23, 0.05) 100%
    );
  filter: blur(10px);
  opacity: 0.65;
}

section:nth-of-type(even)::before {
  background:
    radial-gradient(
      ellipse 78% 28% at 50% 0%,
      rgba(125, 211, 252, 0.022) 0%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.006) 0%,
      rgba(8, 16, 33, 0.018) 18%,
      rgba(2, 6, 23, 0.012) 52%,
      rgba(2, 6, 23, 0.06) 100%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
}

.hero-grid > :first-child {
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.8vw, 4.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  line-height: 1.02;
  animation: hero-rise 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes hero-rise {
  0%   { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-title-line:nth-of-type(1) {
  animation-delay: 0.08s;
}

.hero-title-line:nth-of-type(2) {
  animation-delay: 0.22s;
}

.hero-title-line:nth-of-type(3) {
  animation-delay: 0.36s;
}

/* Hero gradient text — animated color shift */
.hero-title .gradient-text {
  background: linear-gradient(
    90deg,
    #00D4FF 0%,
    #22D3EE 40%,
    #a0f0ff 60%,
    #00D4FF 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #00D4FF; /* fallback */
  animation: hero-rise 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.22s forwards, gradient-shift 4s linear infinite !important;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
  margin-left: auto;
  margin-right: auto;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-desc.hero-reveal {
  animation-delay: 0.5s;
}

.hero-actions.hero-reveal {
  animation-delay: 0.64s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  justify-content: center;
}

.btn-primary,
.btn-secondary,
.btn-submit {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--glow-primary);
  color: var(--abyss);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--glow-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0, 212, 255, 0.32);
}

.btn-secondary {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  transition: all 0.25s;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(0, 212, 255, 0.52);
  background: rgba(0, 212, 255, 0.08);
}

.depth-gauge {
  display: none;
}

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

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.55), transparent);
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

.about-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-bio p + p {
  margin-top: 1.25rem;
}

.about-bio strong {
  color: var(--text-primary);
  font-weight: 400;
}

.terminal {
  background: linear-gradient(180deg, rgba(8, 16, 33, 0.98), rgba(3, 7, 18, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 18px 48px rgba(0, 0, 0, 0.38);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.t-red {
  background: #ff5f56;
}

.t-yellow {
  background: #ffbd2e;
}

.t-green {
  background: #27c93f;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.t-prompt {
  color: var(--glow-secondary);
}

.t-cmd {
  color: var(--text-primary);
}

.t-output {
  color: var(--text-secondary);
  padding-left: 0.5rem;
}

.t-key {
  color: var(--glow-primary);
}

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--glow-primary);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(148, 163, 184, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.26);
  margin-top: 2.5rem;
}

.stat-item {
  background: linear-gradient(180deg, rgba(5, 11, 24, 0.99), rgba(2, 6, 23, 0.99));
  backdrop-filter: blur(14px);
  padding: 2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--glow-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

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

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.skill-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--glow-primary);
}

.skill-bar {
  height: 3px;
  background: rgba(148, 163, 184, 0.26);
  position: relative;
  overflow: hidden;
}

.skill-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--skill-width, 0%);
  background: linear-gradient(90deg, var(--glow-secondary), var(--glow-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-fill.animated {
  transform: scaleX(1);
}

.chart-wrap {
  position: relative;
  height: 380px;
}

.creds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

#certs-grid {
  display: grid;
}

.cert-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  background: rgba(3, 7, 18, 0.9);
}

.cred-card {
  background: linear-gradient(180deg, rgba(6, 14, 30, 0.99), rgba(3, 7, 18, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.28);
  padding: 1.65rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cred-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.cred-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(0, 212, 255, 0.06);
}

.cred-card:hover::before {
  opacity: 1;
}

.cred-card.in-progress {
  border-style: dashed;
  border-color: rgba(255, 170, 0, 0.15);
}

.cred-card.in-progress::before {
  background: linear-gradient(90deg, transparent, rgba(255, 170, 0, 0.4), transparent);
}

.cred-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--glow-primary);
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  margin-bottom: 1rem;
}

.cred-badge--certification {
  color: var(--glow-primary);
  border-color: rgba(0, 212, 255, 0.22);
}

.cred-badge--bootcamp {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.22);
}

.cred-badge--competition {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.22);
}

.cred-issuer {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.cred-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.04em;
}


.cred-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.cred-related {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.cred-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}

.cred-status.done {
  color: var(--glow-secondary);
  background: rgba(0, 255, 200, 0.06);
  border: 1px solid rgba(0, 255, 200, 0.15);
}

.cred-status.wip {
  color: rgba(255, 170, 0, 0.8);
  background: rgba(255, 170, 0, 0.04);
  border: 1px solid rgba(255, 170, 0, 0.15);
}

.cred-status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.cred-status.wip .cred-status-dot {
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.cert-filter-bar {
  margin-bottom: 1.5rem;
}

.certs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.cert-page-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  background: rgba(4, 10, 22, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.cert-page-btn:hover:not(:disabled) {
  color: var(--glow-primary);
  border-color: rgba(0, 212, 255, 0.52);
  background: rgba(0, 212, 255, 0.08);
}

.cert-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cert-page-info {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  background: rgba(4, 10, 22, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(0, 212, 255, 0.52);
  color: var(--glow-primary);
  background: rgba(0, 212, 255, 0.08);
}

.projects-grid {
  /* Layout is handled by .projects-grid-inner inside renderProjects */
}

.project-card {
  background: linear-gradient(180deg, rgba(6, 14, 30, 0.99), rgba(3, 7, 18, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0;
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.28);
  padding: 1.65rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(0, 212, 255, 0.06);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card.is-hidden {
  display: none;
}

.project-card--tool {
  box-shadow: inset 0 1px 0 rgba(20, 184, 166, 0.12);
}

.project-card--tool .project-tag {
  color: var(--glow-secondary);
}

.project-card--tool .project-link {
  border-bottom-color: rgba(20, 184, 166, 0.22);
}

.project-card--writeup {
  box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.1);
}

.project-card--writeup .project-tag {
  color: #f59e0b;
}

.project-card--writeup .project-link {
  border-bottom-color: rgba(245, 158, 11, 0.22);
}

.project-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glow-primary);
}

.project-tag.offense {
  color: rgba(200, 140, 255, 0.7);
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

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

.ptag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.05em;
}

/* ── PROJECT PAGINATION ──────────────────────────────────────── */
.projects-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.proj-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.proj-nav {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.05em;
}

.proj-nav:hover:not(.disabled) {
  color: var(--glow-primary);
  border-color: rgba(0, 212, 255, 0.35);
}

.proj-nav.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.proj-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proj-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.proj-dot--active {
  background: var(--glow-primary);
  transform: scale(1.3);
}

.proj-dot:hover:not(.proj-dot--active) {
  background: var(--text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: all 0.2s;
  margin-top: 0.5rem;
  width: fit-content;
}

.project-link:hover {
  color: var(--glow-primary);
  border-bottom-color: rgba(0, 212, 255, 0.4);
}

.project-link::after {
  content: "->";
}

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

.contact-info-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-panel {
  background:
    linear-gradient(180deg, rgba(6, 14, 30, 0.99), rgba(3, 7, 18, 0.99)),
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.12), transparent 35%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.28);
  padding: 1.75rem;
}

.contact-panel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-panel-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-panel-note {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.contact-panel-note:last-child {
  border-bottom: 1px solid var(--border);
}

.contact-panel-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-panel-value {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.contact-link-item:last-child {
  border-bottom: 1px solid var(--border);
}

.contact-link-item:hover .link-label {
  color: var(--glow-primary);
}

.contact-link-item:hover .link-arrow {
  transform: translateX(4px);
  color: var(--glow-primary);
}

.link-platform {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 80px;
}

.link-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.link-arrow {
  color: var(--text-muted);
  transition: all 0.2s;
}

footer {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy,
.footer-mark {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-mark span {
  color: var(--glow-primary);
}

.section-fade {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Depth Meter */
#depth-meter {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#depth-meter.is-visible {
  opacity: 1;
}

.depth-meter-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.depth-meter-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bioluminescence);
  line-height: 1;
  transition: none;
}

.depth-meter-bar-wrap {
  width: 2px;
  height: 200px;
  background: rgba(148, 163, 184, 0.15);
  position: relative;
  overflow: hidden;
}

.depth-meter-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, var(--bioluminescence), var(--teal-secondary), transparent);
}

.depth-meter-unit {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.6;
}

@media (max-width: 767px) {
  #depth-meter {
    display: none;
  }
}

#cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#cursor-glow.is-visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .depth-gauge {
    display: none;
  }

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

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

  .chart-wrap {
    height: 320px;
  }

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

  .projects-grid,
  .projects-grid-inner,
  .experience-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links {
    display: none;
  }

}

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

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

  .stats-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-type {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .project-title {
    font-size: 1.05rem;
  }

  .project-desc {
    font-size: 0.8rem;
  }

  .project-link {
    font-size: 0.72rem;
  }

  .chart-wrap {
    height: 280px;
  }
}

/* ═══════════════════════════════════════
   EXPERIENCE SECTION
═══════════════════════════════════════ */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.exp-card {
  background: linear-gradient(180deg, rgba(6, 14, 30, 0.99), rgba(3, 7, 18, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0;
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.28);
  padding: 1.65rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
}

.exp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.exp-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(0, 212, 255, 0.06);
}

.exp-card:hover::before {
  opacity: 1;
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.exp-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.exp-role {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--glow-primary);
  white-space: nowrap;
  border: 1px solid rgba(0, 212, 255, 0.28);
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.04);
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.exp-bullets li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.exp-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--glow-primary);
  font-size: 0.65rem;
  top: 0.1em;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.exp-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  border-radius: 0; /* sharp, consistent with .ptag and .cred-badge */
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .exp-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .exp-period {
    align-self: flex-start;
  }
}


/* ═══════════════════════════════════════════════════════════
   ANIMATION MASTER BLOCK
   – Glitch · Shimmer · Floating Orbs · Magnetic Tilt
   – Ripple · Scramble · Typed Terminal · Stagger Timeline
   – Neon Pulse · Gradient Shift · Counter · Ambient Blobs
═══════════════════════════════════════════════════════════ */

/* ── 1. GRADIENT TEXT ANIMATED SHIFT ─────────────────────── */
@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Override: animated version of hero gradient text */
.hero-title .gradient-text {
  background: linear-gradient(
    90deg,
    #00D4FF 0%,
    #22D3EE 40%,
    #a0f0ff 60%,
    #00D4FF 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #00D4FF; /* fallback */
  animation: hero-rise 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.22s forwards, gradient-shift 4s linear infinite !important;
}

/* ── 2. GLITCH EFFECT on hero gradient text hover ─────────── */
@keyframes glitch-1 {
  0%   { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 0); }
  25%  { clip-path: inset(60% 0 10% 0); transform: translate(4px, 0); }
  50%  { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 0); }
  75%  { clip-path: inset(5%  0 70% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 0); }
}
@keyframes glitch-2 {
  0%   { clip-path: inset(70% 0 5%  0); transform: translate(4px, 0); }
  25%  { clip-path: inset(10% 0 50% 0); transform: translate(-4px, 0); }
  50%  { clip-path: inset(55% 0 30% 0); transform: translate(2px, 0); }
  75%  { clip-path: inset(30% 0 55% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(70% 0 5%  0); transform: translate(4px, 0); }
}

.hero-title:hover .gradient-text {
  position: relative;
}
.hero-title:hover .gradient-text::before,
.hero-title:hover .gradient-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title:hover .gradient-text::before {
  color: #00FFFF;
  animation: glitch-1 0.4s steps(2) infinite;
  opacity: 0.7;
}
.hero-title:hover .gradient-text::after {
  color: #FF00FF;
  animation: glitch-2 0.4s steps(2) infinite;
  opacity: 0.5;
}

/* ── 3. SHIMMER SWEEP on cards ────────────────────────────── */
@keyframes shimmer-sweep {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%)  skewX(-18deg); }
}

.cred-card,
.exp-card,
.project-card {
  isolation: isolate;
}

.cred-card::after,
.exp-card::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(0, 212, 255, 0.07) 55%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.cred-card:hover::after,
.exp-card:hover::after,
.project-card:hover::after {
  animation: shimmer-sweep 0.65s ease forwards;
}

/* ── 4. FLOATING AMBIENT ORBS ─────────────────────────────── */
@keyframes orb-float-a {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.18; }
  33%  { transform: translate(30px, -40px) scale(1.08); opacity: 0.26; }
  66%  { transform: translate(-20px, 20px) scale(0.94); opacity: 0.14; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.18; }
}
@keyframes orb-float-b {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.12; }
  40%  { transform: translate(-35px, 25px) scale(1.05); opacity: 0.2; }
  70%  { transform: translate(20px, -15px) scale(0.96); opacity: 0.1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.12; }
}
@keyframes orb-float-c {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.08; }
  50%  { transform: translate(15px, 30px) scale(1.1) rotate(180deg); opacity: 0.15; }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); opacity: 0.08; }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;  /* subtle — won't break section color harmony */
}
.ambient-orb-a {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,212,255,0.8) 0%, transparent 70%);
  top: -90px; right: -70px;
  animation: orb-float-a 14s ease-in-out infinite;
}
.ambient-orb-b {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(34,211,238,0.7) 0%, transparent 70%);
  bottom: 0; left: -50px;
  animation: orb-float-b 18s ease-in-out infinite;
}
.ambient-orb-c {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(0,255,200,0.6) 0%, transparent 70%);
  top: 50%; left: 48%;
  animation: orb-float-c 22s ease-in-out infinite;
}

/* Inject orbs into sections via pseudo if needed */
#hero .container,
#about .container,
#experience .container {
  position: relative;
  overflow: visible;
}

/* neon-pulse uses box-shadow only — no text-shadow anywhere */
@keyframes neon-pulse {
  0%, 100% {
    box-shadow:
      0 0 4px rgba(0,212,255,0.25),
      0 0 10px rgba(0,212,255,0.1);
  }
  50% {
    box-shadow:
      0 0 8px rgba(0,212,255,0.45),
      0 0 16px rgba(0,212,255,0.2);
  }
}

/* t-prompt: plain color, no animation */
.t-prompt {
  color: var(--glow-secondary);
}

/* nav-logo: no animation override — original nav styles apply */


/* ── 6. SECTION TAG SCRAMBLE REVEAL ──────────────────────── */
.section-tag {
  overflow: hidden;
  position: relative;
}
.section-tag.scramble-active {
  color: var(--glow-primary);
  transition: color 0.3s;
}

/* ── 7. STAGGERED EXPERIENCE CARD ENTRANCE ───────────────── */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fade-up-pop {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.exp-column:nth-child(1) .exp-card {
  opacity: 0;
}
.exp-column:nth-child(2) .exp-card {
  opacity: 0;
}
.exp-column.anim-in:nth-child(1) .exp-card:nth-child(2) {
  animation: slide-in-left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.exp-column.anim-in:nth-child(1) .exp-card:nth-child(3) {
  animation: slide-in-left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}
.exp-column.anim-in:nth-child(2) .exp-card:nth-child(2) {
  animation: slide-in-right 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.exp-column.anim-in:nth-child(2) .exp-card:nth-child(3) {
  animation: slide-in-right 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}

/* ── 8. RIPPLE on buttons ─────────────────────────────────── */
@keyframes ripple-out {
  from { transform: scale(0); opacity: 0.4; }
  to   { transform: scale(4); opacity: 0; }
}

.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  animation: ripple-out 0.6s linear forwards;
}

/* ── 9. TYPED CURSOR blink enhancement ───────────────────── */
@keyframes blink-glow {
  0%, 49% { opacity: 1; box-shadow: 0 0 6px var(--glow-primary), 0 0 14px rgba(0,212,255,0.4); }
  50%, 100% { opacity: 0; box-shadow: none; }
}

.t-cursor {
  animation: blink-glow 1s step-end infinite !important;
}

/* ── 10. SECTION FADE-IN base override (smoother) ─────────── */
.section-fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 11. MAGNETIC TILT — handled by JS, CSS perspective ────── */
.cred-card,
.project-card,
.exp-card {
  transform-style: preserve-3d;
  perspective: 800px;
  transition:
    transform 0.12s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  will-change: transform;
}

/* ── 12. COUNTER NUMBER UP (stat section) ────────────────── */
.stat-num {
  display: inline-block;
  transition: opacity 0.3s;
}
.stat-num.counting {
  animation: neon-pulse 0.5s ease-in-out;
}

/* ── 13. SECTION DIVIDER PULSE LINE ──────────────────────── */
@keyframes line-expand {
  from { width: 0; opacity: 0; }
  to   { width: 80px; opacity: 1; }
}

.section-header::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--glow-primary), var(--glow-secondary), transparent);
  margin-top: 1.25rem;
  border-radius: 2px;
  opacity: 0;
}
.section-header.is-visible::after {
  animation: line-expand 0.8s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ── 14. HERO FLOATING BADGE ─────────────────────────────── */
@keyframes badge-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--glow-primary);
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  animation: badge-float 3s ease-in-out infinite, hero-rise 0.9s 0s cubic-bezier(0.2,0.8,0.2,1) both;
  position: relative;
  background: rgba(0,212,255,0.04);
}

.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--glow-primary);
  box-shadow: 0 0 8px var(--glow-primary);
  animation: blink-glow 1.5s step-end infinite;
}

/* ── 15. TERMINAL ENTRY ANIMATION ────────────────────────── */
@keyframes type-in {
  from { max-height: 0; opacity: 0; overflow: hidden; }
  to   { max-height: 2em; opacity: 1; }
}

.terminal .t-output,
.terminal p {
  animation: type-in 0.3s ease forwards;
}
.terminal p:nth-child(1)  { animation-delay: 0.1s; }
.terminal p:nth-child(2)  { animation-delay: 0.25s; }
.terminal p:nth-child(3)  { animation-delay: 0.4s; }
.terminal p:nth-child(4)  { animation-delay: 0.55s; }
.terminal p:nth-child(5)  { animation-delay: 0.7s; }
.terminal p:nth-child(6)  { animation-delay: 0.85s; }
.terminal p:nth-child(7)  { animation-delay: 1s; }
.terminal p:nth-child(8)  { animation-delay: 1.15s; }
.terminal p:nth-child(9)  { animation-delay: 1.3s; }
.terminal p:nth-child(10) { animation-delay: 1.45s; }

.terminal .t-output:nth-child(1) { animation-delay: 0.55s; }
.terminal .t-output:nth-child(2) { animation-delay: 0.7s; }
.terminal .t-output:nth-child(3) { animation-delay: 0.85s; }
.terminal .t-output:nth-child(4) { animation-delay: 1s; }
.terminal .t-output:nth-child(5) { animation-delay: 1.15s; }
.terminal .t-output:nth-child(6) { animation-delay: 1.3s; }

/* ── 16. HOVER GLOW BORDER on contact links ──────────────── */
@keyframes border-travel {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.contact-link-item {
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.contact-link-item:hover {
  transform: translateX(6px);
}

/* ── 17. SCAN LINE ANIMATION on terminal ─────────────────── */
@keyframes scan-line {
  0%   { top: 0%; }
  100% { top: 100%; }
}

.terminal {
  position: relative;
  overflow: hidden;
}
.terminal::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
  animation: scan-line 3s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* ── 18. CERT CARD FLIP TILT SHADOW ─────────────────────── */
.cred-card:hover {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 212, 255, 0.2),
    0 0 30px rgba(0, 212, 255, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* ── 19. PROJECT CARD colored accent per category ──────────── */
.project-card--tool:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 24px rgba(0,212,255,0.08), 0 16px 40px rgba(0,0,0,0.3);
}
.project-card--writeup:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 24px rgba(34,211,238,0.08), 0 16px 40px rgba(0,0,0,0.3);
}

/* ── 20. EXPERIENCE COLUMN LABEL ────────────────────────────── */
/* Static color — no pulse, consistent with section palette */
.exp-column-label {
  color: var(--glow-primary);
  opacity: 0.85;
}

/* ── 21. SMOOTH NAV LINK UNDERLINE EXPAND ─────────────────── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--glow-primary);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 6px var(--glow-primary);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ── 22. FLOATING HERO PARTICLES (CSS-only sparkles) ──────── */
@keyframes sparkle {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-120px) rotate(720deg); opacity: 0; }
}

.hero-sparkle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--glow-primary);
  box-shadow: 0 0 6px var(--glow-primary);
  pointer-events: none;
  animation: sparkle var(--dur, 3s) linear var(--delay, 0s) infinite;
}

/* ── 23. SKILL BAR GLOW on animate ──────────────────────── */
.skill-fill.animated {
  box-shadow: 0 0 8px rgba(0,212,255,0.5), 0 0 16px rgba(0,212,255,0.2);
}

/* ── 24. CONTACT PANEL ENTRANCE ─────────────────────────── */
@keyframes panel-slide-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.contact-panel.is-visible {
  animation: panel-slide-in 0.6s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* ── 25. FOOTER DEPTH COUNTER ───────────────────────────────── */
#footer-depth {
  color: var(--glow-primary);
  /* no animation — static accent color is enough */
}
