/* =========================
   MERGED styles.css (FINAL)
   ========================= */

/* THEME (CSS Variables) */
:root {
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);

  /* default (dark) */
  --bg-primary: #0b0f17;
  --bg-secondary: #0f1624;
  --bg-tertiary: rgba(255, 255, 255, .03);

  --border: rgba(255, 255, 255, .08);

  --text-primary: #e9eefc;
  --text-secondary: #cbd6f3;
  --text-muted: #aab3c9;

  --accent: #7c5cff;
  --cyan: #22d3ee;

  --btnTextDark: #06101c;
}

html[data-theme="light"] {
  --bg-primary: #f3f5f9;
  --bg-secondary: #ffffff;
  --bg-tertiary: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.14);

  --text-primary: #0b1220;
  --text-secondary: #111827;
  --text-muted: #475569;

  --accent: #5b21b6;
  --cyan: #0e7490;
  --btnTextDark: #1a1d29;
}

html[data-theme="light"] body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--text-primary);
}

/* Ensure all text elements have proper contrast in light mode */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
  color: #1a1d29;
}

html[data-theme="light"] p,
html[data-theme="light"] li,
html[data-theme="light"] span {
  color: #495057;
}

html[data-theme="light"] .chip,
html[data-theme="light"] .tag,
html[data-theme="light"] .pTag,
html[data-theme="light"] .certHint,
html[data-theme="light"] .terminal__path {
  background: rgba(0, 0, 0, 0.08);
  color: #1a1d29;
  border-color: rgba(15, 23, 42, 0.2);
}

html[data-theme="light"] .terminal-window {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .nav {
  background: rgba(248, 249, 250, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Card backgrounds in light mode */
html[data-theme="light"] .edu-card,
html[data-theme="light"] .research-card,
html[data-theme="light"] .cert-card,
html[data-theme="light"] .evidence-card,
html[data-theme="light"] .chk-card,
html[data-theme="light"] .gpu-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Ensure labels and metadata are readable */
html[data-theme="light"] .edu-meta,
html[data-theme="light"] .cert-org,
html[data-theme="light"] .evidence-label {
  color: #6c757d;
}

/* Links in light mode */
html[data-theme="light"] a {
  color: #0e7490;
}

html[data-theme="light"] a:hover {
  color: #7c5cff;
}

/* Specific section fixes for light mode */
html[data-theme="light"] .hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .hero-card h3,
html[data-theme="light"] .hero-card .hero-stat-num {
  color: #1a1d29;
}

html[data-theme="light"] .hero-card p,
html[data-theme="light"] .hero-stat-label {
  color: #495057;
}

html[data-theme="light"] .cred-panel {
  background: rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .cred-col {
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .pipeline-card h3,
html[data-theme="light"] .pipeline-card p {
  color: #1a1d29;
}

html[data-theme="light"] .pipeline-card .pipeline-desc {
  color: #495057;
}

html[data-theme="light"] .pipeline-tech {
  color: #6c757d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 15% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 55%),
    var(--bg-primary);
  color: var(--text-primary);
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  letter-spacing: .2px;
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

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

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

.iconBtn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#mode3DToggle {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  width: auto;
  padding: 6px 10px;
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
}

#mode3DToggle.is-active {
  background: rgba(14, 116, 144, 0.15);
  /* Low opacity cyan */
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(14, 116, 144, 0.3);
}

html[data-theme="light"] #mode3DToggle.is-active {
  background: rgba(14, 116, 144, 0.1);
  color: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 640px) {
  #mode3DToggle {
    display: none !important;
  }
}

.iconBtn:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 95%, #fff), color-mix(in srgb, var(--cyan) 85%, #fff));
  color: var(--btnTextDark);
  font-weight: 800;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.btn--ghost {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-shadow: none;
}

.btn--sm {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.menuBtn {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  cursor: pointer;
  width: 42px;
  height: 38px;
  border-radius: 12px;
}

.menuBtn span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text-primary);
  margin: 5px auto;
  opacity: .9;
}

.mobileNav {
  border-top: 1px solid var(--border);
  padding: 10px 0 14px;
}

.mobileNav a {
  display: block;
  padding: 10px 4%;
  color: var(--text-muted);
}

.mobileNav a:hover {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--bg-tertiary) 70%, transparent);
}

/* HERO */
.hero {
  padding: 56px 0 20px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr .95fr;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: .4rem 0 1rem;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.grad {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}

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

.pill {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}

/* CARDS */
.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 92%, transparent), var(--bg-tertiary));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__title {
  padding: 14px 16px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.card__body {
  padding: 14px 16px;
}

.linkRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--text-muted);
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 65%, transparent);
}

.linkRow:hover {
  color: var(--text-primary);
}

.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.small {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 10px;
}

/* TERMINAL */
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dot--r {
  background: #ff5f56;
}

.dot--y {
  background: #ffbd2e;
}

.dot--g {
  background: #27ca40;
}

.terminal__path {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
}

.terminal__body {
  padding: 14px 16px 16px;
  font-family: var(--mono);
}

.termLine {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}

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

.termCmd {
  color: var(--cyan);
  font-weight: 700;
}

.termArg {
  color: var(--text-secondary);
}

.termBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 6px;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}

.termBtn:hover,
.termBtn:focus {
  color: var(--accent);
  background: color-mix(in srgb, var(--bg-tertiary) 75%, transparent);
  outline: none;
}

.termBtn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

.cursor {
  opacity: 0;
  animation: blink 1.0s infinite;
  transition: opacity .15s ease;
}

.cursor--soft {
  opacity: .35;
}

.termBtn:hover .cursor,
.termBtn:focus .cursor {
  opacity: 1;
}

@keyframes blink {

  0%,
  49% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 1;
  }
}

.termBlock {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--bg-tertiary) 80%, transparent);
}

.kv {
  display: flex;
  gap: 10px;
  margin: 6px 0;
}

.k {
  color: var(--text-muted);
  min-width: 92px;
}

.v {
  color: var(--text-secondary);
}

