/* ===== CSS Variables — Light Theme ===== */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-light: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.08);
  --gradient-start: #3b82f6;
  --gradient-end: #8b5cf6;
  --border: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(59, 130, 246, 0.35);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #f1f5f9;          /* light over dark hero */
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--text-primary);
}

.nav-logo .accent {
  color: var(--accent);
}

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

.nav-links a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.75);   /* light — over dark hero */
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
}

/* Once scrolled into light sections, switch to dark text */
.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

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

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

.btn-full { width: 100%; }

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-glow);
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Hero ===== */
/* Hero — always dark regardless of site theme */
.hero {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #0a0e17;
  /* Scoped dark overrides so hero descendants get dark values */
  --text-primary:    #f1f5f9;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;
  --bg-primary:      #0a0e17;
  --bg-card:         #111827;
  --border:          rgba(148, 163, 184, 0.12);
  --accent-glow:     rgba(59, 130, 246, 0.15);
}

/* Left column — text */
.hero-left {
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 56px 72px 0;
  padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  position: relative;
  z-index: 2;
}

/* Right column — Spline animation */
.hero-right {
  flex: 1;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Gradient fade from dark left into the Spline scene */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 0;
  width: 220px;
  background: linear-gradient(to right, #0a0e17, transparent);
  z-index: 2;
  pointer-events: none;
}

/* Spline 3D scene */
.spline-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Loading spinner overlay */
.spline-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 10;
  transition: opacity 0.6s ease;
}

.spline-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes spline-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spline-spin {
  animation: spline-spin 1s linear infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  text-align: left;
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-desc {
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 560px;
  margin: 0;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  font-family: 'JetBrains Mono', monospace;
}

.stat-suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }
.fade-up:nth-child(6) { animation-delay: 0.6s; }

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

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

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

/* ===== FreedomSection — About ===== */
.fs-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) clamp(16px, 3vw, 40px);
  background: var(--bg-primary);
  position: relative;
}

.fs-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Header */
.fs-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.fs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  padding: clamp(8px, 0.9vw, 14px) clamp(14px, 1.25vw, 20px);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.fs-h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.5px;
}

.fs-gradient {
  background-image: linear-gradient(90deg, rgb(43,167,255), rgb(202,69,255) 50%, rgb(254,136,27));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.3vw;
  display: inline-block;
}

/* Three-column grid */
.fs-cols {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1024px) {
  .fs-cols {
    display: grid;
    grid-template-columns: 26vw 1fr 26vw;
    column-gap: 36px;
    row-gap: 24px;
    align-items: start;
    padding: 0 clamp(0px, 2.92vw, 40px);
  }
}

/* Left / Right card lists */
.fs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: clamp(13px, 1.1vw, 16px);
  color: var(--text-secondary);
  width: 100%;
}

.fs-list-right {
  color: var(--text-primary);
}

/* Individual cards */
.fs-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(12px, 0.97vw, 16px) clamp(14px, 1.25vw, 20px);
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 3px 9px rgba(63,74,126,0.08), 0 1px 24px rgba(63,74,126,0.12);
  transition: border-color 0.25s, transform 0.25s;
  line-height: 1.55;
}

.fs-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.fs-card-right {
  color: var(--text-primary);
}

.fs-icon {
  width: clamp(16px, 1.25vw, 20px);
  height: clamp(16px, 1.25vw, 20px);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Center column */
.fs-center-col {
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1; /* mobile: circle first */
  align-self: center;
}

@media (min-width: 1024px) {
  .fs-center-col {
    order: 0;
  }
}

/* Identity circle */
.fs-circle-wrap {
  position: relative;
  width: clamp(200px, 22vw, 360px);
  height: clamp(200px, 22vw, 360px);
  flex-shrink: 0;
}

.fs-circle-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gradient-start), var(--gradient-end), #14b8a6, var(--gradient-start));
  animation: fs-rotate 8s linear infinite;
  opacity: 0.35;
  filter: blur(10px);
}

.fs-circle-aura-2 {
  inset: -14px;
  opacity: 0.15;
  filter: blur(20px);
  animation-duration: 12s;
  animation-direction: reverse;
}

@keyframes fs-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.fs-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  animation: fs-circle-pulse 4s ease-in-out infinite;
}

@keyframes fs-circle-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(59,130,246,0.12), inset 0 0 40px rgba(59,130,246,0.04); }
  50%       { box-shadow: 0 0 50px rgba(59,130,246,0.22), inset 0 0 60px rgba(99,102,241,0.08); }
}

