:root {
  --lime: #d4ff32;
  --lime-hover: #e0ff54;
  --lime-glow: rgba(212, 255, 50, 0.35);
  --coral: #ff4757;
  --coral-hover: #ff2d40;
  --coral-glow: rgba(255, 71, 87, 0.35);
  --ink: #0f172a;
  --slate: #475569;
  --glass-bg: rgba(12, 18, 34, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(20, 28, 50, 0.88);
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: 0px;
  --grow: 1;

  /* legacy aliases used across the sheet */
  --primary-lime: var(--lime);
  --primary-lime-hover: var(--lime-hover);
  --primary-lime-glow: var(--lime-glow);
  --dark-glass-bg: var(--glass-bg);
  --dark-glass-border: var(--glass-border);
}

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

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  font-family: var(--font-family);
  background-color: #ffffff;
  color: var(--text-white);
  overflow-x: hidden;
  overscroll-behavior: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.hero-section :focus-visible,
.editorial-intro-card :focus-visible,
.credentials-card :focus-visible {
  outline-color: var(--coral);
}

/* Background Fixed Canvas Animation */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
  background-color: #ffffff;
}

/* Content Layer Floating On Top */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  pointer-events: auto;
}

/* -------------------------------------------------------------
   READING PROGRESS / DOT NAV / BACK TO TOP
------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--lime), var(--coral));
  box-shadow: 0 0 12px var(--lime-glow);
}

.dot-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dot-nav.is-shown {
  opacity: 1;
  pointer-events: auto;
}

.dot-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
}

.dot-link .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(12, 18, 34, 0.35);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.dot-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3px 9px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  pointer-events: none;
}

.dot-link:hover .dot-label,
.dot-link:focus-visible .dot-label {
  opacity: 1;
  transform: translateX(0);
}

.dot-link.active .dot {
  background: var(--lime);
  transform: scale(1.6);
  box-shadow: 0 0 10px var(--lime-glow);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), background 0.2s ease;
}

.back-to-top.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--lime);
  color: var(--ink);
}

/* -------------------------------------------------------------
   SECTIONS & TITLES
------------------------------------------------------------- */
.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 24px;
  position: relative;
}

.section-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Big display heading with the same coral period as the hero name */
.section-title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text-white);
  margin-bottom: 44px;
  text-align: center;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.6);
  display: inline-block;
}

.section-title .title-dot {
  color: var(--coral);
}

.section-heading-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.section-heading-row .section-title {
  margin-bottom: 0;
  text-align: left;
}

/* -------------------------------------------------------------
   SCROLL IN / OUT REVEAL (driven by IntersectionObserver)
------------------------------------------------------------- */
.scroll-in-out {
  opacity: 0;
  transform: translateY(42px) scale(0.97);
  filter: blur(8px);
  will-change: transform, opacity, filter;
  transition: transform 0.75s var(--ease-out),
              opacity 0.75s var(--ease-out),
              filter 0.75s var(--ease-out);
}

.scroll-in-out.is-hidden-below {
  opacity: 0;
  transform: translateY(42px) scale(0.97);
  filter: blur(8px);
  pointer-events: none;
}

.scroll-in-out.is-visible {
  opacity: 1;
  transform: translateY(var(--lift)) scale(var(--grow));
  filter: blur(0px);
  pointer-events: auto;
}

.scroll-in-out.is-hidden-above {
  opacity: 0;
  transform: translateY(-42px) scale(0.97);
  filter: blur(8px);
  pointer-events: none;
}

/* Polaroids keep their tilt through every state */
.polaroid-left.scroll-in-out.is-hidden-below { transform: translateY(42px) rotate(-8deg) scale(0.96); }
.polaroid-left.scroll-in-out.is-visible { transform: translateY(-20px) rotate(var(--tilt, -8deg)) scale(var(--grow)); }
.polaroid-left.scroll-in-out.is-hidden-above { transform: translateY(-42px) rotate(-8deg) scale(0.96); }

.polaroid-right.scroll-in-out.is-hidden-below { transform: translateY(42px) rotate(8deg) scale(0.96); }
.polaroid-right.scroll-in-out.is-visible { transform: translateY(20px) rotate(var(--tilt, 8deg)) scale(var(--grow)); }
.polaroid-right.scroll-in-out.is-hidden-above { transform: translateY(-42px) rotate(8deg) scale(0.96); }

