:root {
  --bg: #0a0c10;
  --bg-soft: #10131a;
  --bg-card: #13161c;
  --border: #222831;
  --border-soft: rgba(255,255,255,0.06);
  --text: #f0f3f9;
  --text-soft: #aab2c5;
  --text-mute: #6b7280;
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --accent-3: #3b82f6;
  --accent-soft: rgba(139,92,246,0.12);
  --success: #34d399;
  --warning: #fbbf24;
  --error: #ef4444;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.5);
  --grid-color: rgba(255,255,255,0.025);
}
[data-theme="light"] {
  --bg: #fafafa; --bg-soft: #f0f1f4; --bg-card: #ffffff;
  --border: #e5e7eb; --border-soft: rgba(0,0,0,0.05);
  --text: #0a0c10; --text-soft: #4b5263; --text-mute: #9ca3af;
  --accent: #6d28d9; --accent-2: #4f46e5; --accent-3: #2563eb;
  --accent-soft: rgba(109,40,217,0.08);
  --glass-bg: rgba(0,0,0,0.03); --glass-border: rgba(0,0,0,0.05);
  --shadow-lg: 0 30px 60px -20px rgba(15,23,42,0.15);
  --grid-color: rgba(0,0,0,0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Sora', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; transition: background 0.4s, color 0.4s; }

.bg-grid { position: fixed; inset: 0; background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: 0; }
.bg-glow { position: fixed; top: -20%; right: -10%; width: 800px; height: 800px; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%); pointer-events: none; z-index: 0; filter: blur(40px); }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px 56px; background: rgba(10,12,16,0.7); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--border-soft); animation: slideDown 0.6s cubic-bezier(0.16,1,0.3,1); }
[data-theme="light"] .nav { background: rgba(250,250,250,0.8); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font-weight: 700; letter-spacing: -0.3px; font-size: 15px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link { padding: 9px 16px; color: var(--text-soft); text-decoration: none; font-size: 13.5px; font-weight: 500; border-radius: 8px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text-soft); cursor: pointer; font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; transition: all 0.2s; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: 0.25s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* SECTIONS */
.section { padding: 80px 56px; position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.section-hero-about { padding-top: 40px; }
.sec-header { margin-bottom: 40px; }
.sec-header.centered { text-align: center; }
.sec-header.centered .sec-sub { margin-left: auto; margin-right: auto; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.5px; }
.sec-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 12px; }
.sec-title-small { font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 12px; }
.sec-sub { font-size: 16px; color: var(--text-soft); max-width: 640px; line-height: 1.6; }
.sub-section { margin-top: 80px; }

/* HOME + ABOUT FUSION (LEFT-ALIGNED) */
.hero-about {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center;
  padding: 40px 0 60px;
  text-align: left;
}
.ha-left > * { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.ha-left > *:nth-child(1) { animation-delay: 0.1s; }
.ha-left > *:nth-child(2) { animation-delay: 0.2s; }
.ha-left > *:nth-child(3) { animation-delay: 0.3s; }
.ha-left > *:nth-child(4) { animation-delay: 0.4s; }
.ha-left > *:nth-child(5) { animation-delay: 0.5s; }
.ha-left > *:nth-child(6) { animation-delay: 0.6s; }

.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 100px; font-size: 12.5px; font-weight: 600; color: color-mix(in srgb, var(--accent) 80%, var(--text)); }
.status-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; position: relative; }
.status-dot::after { content: ''; position: absolute; inset: -4px; background: var(--success); border-radius: 50%; opacity: 0.4; animation: pulse 2s ease-in-out infinite; }

.hero-title { font-size: clamp(38px, 5.5vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 24px 0 8px; }
.hero-greet { display: block; font-size: 0.36em; font-weight: 500; color: var(--text-soft); margin-bottom: 8px; }
.hero-name { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 60%, var(--success) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-role { font-size: 18px; margin: 16px 0; color: var(--text-soft); }
.hero-role .accent { color: var(--accent); font-weight: 600; }
.hero-role .sep { margin: 0 8px; color: var(--text-mute); }
.hero-tag { font-size: 16px; line-height: 1.7; max-width: 600px; color: var(--text-soft); margin: 12px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.25s cubic-bezier(0.16,1,0.3,1); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: white; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--accent); }
.btn-ghost { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; font-size: 13.5px; color: var(--text-mute); }

.ha-right { display: grid; place-items: center; }
.visual-card { position: relative; width: 320px; height: 320px; display: grid; place-items: center; animation: fadeIn 1s 0.4s both; }
.visual-mono-svg { position: relative; z-index: 3; width: 160px; height: 160px; }
.visual-orbit { position: absolute; border-radius: 50%; }
.visual-orbit-1 { width: 180px; height: 180px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); animation: spin 20s linear infinite; }
.visual-orbit-2 { width: 240px; height: 240px; border: 1px solid color-mix(in srgb, var(--accent-3) 18%, transparent); animation: spin 30s linear infinite reverse; }
.visual-orbit-3 { width: 300px; height: 300px; border: 1px solid color-mix(in srgb, var(--success) 15%, transparent); animation: spin 40s linear infinite; }
.visual-dot { position: absolute; border-radius: 50%; box-shadow: 0 0 20px currentColor; }
.visual-dot-1 { width: 10px; height: 10px; top: 70px; left: 50%; background: var(--accent); color: var(--accent); animation: orbit1 20s linear infinite; }
.visual-dot-2 { width: 8px; height: 8px; top: 110px; right: 50px; background: var(--accent-3); color: var(--accent-3); animation: orbit2 30s linear infinite; }
.visual-dot-3 { width: 8px; height: 8px; bottom: 50px; left: 30px; background: var(--success); color: var(--success); animation: orbit3 40s linear infinite; }

/* QUICK STATS STRIP */
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; margin: 40px 0; box-shadow: var(--shadow-lg); }
.qs-card { text-align: center; padding: 16px; border-right: 1px solid var(--border-soft); text-decoration: none; color: inherit; transition: all 0.2s; }
.qs-card:last-child { border-right: none; }
.qs-card:hover { transform: translateY(-2px); }
.qs-icon { margin-bottom: 10px; display: grid; place-items: center; }
.qs-num { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(135deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qs-label { font-size: 12px; color: var(--text-mute); font-weight: 600; margin-top: 4px; }

/* TIMELINE (PURPLE THEME) */
.seg-toggle { display: inline-flex; gap: 4px; margin: 0 auto 60px; padding: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; position: relative; left: 50%; transform: translateX(-50%); }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; background: transparent; border: none; color: var(--text-soft); font-family: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; cursor: pointer; transition: all 0.3s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; box-shadow: 0 6px 20px -6px var(--accent); }
.timeline { position: relative; max-width: 980px; margin: 0 auto; padding: 20px 0; }
.timeline[hidden] { display: none; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent 0%, var(--accent) 8%, var(--accent-2) 50%, var(--accent) 92%, transparent 100%); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); }
.tl-item { position: relative; width: 50%; padding: 24px 50px; opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.tl-item.reveal { opacity: 1; transform: translateY(0); }
.tl-item.tl-left { left: 0; }
.tl-item.tl-right { left: 50%; }
.tl-node { position: absolute; top: 36px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--accent); }
.tl-left .tl-node { right: -8px; }
.tl-right .tl-node { left: -8px; }
.tl-card { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 18px; padding: 24px; transition: all 0.3s cubic-bezier(0.16,1,0.3,1); }
.tl-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-lg), 0 0 40px -10px color-mix(in srgb, var(--accent) 30%, transparent); }
.tl-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.tl-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: white; font-weight: 800; font-size: 14px; letter-spacing: -0.5px; flex-shrink: 0; }
.tl-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.tl-company { font-size: 13.5px; color: var(--text-soft); margin-top: 2px; }
.tl-badge { display: inline-block; padding: 4px 12px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 100px; margin-bottom: 12px; }
.tl-desc { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 14px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags span { font-size: 11.5px; padding: 4px 10px; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 6px; color: var(--text-soft); font-weight: 500; transition: all 0.2s; }
.tl-tags span:hover { border-color: var(--accent); color: var(--accent); }

/* TECH STACK */
.tech-groups { display: flex; flex-direction: column; gap: 36px; max-width: 980px; margin: 0 auto; }
.tech-group { text-align: center; }
.tech-cat { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; margin-bottom: 18px; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--text); transition: all 0.25s; }
.chip svg { width: 22px; height: 22px; flex-shrink: 0; }
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px -8px var(--accent); }

/* PROJECTS */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.proj-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: all 0.3s cubic-bezier(0.16,1,0.3,1); }
.proj-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-lg); }
.proj-img { height: 180px; display: grid; place-items: center; position: relative; overflow: hidden; }
.proj-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18) 0%, transparent 50%); }
.proj-img-title { position: relative; z-index: 1; color: white; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.proj-body { padding: 24px; }
.proj-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.proj-body p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.proj-tags span { font-size: 11.5px; padding: 4px 10px; background: var(--accent-soft); color: var(--accent); border-radius: 6px; font-weight: 500; }
.proj-links { display: flex; gap: 12px; }
.proj-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; transition: all 0.2s; }
.proj-links a:hover { border-color: var(--accent); color: var(--accent); }
.more-link { text-align: center; margin-top: 40px; }

