/* ════════════════════════════════════════
   TOKENS
════════════════════════════════════════ */
:root {
  --bg:        #0c0c0e;
  --surface:   #131317;
  --surface2:  #1a1a1f;
  --surface3:  #202026;
  --border:    #26262e;
  --border2:   #32323c;
  --text:      #c8c8d8;
  --muted:     #6e6e88;
  --dim:       #3e3e52;
  --heading:   #eeeef8;
  --accent:    #7c6ef5;
  --accent2:   #9d8ffa;
  --accent-d:  rgba(124,110,245,.12);
  --green:     #4ade80;
  --red:       #ef4444;
  --nav-bg:    rgba(12,12,14,.9);
  --sh:        0 1px 4px rgba(0,0,0,.5);
  --sh-md:     0 6px 24px rgba(0,0,0,.4);
  --sh-lg:     0 16px 48px rgba(0,0,0,.5);
  --r:         12px;
  --r-sm:      8px;
  --r-lg:      16px;
  --t:         .22s ease;
  --font:      'Inter', sans-serif;
}
[data-theme="light"] {
  --bg:        #f4f4f8;
  --surface:   #ffffff;
  --surface2:  #f0f0f6;
  --surface3:  #e8e8f0;
  --border:    #e2e2ec;
  --border2:   #d0d0de;
  --text:      #404055;
  --muted:     #6e6e8a;
  --dim:       #b0b0c8;
  --heading:   #0f0f1a;
  --accent:    #6558f0;
  --accent2:   #7c6ef5;
  --accent-d:  rgba(101,88,240,.1);
  --nav-bg:    rgba(244,244,248,.94);
  --sh:        0 1px 4px rgba(0,0,0,.07);
  --sh-md:     0 6px 24px rgba(0,0,0,.1);
  --sh-lg:     0 16px 48px rgba(0,0,0,.12);
}

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t), color var(--t);
}
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul   { list-style: none; }
svg  { display: block; }