.tlink {
  color: color-mix(in srgb, var(--cyan) 85%, var(--text-secondary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tlink:hover {
  color: var(--accent);
}

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

/* Remove extra bottom padding from last section (Contact) */
.section:last-of-type {
  padding-bottom: 24px;
  min-height: auto !important;
}

/* Contact section - end page cleanly */
#contact {
  min-height: auto !important;
  padding-bottom: 20px !important;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section__head h2 {
  margin: 0;
  font-size: 26px;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.muted {
  color: var(--text-muted);
}

.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.bullets li {
  margin: 8px 0;
}

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

.pCard {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .15s ease, border-color .15s ease;
}

.pCard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.pCard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pCard__top h3 {
  margin: 0;
  font-size: 17px;
}

.tag {
  font-size: 12px;
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.mini {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.mini li {
  margin: 7px 0;
}

.pCard__links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.chip {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-tertiary) 70%, transparent);
}

.rowBtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: color-mix(in srgb, var(--bg-secondary) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 14px;
  padding: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  font-family: var(--mono);
}

.footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .menuBtn {
    display: inline-flex;
  }

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

/* EXPERIENCE GRID */
.expGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.expCard {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .15s ease, border-color .15s ease;
}

.expCard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.expTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.expTop h3 {
  margin: 0;
  font-size: 16px;
}

.expMeta {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.expDate {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-tertiary) 70%, transparent);
  white-space: nowrap;
}

.expList {
  margin: 10px 0 12px;
  padding-left: 18px;
  color: var(--text-muted);
}

.expList li {
  margin: 7px 0;
}

.expTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-tertiary) 70%, transparent);
}

/* CERTIFICATIONS WINDOW */
.certGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.window__title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
}

.window__body {
  padding: 14px 16px 16px;
  font-family: var(--mono);
}

.winLine {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.winList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.winList li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--bg-tertiary) 75%, transparent);
}

.winList li:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

/* Certifications Tabs */
.window--main {
  margin-top: 10px;
}

.tabs {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-tertiary) 75%, transparent);
}

.tabBtn {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-tertiary) 70%, transparent);
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.tabBtn:hover {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.tabBtn.is-active {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.tabPanels {
  padding: 14px 16px 16px;
}

.tabPanel {
  display: none;
}

.tabPanel.is-active {
  display: block;
}

.certLink {
  color: var(--text-secondary);
  text-decoration: none;
}

.certLink:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* $ Title style */
.dollarTitle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dollar {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 800;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

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

.reveal[data-delay="1"] {
  transition-delay: .06s;
}

.reveal[data-delay="2"] {
  transition-delay: .12s;
}

.reveal[data-delay="3"] {
  transition-delay: .18s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive for exp + cert */
@media (max-width: 920px) {
  .expGrid {
    grid-template-columns: 1fr;
  }

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

/* ===== SKILLS (ALL SAME SIZE) ===== */
.skillTiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.skillTile {
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg-tertiary) 75%, transparent);
  border-radius: 18px;
  padding: 14px 10px;
  height: 132px;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition: transform .15s ease, border-color .15s ease;
}

.skillTile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.skillIco {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--bg-secondary) 70%, transparent);
  color: color-mix(in srgb, var(--text-secondary) 90%, var(--text-muted));
}

.skillIco svg {
  width: 24px;
  height: 24px;
}

.skillIco img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: filter .15s ease, opacity .15s ease;
}

/* SVG icons from jsDelivr - ensure they're visible */
.skillIco img[src*=".svg"] {
  opacity: 0.9;
}

.skillTile:hover .skillIco img {
  filter: brightness(1.15);
  opacity: 1;
}

.skillLbl {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.25;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 18ch;
}

/* neutralize any old big-tile rules */
.skillTile--lg,
.skillTile--wide {
  grid-column: auto !important;
  min-height: unset !important;
  height: 132px !important;
}

.skillTile--lg .skillIco,
.skillTile--wide .skillIco {
  width: 56px !important;
  height: 56px !important;
}

.skillTile--lg .skillIco svg,
.skillTile--wide .skillIco svg {
  width: 24px !important;
  height: 24px !important;
}

.skillTile--lg .skillLbl,
.skillTile--wide .skillLbl {
  font-size: 12.5px !important;
  max-width: 18ch !important;
}

@media (max-width: 1100px) {
  .skillTiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .skillTiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== PROJECTS (terminal window style) ===== */
.projGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.projWin {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
  box-shadow: var(--shadow);
}

.projBar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg-tertiary) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.projPath {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projBody {
  padding: 16px;
  font-family: var(--mono);
}

.projCmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.projFile {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: .02em;
}

.projDesc {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 13.5px;
}

.chk-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chk-stack .tag {
  font-size: 0.8em;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #22c55e 65%, var(--border));
  color: color-mix(in srgb, #22c55e 75%, var(--text-secondary));
  background: color-mix(in srgb, #16a34a 12%, transparent);
  font-family: var(--mono);
}

.projTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pTag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #22c55e 65%, var(--border));
  color: color-mix(in srgb, #22c55e 75%, var(--text-secondary));
  background: color-mix(in srgb, #16a34a 12%, transparent);
  font-family: var(--mono);
}

.projLinks {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 4px;
}

.projLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 13px;
  transition: color .15s ease;
}

.projLink:hover {
  color: var(--text-primary);
}

.linkIco {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}

.linkIco svg {
  width: 16px;
  height: 16px;
}

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

/* ===== Certifications rows (link tabs like screenshot) ===== */
.certList {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.certRow {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 14px;
  border-radius: 16px;

  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--bg-tertiary) 72%, transparent);

  color: var(--text-secondary);
  font-family: var(--mono);

  transition: border-color .15s ease, transform .15s ease, color .15s ease, background .15s ease;
}

.certPrompt {
  color: var(--accent);
  font-weight: 800;
  flex: 0 0 auto;
}

.certTitle {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.certHint {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--bg-secondary) 70%, transparent);
}

.certRow:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--bg-tertiary) 86%, transparent);
  color: var(--text-primary);
}

.certRow:focus {
  outline: none;
}

.certRow:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

/* ===== FIX: Certifications card overflow + equal sizing ===== */