/* CERTIFICATIONS */
.cert-counters { display: inline-flex; gap: 24px; margin-top: 16px; padding: 10px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; }
.cnt { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-soft); }
.cnt strong { color: var(--text); }
.cdot { width: 8px; height: 8px; border-radius: 50%; }
.cdot.done { background: var(--success); }
.cdot.active { background: var(--accent); }
.cdot.planned { background: var(--text-mute); }
.cert-block { margin-bottom: 32px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.cert-status-title { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cert-status-title.done { color: var(--success); }
.cert-status-title.done::before { content: ''; width: 11px; height: 11px; border-radius: 3px; background: var(--success); }
.cert-status-title.active { color: var(--accent); }
.cert-status-title.active::before { content: ''; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
.cert-status-title.planned { color: var(--text-mute); }
.cert-status-title.planned::before { content: ''; width: 11px; height: 11px; border-radius: 3px; background: var(--text-mute); }
.cert-row { display: grid; grid-template-columns: 4px 1fr 1.2fr 90px 60px 20px; gap: 16px; align-items: center; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; text-decoration: none; color: inherit; transition: all 0.2s; }
.cert-row:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); transform: translateX(2px); }
.cert-row:nth-child(odd) { background: var(--bg-soft); }
.cert-bar { width: 4px; height: 22px; border-radius: 2px; align-self: center; }
.done-row .cert-bar { background: var(--success); }
.active-row .cert-bar { background: var(--accent); }
.cert-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cert-issuer { font-size: 13px; color: var(--text-soft); }
.cert-plat { font-size: 13px; color: #60a5fa; font-weight: 500; }
.cert-plat.plat-aws { color: var(--warning); }
.cert-year { font-size: 13px; color: var(--text-mute); text-align: right; }
.cert-arrow { color: var(--text-mute); transition: all 0.2s; }
.cert-row:hover .cert-arrow { color: var(--accent); transform: translate(2px, -2px); }
.cert-planned-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cert-planned, a.cert-planned { padding: 12px 18px; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 10px; font-size: 13px; color: var(--text-soft); display: flex; justify-content: space-between; align-items: center; text-decoration: none; transition: all 0.2s; }
a.cert-planned:hover { border-color: var(--accent); transform: translateY(-1px); }
.planned-platform { font-size: 11px; color: var(--text-mute); }
.cert-view-more { text-align: center; margin-top: 14px; }
.cert-view-more a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; transition: all 0.2s; }
.cert-view-more a:hover { border-color: var(--accent); transform: translateY(-1px); }

/* SELF EDUCATION (inline in certifications section) */
.edu-block { padding-top: 20px; border-top: 1px solid var(--border-soft); margin-top: 60px; }
.edu-bars-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-mute); letter-spacing: 1px; margin-bottom: 16px; text-align: center; }
.edu-bars { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }
.edu-bar-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.edu-bar-name { font-size: 14px; font-weight: 600; color: var(--text); }
.edu-bar-val { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.edu-bar-track { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.edu-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-3)); border-radius: 4px; transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }
.edu-source { margin-top: 32px; text-align: center; }
.tracker-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: all 0.2s; }
.tracker-link:hover { border-color: var(--accent); }
.live-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

/* CONTACT (premium Get in Touch) */
.section-contact { padding-top: 100px; padding-bottom: 100px; }
.contact-title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto 60px; }
.contact-card-v2 {
  position: relative; padding: 28px 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  text-decoration: none; color: inherit;
  text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s, transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.contact-card-v2.reveal { opacity: 1; transform: translateY(0); }
.contact-card-v2::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.contact-card-v2:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 20px 50px -15px color-mix(in srgb, var(--accent) 40%, transparent);
}
.contact-card-v2:hover::before { opacity: 1; }
.cc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4); position: relative; z-index: 1; }
.contact-card-v2 h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; position: relative; z-index: 1; }
.contact-card-v2 p { font-size: 13px; color: var(--text-soft); position: relative; z-index: 1; }

/* CONTACT FORM */
.contact-form {
  max-width: 720px; margin: 0 auto;
  padding: 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; letter-spacing: 0.2px; }
.form-field input, .form-field textarea {
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit; font-size: 14.5px;
  transition: all 0.2s;
  resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-mute); }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-field input.invalid, .form-field textarea.invalid { border-color: var(--error); }
.form-error { display: block; font-size: 12px; color: var(--error); margin-top: 6px; min-height: 16px; }

.btn-submit {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%);
  color: white; font-family: inherit; font-size: 15px; font-weight: 700;
  border: none; border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px var(--accent);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  margin-top: 8px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px var(--accent), 0 0 30px -8px var(--accent-3);
}
.btn-submit:disabled { opacity: 0.7; cursor: wait; }
.btn-submit-spinner { display: none; animation: spin 0.8s linear infinite; }
.btn-submit.loading .btn-submit-text { opacity: 0.7; }
.btn-submit.loading .btn-submit-icon { display: none; }
.btn-submit.loading .btn-submit-spinner { display: block; }

.form-status {
  margin-top: 16px; padding: 12px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  text-align: center;
  display: none;
}
.form-status.success { display: block; background: rgba(52,211,153,0.12); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.form-status.error { display: block; background: rgba(239,68,68,0.12); color: var(--error); border: 1px solid color-mix(in srgb, var(--error) 30%, transparent); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border-soft); padding: 28px 56px; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 1280px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* LOADING */
.cert-loading, .edu-loading { padding: 60px 30px; text-align: center; font-size: 14px; color: var(--text-mute); background: var(--bg-card); border: 1px dashed var(--border); border-radius: 14px; max-width: 600px; margin: 0 auto; }
.cert-loading::before, .edu-loading::before { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; margin-right: 10px; vertical-align: middle; animation: spin 0.8s linear infinite; }
.error-note { padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: 10px; font-size: 14px; color: var(--text-soft); max-width: 720px; margin: 0 auto; }
.error-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.error-note a:hover { text-decoration: underline; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.8); opacity: 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit1 { from { transform: rotate(0) translateX(90px) rotate(0); } to { transform: rotate(360deg) translateX(90px) rotate(-360deg); } }
@keyframes orbit2 { from { transform: rotate(0) translateX(120px) rotate(0); } to { transform: rotate(360deg) translateX(120px) rotate(-360deg); } }
@keyframes orbit3 { from { transform: rotate(0) translateX(150px) rotate(0); } to { transform: rotate(360deg) translateX(150px) rotate(-360deg); } }

/* RESPONSIVE */
@media (max-width: 920px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-soft); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
  .section { padding: 56px 20px; }
  .hero-about { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .ha-right { display: none; }
  .visual-card { width: 240px; height: 240px; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .qs-card { border-right: none; border-bottom: 1px solid var(--border-soft); padding-bottom: 20px; }
  .qs-card:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 16px; }
  .tl-line { left: 18px; }
  .tl-item { width: 100%; left: 0 !important; padding: 16px 0 16px 50px; }
  .tl-left .tl-node, .tl-right .tl-node { left: 10px; right: auto; }
  .proj-grid { grid-template-columns: 1fr; }
  .cert-row { grid-template-columns: 4px 1fr; gap: 10px; padding: 14px; }
  .cert-issuer, .cert-plat, .cert-year, .cert-arrow { display: none; }
  .cert-planned-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 20px; }
}

@media (max-width: 540px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ===== SECTION INTRO ===== */
.section-intro {
  text-align: center;
  font-size: 14.5px;
  color: var(--text-mute);
  max-width: 640px;
  margin: -16px auto 36px;
  line-height: 1.6;
  font-style: italic;
}

/* ===== TECH CHIPS — SQUARE CARD STYLE (like contact cards) ===== */
.tech-chips {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.chip {
  flex-direction: column;
  padding: 22px 12px !important;
  text-align: center;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border) !important;
  border-radius: 18px !important;
  font-size: 14px !important;
  position: relative;
  overflow: hidden;
}
.chip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.chip:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border)) !important;
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.chip:hover::before { opacity: 1; }
.chip svg {
  width: 32px !important;
  height: 32px !important;
  margin-bottom: 6px;
}

/* ===== TIMELINE LOGOS (image with text fallback) ===== */
.tl-logo {
  position: relative;
  overflow: hidden;
}
.tl-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: white;
  border-radius: 10px;
}
.tl-logo-text {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 14px;
  letter-spacing: -0.5px;
  z-index: 0;
}
/* When image loads successfully, hide text. When it fails (display:none), text shows via z-index */
.tl-logo img + .tl-logo-text { display: none; }
.tl-logo img[style*="display: none"] + .tl-logo-text { display: grid; }

/* ===== CONTACT CARDS — REDUCED SIZE (match form width) ===== */
.contact-cards {
  max-width: 720px !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.contact-card-v2 {
  padding: 22px 14px !important;
}
.contact-card-v2 .cc-icon {
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto 12px !important;
}
.contact-card-v2 .cc-icon svg {
  width: 18px !important;
  height: 18px !important;
}
.contact-card-v2 h3 {
  font-size: 14px !important;
}
.contact-card-v2 p {
  font-size: 12px !important;
}

/* ===== SELF EDUCATION — bigger & symmetric ===== */
.edu-block {
  padding-top: 60px !important;
  margin-top: 80px !important;
  border-top: 1px solid var(--border-soft);
}
.edu-block .edu-bars {
  max-width: 1080px !important;
}
.edu-block .edu-bar {
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}
.edu-block .edu-bar:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  transform: translateX(2px);
}
.edu-block .edu-bar-name {
  font-size: 15px !important;
}
.edu-block .edu-bar-val {
  font-size: 14px !important;
}
.edu-block .edu-bar-track {
  height: 10px !important;
  margin-top: 4px;
}

/* ===== COUNTER ANIMATION ===== */
.qs-num.counter {
  font-variant-numeric: tabular-nums;
}

/* ===== MOBILE RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 920px) {
  .tech-chips {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }
  .chip {
    padding: 16px 8px !important;
    font-size: 12.5px !important;
  }
  .chip svg {
    width: 26px !important;
    height: 26px !important;
  }
  .contact-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 540px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* =============== SEPARATED STAT CARDS (no shared container) =============== */
.quick-stats {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}
.quick-stats .qs-card {
  border-right: none !important;
  border-bottom: none !important;
  padding: 24px 18px !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border) !important;
  border-radius: 18px !important;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.quick-stats .qs-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.quick-stats .qs-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border)) !important;
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 30%, transparent);
}
.quick-stats .qs-card:hover::before { opacity: 1; }

/* =============== TECH CAT TITLES (left-aligned + bigger, except AI/ML) =============== */
.tech-group-left {
  text-align: left !important;
}
.tech-group-left .tech-cat {
  font-family: 'Sora', system-ui, sans-serif !important;
  text-transform: uppercase;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
  margin-bottom: 22px !important;
  padding-left: 14px;
  border-left: 4px solid currentColor;
  display: inline-block;
}
/* AI/ML stays a bit different — keep monospaced look but bigger */
.tech-group-left:first-child .tech-cat {
  font-family: 'JetBrains Mono', monospace !important;
  letter-spacing: 1.5px !important;
  font-size: 16px !important;
}

/* =============== CONTACT CARDS — EVEN SMALLER =============== */
.contact-cards {
  max-width: 720px !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px !important;
}
.contact-card-v2 {
  padding: 16px 10px !important;
}
.contact-card-v2 .cc-icon {
  width: 36px !important;
  height: 36px !important;
  margin: 0 auto 8px !important;
  border-radius: 10px !important;
}
.contact-card-v2 .cc-icon svg {
  width: 16px !important;
  height: 16px !important;
}
.contact-card-v2 h3 {
  font-size: 13px !important;
  margin-bottom: 2px !important;
}
.contact-card-v2 p {
  font-size: 11px !important;
}