/* ════════════════════════════════════════
   SCROLL PROGRESS
════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 1000;
  transition: width .08s linear;
}

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.navbar.scrolled { box-shadow: var(--sh-md); }
.nav-container {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 1.5rem; height: 64px; gap: 2rem;
}
.nav-logo {
  font-size: 1.05rem; font-weight: 700;
  color: var(--heading); letter-spacing: .03em; flex-shrink: 0;
  transition: color var(--t);
}
.nav-logo:hover { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 1.75rem; flex: 1;
}
.nav-link {
  font-size: .875rem; font-weight: 500; color: var(--muted);
  position: relative; transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
  transform: scaleX(0); transition: transform .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--heading); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-right {
  display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
}
.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid var(--border2); background: var(--surface);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), border-color var(--t), color .15s, transform .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--heading); transform: scale(1.07); }
.theme-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.icon-moon { display: block; }
.icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: block; }
.hire-btn {
  padding: .45rem 1.15rem;
  background: var(--accent); color: #fff;
  border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 600;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.hire-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,110,245,.4);
}
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: background .2s, transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════
   MOBILE NAV OVERLAY
   Lives outside .navbar to avoid stacking-context conflicts.
   Navbar = z-900, this = z-850 → sits above page (z-auto) but navbar stays on top.
════════════════════════════════════════ */
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 850;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility 0s .3s;
}
@media (min-width: 769px) { .mobile-nav { display: none !important; } }
.mobile-nav.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease, visibility 0s;
}
.mobile-nav ul {
  counter-reset: nav-item;
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 0; list-style: none;
}
.mobile-nav ul li {
  counter-increment: nav-item;
  display: flex; align-items: center; gap: 1.1rem;
  opacity: 0; transform: translateX(-18px);
  transition: opacity .35s ease, transform .35s ease;
}
.mobile-nav.open ul li { opacity: 1; transform: translateX(0); }
.mobile-nav.open ul li:nth-child(1) { transition-delay: .07s; }
.mobile-nav.open ul li:nth-child(2) { transition-delay: .13s; }
.mobile-nav.open ul li:nth-child(3) { transition-delay: .19s; }
.mobile-nav.open ul li:nth-child(4) { transition-delay: .25s; }
.mobile-nav.open ul li:nth-child(5) { transition-delay: .31s; }
.mobile-nav ul li::before {
  content: "0" counter(nav-item);
  font-size: .7rem; font-weight: 700; color: var(--accent);
  letter-spacing: .1em; min-width: 22px; text-align: right;
}
.mobile-nav ul a {
  font-size: 2.2rem; font-weight: 700; color: var(--heading);
  position: relative; padding-bottom: 2px;
  transition: color .2s ease;
}
.mobile-nav ul a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); border-radius: 1px;
  transition: width .25s ease;
}
.mobile-nav ul a:hover { color: var(--accent); }
.mobile-nav ul a:hover::after { width: 100%; }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.5rem; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t),
              transform var(--t), box-shadow var(--t);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.btn-primary {
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent2); border-color: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,110,245,.38);
}
.btn-outline {
  background: transparent; color: var(--heading);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm  { padding: .4rem .9rem; font-size: .8rem; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-full { width: 100%; }
.btn-disabled { opacity: .5; pointer-events: none; cursor: default; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% -5%, rgba(124,110,245,.18) 0%, transparent 60%),
              var(--bg);
}
[data-theme="light"] .hero {
  background: radial-gradient(ellipse at 50% -5%, rgba(101,88,240,.1) 0%, transparent 60%),
              var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(124,110,245,.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
[data-theme="light"] .hero::before {
  background-image: radial-gradient(circle, rgba(101,88,240,.05) 1px, transparent 1px);
}
.hero-inner {
  max-width: 740px; width: 100%;
  position: relative; z-index: 1;
  animation: fadeUp .75s ease both;
}


.hero-greeting {
  font-size: .9rem; font-weight: 600;
  color: var(--accent); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .85rem;
}
.hero-name {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700; color: var(--heading);
  line-height: 1.08; letter-spacing: -.03em; margin-bottom: .75rem;
}
.hero-role {
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  color: var(--muted); margin-bottom: 1.35rem;
  min-height: 1.7em;
}
.hero-role-text { color: var(--accent); font-weight: 600; }
.hero-cursor {
  display: inline-block;
  color: var(--accent); font-weight: 300; margin-left: 1px;
  animation: blink-caret 1s step-end infinite;
}
@keyframes blink-caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: clamp(.9rem, 2vw, 1rem);
  color: var(--muted); max-width: 520px; margin: 0 auto 2rem; line-height: 1.85;
}
.hero-ctas {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.hero-socials {
  display: flex; justify-content: center; gap: .85rem; margin-bottom: 2.75rem;
}
.social-icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border2); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(124,110,245,.25);
}
.scroll-indicator {
  display: flex; justify-content: center; color: var(--dim);
  animation: bounce 2.4s ease-in-out infinite;
}
.scroll-indicator svg { width: 24px; height: 24px; fill: currentColor; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ════════════════════════════════════════
   SECTIONS (shared)
════════════════════════════════════════ */
.section { padding: 6rem 1.5rem; transition: background var(--t); }
.section-alt { background: var(--surface2); }
[data-theme="light"] .section     { background: var(--surface); }
[data-theme="light"] .section-alt { background: var(--bg); }
.container { max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700; color: var(--heading);
  letter-spacing: -.025em; line-height: 1.15; margin-bottom: .75rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: .6rem auto 0;
}
.section-sub {
  font-size: .95rem; color: var(--muted);
  max-width: 520px; margin: 0 auto; line-height: 1.85;
}

/* ════════════════════════════════════════
   FADE-IN ON SCROLL
════════════════════════════════════════ */
.fade-in {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: start;
}
.about-text-col p {
  font-size: .95rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.15rem;
}
.about-text-col p strong { color: var(--text); font-weight: 600; }
.about-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.about-cards-col { display: flex; flex-direction: column; gap: 1rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem 1.4rem;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--sh);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.feature-card:hover { border-color: var(--accent); box-shadow: var(--sh-md); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px; background: var(--accent-d);
  border: 1px solid rgba(124,110,245,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.feature-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s ease;
}
.feature-card:hover .feature-icon svg { transform: rotate(8deg) scale(1.1); }
.feature-card h3 { font-size: .92rem; font-weight: 600; color: var(--heading); margin-bottom: .25rem; }
.feature-card p  { font-size: .82rem; color: var(--muted); line-height: 1.7; }

/* ════════════════════════════════════════
   SKILLS — MARQUEE TICKER
════════════════════════════════════════ */
.stack-marquee {
  overflow: hidden;
  /* Fade edges for a polished look */
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: .5rem 0 3rem;
}
.stack-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.stack-marquee:hover .stack-track,
.stack-marquee:focus-within .stack-track { animation-play-state: paused; }
.stack-item {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  cursor: default; flex-shrink: 0;
}
.stack-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.stack-icon svg,
.stack-icon img {
  width: 52px; height: 52px; display: block;
  transition: transform .25s ease;
}
.stack-item:hover .stack-icon svg,
.stack-item:hover .stack-icon img { transform: scale(1.15) translateY(-2px); }
.stack-item > span {
  font-size: .78rem; font-weight: 600; color: var(--muted);
  letter-spacing: .02em; white-space: nowrap;
}

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.stat-card {
  text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem 1rem; box-shadow: var(--sh);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.stat-card:hover { border-color: var(--accent); box-shadow: var(--sh-md); transform: translateY(-2px); }
.stat-num {
  display: block;
  font-size: 2.5rem; font-weight: 700; color: var(--accent);
  line-height: 1; margin-bottom: .4rem;
}
.stat-label { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }

/* ════════════════════════════════════════
   PROJECTS
════════════════════════════════════════ */
.project-filters {
  display: flex; justify-content: center; gap: .5rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.filter-btn {
  padding: .45rem 1.1rem;
  border: 1px solid var(--border2); border-radius: 20px;
  font-size: .82rem; font-weight: 500; color: var(--muted);
  background: var(--surface);
  transition: border-color var(--t), color var(--t), background var(--t);
  cursor: pointer;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh);
  display: flex; flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.project-card:hover {
  border-color: var(--accent); box-shadow: var(--sh-lg); transform: translateY(-4px);
}
.project-card.hidden { display: none; }

.project-img {
  width: 100%; height: 210px;
  background: var(--surface3); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.project-img-placeholder svg { width: 34px; height: 34px; fill: currentColor; opacity: .3; }

.project-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* Status badge pushed to right */
.project-tags {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .5rem; margin-bottom: .9rem;
}
.project-tech-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.proj-tag {
  padding: .2rem .65rem; border-radius: 5px;
  font-size: .72rem; font-weight: 500;
  background: var(--surface3); color: var(--muted); border: 1px solid var(--border);
}
.wip-tag   { background: rgba(245,158,11,.08); color: #f59e0b; border-color: rgba(245,158,11,.25); }
.ready-tag { background: rgba(74,222,128,.08);  color: #4ade80; border-color: rgba(74,222,128,.25); }

.project-title {
  font-size: 1.05rem; font-weight: 700; color: var(--heading);
  margin-bottom: .6rem; line-height: 1.35;
}
.project-desc {
  font-size: .875rem; color: var(--muted); line-height: 1.8;
  flex: 1; margin-bottom: 1.25rem;
}
.project-date {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.15rem 0 0.75rem;
}
.project-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: auto; }

/* ════════════════════════════════════════
   EXPERIENCE TABS
════════════════════════════════════════ */
.exp-tabs-wrap {
  display: flex;
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; background: var(--surface);
  max-width: 460px; margin: 0 auto 2.75rem;
  box-shadow: var(--sh);
}
.exp-tab-btn {
  flex: 1; padding: .65rem .5rem;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  background: none; border: none;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  cursor: pointer; transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.exp-tab-btn svg { width: 14px; height: 14px; fill: currentColor; }
.exp-tab-btn.active            { background: var(--accent); color: #fff; }
.exp-tab-btn:not(.active):hover { color: var(--heading); background: var(--surface2); }

.exp-panel { display: flex; flex-direction: column; }
.exp-panel.hidden { display: none; }

.timeline { max-width: 780px; margin: 0 auto; width: 100%; }
.timeline-item {
  display: flex; gap: 1.5rem;
  padding-bottom: 2rem; position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 9px; top: 22px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border2); background: var(--surface);
  flex-shrink: 0; margin-top: 3px; position: relative; z-index: 1;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.timeline-dot.active {
  background: var(--accent); border-color: var(--accent);
  animation: dot-pulse 2.6s ease-in-out infinite;
}
.timeline-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  flex: 1; box-shadow: var(--sh);
  transition: border-color var(--t), box-shadow var(--t);
}
.timeline-content:hover { border-color: var(--border2); box-shadow: var(--sh-md); }
.timeline-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: .2rem; flex-wrap: wrap;
}
.timeline-header h3 { font-size: 1rem; font-weight: 700; color: var(--heading); }
.timeline-period { font-size: .78rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.timeline-company { font-size: .85rem; color: var(--muted); margin-bottom: .65rem; }
.timeline-desc { font-size: .875rem; color: var(--muted); line-height: 1.78; margin-bottom: .9rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.timeline-tags span {
  padding: .18rem .6rem; border-radius: 5px; font-size: .72rem; font-weight: 500;
  background: var(--accent-d); color: var(--accent);
  border: 1px solid rgba(124,110,245,.2);
}

/* ════════════════════════════════════════
   CERTIFICATE CARDS GRID
════════════════════════════════════════ */
.cert-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; max-width: 780px; margin: 0 auto;
}
.cert-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  box-shadow: var(--sh); display: flex; flex-direction: column; gap: .75rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.cert-card:hover { border-color: var(--accent); box-shadow: var(--sh-md); transform: translateY(-2px); }
.cert-card-top {
  display: flex; justify-content: space-between; align-items: center;
}
.cert-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-d); border: 1px solid rgba(124,110,245,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.cert-icon svg { width: 20px; height: 20px; fill: currentColor; }
.cert-year {
  font-size: .75rem; font-weight: 700; color: var(--accent);
  background: var(--accent-d); border: 1px solid rgba(124,110,245,.2);
  border-radius: 20px; padding: .18rem .65rem;
}
.cert-name {
  font-size: .95rem; font-weight: 700; color: var(--heading); line-height: 1.4;
}
.cert-issuer { font-size: .82rem; color: var(--muted); }
.cert-description { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.cert-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--accent);
  margin-top: auto;
  transition: opacity .18s;
}
.cert-link:hover { opacity: .7; }
.cert-link svg { width: 13px; height: 13px; fill: currentColor; }
/* Lone last card in an odd-count grid → keep card-sized, centered */
.cert-card.cert-solo {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.625rem);
  justify-self: center;
  width: 100%;
}
/* Cards hidden by the show-more toggle */
.cert-card.cert-hidden { display: none !important; }
/* Show more / show less button */
.cert-show-more {
  display: block; margin: 1.25rem auto 0;
  padding: .48rem 1.25rem; border-radius: 20px;
  border: 1px solid var(--border2); background: var(--surface);
  font-size: .82rem; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: var(--font);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.cert-show-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-d); }
.cert-hint {
  text-align: center; margin-top: 1.5rem;
  font-size: .82rem; color: var(--dim); font-style: italic;
}

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 3rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.35rem; }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 10px; background: var(--accent-d);
  border: 1px solid rgba(124,110,245,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact-item-label {
  font-size: .7rem; font-weight: 600; color: var(--dim);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .12rem;
}
.contact-item a, .contact-item span { font-size: .9rem; color: var(--muted); transition: color .18s; }
.contact-item a:hover { color: var(--accent); }
.contact-connect {
  padding: 1.35rem 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh);
}
.contact-connect h4 { font-size: .95rem; font-weight: 700; color: var(--heading); margin-bottom: .4rem; }
.contact-connect p  { font-size: .85rem; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.connect-socials { display: flex; gap: .65rem; flex-wrap: wrap; }
.connect-social {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .9rem; border: 1px solid var(--border2); border-radius: var(--r-sm);
  font-size: .8rem; font-weight: 500; color: var(--muted); background: var(--surface2);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.connect-social svg { width: 14px; height: 14px; fill: currentColor; }
.connect-social:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-d); }

.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--sh-md);
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
}
.req { color: var(--accent); }
.form-group input,
.form-group textarea {
  padding: .7rem 1rem; border: 1px solid var(--border2);
  border-radius: var(--r-sm); background: var(--surface2);
  color: var(--heading); font-family: var(--font); font-size: .9rem;
  width: 100%; resize: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--dim); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-d);
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--red); }
.form-group.has-error input:focus,
.form-group.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.form-error {
  font-size: .75rem; color: var(--red); min-height: 1em;
  transition: opacity .2s;
}
.form-success, .form-fail {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .75rem 1rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500;
}
.form-success {
  background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.25); color: var(--green);
}
.form-fail {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); color: var(--red);
}
.form-fail a { color: inherit; text-decoration: underline; }
.form-success svg, .form-fail svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.hidden { display: none !important; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer { background: var(--surface2); border-top: 1px solid var(--border); }
.footer-cta {
  max-width: 640px; margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-eyebrow {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.footer-heading {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--heading);
  line-height: 1.15; letter-spacing: -.025em; margin: 0;
}
.footer-sub {
  font-size: .95rem; color: var(--muted);
  max-width: 380px; line-height: 1.75;
}
.footer-cta-btn { padding: .8rem 2rem; font-size: .95rem; margin-top: .35rem; }
.footer-socials { display: flex; gap: .65rem; margin-top: .25rem; }
.footer-socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--border2); border-radius: 8px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.footer-socials a svg { width: 16px; height: 16px; fill: currentColor; }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-d); }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center; padding: 1.25rem 1.5rem; font-size: .8rem; color: var(--dim);
}