.stagger-1 { transition-delay: 0.04s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.16s; }
.stagger-4 { transition-delay: 0.22s; }
.stagger-5 { transition-delay: 0.28s; }
.stagger-6 { transition-delay: 0.34s; }

/* Hover lifts compose with reveal states through variables */
.experience-stat-card:hover { --lift: -4px; --grow: 1.02; }
.polaroid-card:hover { --lift: 0px; --grow: 1.08; --tilt: 0deg; z-index: 20; }

/* -------------------------------------------------------------
   KINETIC TYPOGRAPHY
------------------------------------------------------------- */
.kinetic-title {
  display: inline-block;
}

.k-word {
  display: inline-block;
  white-space: nowrap;
}

.k-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(46px);
  filter: blur(8px);
  will-change: transform, opacity, filter;
  transition: transform 0.8s var(--ease-out),
              opacity 0.8s var(--ease-out),
              filter 0.8s var(--ease-out);
}

.kinetic-line {
  display: block;
  opacity: 0;
  transform: translateY(42px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  transition: transform 0.8s var(--ease-out),
              opacity 0.8s var(--ease-out),
              filter 0.8s var(--ease-out);
}

.scroll-in-out-trigger {
  will-change: opacity;
}

/* Visible: cascade in */
.is-visible .k-char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
  transition-delay: calc(var(--char-index, 0) * 0.024s);
}

.is-visible .kinetic-line,
.kinetic-line.is-visible {
  opacity: 1;
  transform: translateY(var(--lift)) scale(var(--grow));
  filter: blur(0px);
  transition-delay: calc(var(--line-index, 0) * 0.09s);
}

/* Exit above: peel off top first */
.is-hidden-above .k-char {
  opacity: 0;
  transform: translateY(-46px);
  filter: blur(8px);
  transition-delay: calc(var(--char-index, 0) * 0.014s);
}

.is-hidden-above .kinetic-line,
.kinetic-line.is-hidden-above {
  opacity: 0;
  transform: translateY(-42px);
  filter: blur(8px);
  transition-delay: calc(var(--line-index, 0) * 0.07s);
}

/* Hidden below: standby */
.is-hidden-below .k-char {
  opacity: 0;
  transform: translateY(46px);
  filter: blur(8px);
  transition-delay: calc((var(--total-chars, 1) - var(--char-index, 0)) * 0.01s);
}

.is-hidden-below .kinetic-line,
.kinetic-line.is-hidden-below {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(8px);
  transition-delay: calc((var(--total-lines, 1) - var(--line-index, 0)) * 0.04s);
}

/* Hover lifts on kinetic children */
.skill-tile:hover { --lift: -5px; --grow: 1.02; }
.stat-tile:hover { --lift: -4px; }

/* -------------------------------------------------------------
   GLASS + BUTTONS
------------------------------------------------------------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(212, 255, 50, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 12px 32px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--lime-glow);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-lime:hover {
  background-color: var(--lime-hover);
  box-shadow: 0 12px 32px var(--lime-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 9999px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.btn-ghost svg {
  transition: transform 0.2s ease;
}

.btn-ghost:hover svg {
  transform: translate(2px, -2px);
}

/* Magnetic hover: JS sets --mx/--my */
.magnetic {
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.35s var(--ease-out), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* -------------------------------------------------------------
   NAVIGATION BAR
------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 32px;
  pointer-events: auto;
  transition: transform 0.45s var(--ease-out), opacity 0.35s ease;
}

.navbar.navbar-hidden {
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 18, 34, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 10px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
}

.brand-icon {
  width: 28px;
  height: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-white);
}

.brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

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

.nav-link {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

.nav-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  padding: 6px 8px 6px 18px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-btn-contact:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(212, 255, 50, 0.4);
}

.arrow-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out);
}

.nav-btn-contact:hover .arrow-circle {
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  max-width: 1200px;
  margin: 10px auto 0;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 10px;
  flex-direction: column;
  transform-origin: top;
  transform: scaleY(0.9);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.drawer-link {
  display: block;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.drawer-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lime);
}

.drawer-link-accent {
  background: var(--coral);
  text-align: center;
  margin-top: 6px;
}

.drawer-link-accent:hover {
  background: var(--coral-hover);
  color: #fff;
}