/* =============== HERO VISUAL — show on mobile too =============== */
@media (max-width: 920px) {
  .ha-right { display: grid !important; }
  .visual-card { width: 220px !important; height: 220px !important; margin: 0 auto; }
  .visual-mono-svg { width: 110px !important; height: 110px !important; }
  .visual-orbit-1 { width: 130px !important; height: 130px !important; }
  .visual-orbit-2 { width: 175px !important; height: 175px !important; }
  .visual-orbit-3 { width: 220px !important; height: 220px !important; }
  .visual-dot-1 { top: 50px !important; }
  .visual-dot-2 { right: 30px !important; }
  .visual-dot-3 { left: 20px !important; bottom: 30px !important; }
  .quick-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .quick-stats .qs-card { padding: 18px 12px !important; }
  .contact-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 540px) {
  .quick-stats { grid-template-columns: repeat(2, 1fr) !important; }
}

/* =============== ALL SECTION TITLES → GRADIENT (like Get in Touch) =============== */
.sec-title, .sec-title-small {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block;
}
.sec-title {
  font-size: clamp(34px, 5vw, 56px) !important;
  font-weight: 800 !important;
}
.sec-title-small {
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 800 !important;
}
/* Make sure light theme still works */
[data-theme="light"] .sec-title,
[data-theme="light"] .sec-title-small,
[data-theme="light"] .contact-title {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* =============== TECH STACK — NOT CENTERED, BIGGER CHIPS =============== */
#tech .sec-header.centered { text-align: center; }  /* keep title centered */
.tech-groups {
  max-width: 1200px !important;
  align-items: stretch;
}
.tech-group-left {
  text-align: left !important;
}
.tech-chips {
  justify-content: flex-start !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  max-width: 1200px !important;
  gap: 16px !important;
}
.chip {
  padding: 28px 16px !important;
  font-size: 16px !important;
  border-radius: 20px !important;
}
.chip svg {
  width: 40px !important;
  height: 40px !important;
  margin-bottom: 10px !important;
}

/* =============== CONTACT CARDS — SMALLER STILL =============== */
.contact-cards {
  max-width: 640px !important;
  gap: 10px !important;
}
.contact-card-v2 {
  padding: 14px 8px !important;
}
.contact-card-v2 .cc-icon {
  width: 32px !important;
  height: 32px !important;
  margin: 0 auto 6px !important;
  border-radius: 8px !important;
}
.contact-card-v2 .cc-icon svg {
  width: 14px !important;
  height: 14px !important;
}
.contact-card-v2 h3 {
  font-size: 12px !important;
  margin-bottom: 1px !important;
}
.contact-card-v2 p {
  font-size: 10.5px !important;
}

/* =============== MOBILE RESPONSIVE =============== */
@media (max-width: 920px) {
  .tech-chips {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 10px !important;
  }
  .chip {
    padding: 20px 10px !important;
    font-size: 13px !important;
  }
  .chip svg {
    width: 30px !important;
    height: 30px !important;
  }
  .contact-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============== SECTION HEADER FIX: eyebrow above title, not inline ============== */
.sec-header { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sec-header.centered { text-align: center; align-items: center; }
.sec-header .eyebrow {
  display: block;
  width: 100%;
  margin-bottom: 4px;
}
.sec-header .sec-title,
.sec-header .sec-title-small {
  display: block;
  width: auto;
  line-height: 1.1;
}
.sec-header .sec-sub {
  margin-top: 8px;
}

/* ============== INCREASE SPACING BETWEEN SECTIONS ============== */
.section { padding: 110px 56px !important; }
.section-hero-about { padding-top: 50px !important; }
.sub-section { margin-top: 110px !important; }

/* ============== CONTACT CARDS — slightly bigger again ============== */
.contact-cards {
  max-width: 720px !important;
  gap: 12px !important;
}
.contact-card-v2 {
  padding: 18px 12px !important;
}
.contact-card-v2 .cc-icon {
  width: 40px !important;
  height: 40px !important;
  margin: 0 auto 10px !important;
  border-radius: 10px !important;
}
.contact-card-v2 .cc-icon svg {
  width: 18px !important;
  height: 18px !important;
}
.contact-card-v2 h3 {
  font-size: 14px !important;
  margin-bottom: 2px !important;
}
.contact-card-v2 p {
  font-size: 12px !important;
}

/* ============== MOBILE: photo SCAM AU-DESSUS du texte ============== */
@media (max-width: 920px) {
  .section { padding: 70px 20px !important; }
  .sub-section { margin-top: 70px !important; }

  /* Use flex-direction column-reverse to put visual above text */
  .hero-about {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }
  .ha-right {
    display: grid !important;
    order: -1 !important;  /* Push visual to top */
  }
  .ha-left {
    order: 1 !important;
  }
  .visual-card {
    width: 220px !important;
    height: 220px !important;
    margin: 0 auto !important;
  }

  /* On mobile, contact cards stay 2x2 */
  .contact-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100% !important;
  }
}

/* ===================== FLOATING NAVBAR (premium) ===================== */
.nav {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px) !important;
  max-width: 980px !important;
  padding: 10px 22px !important;
  background: rgba(13, 16, 24, 0.7) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 100px !important;
  box-shadow:
    0 8px 32px -8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 92, 246, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  z-index: 100;
  animation: navFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow:
    0 8px 32px -8px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

@keyframes navFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Body needs top spacing for the floating nav */
body { padding-top: 100px; }
@media (max-width: 920px) { body { padding-top: 80px; } }

/* ===================== NEW LOGO: SCAM (no box) ===================== */
.brand { gap: 0 !important; }
.brand-logo, .brand-name { display: none !important; }
.brand-scam {
  display: inline-flex;
  align-items: center;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  position: relative;
}
.brand-scam .bs-s,
.brand-scam .bs-c,
.brand-scam .bs-a,
.brand-scam .bs-m {
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}
.brand-scam .bs-s { background-image: linear-gradient(135deg, #8b5cf6, #6366f1); }
.brand-scam .bs-c { background-image: linear-gradient(135deg, #6366f1, #3b82f6); }
.brand-scam .bs-a { background-image: linear-gradient(135deg, #3b82f6, #06b6d4); }
.brand-scam .bs-m { background-image: linear-gradient(135deg, #06b6d4, #34d399); }
.brand:hover .brand-scam .bs-s { transform: translateY(-2px); }
.brand:hover .brand-scam .bs-c { transform: translateY(2px); }
.brand:hover .brand-scam .bs-a { transform: translateY(-2px); }
.brand:hover .brand-scam .bs-m { transform: translateY(2px); }

/* ===================== NAV LINKS: subtle active style ===================== */
.nav-links {
  gap: 2px !important;
}
.nav-link {
  padding: 7px 14px !important;
  font-size: 13px !important;
  border-radius: 100px !important;
  position: relative;
  transition: all 0.25s ease !important;
}
.nav-link:hover {
  color: var(--text) !important;
  background: rgba(139, 92, 246, 0.08) !important;
}
/* Active state: subtle background + purple text, NO underline / bar / triangle */
.nav-link.active {
  color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 15%, transparent) !important;
}
/* Remove any pseudo-element indicators */
.nav-link::before, .nav-link::after { content: none !important; display: none !important; }

/* Nav action buttons more compact */
.icon-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 100px !important;
  font-size: 12px !important;
}

/* ===================== AVATAR ===================== */
.avatar-wrap {
  position: relative;
  z-index: 3;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}
.avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.visual-card .avatar-wrap {
  animation: avatarFloat 6s ease-in-out infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hide the old SVG monogram if any leftover */
.visual-mono-svg { display: none !important; }

/* Mobile avatar size */
@media (max-width: 920px) {
  .avatar-wrap {
    width: 200px !important;
    height: 200px !important;
  }
}

/* ===================== HIDDEN CERTS & LOAD MORE BUTTON ===================== */
.cert-row.hidden-cert { display: none !important; }
.cert-view-more { text-align: center; margin-top: 14px; }
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-load-more:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px var(--accent);
}
.btn-load-more:hover svg {
  transform: translateY(2px);
}
.btn-load-more svg {
  transition: transform 0.25s ease;
}

/* =============== NEW CONTACT CARDS — premium horizontal style =============== */
.contact-cards {
  max-width: 1080px !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
}

.contact-card-v2 {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 22px !important;
  background: #080808 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 26px !important;
  text-align: left !important;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-theme="light"] .contact-card-v2 {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.contact-card-v2::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.contact-card-v2:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent) !important;
  box-shadow:
    0 20px 40px -15px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent) !important;
}
.contact-card-v2:hover::before { opacity: 1; }

/* The icon container — square rounded with sharp gradient */
.contact-card-v2 .cc-icon {
  flex-shrink: 0;
  width: 58px !important;
  height: 58px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5) !important;
}
.contact-card-v2 .cc-icon svg {
  width: 26px !important;
  height: 26px !important;
}

/* Text block */
.contact-card-v2 > :not(.cc-icon) {
  display: block;
  position: relative;
  z-index: 1;
}
.contact-card-v2 h3 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.5px !important;
  line-height: 1.1 !important;
  margin: 0 0 4px 0 !important;
}
[data-theme="light"] .contact-card-v2 h3 { color: #0a0c10 !important; }
.contact-card-v2 p {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  margin: 0 !important;
  letter-spacing: 0.1px;
}

/* Mobile responsive for contact cards */
@media (max-width: 920px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .contact-card-v2 {
    padding: 16px !important;
    border-radius: 20px !important;
    gap: 12px !important;
  }
  .contact-card-v2 .cc-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
  }
  .contact-card-v2 .cc-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .contact-card-v2 h3 {
    font-size: 16px !important;
  }
  .contact-card-v2 p {
    font-size: 11px !important;
  }
}

/* =============== IMPROVED FOOTER =============== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 50px 56px 30px;
  margin-top: 100px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03));
}
.site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}
.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.footer-brand-role {
  font-size: 12.5px;
  color: var(--text-mute);
  font-weight: 500;
}
.site-footer .footer-links {
  display: flex;
  gap: 8px;
}
.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.site-footer .footer-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
  transform: translateY(-1px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}
.footer-copyright,
.footer-built {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
}
.footer-built .heart {
  display: inline-block;
  animation: heartbeat 1.8s ease-in-out infinite;
  font-size: 14px;
  margin-left: 2px;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.15); }
  20% { transform: scale(1.05); }
}

@media (max-width: 920px) {
  .site-footer {
    padding: 40px 20px 24px;
  }
  .site-footer .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-brand-text {
    align-items: center;
  }
}

/* =============== FIX: text block wrapping in contact cards =============== */
/* Wrap title + subtitle in a stacked column with proper min-width */
.contact-card-v2 {
  min-width: 0 !important;
}
.contact-card-v2 > h3 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.contact-card-v2 > p {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* Group title + subtitle as flex column inside the card */
.contact-card-v2 {
  align-items: center !important;
}
.contact-card-v2 .cc-text-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

/* Slight adjustment for 4-cards-in-row layout */
@media (min-width: 921px) {
  .contact-card-v2 h3 {
    font-size: 20px !important;
  }
  .contact-card-v2 .cc-icon {
    width: 52px !important;
    height: 52px !important;
  }
  .contact-card-v2 .cc-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
}

/* Final mobile tuning: allow long words like WhatsApp to wrap or shrink */
@media (max-width: 540px) {
  .contact-card-v2 h3 {
    font-size: 14px !important;
  }
  .contact-card-v2 p {
    font-size: 10.5px !important;
  }
}

/* ===================== BURGER MENU — PERFECT CIRCLE & CENTERED BARS ===================== */
.icon-btn.burger {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  /* Center the bars perfectly inside the circle */
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 0 !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.icon-btn.burger:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px var(--accent);
}
.icon-btn.burger span {
  display: block !important;
  width: 16px !important;
  height: 2px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
  /* Reset any margin/positioning that might offset */
  margin: 0 !important;
}
.icon-btn.burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
.icon-btn.burger.open span:nth-child(2) {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}
.icon-btn.burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

/* Also make the other icon-btn (FR/EN toggle, theme toggle) perfect circles for consistency */
.icon-btn:not(.burger) {
  border-radius: 50% !important;
}

/* ====================== FINAL CORRECTIONS ====================== */

/* 1) Burger menu — desktop hidden, mobile only */
.icon-btn.burger {
  display: none !important;
}
@media (max-width: 920px) {
  .icon-btn.burger {
    display: inline-flex !important;
  }
}

/* 2) Contact cards — match form width (max-width 720px) */
.contact-cards {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 3) (removed) — contact section background kept as default */
/* Form keeps its glassmorphism — make sure cards match same visual treatment */
.contact-card-v2 {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-color: var(--glass-border) !important;
}
[data-theme="light"] .contact-card-v2 {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
}


/* ====================== CONTACT CARDS — fit nicely in 720px width ====================== */
@media (min-width: 921px) {
  .contact-cards {
    gap: 12px !important;
  }
  .contact-card-v2 {
    padding: 14px 10px !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }
  .contact-card-v2 .cc-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }
  .contact-card-v2 .cc-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .contact-card-v2 h3 {
    font-size: 14px !important;
    margin-bottom: 1px !important;
  }
  .contact-card-v2 p {
    font-size: 11px !important;
  }
}

/* ========================================================================
   FINAL POLISH BATCH
   ======================================================================== */

/* 1) Load More button on COMPLETED certs → GREEN */
.cert-block .btn-load-more {
  color: var(--success) !important;
  border-color: color-mix(in srgb, var(--success) 30%, var(--border)) !important;
}
.cert-block .btn-load-more:hover {
  background: color-mix(in srgb, var(--success) 12%, var(--bg-card)) !important;
  border-color: var(--success) !important;
  box-shadow: 0 8px 20px -8px var(--success) !important;
}

/* 2) FOOTER fully centered */
.site-footer .footer-top {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 20px !important;
}
.footer-brand-text {
  align-items: center !important;
}
.site-footer .footer-links {
  justify-content: center !important;
}
.footer-bottom {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
}

/* 3) BIGGER STAT ICONS */
.qs-card .qs-icon svg {
  width: 32px !important;
  height: 32px !important;
}
.qs-card .qs-icon {
  margin-bottom: 14px !important;
}

/* 4) BIGGER TECH STACK ICONS */
.chip svg {
  width: 44px !important;
  height: 44px !important;
  margin-bottom: 12px !important;
}

/* ========================================================================
   SCROLL REVEAL ANIMATIONS
   - Uses transform + opacity for GPU acceleration
   - Animations play once on first appearance
   - Reduced motion respected
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  .reveal-init,
  .reveal-init * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Base "before reveal" state for every animated element */
.reveal-init {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Direction-specific starting positions */
.reveal-up    { transform: translate3d(0, 32px, 0); }
.reveal-down  { transform: translate3d(0, -28px, 0); }
.reveal-left  { transform: translate3d(-40px, 0, 0); }
.reveal-right { transform: translate3d(40px, 0, 0); }
.reveal-scale { transform: scale(0.92); }
.reveal-fade  { transform: none; }

/* When .revealed class is added → smooth final state */
.reveal-init.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Staggered delays for groups (each child gets +60ms) */
.reveal-stagger > * {
  transition-delay: 0ms;
}
.reveal-stagger.revealed > *:nth-child(1)  { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2)  { transition-delay: 60ms; }
.reveal-stagger.revealed > *:nth-child(3)  { transition-delay: 120ms; }
.reveal-stagger.revealed > *:nth-child(4)  { transition-delay: 180ms; }
.reveal-stagger.revealed > *:nth-child(5)  { transition-delay: 240ms; }
.reveal-stagger.revealed > *:nth-child(6)  { transition-delay: 300ms; }
.reveal-stagger.revealed > *:nth-child(7)  { transition-delay: 360ms; }
.reveal-stagger.revealed > *:nth-child(8)  { transition-delay: 420ms; }
.reveal-stagger.revealed > *:nth-child(9)  { transition-delay: 480ms; }
.reveal-stagger.revealed > *:nth-child(10) { transition-delay: 540ms; }

/* ========================================================================
   ENHANCED HOVER STATES (preserve existing, add smoothness)
   ======================================================================== */
.btn, .nav-link, .icon-btn, .qs-card, .proj-card, .chip,
.contact-card-v2, .tl-card, .footer-links a, .footer-brand,
.cert-row, .edu-bar {
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s ease,
    opacity 0.3s ease;
}

/* Subtle scale on icon buttons */
.icon-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Smoother nav-link hover */
.nav-link {
  position: relative;
  overflow: hidden;
}

/* Slight zoom on project card image on hover */
.proj-card { overflow: hidden; }
.proj-card .proj-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.proj-card:hover .proj-img {
  transform: scale(1.04);
}

/* SVG icons in stat cards/chips wobble gently on hover */
.qs-card:hover .qs-icon svg,
.chip:hover svg {
  animation: iconPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes iconPop {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.12) rotate(-4deg); }
  70%  { transform: scale(0.98) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Form inputs smooth focus glow already exists — strengthen transition */
.form-field input,
.form-field textarea {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}


/* ============================================================
   FINAL FIXES — Timeline, Contact cards, Mobile navbar
   ============================================================ */

/* ============================================================
   1) CONTACT CARDS — Force visibility (fix scroll-reveal bug)
   The .reveal-stagger system was leaving contact cards invisible.
   ============================================================ */
.contact-cards.reveal-init,
.contact-cards.reveal-init > * {
  opacity: 1 !important;
  transform: none !important;
}
/* Re-apply gentle fade-up only when reveal observer adds .revealed */
.contact-card-v2 {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================
   2) TIMELINE — Properly centered, balanced, professional
   ============================================================ */

/* The whole section-timeline container needs to constrain & center the timeline */
.section-timeline,
#about .sub-section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* SEG TOGGLE — perfect centering (was offset right) */
.seg-toggle {
  /* Replace the absolute positioning trick with flex centering */
  position: static !important;
  left: auto !important;
  transform: none !important;
  display: flex !important;
  margin: 0 auto 56px !important;
  width: fit-content;
}

/* TIMELINE — center the vertical line perfectly */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 0;
}
.tl-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--accent) 6%,
    var(--accent-2) 50%,
    var(--accent) 94%,
    transparent 100%
  );
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 2px;
  z-index: 0;
}

/* Items: alternate left/right, fixed width, equal padding */
.tl-item {
  position: relative;
  width: 50%;
  padding: 18px 48px;
  box-sizing: border-box;
  z-index: 1;
}
.tl-item.tl-left {
  left: 0;
  padding-right: 48px;
  padding-left: 0;
  text-align: left;
}
.tl-item.tl-right {
  left: 50%;
  padding-left: 48px;
  padding-right: 0;
}

/* Node: perfectly centered on the line */
.tl-node {
  position: absolute;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 40%, transparent);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tl-left .tl-node {
  right: -7px;
  left: auto;
}
.tl-right .tl-node {
  left: -7px;
  right: auto;
}

/* Hover effect on node */
.tl-item:hover .tl-node {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--bg), 0 0 30px var(--accent), 0 0 50px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Card hover: lift + glow */
.tl-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tl-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    0 25px 50px -15px rgba(0, 0, 0, 0.5),
    0 0 30px -8px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Tighten card internals */
.tl-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.tl-logo { width: 44px; height: 44px; flex-shrink: 0; }
.tl-card h3 { font-size: 17px; font-weight: 700; line-height: 1.25; margin-bottom: 2px; }
.tl-company { font-size: 13px; color: var(--text-soft); }
.tl-badge {
  display: inline-block;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 12px;
}
.tl-desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; margin-bottom: 14px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  color: var(--text-soft);
}

/* TIMELINE MOBILE/TABLET — collapse to single column, line on the left */
@media (max-width: 920px) {
  .timeline {
    max-width: 100%;
    padding: 0 0 0 8px;
  }
  .tl-line {
    left: 20px;
    transform: none;
  }
  .tl-item,
  .tl-item.tl-left,
  .tl-item.tl-right {
    width: 100%;
    left: 0 !important;
    padding: 14px 0 14px 54px;
    text-align: left;
  }
  .tl-left .tl-node,
  .tl-right .tl-node {
    left: 12px;
    right: auto;
  }
  .tl-card {
    padding: 18px;
  }
  .seg-toggle {
    margin-bottom: 36px !important;
  }
}

/* Smooth fade between Experience / Education tabs */
.timeline {
  animation: timelineFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes timelineFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduce extra vertical padding before timeline section */
#about .sub-section .sec-header {
  margin-bottom: 28px;
}
#about .sub-section .sec-header .sec-sub {
  margin-bottom: 12px;
}