/* ════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 1.75rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,110,245,.45);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background var(--t);
  z-index: 800;
}
.back-to-top svg { width: 18px; height: 18px; fill: currentColor; }
.back-to-top:hover { background: var(--accent2); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
/* ════════════════════════════════════════
   TIMELINE SHOW MORE
════════════════════════════════════════ */
.timeline-item.timeline-hidden { display: none; }
.timeline-show-more {
  display: block; margin: .5rem 0 0 2.5rem;
  padding: .48rem 1.25rem; border-radius: 20px;
  border: 1px solid var(--border2); background: var(--surface);
  font-size: .82rem; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: var(--font);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.timeline-show-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-d); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,110,245,.5); }
  60%       { box-shadow: 0 0 0 7px rgba(124,110,245,0); }
}
@media (prefers-reduced-motion: reduce) {
  .stack-track         { animation: none; }
  .timeline-dot.active { animation: none; box-shadow: 0 0 0 4px var(--accent-d); }
  .scroll-indicator    { animation: none; }
  .hero-inner          { animation: none; opacity: 1; }
  .hero-cursor         { animation: none; }
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stack-grid { gap: .85rem; }
  .stack-item { min-width: 90px; }
}

@media (max-width: 900px) {
  .about-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-grid    { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 768px) {
  /* hide desktop nav, show hamburger */
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  /* layout */
  .stats-row  { grid-template-columns: 1fr; gap: 1rem; }
  .form-row   { grid-template-columns: 1fr; }
  .section    { padding: 4.5rem 1.25rem; }
  .hero       { padding: 6rem 1.25rem 4rem; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-ctas       { flex-direction: column; align-items: center; }
  .timeline-header { flex-direction: column; gap: .2rem; }
  .exp-tabs-wrap   { max-width: 100%; }
  .contact-form-wrap { padding: 1.35rem; }
  .section         { padding: 3.5rem 1rem; }
  .section-title   { font-size: 1.75rem; }
  .stack-item      { min-width: 80px; padding: 1rem .75rem; }
  .stack-icon, .stack-icon svg { width: 36px; height: 36px; }
}

@media (max-width: 400px) {
  .hero-name { font-size: 2rem; }
  .hire-btn  { display: none; }
}