/* Grid lines inside circle */
.fs-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.fs-circle-logo {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.fs-dot {
  color: var(--accent);
}

.fs-circle-role {
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.fs-circle-years {
  font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

/* ===== Stack Feature Section (Skills) ===== */
.sfs-card {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-card);
  overflow: hidden;
  min-height: 480px;
}

/* Left column */
.sfs-left {
  width: 50%;
  padding: 28px 22px 28px 28px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  /* thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

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

.sfs-skill-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: var(--transition);
}

.sfs-skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.sfs-skill-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.sfs-skill-head h3 {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.sfs-cat-icon {
  flex-shrink: 0;
  color: var(--accent-light);
}

.sfs-skill-card .skill-tags {
  gap: 5px;
}

.sfs-skill-card .skill-tags span {
  font-size: 0.625rem;
  padding: 3px 8px;
}

/* Right column — orbit */
.sfs-right {
  width: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The large orbit scene, shifted right so only the arc is visible */
.sfs-scene {
  position: relative;
  width: 700px;
  height: 700px;
  flex-shrink: 0;
  transform: translateX(0);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orbit rings */
.sfs-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 2px dotted rgba(148, 163, 184, 0.2);
}

.sfs-orbit[data-orbit="0"] {
  width: 320px;
  height: 320px;
  animation: sfs-spin 12s linear infinite;
}

.sfs-orbit[data-orbit="1"] {
  width: 460px;
  height: 460px;
  animation: sfs-spin 19s linear infinite;
}

.sfs-orbit[data-orbit="2"] {
  width: 600px;
  height: 600px;
  animation: sfs-spin 26s linear infinite;
}

@keyframes sfs-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Icon bubbles on orbits */
.sfs-icon-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.sfs-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Center element */
.sfs-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfs-center-ping {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: sfs-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.sfs-center-ping-1 { width: 110px; height: 110px; }
.sfs-center-ping-2 { width: 140px; height: 140px; animation-delay: 0.55s; border-color: rgba(59,130,246,0.15); }

@keyframes sfs-ping {
  75%, 100% { transform: scale(1.45); opacity: 0; }
}

.sfs-center-core {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.18), inset 0 0 28px rgba(59, 130, 246, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

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

  .sfs-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
  }

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

  .sfs-right {
    width: 100%;
    height: 280px;
    justify-content: center;
  }

  .sfs-scene {
    transform: scale(0.42);
    transform-origin: center center;
  }
}

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

/* ===== Orbit Carousel (Core Expertise) ===== */
.oc-section {
  background: var(--bg-secondary);
}

.oc-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.oc-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding-bottom: 8px;
}

.oc-container {
  position: relative;
  flex-shrink: 0;
}

/* ---- Center detail card ---- */
.oc-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 16px 16px;
  text-align: center;
  z-index: 30;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.oc-card.oc-fade {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9) translateY(14px);
}

.oc-card-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.oc-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oc-card-icon svg {
  width: 32px;
  height: 32px;
}

.oc-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.oc-card-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  font-family: 'JetBrains Mono', monospace;
}

.oc-card-stat {
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.oc-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.oc-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.oc-proficiency {
  margin-bottom: 14px;
}

.oc-prof-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.oc-prof-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.oc-prof-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.oc-card-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.oc-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0;
}

.oc-nav-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ---- Orbit items ---- */
.oc-orbit-item {
  position: absolute;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.oc-orbit-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.oc-orbit-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-width 0.3s ease;
  background: var(--bg-card);
}

.oc-orbit-circle svg {
  width: 42%;
  height: 42%;
  max-width: 30px;
  max-height: 30px;
  flex-shrink: 0;
}

.oc-orbit-circle:hover {
  transform: scale(1.1);
}

/* ---- Progress dots ---- */
.oc-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.oc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.oc-dot:hover {
  transform: scale(1.3);
}

.oc-dot.oc-dot-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Responsive */
@media (max-width: 600px) {
  .oc-card {
    width: 180px;
    padding: 16px 12px 12px;
  }
  .oc-card-icon {
    width: 54px;
    height: 54px;
  }
  .oc-card-title {
    font-size: 0.875rem;
  }
  .oc-card-desc {
    font-size: 0.6875rem;
  }
  .oc-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.highlight {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

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

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.about-expertise {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.about-expertise h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.expertise-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.expertise-list li:last-child {
  border-bottom: none;
}

.expertise-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.expertise-list strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.expertise-list p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Scrolling Animation — Core Expertise ===== */
.sa-section {
  padding: 0 !important;
  background: var(--bg-primary);
}

.sa-scroll-driver {
  min-height: 200vh;
  position: relative;
}

.sa-sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Section label — lives inside sticky frame, always in top-left */
.sa-label-overlay {
  position: absolute;
  top: 40px;
  left: 48px;
  z-index: 20;
  color: white;
  pointer-events: none;
}

.sa-tag {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  display: inline-block;
  margin-bottom: 12px;
}

.sa-label-heading {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

/* Rings */
.sa-outer-ring {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0px solid rgba(255, 255, 255, 0.12);
  transition: border-width 0.4s ease;
  flex-shrink: 0;
}

.sa-outer-ring.sa-ring-active {
  border-width: 1px;
}

.sa-mid-ring {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0px solid rgba(99, 102, 241, 0.45);
  transition: border-width 0.4s ease;
  flex-shrink: 0;
}

.sa-mid-ring.sa-ring-active {
  border-width: 1px;
}

/* Gradient border ring */
.sa-gradient-ring {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: conic-gradient(from 135deg, #7c3aed, #ec4899, #ef4444, #f59e0b, #7c3aed);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Inner circle — contains items that start at center */
.sa-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Domain items */
.sa-item {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  will-change: transform;
  z-index: 2;
}

.sa-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.sa-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.5rem;
  text-align: center;
  padding: 3px 2px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Center text */
.sa-center {
  position: relative;
  z-index: 3;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  padding: 0 24px;
}

.sa-center-line1 {
  font-size: 1.875rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.sa-center-line2 {
  font-size: 1.875rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.sa-center-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 680px) {
  .sa-label-overlay { top: 24px; left: 24px; }
  .sa-label-heading { font-size: 1.25rem; }
}

/* ===== Skills ===== */
.skills {
  background: var(--bg-secondary);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

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

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

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

.skill-tags span {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition);
}

.skill-tags span:hover {
  color: var(--accent-light);
  border-color: var(--border-hover);
  background: var(--accent-glow);
}

/* ===== Sticky Scroll Cards (Experience) ===== */
.ssc-section {
  background: var(--bg-primary);
  padding-bottom: 180px;
}

.ssc-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 620px;
  margin: -32px auto 56px;
  line-height: 1.7;
}

.ssc-container {
  width: 100%;
  margin-top: 8px;
}

.ssc-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 44px 52px;
  border-radius: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
  backdrop-filter: blur(4px);
  transition: box-shadow 0.3s ease;
}

.ssc-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Per-card color accent — oldest (dim) → newest (vivid) */
.ssc-card-1 {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 197, 94, 0.06) 100%);
  border-top: 3px solid rgba(34, 197, 94, 0.45);
  z-index: 1;
}
.ssc-card-2 {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.06) 100%);
  border-top: 3px solid rgba(59, 130, 246, 0.45);
  z-index: 2;
}
.ssc-card-3 {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.07) 100%);
  border-top: 3px solid rgba(139, 92, 246, 0.5);
  z-index: 3;
}
.ssc-card-4 {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(20, 184, 166, 0.07) 100%);
  border-top: 3px solid rgba(20, 184, 166, 0.5);
  z-index: 4;
}
.ssc-card-5 {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-top: 3px solid rgba(99, 102, 241, 0.55);
  z-index: 5;
}