/* ============================================================
   3) MOBILE NAVBAR — clean, balanced, professional
   ============================================================ */
@media (max-width: 920px) {
  /* Compact navbar with proper spacing */
  .nav {
    padding: 8px 16px !important;
    width: calc(100% - 24px) !important;
    top: 12px !important;
    border-radius: 24px !important;
  }
  .brand-scam {
    font-size: 20px !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
  .icon-btn {
    width: 34px !important;
    height: 34px !important;
  }
  /* Mobile dropdown menu: full polished panel */
  .nav-links {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(13, 16, 24, 0.96) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    flex-direction: column !important;
    padding: 12px !important;
    gap: 2px !important;
    box-shadow:
      0 12px 40px -12px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(139, 92, 246, 0.05) !important;
    /* Hidden by default */
    display: none !important;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
  }
  .nav-links.open {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links .nav-link {
    width: 100% !important;
    text-align: center !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    display: block !important;
  }
  .nav-links .nav-link.active {
    background: color-mix(in srgb, var(--accent) 18%, transparent) !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
  }
  .nav-links .nav-link:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent) !important;
  }
}

@media (max-width: 540px) {
  .nav {
    padding: 6px 12px !important;
  }
  .brand-scam {
    font-size: 18px !important;
  }
  .nav-actions {
    gap: 4px !important;
  }
  .icon-btn {
    width: 32px !important;
    height: 32px !important;
  }
}