/* Make the two cards equal height in the grid */
.projGrid {
  align-items: stretch;
  /* stretch items to same row height */
}

.projWin {
  height: 100%;
  /* allow stretching */
  display: flex;
  flex-direction: column;
}

.projBody {
  flex: 1 1 auto;
  /* body grows to fill */
  min-width: 0;
  /* IMPORTANT: prevents overflow in flex/grid */
}

/* Prevent header path from overflowing */
.projPath {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ensure the command row wraps nicely */
.projCmd {
  flex-wrap: wrap;
}

.projFile {
  overflow-wrap: anywhere;
}

/* Description should wrap and never overflow */
.projDesc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Certification rows: wrap long titles inside the box */
.certRow {
  min-width: 0;
  width: 100%;
}

.certTitle {
  white-space: normal;
  /* allow wrapping */
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  overflow-wrap: anywhere;
  /* breaks long words nicely */
  line-height: 1.45;
}

/* Optional: keep "Open" pill from shrinking weirdly */
.certHint {
  flex: 0 0 auto;
}

/* Make cert rows look tighter and aligned */
.certList {
  margin-top: 12px;
}

/* ===== STATISTICS / ACHIEVEMENTS SECTION ===== */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 8%, transparent) 0%,
      transparent 50%,
      color-mix(in srgb, var(--cyan) 6%, transparent) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-secondary) 60%, transparent);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 15%, transparent);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:not(.btn--ghost) {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, var(--cyan)));
  color: white;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn:not(.btn--ghost):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

.btn:not(.btn--ghost):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 25%, transparent);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  font-family: var(--mono);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--accent);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-secondary) 95%, transparent);
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transition: stroke-dashoffset 0.1s linear;
}

.arrow-icon {
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

/* ===== TYPING ANIMATION ===== */
@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

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

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 1s infinite;
}

/* ===== ENHANCED REVEAL ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.reveal {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.reveal[data-delay="1"] {
  animation-delay: 0.1s;
}

.reveal[data-delay="2"] {
  animation-delay: 0.2s;
}

.reveal[data-delay="3"] {
  animation-delay: 0.3s;
}

.reveal[data-delay="4"] {
  animation-delay: 0.4s;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  border-radius: 6px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 120%, white),
      color-mix(in srgb, var(--cyan) 120%, white));
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-card {
    padding: 24px 16px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-icon {
    font-size: 36px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

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

/* ===== CONTACT INFO WITH COPY BUTTONS ===== */
.contactInfo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.contactItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contactLabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.contactValue {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contactValue a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

/* Contact Section - External Credibility */
.contact-cred-section {
  margin-top: 32px;
  padding: 24px;
  background: rgba(18, 22, 36, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.contact-cred-section h4 {
  color: #fff;
  font-size: 0.95em;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
  text-align: center;
}

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

/* Light mode for contact credibility */
html[data-theme="light"] .contact-cred-section {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .contact-cred-section h4 {
  color: #1a1d29;
}

.copyBtn {
  padding: 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg-tertiary) 80%, transparent);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.copyBtn:hover {
  background: color-mix(in srgb, var(--accent) 15%, var(--bg-tertiary));
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.copyBtn:active {
  transform: scale(0.95);
}

.copyBtn.copied {
  background: color-mix(in srgb, var(--accent) 20%, var(--bg-tertiary));
  border-color: var(--accent);
  color: var(--accent);
}

.copyBtn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .contactValue {
    flex-wrap: wrap;
  }
}

/* ===== CONSISTENT HOVER EFFECTS FOR ALL SECTIONS ===== */

/* Education Section Panels - Add hover effects */
#education .panel {
  transition: all 0.3s ease;
  cursor: default;
}

#education .panel:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Experience Cards - Add hover effects */
.expCard {
  transition: all 0.3s ease;
  cursor: default;
}

.expCard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Summary/About Section Panels - Add hover effects */
#about .panel {
  transition: all 0.3s ease;
  cursor: default;
}

#about .panel:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Skills Section Panels - Add hover effects */
#skills .panel {
  transition: all 0.3s ease;
  cursor: default;
}

#skills .panel:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Project Cards - Enhance existing hover */
.projWin {
  transition: all 0.3s ease;
}

.projWin:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* Ensure smooth transitions for all interactive elements */
.panel,
.expCard,
.projWin,
.certRow,
.stat-card {
  will-change: transform;
}

/* ===========================
   3D SCROLL ANIMATION SYSTEM
   =========================== */