/* -------------------------------------------------------------
   HERO
------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.hero-split-layout {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  position: relative;
}

.editorial-intro-card {
  position: absolute;
  left: 4.0%;
  width: calc(34% - 4%);
  max-width: calc(34% - 4%);
  top: 49.7%;
  transform: translateY(-50%);
  z-index: 10;
}

.editorial-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.editorial-kicker {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.editorial-subkicker {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.editorial-title {
  background: transparent;
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  white-space: nowrap;
}

.editorial-dot {
  color: var(--coral);
  display: inline-block;
  font-weight: 900;
}

.editorial-roles-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.role-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.role-chip:hover,
.role-chip.active {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
  transform: translateY(-1px);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--coral);
}

.editorial-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 24px;
  font-weight: 500;
}

.editorial-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.social-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.social-circle-btn:hover {
  background: var(--coral);
  color: #ffffff;
  border-color: var(--coral);
  box-shadow: 0 8px 20px var(--coral-glow);
}

.editorial-cta-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.btn-editorial-coral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 30px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 25px var(--coral-glow);
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
}

.btn-editorial-coral:hover {
  background: var(--coral-hover);
  box-shadow: 0 14px 30px rgba(255, 71, 87, 0.45);
}

.editorial-dashed-arrow {
  position: absolute;
  left: calc(100% + 16px);
  bottom: -15px;
  width: 170px;
  height: 110px;
  pointer-events: none;
  z-index: 5;
}

/* The arrow draws itself once the CTA line has landed */
.arrow-path {
  stroke-dasharray: 5 5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.arrow-head {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 150px 17px;
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}

.is-visible .arrow-path {
  opacity: 1;
  animation: dashDraw 1.4s var(--ease-out) 0.9s both;
}

.is-visible .arrow-head {
  opacity: 1;
  transform: scale(1);
  transition-delay: 2s;
}

@keyframes dashDraw {
  from { stroke-dasharray: 0 400; }
  to { stroke-dasharray: 400 0; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--slate);
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}

.scroll-hint-track {
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid rgba(15, 23, 42, 0.35);
  position: relative;
}

.scroll-hint-thumb {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--coral);
  transform: translateX(-50%);
  animation: scrollThumb 1.8s ease-in-out infinite;
}

.scroll-hint-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes scrollThumb {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-right-column {
  position: absolute;
  right: 3.5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 400px;
  width: 100%;
  z-index: 10;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-subtitle {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-white);
  margin-bottom: 4px;
}

/* -------------------------------------------------------------
   CREDENTIALS CARD (HERO RIGHT)
------------------------------------------------------------- */
.credentials-card,
.glass-card.credentials-card {
  max-width: 400px;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.credentials-card .card-subtitle {
  color: var(--ink);
}

.cred-header-left {
  display: flex;
  flex-direction: column;
}

.cred-sub-caption {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.gate-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.12);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.cred-tab-nav {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px;
  margin-bottom: 14px;
}

.cred-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-family);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 6px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
  text-align: center;
}