/* ============================================================
   MOBILE NAVBAR: equal sizes for SCAM · FR · ☀ · ✕
   ============================================================ */
@media (max-width: 920px) {
  /* All four elements share the same visual height */
  .nav .brand,
  .nav .icon-btn {
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  .nav .icon-btn {
    width: 36px !important;
  }
  /* SCAM text sized to match button height visually */
  .brand-scam {
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
  }
  /* Consistent button radius — all perfect circles or pills */
  .nav .icon-btn,
  .nav .icon-btn.burger {
    border-radius: 50% !important;
  }
  /* Tight spacing between all action items */
  .nav-actions {
    gap: 8px !important;
    align-items: center !important;
  }
  /* Ensure the SCAM logo and the actions group are vertically centered together */
  .nav {
    align-items: center !important;
    padding: 8px 14px !important;
  }
}

@media (max-width: 540px) {
  .nav .brand,
  .nav .icon-btn {
    height: 34px !important;
  }
  .nav .icon-btn {
    width: 34px !important;
  }
  .brand-scam {
    font-size: 17px !important;
  }
}

/* ============================================================
   FIX: perfectly center content inside .icon-btn circles
   ============================================================ */

/* Reset and use grid place-items for bulletproof centering */
.nav .icon-btn {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
  /* Override any inline-flex from earlier rules */
  align-items: center !important;
  justify-content: center !important;
}

/* The FR/EN label span centered with no offset */
.nav .icon-btn #lang-label,
.nav .icon-btn span#lang-label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* SVG icons (sun / moon) — strip any margins, center horizontally */
.nav .icon-btn svg {
  margin: 0 !important;
  padding: 0 !important;
}
/* Don't override the inline display:none that toggles between sun/moon */
.nav #icon-moon[style*="display: none"],
.nav #icon-sun[style*="display: none"] {
  display: none !important;
}

/* Burger bars: ensure the wrapper has no extra padding shifting them */
.nav .icon-btn.burger {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 0 !important;
}

/* ============================================================
   FIX: ensure burger is hidden on desktop (override grid display)
   ============================================================ */
@media (min-width: 921px) {
  .icon-btn.burger,
  .nav .icon-btn.burger {
    display: none !important;
  }
}

/* ============================================================
   MY JOURNEY — 3D Globe section
   ============================================================ */
.section-journey {
  padding: 100px 56px;
}

.journey-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

/* Globe canvas wrapper */
.journey-globe-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
#journey-globe {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(139,92,246,0.08), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(59,130,246,0.06), transparent 60%);
  overflow: hidden;
}
#journey-globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}
#journey-globe canvas:active { cursor: grabbing; }

.journey-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

/* Right side text */
.journey-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.journey-text h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.journey-text p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
}
.journey-text p strong {
  color: var(--text);
  font-weight: 700;
}
.journey-cta {
  align-self: flex-start;
  margin-top: 8px;
}

/* Sub-sections (Languages & Projects reach) */
.journey-sub {
  max-width: 1200px;
  margin: 0 auto 60px;
}
.journey-sub:last-child { margin-bottom: 0; }

.journey-sub-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Languages grid */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lang-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 25%, transparent);
}
.lang-flag {
  font-size: 36px;
  line-height: 1;
}
.lang-info { display: flex; flex-direction: column; gap: 2px; }
.lang-name { font-size: 17px; font-weight: 700; color: var(--text); }
.lang-level { font-size: 12.5px; color: var(--text-mute); font-weight: 500; }
.lang-bar {
  grid-column: 1 / -1;
  width: 100%;
  height: 4px;
  background: var(--bg-soft);
  border-radius: 100px;
  overflow: hidden;
}
.lang-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  border-radius: 100px;
  box-shadow: 0 0 8px var(--accent);
}

/* Projects reach */
.reach-stat {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.reach-stat::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
  pointer-events: none;
}
.reach-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
}
.reach-number #reach-count {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reach-label {
  font-size: clamp(15px, 2vw, 20px);
  color: var(--text-soft);
  font-weight: 500;
}
.reach-countries {
  font-size: clamp(28px, 4.5vw, 48px);
  background: linear-gradient(135deg, var(--accent-2), #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reach-countries .counter { display: inline; }
.reach-countries span:last-child {
  font-size: clamp(15px, 2vw, 20px);
  color: var(--text-soft);
  font-weight: 500;
  background: none;
  -webkit-text-fill-color: var(--text-soft);
}
.reach-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.6;
  position: relative;
}

/* Mobile responsive */
@media (max-width: 920px) {
  .section-journey { padding: 70px 20px; }
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
  #journey-globe { max-width: 320px; }
  .journey-text { text-align: center; align-items: center; }
  .journey-text h3 { background: linear-gradient(135deg, var(--accent-3), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .journey-cta { align-self: center; }
  .lang-grid { grid-template-columns: 1fr; gap: 12px; }
  .lang-card { padding: 18px; }
  .reach-stat { padding: 30px 20px; }
}

/* ============================================================
   GLOBAL PRESENCE — Toggle + Stats per continent
   ============================================================ */

/* Bigger globe */
#journey-globe {
  max-width: 560px !important;
  aspect-ratio: 1;
}
@media (max-width: 920px) {
  #journey-globe { max-width: 360px !important; }
}

/* Toggle buttons above globe */
.globe-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 8px;
}
.globe-tab {
  padding: 8px 18px;
  background: transparent;
  border: none;
  border-radius: 100px;
  color: var(--text-mute);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.globe-tab:hover {
  color: var(--text);
}
.globe-tab.active {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: white;
  box-shadow: 0 4px 12px -4px var(--accent);
}

/* Stats container below globe */
.globe-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: opacity 0.3s ease;
}
.gs-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.gs-total-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.gs-total-label {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gs-continents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.gs-cont {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  font-size: 12.5px;
}
.gs-cont-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.gs-cont-name {
  color: var(--text-soft);
  font-weight: 500;
}
.gs-cont-count {
  color: var(--text);
  font-weight: 700;
}


/* ============================================================
   Simpler language cards (no flag)
   ============================================================ */
.lang-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
  text-align: center;
}
.lang-card .lang-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center !important;
}
.lang-card .lang-name {
  font-size: 18px !important;
}
.lang-card .lang-level {
  font-size: 13px !important;
}

/* ============================================================
   FIX: journey-sub-title must show gradient text properly
   ============================================================ */
.journey-sub-title {
  background: linear-gradient(135deg, var(--accent-3), var(--accent)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  display: inline-block !important;
  font-weight: 800 !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  margin-bottom: 28px !important;
}

/* Add nice spacing between Globe block and Languages sub-section */
.section-journey .journey-sub {
  margin-top: 40px !important;
  padding-top: 40px !important;
  border-top: 1px solid var(--border-soft);
}

/* ============================================================
   Languages — compact pills under CTA in journey-text column
   ============================================================ */
.journey-langs {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.journey-langs-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}
.journey-langs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-pill:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 50%, transparent);
}
.lang-pill-name {
  font-weight: 700;
  color: var(--text);
}
.lang-pill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.lang-pill-level {
  color: var(--text-mute);
  font-weight: 500;
  font-size: 12px;
}

@media (max-width: 920px) {
  .journey-langs { align-items: center; text-align: center; }
  .journey-langs-list { justify-content: center; }
}

/* ============================================================
   Journey bottom row: Stats + Languages side by side
   ============================================================ */
.journey-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Make stats card fill its column (it was previously narrow) */
.journey-bottom .globe-stats {
  margin-top: 0 !important;
  width: 100% !important;
  height: 100%;
  justify-content: center;
}

/* Languages card matches stats visual treatment */
.journey-langs-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.journey-langs-card .journey-langs-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}
.journey-langs-card .journey-langs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Mobile: stack stats and languages vertically */
@media (max-width: 920px) {
  .journey-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
}

/* Remove the old journey-langs separator that was inside journey-text */
.journey-langs {
  display: none !important;
}

/* ============================================================
   Grow the Languages I speak card
   ============================================================ */
.journey-langs-card {
  padding: 32px 28px !important;
  gap: 22px !important;
}
.journey-langs-card .journey-langs-label {
  font-size: 15px !important;
  letter-spacing: 1.5px !important;
}
.journey-langs-card .journey-langs-list {
  gap: 14px !important;
}
.journey-langs-card .lang-pill {
  padding: 12px 20px !important;
  font-size: 15px !important;
  gap: 12px !important;
}
.journey-langs-card .lang-pill-name {
  font-size: 16px !important;
}
.journey-langs-card .lang-pill-level {
  font-size: 14px !important;
}
.journey-langs-card .lang-pill-dot {
  width: 5px !important;
  height: 5px !important;
}

/* Match the stats card to keep the bottom row balanced */
.journey-bottom .globe-stats {
  padding: 32px 28px !important;
  gap: 22px !important;
}
.journey-bottom .gs-total-num {
  font-size: 44px !important;
}
.journey-bottom .gs-total-label {
  font-size: 16px !important;
}
.journey-bottom .gs-cont {
  padding: 8px 16px !important;
  font-size: 14px !important;
}

/* ============================================================
   Medium-size cards (between compact and big)
   ============================================================ */
.journey-langs-card {
  padding: 24px 22px !important;
  gap: 18px !important;
}
.journey-langs-card .journey-langs-label {
  font-size: 13px !important;
  letter-spacing: 1.2px !important;
}
.journey-langs-card .journey-langs-list {
  gap: 12px !important;
}
.journey-langs-card .lang-pill {
  padding: 10px 16px !important;
  font-size: 13.5px !important;
  gap: 10px !important;
}
.journey-langs-card .lang-pill-name {
  font-size: 14px !important;
}
.journey-langs-card .lang-pill-level {
  font-size: 12.5px !important;
}
.journey-langs-card .lang-pill-dot {
  width: 4px !important;
  height: 4px !important;
}