/* Text content */
.ssc-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ssc-role {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.ssc-company {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-light);
}

.ssc-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.ssc-date-current {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
}

.ssc-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.ssc-achievements {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ssc-achievements li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.ssc-achievements li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.ssc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ssc-tags span {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-light);
  background: var(--accent-glow);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

/* Image */
.ssc-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.ssc-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ssc-card:hover .ssc-img {
  transform: scale(1.04);
}

/* ===== Globe — Global Reach ===== */
/* ===== Globe — card layout ===== */
.gw-section {
  background: var(--bg-secondary);
}

/* Rounded card wrapping left content + right globe */
.gw-card {
  display: flex;
  min-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* Ambient blue glow behind the globe */
.gw-ambient-glow {
  position: absolute;
  top: 0;
  right: 20%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.06);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Left: text panel */
.gw-content {
  flex: 0 0 44%;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.gw-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  width: fit-content;
}

.gw-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: gw-pulse 2s ease-in-out infinite;
}

@keyframes gw-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.gw-heading {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
}

.gw-heading-accent {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gw-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0;
}

.gw-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.gw-stat-num {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin: 0;
}

.gw-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 5px 0 0;
}

.gw-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Right: canvas globe panel — flex:1 fills remaining space */
.gw-globe-wrap {
  flex: 1;
  position: relative;
  min-height: 400px;
  user-select: none;
  overflow: hidden;
}

#gwCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .gw-card {
    flex-direction: column;
  }
  .gw-content {
    flex: none;
    padding: 48px 40px 32px;
  }
  .gw-globe-wrap {
    min-height: min(90vw, 480px);
  }
}

@media (max-width: 600px) {
  .gw-content {
    padding: 40px 28px 24px;
    gap: 20px;
  }
  .gw-stats {
    gap: 16px;
  }
}

/* ===== Projects — Text Parallax Content Scroll ===== */
.section.projects {
  padding: 0;
  background: var(--bg-primary);
}

.tp-intro {
  padding: 100px 0 48px;
}

.tp-item {
  padding: 0 12px;
}

.tp-sticky-wrap {
  position: relative;
  height: 150vh;
}

.tp-sticky-img {
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  overflow: hidden;
  z-index: 0;
  transform-origin: center center;
  will-change: transform;
}

.tp-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.72);
  will-change: opacity;
}

.tp-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10;
  pointer-events: none;
  will-change: transform, opacity;
  padding: 0 24px;
}

.tp-subheading {
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.tp-heading {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Content below sticky image */
.tp-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0 56px;
  padding: 64px 24px 96px;
}

.tp-metrics-col {
  border-right: 1px solid var(--border);
  padding-right: 56px;
}

.tp-metric-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.tp-metric-row:first-child {
  padding-top: 0;
}

.tp-metric-row:last-child {
  border-bottom: none;
}

.tp-metric-value {
  font-size: 2.125rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
  margin-bottom: 5px;
}

.tp-metric-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'JetBrains Mono', monospace;
}

.tp-text-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}

.tp-category {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid;
  font-family: 'JetBrains Mono', monospace;
  width: fit-content;
}

.tp-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0;
}

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

.tp-tag {
  padding: 5px 13px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition);
}

.tp-tag:hover {
  color: var(--text-secondary);
  border-color: var(--border-hover);
}

@media (max-width: 768px) {
  .tp-item { padding: 0 6px; }

  .tp-sticky-img {
    top: 6px;
    height: calc(100vh - 12px);
    border-radius: 16px;
  }

  .tp-content {
    grid-template-columns: 1fr;
    padding: 40px 20px 72px;
    gap: 32px;
  }

  .tp-metrics-col {
    border-right: none;
    padding-right: 0;
    display: flex;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }

  .tp-metric-row {
    flex: 1;
    padding: 0;
    border-bottom: none;
    border-right: 1px solid var(--border);
    text-align: center;
    padding: 0 12px;
  }

  .tp-metric-row:first-child { padding-left: 0; }
  .tp-metric-row:last-child { border-right: none; padding-right: 0; }

  .tp-metric-value { font-size: 1.375rem; }
}
/* ===== Achievements ===== */
/* ===== Achievement Scrolling Columns ===== */
.achievements {
  background: var(--bg-primary);
  overflow: hidden;
}

@keyframes ac-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.ac-columns-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-height: 720px;
  overflow: hidden;
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.ac-col {
  width: 280px;
  flex-shrink: 0;
  overflow: hidden;
}

.ac-col.ac-hide-sm { display: none; }
.ac-col.ac-hide-md { display: none; }

.ac-col-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
  animation: ac-scroll var(--ac-dur, 15s) linear infinite;
}

.ac-col:hover .ac-col-inner {
  animation-play-state: paused;
}