/* Main 3D perspective container */
.scroll3d-container {
  position: relative;
  width: 100%;
  height: 100vh;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* All sections within 3D scroll */
.scroll3d-container>section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active section (currently visible) */
.scroll3d-container>section.scroll3d-active {
  transform: translateZ(0) scale(1) rotateX(0deg);
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* Previous sections (scrolled past) */
.scroll3d-container>section.scroll3d-prev {
  transform: translateZ(-800px) scale(0.75) rotateX(5deg);
  opacity: 0.3;
  pointer-events: none;
  z-index: 5;
}

/* Next sections (not yet reached) */
.scroll3d-container>section.scroll3d-next {
  transform: translateY(100vh) translateZ(0) scale(0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* Smooth scroll behavior override for 3D scroll */
html.scroll3d-enabled {
  overflow: hidden;
  scroll-behavior: auto;
}

html.scroll3d-enabled body {
  overflow: hidden;
  height: 100vh;
}

/* Performance optimizations */
.scroll3d-container>section * {
  transform: translateZ(0);
}

/* Mobile/tablet: reduce 3D effect */
@media (max-width: 920px) {
  .scroll3d-container {
    perspective: 1000px;
  }

  .scroll3d-container>section.scroll3d-prev {
    transform: translateZ(-400px) scale(0.85) rotateX(3deg);
  }
}

/* Disable 3D on very small screens */
@media (max-width: 640px) {
  .scroll3d-container {
    perspective: none;
    height: auto;
    overflow: visible;
  }

  .scroll3d-container>section {
    position: relative;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html.scroll3d-enabled {
    overflow: auto;
  }

  html.scroll3d-enabled body {
    overflow: auto;
    height: auto;
  }
}

/* Fix 1: Ensure sections have solid background to prevent see-through */
.scroll3d-container>section {
  background: var(--bg-primary);
  background: radial-gradient(1200px 600px at 15% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 55%),
    var(--bg-primary);
}

/* Fix 2: Hide previous sections completely to prevent stacking */
.scroll3d-container>section.scroll3d-prev {
  transform: translateZ(-1200px) scale(0.6) rotateX(8deg);
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Fix 3: More creative active section with subtle rotation */
.scroll3d-container>section.scroll3d-active {
  transform: translateZ(0) scale(1) rotateX(0deg) rotateY(0deg);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
  animation: sectionEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionEnter {
  from {
    transform: translateZ(100px) scale(0.95);
    opacity: 0.5;
  }

  to {
    transform: translateZ(0) scale(1);
    opacity: 1;
  }
}

/* Fix 4: More dramatic next section entrance */
.scroll3d-container>section.scroll3d-next {
  transform: translateY(120vh) translateZ(-200px) scale(0.9) rotateX(-5deg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
}

/* Add depth blur effect for more creativity */
.scroll3d-container>section.scroll3d-prev {
  filter: blur(8px);
}

.scroll3d-container>section.scroll3d-next {
  filter: blur(4px);
}

.scroll3d-container>section.scroll3d-active {
  filter: blur(0px);
}

/* More Creative Effects */

/* Add subtle scale pulse to active section */
@keyframes sectionPulse {

  0%,
  100% {
    transform: translateZ(0) scale(1);
  }

  50% {
    transform: translateZ(0) scale(1.002);
  }
}

.scroll3d-container>section.scroll3d-active {
  animation: sectionEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    sectionPulse 8s ease-in-out infinite 1s;
}

/* Add glow effect to active section */
.scroll3d-container>section.scroll3d-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%,
      color-mix(in srgb, var(--accent) 8%, transparent) 0%,
      transparent 70%);
  opacity: 0;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.6;
  }
}

/* Smooth color shift on section change */
.scroll3d-container>section {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    background 1.2s ease;
}

/* Add parallax effect to section content */
.scroll3d-container>section.scroll3d-active .container {
  animation: contentFloat 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes contentFloat {
  from {
    transform: translateY(30px);
    opacity: 0.3;
  }

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

/* Enhanced transition for cards and panels */
.scroll3d-container>section.scroll3d-active .panel,
.scroll3d-container>section.scroll3d-active .card,
.scroll3d-container>section.scroll3d-active .expCard,
.scroll3d-container>section.scroll3d-active .projWin {
  animation: cardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes cardSlideIn {
  from {
    transform: translateY(20px) translateZ(-50px);
    opacity: 0;
  }

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

/* Stagger animation for multiple cards */
.scroll3d-container>section.scroll3d-active .panel:nth-child(1),
.scroll3d-container>section.scroll3d-active .expCard:nth-child(1) {
  animation-delay: 0.3s;
}

.scroll3d-container>section.scroll3d-active .panel:nth-child(2),
.scroll3d-container>section.scroll3d-active .expCard:nth-child(2) {
  animation-delay: 0.4s;
}

.scroll3d-container>section.scroll3d-active .panel:nth-child(3),
.scroll3d-container>section.scroll3d-active .expCard:nth-child(3) {
  animation-delay: 0.5s;
}

.scroll3d-container>section.scroll3d-active .panel:nth-child(4),
.scroll3d-container>section.scroll3d-active .expCard:nth-child(4) {
  animation-delay: 0.6s;
}

/* ========================================
   AI/ML THEMED CREATIVE ENHANCEMENTS
   ======================================== */

/* Neural Network Animation Background */
@keyframes neuralPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Add neural network dots to hero section */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 20%, transparent) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--cyan) 15%, transparent) 2px, transparent 2px),
    radial-gradient(circle at 40% 70%, color-mix(in srgb, var(--accent) 18%, transparent) 2px, transparent 2px),
    radial-gradient(circle at 90% 60%, color-mix(in srgb, var(--cyan) 12%, transparent) 2px, transparent 2px),
    radial-gradient(circle at 10% 80%, color-mix(in srgb, var(--accent) 15%, transparent) 2px, transparent 2px);
  background-size: 100% 100%;
  animation: neuralPulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero>.container {
  position: relative;
  z-index: 1;
}

/* Matrix-style code rain effect for skills section */
@keyframes codeRain {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

#skills::before {
  content: '01010011 01001011 01001001 01001100 01001100 01010011';
  position: absolute;
  top: 0;
  right: 5%;
  font-family: var(--mono);
  font-size: 12px;
  color: color-mix(in srgb, var(--accent) 15%, transparent);
  animation: codeRain 15s linear infinite;
  pointer-events: none;
  letter-spacing: 4px;
}

/* Floating code snippets */
@keyframes floatCode {

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

  50% {
    transform: translateY(-20px) rotate(2deg);
    opacity: 0.2;
  }
}

.section::after {
  content: 'import tensorflow as tf';
  position: absolute;
  bottom: 10%;
  left: 3%;
  font-family: var(--mono);
  font-size: 11px;
  color: color-mix(in srgb, var(--cyan) 12%, transparent);
  animation: floatCode 8s ease-in-out infinite;
  pointer-events: none;
}

#about::after {
  content: 'model.fit(X_train, y_train)';
  left: auto;
  right: 5%;
  animation-delay: 2s;
}

#experience::after {
  content: 'torch.nn.functional.relu()';
  bottom: 15%;
  animation-delay: 4s;
}

/* AI Brain visualization for education section */
@keyframes brainPulse {

  0%,
  100% {
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 20%, transparent);
  }

  50% {
    box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent),
      0 0 60px color-mix(in srgb, var(--cyan) 20%, transparent);
  }
}

/* Add glowing border to education panels */
#education .panel {
  position: relative;
  overflow: hidden;
}

#education .panel::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--cyan), var(--accent));
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: brainPulse 3s ease-in-out infinite;
}

#education .panel:hover::before {
  opacity: 0.3;
}