.cred-tab-btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.cred-tab-btn.active {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.cred-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.cred-feed-list::-webkit-scrollbar { width: 4px; }
.cred-feed-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.cred-item-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.cred-item-card.is-filtered-out {
  display: none;
}

.cred-item-card:hover {
  --lift: -2px;
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gate-card-accent {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border-color: rgba(255, 71, 87, 0.35);
}

.gate-card-accent:hover {
  border-color: var(--coral);
  box-shadow: 0 8px 22px rgba(255, 71, 87, 0.16);
}

.cred-item-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cred-item-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.exp-icon { background: #eff6ff; color: #0284c7; border: 1px solid #bae6fd; }
.edu-icon { background: #faf5ff; color: #9333ea; border: 1px solid #e9d5ff; }
.gate-icon { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }

.cred-item-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cred-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cred-link-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.cred-link-title:hover { color: var(--coral); }
.cred-link-title svg { transition: transform 0.2s ease; }
.cred-link-title:hover svg { transform: translate(2px, -2px); }

.cred-name-bold {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.cred-role {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.cred-time-loc {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
}

.cred-desc-snippet {
  font-size: 0.68rem;
  color: var(--slate);
  line-height: 1.4;
  margin-top: 2px;
}

.cred-badge-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.cred-badge-pill.lime { background: #f7ffd6; color: #4d7c0f; border: 1px solid #d9f99d; }
.cred-badge-pill.sky { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.cred-badge-pill.purple { background: #faf5ff; color: #9333ea; border: 1px solid #e9d5ff; }
.cred-badge-pill.amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

.cred-score-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 0 10px var(--coral-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   ABOUT
------------------------------------------------------------- */
.about-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
  max-width: 960px;
  position: relative;
}

.bio-card {
  flex: 1;
  max-width: 620px;
  padding: 40px;
  text-align: center;
  z-index: 2;
}

.bio-para {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 18px;
}

.bio-para strong {
  color: #ffffff;
}

.bio-para:last-of-type {
  margin-bottom: 32px;
}

.bio-action {
  display: flex;
  justify-content: center;
}

.polaroid-card {
  width: 150px;
  background: #ffffff;
  padding: 10px 10px 24px 10px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.polaroid-img-box {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stats strip */
.stats-strip {
  width: 100%;
  max-width: 960px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-tile {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.3s ease;
}

.stat-tile:hover {
  border-color: rgba(212, 255, 50, 0.35);
}

.stat-value {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.stat-tile-coral .stat-value {
  color: var(--coral);
}

.stat-tile-coral:hover {
  border-color: rgba(255, 71, 87, 0.45);
}

.stat-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   SKILLS
------------------------------------------------------------- */
.skills-main-layout {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin-bottom: 40px;
}

.skills-card-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-tile {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-tile:hover {
  border-color: var(--lime);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.tech-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: transform 0.4s var(--ease-out);
}

.skill-tile:hover .tech-icon-box {
  transform: scale(1.12) rotate(-6deg);
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-white);
}

.skill-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.experience-stat-card {
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.stat-number {
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--lime);
  margin-bottom: 8px;
  text-shadow: 0 4px 30px var(--lime-glow);
}

.stat-label {
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text-white);
}

.stat-label strong {
  font-weight: 800;
  color: var(--coral);
}

/* Marquee */
.marquee-wrap {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marqueeLeft 34s linear infinite;
}

.marquee[data-direction="right"] .marquee-track {
  animation-name: marqueeRight;
  animation-duration: 40s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 5px)); }
}

@keyframes marqueeRight {
  from { transform: translateX(calc(-50% - 5px)); }
  to { transform: translateX(0); }
}

.badge-item {
  flex-shrink: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.badge-item:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* -------------------------------------------------------------
   EXPERIENCE TIMELINE
------------------------------------------------------------- */
.timeline {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 10px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--lime), var(--coral));
  transform-origin: top;
  transform: scaleY(var(--timeline-progress, 0));
  box-shadow: 0 0 12px var(--lime-glow);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 44px 40px 0;
}

.timeline-item[data-side="right"] {
  margin-left: 50%;
  padding: 0 0 40px 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-node {
  position: absolute;
  top: 26px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #0c1222;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(212, 255, 50, 0.25);
  z-index: 2;
  transition: transform 0.4s var(--ease-out);
}

.timeline-item[data-side="right"] .timeline-node {
  right: auto;
  left: -8px;
}

.timeline-node-gate {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.3);
}

.timeline-node-edu {
  background: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.35);
}

.timeline-card {
  padding: 22px 24px;
  text-align: left;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-3px);
}

.timeline-card-gate {
  border-color: rgba(255, 71, 87, 0.4);
  background: linear-gradient(135deg, rgba(60, 14, 22, 0.85), var(--glass-bg));
}

.timeline-card-gate:hover {
  border-color: var(--coral);
}

.timeline-when {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 8px;
}

.timeline-card-gate .timeline-when {
  color: var(--coral);
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.timeline-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.timeline-title a:hover {
  color: var(--lime);
}

.timeline-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.timeline-tags span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  padding: 3px 9px;
  border-radius: 6px;
}

/* -------------------------------------------------------------
   PROJECTS
------------------------------------------------------------- */
.project-filter {
  display: inline-flex;
  gap: 4px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 4px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-white);
}

.filter-btn.active {
  background: var(--lime);
  color: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  perspective: 1200px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.5s var(--ease-out), opacity 0.35s ease;
}

.project-card.is-filtered-out {
  display: none;
}

/* Tilt: JS drives --rx / --ry / --lift on hover */
.project-card.kinetic-line.is-visible,
.is-visible .project-card.kinetic-line {
  transform: translateY(var(--lift)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.project-card:hover {
  --lift: -6px;
  border-color: color-mix(in srgb, var(--lang) 55%, transparent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--lang) 25%, transparent);
}

.project-preview {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
}

.preview-backdrop {
  width: 100%;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--lang) 35%, transparent), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
  background-color: rgba(0, 0, 0, 0.25);
}

.preview-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}

.preview-mono {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--lang) 85%, #fff);
  opacity: 0.9;
  transition: transform 0.5s var(--ease-out);
  position: relative;
}

.project-card:hover .preview-mono {
  transform: translateX(6px) scale(1.04);
}

.preview-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  position: relative;
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lang);
  box-shadow: 0 0 8px var(--lang);
}