.ac-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ac-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.ac-card-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.ac-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.ac-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ac-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ac-metric {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

.ac-category {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  opacity: 0.75;
}

@media (min-width: 768px) { .ac-col.ac-hide-sm { display: block; } }
@media (min-width: 1024px) { .ac-col.ac-hide-md { display: block; } }

/* ===== Education ===== */
.education {
  background: var(--bg-secondary);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.edu-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.edu-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.edu-school {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.edu-year {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-glow);
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Education Carousel (cases-with-infinite-scroll) ===== */
.ec-wrap {
  margin-bottom: 48px;
  width: 100%;
}

.ec-viewport {
  overflow: hidden;
  width: 100%;
}

.ec-track {
  display: flex;
  will-change: transform;
  /* transition applied by JS only during animation */
}

/* Each slide: 1 per view mobile → 2 tablet → 3 desktop */
.ec-slide {
  flex: 0 0 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .ec-slide { flex: 0 0 50%; }
}

@media (min-width: 1024px) {
  .ec-slide { flex: 0 0 33.333%; }
}

.ec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ec-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.ec-badge {
  display: inline-block;
  padding: 6px 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: white;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.ec-degree {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
}

.ec-school {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.ec-year {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-glow);
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}

.certs, .community {
  margin-bottom: 32px;
}

.certs h3, .community h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.cert-badge {
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.community-tags span {
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
}

/* ===== Contact ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info .section-tag,
.contact-info .section-title {
  text-align: left;
}

.contact-info p {
  color: var(--text-secondary);
  margin: 16px 0 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

a.contact-link:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1.25rem;
}

.contact-link-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-note {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 12px;
  min-height: 20px;
}

.form-note.success { color: #34d399; }
.form-note.error { color: #f87171; }

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

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

.footer-tagline {
  margin-top: 4px;
  font-size: 0.75rem !important;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

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

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }

  .ssc-card {
    grid-template-columns: 1fr;
    padding: 36px 32px;
    gap: 32px;
  }

  .ssc-img {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  /* Hero stacks on mobile: animation above, text below */
  .hero {
    flex-direction: column-reverse;
  }

  .hero-left {
    flex: none;
    padding: 48px 24px 60px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-desc { margin: 0 auto 32px; }

  .hero-actions { justify-content: center; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto;
    max-width: 400px;
  }

  .hero-right {
    flex: none;
    height: 60vw;
    min-height: 300px;
    max-height: 480px;
  }

  .hero-right::before { display: none; }

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

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

  .ssc-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
    top: 72px;
  }

  .ssc-img {
    height: 200px;
  }

  .ssc-subtitle {
    margin-bottom: 40px;
  }

  .section { padding: 72px 0; }
}

/* ===== Cert Badges ===== */
.cert-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 48px;
  padding: 8px 0 4px;
}

.cb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes cb-stamp {
  0%   { transform: scale(0.2) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.18) rotate(4deg);  opacity: 1; }
  80%  { transform: scale(0.93) rotate(-1deg); opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);  opacity: 1; }
}

.cb-item.cb-visible {
  animation: cb-stamp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cb-item:nth-child(2).cb-visible { animation-delay: 0.12s; }
.cb-item:nth-child(3).cb-visible { animation-delay: 0.24s; }
.cb-item:nth-child(4).cb-visible { animation-delay: 0.36s; }
.cb-item:nth-child(5).cb-visible { animation-delay: 0.48s; }
.cb-item:nth-child(6).cb-visible { animation-delay: 0.60s; }

.cb-medal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 12-tooth gear outer ring */
.cb-gear {
  position: relative;
  width: 130px;
  height: 130px;
  background: #1a2744;
  clip-path: polygon(
    50% 0%,  60% 11%, 75% 7%,  78% 22%,
    93% 25%, 89% 40%, 100% 50%, 89% 60%,
    93% 75%, 78% 78%, 75% 93%, 60% 89%,
    50% 100%, 40% 89%, 25% 93%, 22% 78%,
    7% 75%,  11% 60%, 0% 50%,  11% 40%,
    7% 25%,  22% 22%, 25% 7%,  40% 11%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.3s ease;
  cursor: default;
}

.cb-gear:hover {
  transform: scale(1.1) rotate(15deg);
  filter: brightness(1.1) drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

/* Colored middle ring */
.cb-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cb);
  z-index: 1;
}

/* White inner circle */
.cb-inner {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
}

/* Gloss sheen on top half */
.cb-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0)    55%);
  pointer-events: none;
}

.cb-abbr {
  font-size: 1rem;
  font-weight: 800;
  color: #1a2744;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

.cb-certified {
  font-size: 0.375rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}

.cb-tick {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cb);
  line-height: 1;
  margin-top: 2px;
}

/* Ribbon tails */
.cb-ribbons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -12px;
  position: relative;
  z-index: 0;
}

.cb-rib {
  width: 22px;
  height: 42px;
  background: #1a2744;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

.cb-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  max-width: 140px;
  line-height: 1.35;
  margin: 0;
}

.cb-issuer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 480px) {
  .cert-badges-row { gap: 32px 32px; }
  .cb-gear { width: 110px; height: 110px; }
  .cb-ring { width: 84px; height: 84px; }
  .cb-inner { width: 62px; height: 62px; }
  .cb-abbr { font-size: 0.85rem; }
}

/* ===== End Cert Badges ===== */

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

}