/* Match the stats card */
.journey-bottom .globe-stats {
  padding: 24px 22px !important;
  gap: 18px !important;
}
.journey-bottom .gs-total-num {
  font-size: 38px !important;
}
.journey-bottom .gs-total-label {
  font-size: 14px !important;
}
.journey-bottom .gs-cont {
  padding: 7px 13px !important;
  font-size: 13px !important;
}

/* ============================================================
   MOBILE REORDER: stats & languages BEFORE journey-text
   On desktop: globe | text  on top, then stats | languages below.
   On mobile: globe → stats → languages → text + CTA
   ============================================================ */
@media (max-width: 920px) {
  .section-journey {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Let journey-grid children bubble up to section level */
  .section-journey > .journey-grid {
    display: contents !important;
  }
  .section-journey .sec-header { order: 1; }
  .section-journey .journey-globe-wrap { order: 2; }
  .section-journey .journey-bottom {
    order: 3 !important;
    margin-top: 28px !important;
  }
  .section-journey .journey-text {
    order: 4 !important;
    margin-top: 32px !important;
  }
}

/* ============================================================
   Floating country info card (shown when clicking a marker)
   Floats above the journey-bottom row
   ============================================================ */
.journey-bottom {
  position: relative;  /* anchor for the floating card */
}
.country-card {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translate(-50%, -100%) scale(0.92);
  background: rgba(13, 16, 24, 0.96);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
  box-shadow:
    0 24px 50px -16px rgba(0, 0, 0, 0.7),
    0 0 30px -8px color-mix(in srgb, var(--accent) 50%, transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="light"] .country-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.country-card.visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
  pointer-events: auto;
}
.country-card .cc-flag {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.country-card .cc-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.country-card .cc-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.country-card .cc-count {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.country-card .cc-label,
.country-card .cc-year {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.country-card .cc-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
}
.country-card .cc-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 20px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  line-height: 1;
  padding: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.country-card .cc-close:hover {
  color: var(--text);
  background: var(--bg-soft);
}

/* Small arrow pointer at bottom */
.country-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: rgba(13, 16, 24, 0.96);
  border-right: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
}
[data-theme="light"] .country-card::after {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 920px) {
  .country-card {
    top: -16px;
    min-width: 200px;
    padding: 14px 18px;
  }
  .country-card .cc-flag { font-size: 28px; }
  .country-card .cc-name { font-size: 16px; }
}

/* Improve cursor feedback on globe canvas */
#journey-globe canvas {
  cursor: grab;
}
#journey-globe canvas:active {
  cursor: grabbing;
}

/* ============================================================

/* ============================================================
   AVATAR — ORIGINAL VERSION
   3 orbits rotating + 3 dots orbiting around + gentle avatar float
   ============================================================ */

/* Avatar wrap: gentle float, NO box-shadow */
.avatar-wrap {
  position: relative;
  z-index: 3;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  box-shadow: none;
  animation: avatarFloat 4s ease-in-out infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Visual card layout */
.visual-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

/* Three orbital rings — rotate continuously around the avatar center */
.visual-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.visual-orbit-1 {
  width: 320px;
  height: 320px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  animation: spin 20s linear infinite;
  transform-origin: 0 0;
}
.visual-orbit-2 {
  width: 380px;
  height: 380px;
  border: 1px solid color-mix(in srgb, var(--accent-3) 18%, transparent);
  animation: spin 30s linear infinite reverse;
  transform-origin: 0 0;
}
.visual-orbit-3 {
  width: 440px;
  height: 440px;
  border: 1px solid color-mix(in srgb, var(--success) 15%, transparent);
  animation: spin 40s linear infinite;
  transform-origin: 0 0;
}
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Three dots that ORBIT around the avatar — the iconic effect */
.visual-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-origin: 0 0;
}
.visual-dot-1 {
  width: 12px;
  height: 12px;
  background: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px currentColor;
  animation: orbit1 20s linear infinite;
}
.visual-dot-2 {
  width: 10px;
  height: 10px;
  background: var(--accent-3);
  color: var(--accent-3);
  box-shadow: 0 0 16px currentColor;
  animation: orbit2 30s linear infinite;
}
.visual-dot-3 {
  width: 10px;
  height: 10px;
  background: var(--success);
  color: var(--success);
  box-shadow: 0 0 16px currentColor;
  animation: orbit3 40s linear infinite;
}

/* Orbit keyframes — each dot circles around the avatar at a different radius */
@keyframes orbit1 {
  from { transform: translate(-50%, -50%) rotate(0deg)   translateX(160px) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateX(160px) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: translate(-50%, -50%) rotate(0deg)   translateX(190px) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateX(190px) rotate(-360deg); }
}
@keyframes orbit3 {
  from { transform: translate(-50%, -50%) rotate(0deg)   translateX(220px) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateX(220px) rotate(-360deg); }
}

/* Mobile: smaller orbits */
@media (max-width: 920px) {
  .visual-card { min-height: 320px; }
  .avatar-wrap { width: 220px; height: 220px; }
  .visual-orbit-1 { width: 250px; height: 250px; }
  .visual-orbit-2 { width: 300px; height: 300px; }
  .visual-orbit-3 { width: 350px; height: 350px; }
  @keyframes orbit1 {
    from { transform: translate(-50%, -50%) rotate(0deg)   translateX(125px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translateX(125px) rotate(-360deg); }
  }
  @keyframes orbit2 {
    from { transform: translate(-50%, -50%) rotate(0deg)   translateX(150px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translateX(150px) rotate(-360deg); }
  }
  @keyframes orbit3 {
    from { transform: translate(-50%, -50%) rotate(0deg)   translateX(175px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translateX(175px) rotate(-360deg); }
  }
}

/* ============================================================
   MOBILE CERTIFICATIONS: show ONLY the certification name
   Hide issuer, platform, year, arrow on mobile for a cleaner list
   ============================================================ */
@media (max-width: 920px) {
  #certifications .cert-row .cert-issuer,
  #certifications .cert-row .cert-plat,
  #certifications .cert-row .cert-year,
  #certifications .cert-row .cert-arrow {
    display: none !important;
  }
  #certifications .cert-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 8px !important;
  }
  #certifications .cert-row .cert-bar {
    width: 4px !important;
    height: 22px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }
  #certifications .cert-row .cert-name {
    font-size: 14px !important;
    line-height: 1.35 !important;
    flex: 1;
  }
  /* Planned certs: keep name + code on one line */
  #certifications .cert-planned {
    display: flex !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
  }
}

/* ============================================================
   REMOVE the 3 orbital rings (keep only the 3 orbiting dots)
   ============================================================ */
.visual-orbit-1,
.visual-orbit-2,
.visual-orbit-3,
.visual-orbit {
  display: none !important;
}

/* ============================================================
   Learning Analytics "Last update" — violet color theme
   ============================================================ */
.edu-update {
  color: var(--accent) !important;
}
.edu-update strong {
  color: var(--accent) !important;
}
.edu-update-icon {
  color: var(--accent) !important;
}

/* ============================================================
   MOBILE ABOUT: fix wasted vertical space
   ============================================================ */
@media (max-width: 920px) {
  /* Remove the 320px min-height of visual-card (was reserved for big orbits) */
  .visual-card {
    min-height: 240px !important;
    padding: 20px 0 !important;
  }
  /* Tighter avatar size on mobile */
  .avatar-wrap {
    width: 180px !important;
    height: 180px !important;
  }
  /* Smaller dot orbits to match the smaller avatar */
  @keyframes orbit1 {
    from { transform: translate(-50%, -50%) rotate(0deg)   translateX(105px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translateX(105px) rotate(-360deg); }
  }
  @keyframes orbit2 {
    from { transform: translate(-50%, -50%) rotate(0deg)   translateX(125px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translateX(125px) rotate(-360deg); }
  }
  @keyframes orbit3 {
    from { transform: translate(-50%, -50%) rotate(0deg)   translateX(145px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translateX(145px) rotate(-360deg); }
  }

  /* Tighten the hero section spacing */
  #about,
  .home-hero,
  .hero-grid,
  .about-section {
    padding-top: 24px !important;
  }
  /* If there's a gap between visual and content */
  .hero-grid,
  .home-hero-grid {
    gap: 20px !important;
  }
  /* Reduce About section padding overall on mobile */
  #about {
    padding-bottom: 32px !important;
  }
}

/* ============================================================
   MOBILE ABOUT: tighten the top spacing further
   ============================================================ */
@media (max-width: 920px) {
  /* Reduce the hero-about padding on mobile (was 40px top / 60px bottom) */
  .hero-about {
    padding: 12px 0 24px !important;
  }
  /* Tighten section padding too */
  .section-hero-about {
    padding-top: 8px !important;
    padding-bottom: 16px !important;
  }
  /* Reduce gap between avatar visual and the content below */
  .ha-right + .ha-left,
  .ha-right {
    margin-bottom: 8px !important;
  }
}

/* ============================================================
   FIX: hidden-cert must override mobile display: flex
   ============================================================ */
#certifications .cert-row.hidden-cert,
.cert-row.hidden-cert {
  display: none !important;
}

/* ============================================================
   FIX: Last update — only "04/06/2026" is bold, label is grey
   ============================================================ */
.edu-update {
  color: var(--text-mute) !important;   /* "Last update:" grey */
}
.edu-update strong {
  color: var(--accent) !important;       /* "04/06/2026" violet */
  font-weight: 700 !important;           /* and bold */
}
.edu-update-icon {
  color: var(--accent) !important;       /* keep icon violet */
}

/* ============================================================
   TIMELINE — Scroll-driven animations
   - line draws progressively as user scrolls
   - nodes light up + pulse when their card enters viewport
   - cards slide in from their respective side
   ============================================================ */

/* The line container */
.timeline {
  position: relative;
}

/* The base (faded) line — always visible behind */
.tl-line {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2px !important;
  transform: translateX(-50%) !important;
  background: color-mix(in srgb, var(--accent) 12%, transparent) !important;
  box-shadow: none !important;
  overflow: visible;
}

/* The progress line — draws on top, height controlled by JS via --tl-progress (0 to 1) */
.tl-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-3) 35%,
    var(--accent-2) 65%,
    var(--accent) 100%
  );
  transform-origin: top center;
  transform: scaleY(var(--tl-progress, 0));
  transition: transform 0.15s linear;
  box-shadow:
    0 0 12px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 20px color-mix(in srgb, var(--accent-3) 40%, transparent);
}