.project-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(12, 18, 34, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
}

.project-details {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-tags span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 6px;
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  padding: 8px 14px;
  border-radius: 9999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-link:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.project-link-live {
  background: var(--coral);
  border-color: var(--coral);
}

.project-link-live:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  color: #fff;
}

.projects-empty {
  margin-top: 24px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  padding: 22px;
  border-radius: 14px;
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

.projects-more {
  margin-top: 36px;
}

/* -------------------------------------------------------------
   CONTACT
------------------------------------------------------------- */
.contact-card-wrap {
  width: 100%;
  max-width: 680px;
}

.contact-quick-channels {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.contact-chip {
  font-size: 0.86rem;
  padding: 8px 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
}

.contact-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 16px var(--lime-glow);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--coral);
  box-shadow: 0 0 12px var(--coral-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  position: relative;
  gap: 10px;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  display: none;
  animation: spin 0.8s linear infinite;
}

.btn-submit.is-sending .btn-spinner { display: inline-block; }
.btn-submit.is-sending { pointer-events: none; opacity: 0.85; }

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

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
  text-align: center;
  color: var(--text-muted);
}

.form-status.is-success { color: var(--lime); }
.form-status.is-error { color: var(--coral); }

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.footer {
  width: 100%;
  padding: 30px 24px;
  background: rgba(12, 18, 34, 0.9);
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-container p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--lime);
}

/* -------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 1100px) {
  .dot-nav {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-section {
    padding: 100px 24px 70px 24px;
    height: auto;
    min-height: 100vh;
  }

  .hero-split-layout {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  /* On narrow screens the photo's dark cutout sits behind the text, so
     both hero blocks get a frosted paper panel to stay legible. */
  .editorial-intro-card,
  .credentials-card,
  .glass-card.credentials-card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  }

  .editorial-intro-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: 100%;
    width: 100%;
    padding: 26px 22px;
  }

  .credentials-card,
  .glass-card.credentials-card {
    padding: 20px 18px;
  }

  .editorial-title {
    white-space: normal;
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }

  .editorial-dashed-arrow,
  .scroll-hint {
    display: none;
  }

  .hero-right-column {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    max-width: 100%;
    width: 100%;
  }

  .credentials-card {
    max-width: 100%;
    width: 100%;
  }

  .about-grid {
    flex-direction: column;
  }

  .polaroid-card {
    display: none;
  }

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

  .skills-main-layout {
    flex-direction: column;
  }

  .experience-stat-card {
    width: 100%;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: center;
  }

  .section-heading-row .section-title {
    text-align: center;
  }

  /* Timeline stacks to a single left rail */
  .timeline-line {
    left: 9px;
    transform: none;
  }

  .timeline-item,
  .timeline-item[data-side="right"] {
    width: 100%;
    margin-left: 0;
    padding: 0 0 28px 36px;
  }

  .timeline-node,
  .timeline-item[data-side="right"] .timeline-node {
    left: 2px;
    right: auto;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 12px 14px;
  }

  .nav-links,
  .nav-btn-contact {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: flex;
    pointer-events: none;
  }

  .navbar.nav-open .mobile-drawer {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .section {
    padding: 80px 18px;
  }

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

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

  .skills-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-card,
  .contact-form {
    padding: 26px 20px;
  }

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

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  .stat-value {
    font-size: 2.1rem;
  }
}

/* -------------------------------------------------------------
   REDUCED MOTION
------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-in-out,
  .kinetic-line,
  .k-char,
  .arrow-path,
  .arrow-head {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .marquee-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track .badge-item:nth-child(n+11) {
    display: none;
  }

  .pulse-dot,
  .scroll-hint-thumb {
    animation: none;
  }

  .timeline-fill {
    transform: none;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0c1222; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime); }