/* Tech stack grid enhancement */
.skillTile {
  position: relative;
  overflow: hidden;
}

.skillTile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  transition: left 0.5s ease;
}

.skillTile:hover::before {
  left: 100%;
}

/* Data flow animation */
@keyframes dataFlow {
  0% {
    transform: translateX(-100%) scaleX(0);
  }

  50% {
    transform: translateX(0) scaleX(1);
  }

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

.scroll3d-container>section.scroll3d-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
  animation: dataFlow 3s ease-in-out infinite;
  opacity: 0.4;
}

/* GPU acceleration indicator */
@keyframes gpuGlow {

  0%,
  100% {
    text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent);
  }

  50% {
    text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 60%, transparent),
      0 0 30px color-mix(in srgb, var(--cyan) 40%, transparent);
  }
}

.grad {
  animation: gpuGlow 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN FIXES
   ======================================== */

/* Fix horizontal overflow globally */
* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Fix certification section overflow */
.certList {
  width: 100%;
  overflow-x: hidden;
}

.certRow {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
}

.certTitle {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  /* Important for text-overflow to work in flex */
}

/* On hover/focus, show full title */
.certRow:hover .certTitle,
.certRow:focus .certTitle {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

/* Fix project windows overflow */
.projWin {
  width: 100%;
  overflow: hidden;
}

.projBody {
  width: 100%;
  overflow-x: hidden;
}

/* Ensure containers don't overflow */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  overflow-x: hidden;
}

/* Fix grid layouts on mobile */
@media (max-width: 920px) {
  .grid2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Smaller font sizes for mobile */
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .certTitle {
    font-size: 13px;
  }

  /* Ensure chips wrap on mobile */
  .chips {
    flex-wrap: wrap;
  }

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

/* Fix 3D scroll sections to fit viewport */
.scroll3d-container>section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure active section is scrollable if content is tall */
.scroll3d-container>section.scroll3d-active {
  overflow-y: auto;
  max-height: 100vh;
}

/* Fix panels to not overflow */
.panel {
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

/* Fix experience cards */
.expCard {
  width: 100%;
  overflow: hidden;
}

/* Responsive padding for sections */
@media (max-width: 920px) {
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }
}

/* Fix stats grid on mobile */
@media (max-width: 640px) {
  .statsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Ensure buttons and interactive elements are touch-friendly */
@media (max-width: 920px) {

  button,
  .btn,
  a {
    min-height: 44px;
    /* iOS recommended touch target */
    min-width: 44px;
  }

  .certRow {
    min-height: 48px;
    padding: 12px;
  }
}

/* Fix code blocks overflow */
.pre,
pre,
code {
  overflow-x: auto;
  max-width: 100%;
  word-wrap: break-word;
  white-space: pre-wrap;
}

@media (max-width: 640px) {

  .pre,
  pre,
  code {
    font-size: 11px;
  }
}

/* ========================================
   IMPROVED MOBILE & TOUCH HANDLING
   ======================================== */

/* Better touch handling - prevent default scroll only when needed */
.scroll3d-container {
  touch-action: pan-y;
  /* Allow vertical panning */
}

/* Allow scrolling within active section if content overflows */
.scroll3d-container>section.scroll3d-active {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
}

/* Prevent body scroll when in 3D mode on desktop */
@media (min-width: 641px) {
  html.scroll3d-enabled body {
    overflow: hidden;
    height: 100vh;
  }
}

/* On mobile, allow normal scrolling */
@media (max-width: 640px) {
  html.scroll3d-enabled {
    overflow: auto !important;
  }

  html.scroll3d-enabled body {
    overflow: auto !important;
    height: auto !important;
  }

  .scroll3d-container {
    height: auto !important;
    overflow: visible !important;
  }

  .scroll3d-container>section {
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Fix viewport meta for proper mobile rendering */
/* Add this to HTML if not present:
   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
*/

/* Ensure no horizontal scroll on any screen size */
body,
html,
.scroll3d-container,
section,
.container {
  overflow-x: hidden !important;
}

/* Fix certification cards specifically */
.projWin {
  max-width: 100%;
  overflow: hidden;
}

.certRow .certTitle {
  max-width: calc(100% - 80px);
  /* Account for prompt and hint */
}

/* Better mobile navigation */
@media (max-width: 920px) {

  /* Make navigation dots bigger for touch */
  nav a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Fix stats grid overflow */
.statsGrid {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.statCard {
  min-width: 0;
  /* Allow flex items to shrink */
}

/* Fix skill tiles overflow */
.skillGrid {
  width: 100%;
  max-width: 100%;
}

.skillTile {
  min-width: 0;
  overflow: hidden;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Fix long URLs or code in panels */
.panel a,
.panel code {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ========================================
   CORE LAYOUT & SCROLL LOGIC (TOGGLEABLE)
   ======================================== */

/* 1. DEFAULT: STANDARD SCROLL (NO 3D) */
html,
body {
  overflow-y: auto !important;
  height: auto !important;
  width: 100% !important;
  position: relative !important;
  touch-action: auto !important;
}

.scroll3d-container {
  height: auto !important;
  overflow: visible !important;
  width: 100% !important;
  position: relative !important;
}

.scroll3d-container>section {
  position: relative !important;
  height: auto !important;
  min-height: 100vh;
  width: 100% !important;
  padding: 80px 0 !important;
  /* Standard padding */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  pointer-events: auto !important;
  display: block !important;
  overflow: visible !important;
}

/* Ensure no weird hidden states in normal mode */
.scroll3d-prev,
.scroll3d-next,
.scroll3d-active {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

/* Fix container layouts for normal scroll */
#education .container,
#certs .container,
#experience .container,
#contact .container {
  display: block !important;
  min-height: unset !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. ENABLED: 3D EXPERIENCE MODE (.enable-3d) */
/* Only applied when user toggles it ON */
body.enable-3d {
  overflow: hidden !important;
  position: fixed;
  width: 100vw;
  height: 100vh;
}

body.enable-3d .scroll3d-container {
  height: 100vh !important;
  overflow: hidden !important;
  perspective: 1000px;
}

body.enable-3d .scroll3d-container>section {
  position: absolute !important;
  top: 0;
  left: 0;
  height: 100vh !important;
  width: 100vw !important;
  overflow: hidden !important;
  padding: 80px 0 !important;

  /* Default state for non-active sections in 3D */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.8s, filter 0.8s, visibility 0.8s;
}

/* Active Section in 3D */
body.enable-3d .scroll3d-container>section.scroll3d-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 10;
  transform: translateZ(0) !important;
  filter: blur(0);
  overflow-y: auto !important;
  /* Allow internal scroll */
}

/* Previous Section */
body.enable-3d .scroll3d-container>section.scroll3d-prev {
  transform: translateZ(-1000px) rotateX(10deg) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  filter: blur(10px);
  z-index: 0;
}

/* Next Section */
body.enable-3d .scroll3d-container>section.scroll3d-next {
  transform: translateZ(1000px) rotateX(-10deg) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  filter: blur(10px);
  z-index: 20;
}

/* Force sections to start from top in 3D mode to avoid misalignment */
body.enable-3d #education .container,
body.enable-3d #certs .container,
body.enable-3d #experience .container,
body.enable-3d #contact .container {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 100px !important;
}

/* Mobile Override: Force Disable 3D even if class exists */
@media (max-width: 640px) {
  body.enable-3d {
    overflow-y: auto !important;
    position: static !important;
    height: auto !important;
  }

  body.enable-3d .scroll3d-container {
    height: auto !important;
    overflow: visible !important;
  }

  body.enable-3d .scroll3d-container>section {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    height: auto !important;
  }
}


/* ========================================
   SKILL SCALE FIX - HOVER ONLY (USER REQUEST)
   ======================================== */

/* Remove permanent display for large skills */
.skillTile--lg::after {
  width: 0% !important;
  /* Hide by default */
  opacity: 0 !important;
}

/* Show only on hover */
.skillTile--lg:hover::after {
  width: 100% !important;
  opacity: 1 !important;
}

/* Also ensure normal skill tiles behave the same */
.skillTile::after {
  width: 0%;
  opacity: 0;
}

.skillTile:hover::after {
  width: 100%;
}

/* ========================================
   NEW EVIDENCE-BASED SKILLS LAYOUT
   ======================================== */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

.evidence-card {
  background: rgba(18, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.evidence-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(25, 30, 48, 0.9);
}

.evidence-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.evidence-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.evidence-title h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.tech-stack-mini {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin-top: 4px;
}

.evidence-body {
  font-size: 0.9em;
}

.evidence-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.evidence-label {
  color: var(--text-secondary);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.evidence-val a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(64, 224, 208, 0.3);
  transition: all 0.2s;
}

.evidence-val a:hover {
  color: #fff;
  border-bottom-style: solid;
}

.evidence-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.evidence-metrics li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: #d1d5db;
  line-height: 1.4;
}

.evidence-metrics li::before {
  content: '';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9em;
  top: 1px;
}

.evidence-metrics strong {
  color: #fff;
  font-weight: 600;
}

/* Proficiency line at bottom */
.proficiency-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0.5;
  transition: opacity 0.3s;
}

.evidence-card:hover .proficiency-line {
  opacity: 1;
  box-shadow: 0 0 10px var(--accent);
}

/* ========================================
   MODEL CARD HERO UI
   ======================================== */
.model-card {
  background: rgba(13, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  margin-top: 10px;
}

.model-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.model-id {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.model-status {
  font-size: 0.75em;
  font-weight: 700;
  color: #10b981;
  /* Green */
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.model-body {
  padding: 24px;
}

.model-row {
  display: flex;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.model-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.model-row .label {
  width: 120px;
  font-size: 0.85em;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.model-row .val {
  flex: 1;
  font-size: 0.95em;
  color: var(--text-secondary);
}

.model-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.model-metrics .metric {
  text-align: center;
  flex: 1;
}

.model-metrics .m-val {
  display: block;
  font-size: 1.5em;
  font-weight: 800;
  color: var(--text-primary);
}

.model-metrics .m-lbl {
  font-size: 0.75em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.model-footer {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero__social {
  margin-top: 24px;
  display: flex;
  gap: 20px;
}

/* ========================================
   RESEARCH / PROJECT CARDS (PHASE 2)
   ========================================*/
/* Research & Focus Areas Card */
.research-card {
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  transition: all 0.3s ease;
}

.research-card:hover {
  border-color: rgba(124, 92, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.research-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.research-icon {
  font-size: 1.2em;
  opacity: 0.8;
}

.research-header h4 {
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

.research-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.research-list li {
  color: var(--text-secondary);
  font-size: 0.85em;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.research-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.research-note {
  color: var(--text-muted);
  font-size: 0.75em;
  line-height: 1.4;
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-style: italic;
}

.chk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.chk-header h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #fff;
  flex-shrink: 0;
}

.chk-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chk-links a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(124, 92, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.chk-links a:hover {
  background: var(--accent);
  color: #fff;
}

.chk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chk-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chk-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.chk-col p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.chk-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Match Training section badge style - rounded oval */
.chk-stack .tag {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-tertiary) 70%, transparent);
}

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

/* ========================================
   CREDIBILITY PANEL (EDUCATION + CERTS)
   ======================================== */
.cred-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(18, 22, 36, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
}

.cred-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cred-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.cred-icon {
  font-size: 1.5rem;
}

.cred-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

/* Education Cards */
.edu-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  transition: transform 0.2s ease;
}

.edu-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(5px);
}

.edu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.edu-top h4 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.edu-year {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  background: rgba(124, 92, 255, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
}

.edu-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.edu-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Cert List */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.cert-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(5px);
}

.cert-link span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}

.cert-link svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.cert-link:hover svg {
  opacity: 1;
  color: var(--accent);
}

@media (max-width: 900px) {
  .cred-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========================================
   BUILD PIPELINE SECTION (Phase 2)
   ======================================== */
#pipeline {
  position: relative;
  z-index: 2;
}

.pipeline-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.pipeline-step {
  flex: 1;
  min-width: 250px;
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pipeline-step:hover {
  background: rgba(25, 30, 48, 0.9);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.step-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.step-icon svg {
  width: 64px;
  height: 64px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.05));
}

.pipeline-step:hover .step-icon svg {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 15px var(--accent));
}

/* Specific step glows */
.pipeline-step:nth-child(1):hover .step-icon svg {
  filter: drop-shadow(0 0 15px var(--cyan));
}

.pipeline-step:nth-child(3):hover .step-icon svg {
  filter: drop-shadow(0 0 15px #FF9900);
}

.pipeline-step:nth-child(5):hover .step-icon svg {
  filter: drop-shadow(0 0 15px #00FFCC);
}

.step-highlight .step-icon svg {
  animation: pulse-gold 2s infinite alternate;
}

@keyframes pulse-gold {
  from {
    filter: drop-shadow(0 0 2px #FF9900);
  }

  to {
    filter: drop-shadow(0 0 12px #FF9900);
  }
}

.pipeline-step h3 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.pipeline-step p {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 16px;
  line-height: 1.4;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: var(--text-secondary);
  opacity: 0.5;
  padding-top: 40px;
}

@media (max-width: 900px) {
  .pipeline-flow {
    flex-direction: column;
    align-items: center;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 10px 0;
  }

  .pipeline-step {
    width: 100%;
  }
}

/* ========================================
   GPU STORY SECTION (Apple-Style Scrollytelling)
   ======================================== */

/* Pinned Container */
.gpuStoryPin {
  position: sticky;
  top: 90px;
  height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Grid Layout */
.gpuStoryGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  align-items: center;
}

/* 3D Scene Container */
.gpu3dScene {
  perspective: clamp(800px, calc(6vw + 900px), 1400px);
  perspective-origin: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

/* 3D GPU Container */
.gpu3d {
  width: min(500px, 90vw);
  aspect-ratio: 4 / 3;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GPU Layers (Images) */
.gpuLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
  transform: translateZ(0);
  /* Force GPU acceleration */
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Front image starts visible, back starts hidden */
.gpuFront {
  z-index: 2;
  opacity: 1;
}

.gpuBack {
  z-index: 1;
  opacity: 0;
  /* No rotateY - we control visibility via opacity only */
}

/* Overlays sit on top, start hidden */
.gpuFan {
  z-index: 4;
  opacity: 0;
}

.gpuHeatsink {
  z-index: 3;
  opacity: 0;
}

/* Phase-specific glow effects */
#gpu-story.phase-0 .gpuFront {
  filter: drop-shadow(0 0 14px rgba(120, 160, 255, 0.25));
}

#gpu-story.phase-1 .gpuFront {
  filter: drop-shadow(0 0 18px rgba(124, 92, 255, 0.35));
}

#gpu-story.phase-2 .gpuBack {
  filter: drop-shadow(0 0 16px rgba(0, 200, 150, 0.3));
}

#gpu-story.phase-3 .gpuFront,
#gpu-story.phase-3 .gpuFan,
#gpu-story.phase-3 .gpuHeatsink {
  filter: drop-shadow(0 0 20px rgba(255, 100, 100, 0.35));
}

/* GPU Glow Effect */
.gpuGlow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

/* Phase Content Panels */
.gpuSpecs {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.gpu-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gpu-step.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.gpu-card {
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(5px);
}

.gpu-card h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.3em;
}

.gpu-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.gpu-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gpu-tags span {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  color: var(--text-muted);
}

.gpu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.gpu-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.gpu-link svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .gpuStoryPin {
    top: 70px;
    height: calc(100vh - 70px);
  }

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

  .gpu3dScene {
    min-height: 300px;
  }

  .gpu3d {
    width: min(400px, 85vw);
  }
}

@media (max-width: 640px) {

  /* Force disable 3D on mobile */
  .gpuStoryPin {
    position: relative;
    top: 0;
    height: auto;
    min-height: 100vh;
  }

  .gpu3dScene {
    perspective: none;
  }

  .gpu3d {
    transform: none !important;
  }

  .gpuLayer {
    transform: none !important;
  }
}

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

/* Active States */
.gpu-active-1 .gpu-visual {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(64, 224, 208, 0.2);
}

.gpu-active-2 .gpu-visual {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.3);
}

.gpu-active-3 .gpu-visual {
  border-color: #fff;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

.gpu-active-1 .gpu-traces {
  background-image: linear-gradient(45deg, transparent 40%, rgba(0, 255, 200, 0.4) 40%, rgba(0, 255, 200, 0.4) 60%, transparent 60%);
}

.gpu-active-2 .gpu-fan-c {
  border-color: var(--accent);
}

.gpu-active-3 .gpu-fan {
  animation-duration: 0.2s;
}

/* Scroll Content */
.gpu-step {
  min-height: 60vh;
  display: flex;
  align-items: center;
  /* Start hidden */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  position: absolute;
  /* Stack them */
  top: 0;
  left: 0;
  width: 100%;
}

.gpu-step.active {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  /* Only active takes flow? or keep absolute and use min-height on parent */
}

/* Actually, stacking them absolutely on top of each other is better for the "Apple" feel 
   where text fades in/out in place, rather than scrolling up/down. 
   Let's try absolute positioning for steps within the scroll-content. */
.gpu-scroll-content {
  position: relative;
  width: 50%;
  min-height: 60vh;
  /* Ensure height for the absolute children */
}

.gpu-card {
  background: rgba(18, 22, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.gpu-card h3 {
  color: #fff;
  margin-bottom: 12px;
}

.gpu-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.gpu-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gpu-tags span {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  color: var(--text-muted);
}

.gpu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.9em;
  text-decoration: none;
  font-weight: 500;
}

.gpu-link:hover {
  text-decoration: underline;
}

/* Mobile Stacked */
@media (max-width: 900px) {
  .gpu-wrapper {
    flex-direction: column;
    min-height: auto;
  }

  .gpu-sticky {
    position: relative;
    width: 100%;
    top: 0;
    height: auto;
    margin-bottom: 40px;
  }

  .gpu-scroll-content {
    width: 100%;
    padding-bottom: 0px;
  }

  .gpu-step {
    min-height: auto;
    margin-bottom: 40px;
    opacity: 1;
  }

  .gpu-visual {
    margin: 0 auto;
  }
}

/* Fix Zoom Alignment for Sections */
.scroll3d-container>section {
  /* Ensure padding handles zooming */
  padding-top: 100px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
}

/* ========================================
   PHASE 9: APPLE-STYLE REAL GPU REVEAL
   ======================================== */
.gpuAppleScene {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  /* Stable sizing */
  perspective: 1200px;
  position: relative;
  margin: 0 auto;
}

.gpuApple3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  /* Phase 0 Start Pose */
  transform: rotateX(var(--rx, 20deg)) rotateY(var(--ry, -20deg)) translateZ(var(--tz, 0)) scale(var(--s, 1));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Transmission Pose (Fast Snap) */
.gpuApple3d.is-transitioning {
  transition: transform 0.2s ease-out;
}

.gpuImg,
.gpuOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  /* Hide back when flipped */
}

/* Front Image */
.gpuFront {
  z-index: 2;
  transform: translateZ(1px);
  /* Slight offset to prevent z-fighting */
}

/* Back Image */
.gpuBack {
  z-index: 1;
  transform: rotateY(180deg) translateZ(1px);
}

/* Overlays */
.gpuOverlay {
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

/* Hotspots */
.gpuHotspot {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* Block clicks, just visual */
}

/* Visible State */
.gpuHotspot.active {
  opacity: 1;
  pointer-events: auto;
}

.hotDot {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.3);
  animation: hotPulse 2s infinite;
}

.hotLine {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 40px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
}

.hotLabel {
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeInRight 0.3s forwards 0.1s;
}

@keyframes hotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 33, 182, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(91, 33, 182, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(91, 33, 182, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate(-10px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* Hotspot Positions */
.gpuHotspot[data-hot="core"] {
  top: 45%;
  left: 45%;
}

.gpuHotspot[data-hot="vram"] {
  top: 35%;
  left: 60%;
}

.gpuHotspot[data-hot="deploy"] {
  top: 55%;
  left: 65%;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .gpuAppleScene {
    max-width: 300px;
  }
}


/* ========================================
   CERTIFICATION TABS & FEATURED BOARDS
   ======================================== */
.featured-block {
  margin-bottom: 24px;
}

.feat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.feat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.feat-icon {
  font-size: 1.5rem;
}

.feat-info h4 {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
}

.feat-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  padding-bottom: 8px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
  font-weight: 600;
}

.cert-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.cert-panel.active {
  display: flex;
}

.cert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.cert-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.cert-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cert-org {
  color: var(--text-muted);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

/* Mobile Certs */
@media (max-width: 600px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SKILLS GRID FIX (4 Columns Desktop)
   ======================================== */
@media (min-width: 1100px) {
  .evidence-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1099px) and (min-width: 700px) {
  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 699px) {
  .evidence-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   REDUCED MOTION ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .gpu3dScene {
    display: none !important;
    /* Hide 3D scene entirely if motion reduced */
  }
}

/* =========================================
   EXTERNAL CREDIBILITY BLOCK
   ========================================= */
.external-cred-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.ext-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.ext-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.ext-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.ext-chip svg {
  opacity: 0.7;
}

.ext-badge {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent);
  margin-left: 4px;
  font-family: 'Fira Code', monospace;
}

/* ========================================
   CREDIBILITY SECTION (Education + Certifications)
   ======================================== */
.cred-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.cred-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cred-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cred-icon {
  font-size: 1.5em;
}

.cred-header h3 {
  color: #fff;
  font-size: 1.3em;
  margin: 0;
}

/* Education Cards */
.edu-card {
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.edu-card:hover {
  background: rgba(25, 30, 48, 0.9);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.edu-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.edu-top h4 {
  color: #fff;
  font-size: 1.1em;
  margin: 0;
}

.edu-year {
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}

.edu-meta {
  color: var(--text-secondary);
  font-size: 0.85em;
  margin-bottom: 8px;
}

.edu-desc {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
}

/* Featured Certifications Grid */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.feat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.feat-card:hover {
  background: rgba(25, 30, 48, 0.9);
  transform: translateX(4px);
}

.feat-icon {
  font-size: 1.3em;
  flex-shrink: 0;
}

.feat-info {
  flex: 1;
  min-width: 0;
}

.feat-info h4 {
  color: #fff;
  font-size: 0.9em;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.feat-info p {
  color: var(--text-secondary);
  font-size: 0.75em;
  margin: 0;
}

.feat-arrow {
  color: var(--text-muted);
  font-size: 1.2em;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.feat-card:hover .feat-arrow {
  opacity: 1;
  color: var(--accent);
}

/* Certification Tabs */
.cert-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9em;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.cert-tab:hover {
  color: #fff;
}

.cert-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Certification Panels */
.cert-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.cert-panel.active {
  display: flex;
}

.cert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(18, 22, 36, 0.4);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cert-row:hover {
  background: rgba(25, 30, 48, 0.7);
  transform: translateX(4px);
}

.cert-name {
  color: #fff;
  font-size: 0.85em;
  font-weight: 500;
}

.cert-org {
  color: var(--text-secondary);
  font-size: 0.75em;
  white-space: nowrap;
}

/* External Credibility Section (Full Width Below Columns) */
.external-cred-section {
  margin-top: 32px;
  padding: 24px;
  background: rgba(18, 22, 36, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
}

.external-cred-section h4 {
  color: #fff;
  font-size: 0.95em;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
  text-align: center;
}

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

.ext-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85em;
  transition: all 0.3s ease;
}

.ext-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  transform: translateX(4px);
}

.ext-link span:first-child {
  font-size: 1.2em;
  flex-shrink: 0;
}

.ext-link-badge {
  font-size: 0.7em;
  padding: 2px 6px;
  background: rgba(124, 92, 255, 0.2);
  border-radius: 4px;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .cred-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .ext-cred-grid {
    grid-template-columns: 1fr;
  }
}