/* Glowing dot at the tip of the progress line */
.tl-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--tl-progress, 0) * 100%);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow:
    0 0 8px var(--accent-3),
    0 0 20px color-mix(in srgb, var(--accent-3) 60%, transparent),
    0 0 36px color-mix(in srgb, var(--accent) 40%, transparent);
  opacity: var(--tl-progress, 0);
  transition: opacity 0.2s linear, top 0.15s linear;
  pointer-events: none;
  z-index: 5;
}
.tl-line[data-progress="1"]::after { opacity: 0; }  /* hide when fully drawn */

/* Timeline item — base state hidden, will animate when .revealed is added */
.tl-item {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.tl-item.tl-left {
  transform: translateX(-40px) translateY(15px);
}
.tl-item.tl-right {
  transform: translateX(40px) translateY(15px);
}
.tl-item.revealed,
.tl-item.reveal {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) !important;
}

/* Cards — additional polish on reveal */
.tl-card {
  transform-origin: var(--card-origin, center left);
}
.tl-left .tl-card { --card-origin: right center; }
.tl-right .tl-card { --card-origin: left center; }

/* Nodes (points) — perfectly centered on the timeline */
.tl-node {
  position: absolute !important;
  top: 36px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: var(--bg) !important;
  border: 2.5px solid var(--accent) !important;
  box-shadow: 0 0 0 4px var(--bg) !important;
  z-index: 4;
  transition:
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Perfect symmetric positioning on the line (node center exactly on the line) */
.tl-left .tl-node {
  right: -9px !important;     /* half of width (18/2) = perfectly centered on the line */
  left: auto !important;
}
.tl-right .tl-node {
  left: -9px !important;
  right: auto !important;
}

/* Ping animation when card enters viewport */
.tl-item.revealed .tl-node,
.tl-item.reveal .tl-node {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 24px color-mix(in srgb, var(--accent) 70%, transparent) !important;
  animation: nodePing 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nodePing {
  0%   { transform: scale(0.4); box-shadow: 0 0 0 4px var(--bg), 0 0 0 4px transparent; }
  40%  { transform: scale(1.5); box-shadow: 0 0 0 4px var(--bg), 0 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent), 0 0 36px color-mix(in srgb, var(--accent) 80%, transparent); }
  100% { transform: scale(1);   box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 70%, transparent); }
}

/* MOBILE: timeline goes single-column, line on the left */
@media (max-width: 820px) {
  .tl-line { left: 24px !important; }
  .tl-line::after { left: 0; margin-left: -6px; }
  .tl-item {
    width: 100% !important;
    left: 0 !important;
    padding: 16px 12px 16px 56px !important;
  }
  .tl-item.tl-left,
  .tl-item.tl-right {
    transform: translateX(-30px) translateY(15px);
  }
  .tl-item.tl-left.revealed,
  .tl-item.tl-right.revealed {
    transform: translateX(0) translateY(0) !important;
  }
  .tl-left .tl-node,
  .tl-right .tl-node {
    left: 15px !important;
    right: auto !important;
  }
}

/* ============================================================
   FIX: Mobile timeline node centered EXACTLY on the line
   + Smoother card slide (more progressive) — NO node ping animation
   ============================================================ */

/* Disable the "ping" animation on nodes — keep them static */
.tl-item.revealed .tl-node,
.tl-item.reveal .tl-node {
  animation: none !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 14px color-mix(in srgb, var(--accent) 50%, transparent) !important;
  transform: none !important;
}

/* Smoother, more progressive card slide */
.tl-item {
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}
.tl-item.tl-left {
  transform: translateX(-60px) translateY(20px);
}
.tl-item.tl-right {
  transform: translateX(60px) translateY(20px);
}

/* MOBILE: node perfectly centered on the line (line is at left: 24px) */
@media (max-width: 820px) {
  /* The line is at left: 24px, width 2px → center at 25px */
  /* We position the node using LEFT + transform translateX(-50%) for perfect centering */
  .tl-left .tl-node,
  .tl-right .tl-node {
    left: 25px !important;
    right: auto !important;
    margin-left: -9px !important;  /* half of node width (18px) → center exactly on the line */
  }

  /* Mobile cards slide from the right (more obvious effect) */
  .tl-item.tl-left,
  .tl-item.tl-right {
    transform: translateX(-50px) translateY(15px);
  }
}

/* ============================================================
   FORCE node centering on mobile via direct left positioning
   Line is at left: 24px (width 2px) → line center at 25px
   Node width 18px → to center on 25px, node left edge = 16px
   ============================================================ */
@media (max-width: 820px) {
  .tl-left .tl-node,
  .tl-right .tl-node,
  .tl-item .tl-node {
    left: 16px !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }
}

/* ============================================================
   FINAL FIX: align node EXACTLY on the line on mobile
   item starts 9px right of timeline → adjust node accordingly
   ============================================================ */
@media (max-width: 820px) {
  .tl-left .tl-node,
  .tl-right .tl-node,
  .tl-item .tl-node {
    left: 7px !important;   /* compensates the 9px item offset */
    right: auto !important;
  }
}

/* ============================================================
   FIX: Move slide animation from .tl-item to .tl-card
   This way, nodes stay FIXED on the line while cards slide
   ============================================================ */
.tl-item {
  opacity: 1 !important;          /* item always visible (so node stays put) */
  transform: none !important;     /* no transform on item */
  transition: none !important;
}
.tl-item .tl-card {
  opacity: 0;
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tl-left .tl-card {
  transform: translateX(-60px) translateY(20px);
}
.tl-right .tl-card {
  transform: translateX(60px) translateY(20px);
}
@media (max-width: 820px) {
  .tl-left .tl-card,
  .tl-right .tl-card {
    transform: translateX(-50px) translateY(15px);
  }
}
.tl-item.revealed .tl-card,
.tl-item.reveal .tl-card {
  opacity: 1;
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) !important;
}

/* ============================================================
   PARALLAX SCROLL EFFECT — applied across all sections
   Each parallax element has --parallax-y updated in real-time at scroll
   ============================================================ */

/* Default: apply parallax translateY via CSS variable */
.proj-card,
.cert-row,
.edu-bar,
.contact-card,
.journey-langs-card,
.globe-stats,
.stat-card,
.cert-planned,
.skill-card,
.about-card,
.tl-item.revealed .tl-card,
.tl-item.reveal .tl-card {
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* For project cards (have hover lift), compose parallax + hover */
.proj-card:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 6px)) !important;
}

/* For timeline cards: combine slide + parallax */
.tl-left .tl-card,
.tl-right .tl-card {
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tl-card:hover {
  transform: translate(var(--parallax-x, 0), calc(var(--parallax-y, 0px) - 4px)) !important;
}

/* For cert-row (have hover state in original code) — adapt */
.cert-row:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 2px));
}

/* For contact cards */
.contact-card:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 4px));
}

/* Disable parallax on mobile (too distracting on small screens) */
@media (max-width: 820px) {
  .proj-card,
  .cert-row,
  .edu-bar,
  .contact-card,
  .journey-langs-card,
  .globe-stats,
  .stat-card,
  .cert-planned,
  .tl-card {
    transform: none !important;
  }
  .tl-item.revealed .tl-card,
  .tl-item.reveal .tl-card {
    transform: translate(0, 0) !important;
  }
}

/* Reduce motion preference: disable parallax */
@media (prefers-reduced-motion: reduce) {
  .proj-card,
  .cert-row,
  .edu-bar,
  .contact-card,
  .journey-langs-card,
  .globe-stats,
  .stat-card,
  .tl-card {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   QUICK STATS — header above the 8 cards
   ============================================================ */
.qs-header {
  margin-top: 48px;
  margin-bottom: 24px;
}

/* ============================================================
   AI ENGINEERING FOCUS AREAS — 4-card grid
   ============================================================ */
.ai-focus-section {
  margin-top: 64px;
}
.ai-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 32px auto 0;
}
.ai-focus-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.ai-focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--icon-bg, linear-gradient(135deg, var(--accent), var(--accent-3)));
  opacity: 0.7;
  transition: opacity 0.4s, height 0.4s;
}
.ai-focus-card:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 6px));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-border));
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.ai-focus-card:hover::before {
  opacity: 1;
  height: 5px;
}
.afc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--icon-bg);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 50%, transparent);
}
.afc-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.afc-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}

/* Mobile: stack to 1 column */
@media (max-width: 920px) {
  .ai-focus-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }
  .ai-focus-card {
    padding: 22px 20px;
  }
  .afc-icon {
    width: 46px;
    height: 46px;
  }
  .afc-title { font-size: 16.5px; }
  .afc-desc { font-size: 13px; }
}

/* ============================================================
   TECH STACK — group head with title + description
   ============================================================ */
.tech-group-head {
  margin-bottom: 14px;
}
.tech-group-head .tech-cat {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tech-group-head .tech-cat::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: currentColor;
  border-radius: 2px;
}
.tech-group-desc {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.5;
  margin: 0 0 4px 0;
  max-width: 720px;
}

@media (max-width: 920px) {
  .tech-group-head .tech-cat { font-size: 12px; }
  .tech-group-desc { font-size: 12.5px; }
}

/* ============================================================
   PROJECT FILTERS — tabs + colored pills hybrid
   ============================================================ */
.proj-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px auto 36px;
  max-width: 1000px;
  padding: 0 16px;
}

.proj-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  white-space: nowrap;
}

.proj-filter:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--glass-border));
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 8%, var(--glass-bg));
}

/* Dot indicator before label — keeps the category color always visible */
.pf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-filter:hover .pf-dot {
  transform: scale(1.3);
}

/* Count badge */
.pf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
  font-family: var(--font-mono);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ACTIVE STATE — each filter has its own color theme */
.proj-filter.active {
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow:
    0 4px 14px -4px currentColor,
    0 0 0 1px color-mix(in srgb, currentColor 40%, transparent);
}
.proj-filter.active .pf-dot {
  background: #fff !important;
  box-shadow: 0 0 12px #fff;
}
.proj-filter.active .pf-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
}

/* Active color themes — based on data-filter attribute */
.proj-filter[data-filter="all"].active {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #fff;
}
.proj-filter[data-filter="ai-agents"].active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
}
.proj-filter[data-filter="ml-dl"].active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
}
.proj-filter[data-filter="data"].active {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
}
.proj-filter[data-filter="web-apps"].active {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #fff;
}

/* Project card hide/show with smooth fade */
.proj-card {
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.proj-card.filter-hidden {
  display: none !important;
}
.proj-card.filter-fading {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  pointer-events: none;
}

/* Mobile: horizontal scroll for filters if they don't fit */
@media (max-width: 720px) {
  .proj-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px 8px;
    margin: 20px -16px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .proj-filters::-webkit-scrollbar { display: none; }
  .proj-filter {
    padding: 8px 14px;
    font-size: 12.5px;
    flex-shrink: 0;
  }
  .pf-count {
    min-width: 20px;
    height: 18px;
    font-size: 10.5px;
  }
}

/* ============================================================
   PROJECT CARDS — solid opaque background (no transparency)
   ============================================================ */
.proj-card {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
}
[data-theme="light"] .proj-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}

/* The inner body block also opaque */
.proj-card .proj-body,
.proj-card .proj-content {
  background: transparent;
}

/* Keep hover lift but with stronger contrast */
.proj-card:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
}
[data-theme="light"] .proj-card:hover {
  background: #fafbfc !important;
}

/* ============================================================
   AI FOCUS — bullet checklist style
   ============================================================ */
.afc-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.afc-bullets li {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-soft);
  padding-left: 24px;
  position: relative;
}
.afc-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--icon-bg, color-mix(in srgb, var(--accent) 25%, transparent));
  opacity: 0.25;
  transition: opacity 0.3s;
}
.afc-bullets li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  color: var(--text);
  opacity: 0.8;
}
.ai-focus-card:hover .afc-bullets li::before {
  opacity: 0.6;
}

@media (max-width: 920px) {
  .afc-bullets li { font-size: 12.5px; padding-left: 22px; }
  .afc-bullets li::before { width: 14px; height: 14px; }
  .afc-bullets li::after { left: 3px; top: 6px; width: 7px; height: 4px; }
}


/* ============================================================
   TIMELINE CARDS — solid opaque background (no transparency)
   Same treatment as Project cards
   ============================================================ */
.tl-card {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
}
[data-theme="light"] .tl-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
.tl-card:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
}
[data-theme="light"] .tl-card:hover {
  background: #fafbfc !important;
}

/* ============================================================
   UNIFIED OPAQUE CARDS — same look as Experience & Education
   Applied to: Stats, Tech (chips), Contact
   ============================================================ */

/* Stats Cards — opaque */
.stat-card,
.qs-card {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
}
[data-theme="light"] .stat-card,
[data-theme="light"] .qs-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
.stat-card:hover,
.qs-card:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 30%, transparent) !important;
}
[data-theme="light"] .stat-card:hover,
[data-theme="light"] .qs-card:hover {
  background: #fafbfc !important;
}

/* Tech Stack — chip cards opaque (same as Experience cards) */
.chip,
.tech-chip,
.tech-chips .chip {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
}
[data-theme="light"] .chip,
[data-theme="light"] .tech-chip {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
.chip:hover,
.tech-chip:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 30%, transparent) !important;
}
[data-theme="light"] .chip:hover,
[data-theme="light"] .tech-chip:hover {
  background: #fafbfc !important;
}

/* Contact Cards — opaque */
.contact-card {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
}
[data-theme="light"] .contact-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
.contact-card:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 30%, transparent) !important;
}
[data-theme="light"] .contact-card:hover {
  background: #fafbfc !important;
}

/* ============================================================
   TECH STACK TITLES — single color (violet/accent) for all
   ============================================================ */
.tech-cat,
.tech-group-left .tech-cat,
.tech-group .tech-cat,
.tech-group-head .tech-cat {
  color: var(--accent) !important;
  border-left: none !important;
  border: none !important;
  padding-left: 0 !important;
}
.tech-group-head .tech-cat::before,
.tech-cat::before {
  display: none !important;
  content: none !important;
  background: none !important;
}
/* override any inline color */
.tech-cat[style*="color"] {
  color: var(--accent) !important;
}

/* ============================================================
   FIX: target real card classes (qs-card, contact-card-v2)
   + AI Focus cards: opaque + more compact
   ============================================================ */

/* QS CARDS (Quick Stats) — real class is .qs-card */
.qs-card {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
}
[data-theme="light"] .qs-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
.qs-card:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 30%, transparent) !important;
}
[data-theme="light"] .qs-card:hover {
  background: #fafbfc !important;
}

/* CONTACT CARDS — real class is .contact-card-v2 */
.contact-card-v2 {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
}
[data-theme="light"] .contact-card-v2 {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
.contact-card-v2:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 30%, transparent) !important;
}
[data-theme="light"] .contact-card-v2:hover {
  background: #fafbfc !important;
}

/* ============================================================
   AI FOCUS CARDS — same opaque + more compact
   ============================================================ */
.ai-focus-card {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  padding: 20px 20px 18px !important;
  gap: 10px !important;
}
[data-theme="light"] .ai-focus-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
.ai-focus-card:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 30%, transparent) !important;
}
[data-theme="light"] .ai-focus-card:hover {
  background: #fafbfc !important;
}

/* Smaller AI focus internal elements */
.afc-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
}
.afc-icon svg {
  width: 20px !important;
  height: 20px !important;
}
.afc-title {
  font-size: 15.5px !important;
  margin: 2px 0 0 !important;
}
.afc-bullets {
  gap: 5px !important;
  margin-top: 4px !important;
}
.afc-bullets li {
  font-size: 12px !important;
  line-height: 1.35 !important;
  padding-left: 20px !important;
}
.afc-bullets li::before {
  width: 13px !important;
  height: 13px !important;
  top: 3px !important;
}
.afc-bullets li::after {
  left: 3px !important;
  top: 5.5px !important;
  width: 6px !important;
  height: 3.5px !important;
}
/* Tighten grid spacing */
.ai-focus-grid {
  gap: 14px !important;
}

@media (max-width: 920px) {
  .ai-focus-card { padding: 16px 16px 14px !important; }
  .afc-icon { width: 36px !important; height: 36px !important; }
  .afc-title { font-size: 14.5px !important; }
}

/* ============================================================
   STRONGER OVERRIDE: defeat .quick-stats .qs-card specificity
   ============================================================ */
.quick-stats .qs-card,
section .quick-stats .qs-card,
#about .quick-stats .qs-card {
  background: #14171f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-theme="light"] .quick-stats .qs-card,
[data-theme="light"] section .quick-stats .qs-card {
  background: #ffffff !important;
}
.quick-stats .qs-card:hover,
section .quick-stats .qs-card:hover {
  background: #181c25 !important;
}
[data-theme="light"] .quick-stats .qs-card:hover,
[data-theme="light"] section .quick-stats .qs-card:hover {
  background: #fafbfc !important;
}

/* ============================================================
   PROJECT FILTERS: single color (violet) for all
   ============================================================ */
.proj-filter .pf-dot {
  background: var(--accent) !important;
  color: var(--accent) !important;
  box-shadow: 0 0 6px var(--accent) !important;
}
.proj-filter[data-filter="all"].active,
.proj-filter[data-filter="ai-agents"].active,
.proj-filter[data-filter="ml-dl"].active,
.proj-filter[data-filter="data"].active,
.proj-filter[data-filter="web-apps"].active,
.proj-filter.active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.proj-filter.active .pf-dot {
  background: #fff !important;
  color: #fff !important;
  box-shadow: 0 0 10px #fff !important;
}
.proj-filter.active .pf-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

/* ============================================================
   GLOBE STATS — redesign same as "Languages I speak"
   Total badge + clean continent rows (no colored dots)
   ============================================================ */
.globe-stats {
  background: #14171f !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="light"] .globe-stats {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}

/* Total badge at top — distinctive */
.gs-total {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px !important;
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 18%, transparent),
    color-mix(in srgb, var(--accent) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  margin-bottom: 6px;
}
.gs-total-num {
  font-size: 32px !important;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
}
.gs-total-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-soft);
  font-weight: 700;
}

/* Continent rows — clean, no colored dots */
.gs-continents {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gs-cont {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
}
[data-theme="light"] .gs-cont {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: #e5e7eb !important;
}
.gs-cont:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  transform: translateX(2px);
}
.gs-cont-dot {
  display: none !important;  /* HIDE colored dot */
}
.gs-cont-name {
  font-weight: 700;
  color: var(--text);
}
.gs-cont-dot-sep {
  flex: 1;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(to right, transparent, var(--border-soft), transparent);
  opacity: 0.5;
}
.gs-cont-count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 3px 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 100px;
  min-width: 28px;
  text-align: center;
}

/* ============================================================
   AI FOCUS — better design, BIGGER text, more visible checks
   Make cards SHORTER (smaller width) by adding max-width or grid 3-col
   ============================================================ */
.ai-focus-grid {
  max-width: 1000px !important;
  gap: 16px !important;
  grid-template-columns: repeat(2, 1fr) !important;
  margin: 28px auto 0 !important;
}
.ai-focus-card {
  background: #14171f !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  padding: 24px 22px !important;
  gap: 14px !important;
  display: flex !important;
  flex-direction: column;
}
[data-theme="light"] .ai-focus-card {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}
.ai-focus-card:hover {
  background: #181c25 !important;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 35%, transparent) !important;
}

/* Header row: icon + title side-by-side */
.afc-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  flex-shrink: 0;
}
.afc-icon svg {
  width: 22px !important;
  height: 22px !important;
}
.afc-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 8px 0 0 !important;
  color: var(--text) !important;
  line-height: 1.25;
}

/* Bullets: BIGGER text + VISIBLE green checks */
.afc-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 9px !important;
}
.afc-bullets li {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: var(--text) !important;
  padding-left: 28px !important;
  position: relative;
}
/* Filled colored circle as check background */
.afc-bullets li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  opacity: 1 !important;
  box-shadow: 0 2px 6px -2px rgba(16, 185, 129, 0.5);
}
/* The check mark itself — white, clearly visible */
.afc-bullets li::after {
  content: '' !important;
  position: absolute !important;
  left: 5px !important;
  top: 6.5px !important;
  width: 8px !important;
  height: 4px !important;
  border-left: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  transform: rotate(-45deg) !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* Hide the 4th bullet to keep cards compact (3 bullets) */
.afc-bullets li:nth-child(4) {
  display: none !important;
}

@media (max-width: 920px) {
  .ai-focus-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .ai-focus-card {
    padding: 20px 18px !important;
  }
  .afc-title { font-size: 16px !important; }
  .afc-bullets li { font-size: 13px !important; }
}
