/* ============================================================
   style.css — Kanchana Ariyasinghe Portfolio
   Fonts: Outfit (display) + Plus Jakarta Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --white:         #ffffff;
  --bg:            #f5f3ff;
  --bg-card:       #ffffff;
  --bg-light:      #ede9fe;

  --purple:        #6d28d9;
  --purple-mid:    #8b5cf6;
  --purple-light:  #a78bfa;
  --purple-dim:    rgba(109,40,217,0.08);
  --purple-border: rgba(109,40,217,0.18);

  --dark:          #130a2e;
  --text:          #1e1346;
  --text-mid:      #3d2e6b;
  --text-soft:     #6b5fa5;
  --text-muted:    #9d92c4;

  --border:        rgba(0,0,0,0.07);

  --font-display:  'Outfit', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;

  --ease:          0.22s cubic-bezier(0.4,0,0.2,1);
  --ease-spring:   0.4s cubic-bezier(0.34,1.56,0.64,1);

  --r-sm:   0.375rem;
  --r-md:   0.75rem;
  --r-lg:   1.25rem;
  --r-xl:   2rem;
  --r-full: 9999px;

  --shadow-sm: 0 2px 12px rgba(109,40,217,0.08);
  --shadow-md: 0 8px 32px rgba(109,40,217,0.13);
  --shadow-lg: 0 20px 60px rgba(109,40,217,0.16);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--purple-mid); }

/* ── SVG helpers ─────────────────────────────────────────── */
svg { width: 1em; height: 1em; vertical-align: middle; flex-shrink: 0; }
.inline-svg { width: 1em; height: 1em; vertical-align: -0.15em; flex-shrink: 0; }
.btn-icon { width: 1em; height: 1em; flex-shrink: 0; }
.btn-icon-sm { width: 0.85em; height: 0.85em; flex-shrink: 0; transition: transform var(--ease); }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.bg-light { background: var(--bg); }

/* ── Typography ──────────────────────────────────────────── */
.accent { color: var(--purple); }

.section-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--purple); background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  padding: 0.3rem 1rem; border-radius: var(--r-full);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800; color: var(--dark);
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 0.65rem;
}
.section-sub {
  font-family: var(--font-body);
  font-size: 1.05rem; color: var(--text-soft);
  max-width: 560px; line-height: 1.85;
  margin-bottom: 3rem;
}
.inline-link { color: var(--purple); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(109,40,217,0.35); }
.inline-link:hover { text-decoration-color: var(--purple); }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  transition: box-shadow var(--ease);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(109,40,217,0.09); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--dark); letter-spacing: -0.03em; flex-shrink: 0; }
.logo span { color: var(--purple); }
.nav-list { display: flex; gap: 0.1rem; }
.nav-list a { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--text-mid); padding: 0.45rem 0.95rem; border-radius: var(--r-sm); transition: all var(--ease); }
.nav-list a:hover { color: var(--purple); background: var(--purple-dim); }
.nav-list a.active { color: var(--purple); font-weight: 700; }
.btn-talk {
  flex-shrink: 0; display: inline-flex; align-items: center;
  background: var(--purple); color: #fff;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  padding: 0.55rem 1.4rem; border-radius: var(--r-full);
  transition: all var(--ease-spring); white-space: nowrap;
}
.btn-talk:hover { background: var(--dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: var(--r-sm); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-mid); border-radius: 2px; transition: all var(--ease); }
.hamburger:hover span { background: var(--purple); }
.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); }

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
  position: relative; min-height: calc(100vh - 66px);
  display: flex; align-items: center; overflow: hidden;
  background: var(--white); padding: 3rem 0;
}
.hero-deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-deco-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(109,40,217,0.07) 0%, transparent 70%); top: -140px; right: -100px; }
.hero-deco-2 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(109,40,217,0.05) 0%, transparent 70%); bottom: -80px; left: -80px; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3rem; width: 100%; }
.hero-text { flex: 1; max-width: 580px; }
.hero-greeting { font-family: var(--font-body); font-size: 1.15rem; font-weight: 400; color: var(--text-soft); margin-bottom: 0.35rem; }
.hero-name { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; color: var(--dark); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 0.4rem; }
.hero-role { font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 600; color: var(--text-mid); letter-spacing: 0.01em; margin-bottom: 0.6rem; }
.hero-role .accent { color: var(--purple); }
.hero-subtitle { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; color: var(--text-mid); letter-spacing: 0.04em; margin-bottom: 1.4rem; }
.hero-bio { font-family: var(--font-body); font-size: 1.05rem; color: var(--text-soft); line-height: 1.85; max-width: 490px; margin-bottom: 1.5rem; }
.hero-socials { display: flex; gap: 0.7rem; margin-bottom: 2rem; margin-top: 2rem; }
.hero-socials a { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-soft); border: 1.5px solid var(--border); border-radius: 50%; transition: all var(--ease-spring); }
.hero-socials a svg { width: 1.1em; height: 1.1em; }
.hero-socials a:hover { color: var(--purple); border-color: var(--purple); background: var(--purple-dim); transform: translateY(-3px); }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--dark); color: #fff; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; padding: 0.75rem 1.75rem; border-radius: var(--r-md); transition: all var(--ease-spring); white-space: nowrap; }
.btn-primary:hover { background: var(--purple); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: var(--dark); font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; padding: 0.73rem 1.75rem; border-radius: var(--r-md); border: 2px solid var(--dark); transition: all var(--ease); white-space: nowrap; }
.btn-outline:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }
.hero-photo-wrap { position: relative; flex-shrink: 0; width: 340px; height: 420px; }
.hero-photo-blob { position: absolute; inset: 0; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; z-index: 0; }
.hero-photo { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 98%; width: auto; max-width: 110%; object-fit: contain; object-position: bottom center; z-index: 1; border-radius: 12px; filter: drop-shadow(0 14px 36px rgba(109,40,217,0.35)); }

/* ── HERO HIRE ME BUTTON ─────────────────────────────────── */
.hero-hire-wrap { margin-bottom: 1.5rem; }

.btn-hire {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  padding: 0.8rem 1.75rem; border-radius: var(--r-full); border: 2px solid transparent;
  position: relative; overflow: hidden; transition: all var(--ease-spring);
  box-shadow: 0 4px 20px rgba(109,40,217,0.35); letter-spacing: 0.01em;
}
.btn-hire::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 100%);
  opacity: 0; transition: opacity var(--ease);
}
.btn-hire:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 32px rgba(109,40,217,0.45); }
.btn-hire:hover::before { opacity: 1; }
.btn-hire-icon {
  position: relative; z-index: 1; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2); border-radius: 50%; flex-shrink: 0;
}
.btn-hire-icon svg { width: 0.9em; height: 0.9em; }
.btn-hire span.btn-hire-icon, .btn-hire .btn-hire-badge { position: relative; z-index: 1; }
.btn-hire-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  padding: 0.15rem 0.55rem; border-radius: var(--r-full); white-space: nowrap;
}
.btn-hire-badge::before {
  content: ''; width: 5px; height: 5px; background: #4ade80;
  border-radius: 50%; display: inline-block; animation: pulse-green 1.5s ease-in-out infinite;
}
.btn-hire > span:not(.btn-hire-icon):not(.btn-hire-badge) { position: relative; z-index: 1; }
.btn-hire-text { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════ */
.stats-section {
  background: var(--dark); padding: 4rem 0;
  position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(109,40,217,0.25) 0%, transparent 60%),
              radial-gradient(ellipse 40% 60% at 90% 50%, rgba(139,92,246,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg); padding: 2rem 1.25rem 1.75rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  transition: all var(--ease-spring); cursor: default; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  transform: scaleX(0); transition: transform 0.4s var(--ease-spring);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.stat-card:hover { background: rgba(109,40,217,0.12); border-color: rgba(109,40,217,0.35); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(109,40,217,0.25); }
.stat-card:hover::before { transform: scaleX(1); }

/* FIX: Stats reveal — use opacity:1 as default so numbers always show.
   Animation only enhances if IntersectionObserver fires. */
.reveal-stat {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, background var(--ease-spring), border-color var(--ease-spring), box-shadow var(--ease-spring), transform var(--ease-spring);
}
/* Keep the slide-in animation available for JS to trigger */
.reveal-stat.will-animate {
  opacity: 0;
  transform: translateY(32px);
}
.reveal-stat.will-animate.revealed { opacity: 1; transform: translateY(0); }
.reveal-stat:nth-child(1) { transition-delay: 0s; }
.reveal-stat:nth-child(2) { transition-delay: 0.08s; }
.reveal-stat:nth-child(3) { transition-delay: 0.16s; }
.reveal-stat:nth-child(4) { transition-delay: 0.24s; }
.reveal-stat:nth-child(5) { transition-delay: 0.32s; }

.stat-icon-wrap {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; box-shadow: 0 8px 24px rgba(109,40,217,0.4);
  transition: all var(--ease-spring); flex-shrink: 0;
}
.stat-icon-wrap svg { width: 1.4em; height: 1.4em; }
.stat-card:hover .stat-icon-wrap { transform: scale(1.1) rotate(-4deg); box-shadow: 0 12px 32px rgba(109,40,217,0.55); }
.stat-number-wrap { display: flex; align-items: baseline; justify-content: center; }
.stat-number {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900; color: #ffffff; letter-spacing: -0.03em; line-height: 1; transition: color var(--ease);
}
.stat-card:hover .stat-number { color: var(--purple-light); }
.stat-label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; transition: color var(--ease);
}
.stat-card:hover .stat-label { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════════════ */
#services {
  position: relative;
  overflow: hidden;
}
#services .section-label {
  color: var(--purple);
  background: var(--purple-dim);
  border-color: var(--purple-border);
}
#services .section-title { color: var(--dark); }
#services .section-sub { color: var(--text-soft); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* FIX: Remove reveal class from service cards entirely.
   Cards are always visible. Hover animations still work. */
.service-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  transition: all var(--ease-spring);
  position: relative;
  overflow: hidden;
  /* Always visible — no opacity:0 hiding */
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-spring);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(109,40,217,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.5s ease;
  opacity: 0;
}
.service-card:hover {
  background: rgba(19,10,46,0.95);
  border-color: rgba(109,40,217,0.4);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(109,40,217,0.2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; bottom: -40px; right: -40px; }

.service-icon-wrap {
  width: 88px; height: 88px;
  background: rgba(109,40,217,0.15);
  border: 2px solid rgba(109,40,217,0.4);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--purple-light);
  transition: all var(--ease-spring);
  flex-shrink: 0; position: relative; z-index: 1;
}
.service-icon-wrap svg { width: 2.2em; height: 2.2em; }
.service-card:hover .service-icon-wrap {
  background: rgba(109,40,217,0.3);
  border-color: var(--purple-light);
  transform: scale(1.08) rotate(-4deg);
  color: #fff; box-shadow: 0 12px 32px rgba(109,40,217,0.5);
}
.service-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  color: #fff; letter-spacing: -0.02em; line-height: 1.3;
  position: relative; z-index: 1; transition: color var(--ease);
}
.service-card:hover .service-title { color: var(--purple-light); }
.service-desc {
  font-family: var(--font-body); font-size: 0.9rem;
  color: rgba(255,255,255,0.55); line-height: 1.82; flex: 1;
  position: relative; z-index: 1;
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  justify-content: center; position: relative; z-index: 1;
}
.service-tags span {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  color: var(--purple-light); background: rgba(109,40,217,0.2);
  border: 1px solid rgba(167,139,250,0.3);
  padding: 0.18rem 0.6rem; border-radius: var(--r-full); transition: all var(--ease);
}
.service-card:hover .service-tags span {
  background: rgba(109,40,217,0.35);
  border-color: rgba(167,139,250,0.5); color: #fff;
}

/* ── SKILL BARS ──────────────────────────────────────────── */
.skillbars-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; margin-bottom: 1rem; }
.skillbars-col { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-bar-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.55rem; }
.skill-bar-name { font-family: var(--font-body); font-size: 0.96rem; font-weight: 600; color: var(--text-mid); }
.skill-bar-pct { font-family: var(--font-display); font-size: 0.92rem; font-weight: 800; color: var(--purple); letter-spacing: 0.02em; }
.skill-bar-track { width: 100%; height: 7px; background: rgba(109,40,217,0.12); border-radius: var(--r-full); overflow: hidden; }
/* FIX: Skill bars — set initial width to 0 but ensure track is always visible */
.skill-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-light) 100%);
  border-radius: var(--r-full);
  transition: width 1.1s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESUME SUB-HEADINGS ─────────────────────────────────── */
.resume-sub-heading {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem;
  padding: 1.4rem 1.75rem; background: var(--bg-card);
  border: 1.5px solid var(--purple-border); border-left: 4px solid var(--purple);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.resume-sub-heading::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--purple-dim) 0%, transparent 60%); pointer-events: none;
}
.resume-sub-icon {
  width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; background: var(--purple); color: #fff; border-radius: var(--r-md);
  box-shadow: 0 4px 16px rgba(109,40,217,0.3); z-index: 1;
}
.resume-sub-icon svg { width: 1.3em; height: 1.3em; }
.resume-sub-icon--work { background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%); box-shadow: 0 4px 16px rgba(15,118,110,0.3); }
.resume-sub-text { flex: 1; z-index: 1; }
.resume-sub-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; margin-bottom: 0.1rem; }
.resume-sub-desc { font-family: var(--font-body); font-size: 0.83rem; color: var(--text-soft); font-weight: 500; }
.resume-sub-line { flex: 1; height: 1.5px; background: linear-gradient(90deg, var(--purple-border) 0%, transparent 100%); z-index: 1; }

/* Old resume block heading */
.resume-block-heading { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.resume-block-line { flex: 1; height: 1.5px; background: linear-gradient(90deg, transparent, var(--purple-border), transparent); }
.resume-block-label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--purple); background: var(--purple-dim);
  border: 1px solid var(--purple-border); padding: 0.3rem 0.9rem; border-radius: var(--r-full); white-space: nowrap;
}
.resume-block-label svg { width: 0.9em; height: 0.9em; }

/* ── WORK EXPERIENCE ─────────────────────────────────────── */
.exp-timeline { max-width: 820px; margin: 0 auto; padding-left: 1.5rem; position: relative; display: flex; flex-direction: column; gap: 2rem; }
.exp-timeline::before {
  content: ''; position: absolute; left: 0.65rem; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--purple) 0%, rgba(109,40,217,0.04) 100%); border-radius: 2px;
}
.exp-card { position: relative; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-sm); transition: all var(--ease); }
.exp-card:hover { border-color: var(--purple-border); box-shadow: var(--shadow-md); transform: translateX(4px); }
.exp-dot { position: absolute; left: -1.85rem; top: 1.8rem; width: 14px; height: 14px; background: var(--purple); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 3px rgba(109,40,217,0.22); }
.exp-dot-past { background: var(--text-muted); box-shadow: 0 0 0 3px rgba(157,146,196,0.22); }
.exp-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.exp-role { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; color: var(--dark); }
.exp-company { font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; color: var(--purple); margin-top: 0.25rem; display: flex; align-items: center; gap: 0.35rem; }
.exp-company svg { width: 0.9em; height: 0.9em; }
.exp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.exp-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 0.2rem 0.7rem; border-radius: var(--r-full); }
.exp-badge-past { color: var(--text-muted); background: rgba(0,0,0,0.03); border-color: var(--border); }
.live-dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; animation: pulse-green 2s ease-in-out infinite; }
@keyframes pulse-green { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
.exp-date { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-muted); }
.exp-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.exp-desc p { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-soft); line-height: 1.85; }
.exp-desc p strong { color: var(--dark); font-weight: 700; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.exp-tags span { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: var(--purple); background: var(--purple-dim); border: 1px solid var(--purple-border); padding: 0.15rem 0.65rem; border-radius: var(--r-full); }

/* ── COURSES / VOLUNTEERING ──────────────────────────────── */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.info-block { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.info-label { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--purple); background: var(--purple-dim); border: 1px solid var(--purple-border); padding: 0.3rem 0.9rem; border-radius: var(--r-full); margin-bottom: 1.2rem; }
.info-label svg { width: 0.9em; height: 0.9em; }
.check-list li { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; padding: 0.85rem 0 0.85rem 1.5rem; border-bottom: 1px solid var(--border); font-family: var(--font-body); font-size: 0.93rem; color: var(--text-mid); position: relative; transition: color var(--ease); line-height: 1.65; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0.85rem; color: var(--purple); font-size: 0.78rem; font-weight: 800; }
.check-list a { color: inherit; }
.check-list a:hover { color: var(--purple); }
.pill { display: inline-block; font-family: var(--font-body); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple); background: var(--purple-dim); border: 1px solid var(--purple-border); padding: 0.12rem 0.55rem; border-radius: var(--r-full); white-space: nowrap; flex-shrink: 0; }
.pill-green { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }

/* ── PROJECTS ────────────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: all var(--ease); }
.project-card:hover { border-color: var(--purple-border); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-thumb { position: relative; overflow: hidden; height: 200px; background: var(--bg-light); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-overlay { position: absolute; inset: 0; background: rgba(19,10,46,0.72); display: flex; align-items: center; justify-content: center; gap: 0.75rem; opacity: 0; transition: opacity var(--ease); }
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(109,40,217,0.15); border: 1.5px solid rgba(255,255,255,0.3); border-radius: var(--r-md); color: #fff; font-size: 1.1rem; transition: all var(--ease); }
.overlay-btn svg { width: 1.1em; height: 1.1em; }
.overlay-btn:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.project-body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.8rem; }
.project-tags span { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; color: var(--purple); background: var(--purple-dim); border: 1px solid var(--purple-border); padding: 0.12rem 0.55rem; border-radius: var(--r-full); }
.project-body h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.4; }
.project-body p { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-soft); line-height: 1.78; margin-bottom: 1.2rem; flex: 1; }
.view-project-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body); font-size: 0.87rem; font-weight: 700; color: var(--dark); border-bottom: 1.5px solid var(--dark); padding-bottom: 0.1rem; width: fit-content; transition: all var(--ease); }
.view-project-btn:hover { color: var(--purple); border-color: var(--purple); }
.view-project-btn:hover .btn-icon-sm { transform: translateX(4px); }

/* Ongoing project badges */
.project-card--ongoing .project-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1e0a4e 100%);
}
.project-thumb--ai {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
}
.project-thumb-icon { color: rgba(167,139,250,0.4); font-size: 4rem; }
.project-thumb-icon svg { width: 4rem; height: 4rem; }
.project-ongoing-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff; background: rgba(109,40,217,0.8); border: 1px solid rgba(167,139,250,0.4);
  padding: 0.25rem 0.65rem; border-radius: var(--r-full);
}
.ongoing-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  animation: pulse-green 1.5s ease-in-out infinite; flex-shrink: 0;
}
.project-meta-row { margin-bottom: 0.8rem; }
.project-date {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 1rem;
}
.project-date svg { width: 0.85em; height: 0.85em; }

/* ── RESEARCH ────────────────────────────────────────────── */
.research-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 2.5rem; max-width: 900px; margin: 0 auto; box-shadow: var(--shadow-md); }
.research-card-header { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.status-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); background: var(--purple-dim); border: 1px solid var(--purple-border); padding: 0.3rem 0.9rem; border-radius: var(--r-full); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); flex-shrink: 0; animation: pulse-p 1.5s ease-in-out infinite; }
@keyframes pulse-p { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
.research-tech-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.research-tech-stack span { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; color: var(--purple); background: var(--purple-dim); border: 1px solid var(--purple-border); padding: 0.12rem 0.6rem; border-radius: var(--r-full); }
.research-title { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; color: var(--dark); line-height: 1.3; margin-bottom: 1.75rem; }
.r-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.r-stat { flex: 1; min-width: 120px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.25rem; text-align: center; }
.r-num { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 900; color: var(--purple); line-height: 1.1; margin-bottom: 0.25rem; }
.r-lbl { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.research-abstract { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 1.5rem; margin-bottom: 2rem; }
.research-abstract h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--purple); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.research-abstract h4 svg { width: 0.9em; height: 0.9em; }
.research-abstract p { font-family: var(--font-body); font-size: 0.96rem; color: var(--text-soft); line-height: 1.88; }

/* Video */
.video-heading { font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--purple); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.video-heading svg { width: 0.9em; height: 0.9em; }
.video-player { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; }
.video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(19,10,46,0.45); transition: opacity var(--ease); cursor: pointer; }
.big-play-btn { width: 68px; height: 68px; background: rgba(109,40,217,0.15); border: 2px solid rgba(109,40,217,0.4); border-radius: 50%; color: var(--purple); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--ease-spring); }
.big-play-btn svg { width: 1.5em; height: 1.5em; margin-left: 2px; }
.big-play-btn:hover { background: var(--purple); color: #fff; transform: scale(1.1); }
.video-controls-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--bg-card); border-top: 1px solid var(--border); }
.vc-left  { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.vc-right { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.vc-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-muted); font-size: 0.9rem; cursor: pointer; transition: all var(--ease); text-decoration: none; }
.vc-btn svg { width: 0.9em; height: 0.9em; }
.vc-btn:hover { color: var(--purple); border-color: var(--purple-border); background: var(--purple-dim); }
.vc-time { font-family: var(--font-body); font-size: 0.78rem; color: var(--text-muted); }
.vc-sep { color: var(--border); font-size: 0.75rem; }
.vc-progress { flex: 1; height: 4px; background: rgba(0,0,0,0.08); border-radius: var(--r-full); cursor: pointer; overflow: hidden; }
.vc-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--purple), var(--purple-light)); border-radius: var(--r-full); transition: width 0.1s linear; }
.video-caption { font-family: var(--font-body); font-size: 0.86rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.72; }

/* ── PROFESSIONAL REFERENCES ─────────────────────────────── */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 860px; margin: 0 auto; }
.ref-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--ease); display: flex; flex-direction: column; }
.ref-card:hover { border-color: var(--purple-border); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ref-card-top { padding: 2rem 2rem 1.25rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, var(--bg) 0%, rgba(109,40,217,0.04) 100%); border-bottom: 1px solid var(--border); }
.ref-avatar { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.8); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.ref-avatar svg { width: 1.8em; height: 1.8em; }
.ref-avatar--industry { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); color: #fff; }
.ref-avatar--academic { background: linear-gradient(135deg, #4c1d95 0%, var(--purple) 100%); color: #fff; }
.ref-badge-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.ref-type-badge { display: inline-flex; align-items: center; font-family: var(--font-body); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.22rem 0.7rem; border-radius: var(--r-full); white-space: nowrap; }
.ref-type-industry { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }
.ref-type-academic { color: var(--purple); background: var(--purple-dim); border: 1px solid var(--purple-border); }
.ref-card-body { padding: 1.5rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.ref-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; margin-bottom: 0.25rem; line-height: 1.3; }
.ref-title { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--purple); margin-bottom: 0.2rem; }
.ref-subtitle { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-soft); line-height: 1.55; }
.ref-divider { height: 1px; background: var(--border); margin: 1.1rem 0; }
.ref-org { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 0.9rem; }
.ref-org-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; background: var(--purple-dim); border: 1px solid var(--purple-border); border-radius: var(--r-sm); color: var(--purple); margin-top: 0.05rem; }
.ref-org-icon svg { width: 0.85em; height: 0.85em; }
.ref-org span { font-family: var(--font-body); font-size: 0.87rem; font-weight: 600; color: var(--text-mid); line-height: 1.5; }
.ref-contacts { display: flex; flex-direction: column; gap: 0.4rem; margin-top: auto; }
.ref-contact-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.83rem; font-weight: 500; color: var(--text-soft); transition: color var(--ease); word-break: break-all; }
.ref-contact-link svg { width: 0.85em; height: 0.85em; flex-shrink: 0; color: var(--purple); }
.ref-contact-link:hover { color: var(--purple); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 1.15rem 1.35rem; box-shadow: var(--shadow-sm); transition: all var(--ease); }
.contact-card:hover { border-color: var(--purple-border); box-shadow: var(--shadow-md); transform: translateX(4px); }
.contact-icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--purple); background: var(--purple-dim); border: 1.5px solid var(--purple-border); border-radius: var(--r-md); }
.contact-icon svg { width: 1.15em; height: 1.15em; }
.contact-card-label { font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-card-value { font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; color: var(--dark); word-break: break-all; }
.contact-card:hover .contact-card-value { color: var(--purple); }
.contact-location-sub { font-family: var(--font-body); font-size: 0.72rem; color: var(--purple); font-weight: 600; margin-top: 0.15rem; opacity: 0; transform: translateY(4px); transition: all var(--ease); }
.contact-card--location:hover .contact-location-sub { opacity: 1; transform: translateY(0); }
.contact-card--location:hover .contact-card-value { color: var(--purple); }
.contact-form-wrap { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 2.5rem; box-shadow: var(--shadow-md); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-family: var(--font-body); font-size: 0.84rem; font-weight: 700; color: var(--text-mid); }
.form-group input, .form-group textarea { font-family: var(--font-body); font-size: 0.95rem; color: var(--dark); background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 0.78rem 1rem; transition: border-color var(--ease), box-shadow var(--ease); outline: none; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,40,217,0.09); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-status { display: none; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; padding: 0.85rem 1rem; border-radius: var(--r-md); text-align: center; line-height: 1.5; }
.form-status.success { display: block; background: #f0fdf4; color: #15803d; border: 1.5px solid #bbf7d0; }
.form-status.error   { display: block; background: #fef2f2; color: #dc2626; border: 1.5px solid #fecaca; }
.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; background: var(--purple); color: #fff; font-family: var(--font-body); font-size: 0.97rem; font-weight: 700; padding: 0.88rem 2rem; border-radius: var(--r-md); border: none; cursor: pointer; transition: all var(--ease-spring); }
.btn-submit svg { width: 1em; height: 1em; }
.btn-submit:hover { background: var(--dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--purple-light); }
.footer-copy { font-family: var(--font-body); font-size: 0.86rem; }
.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-sm); transition: all var(--ease); }
.footer-socials a svg { width: 0.95em; height: 0.95em; }
.footer-socials a:hover { color: #fff; border-color: var(--purple-light); background: rgba(109,40,217,0.28); }

/* ── SCROLL TOP ──────────────────────────────────────────── */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 46px; height: 46px; background: var(--purple); color: #fff; border: none; border-radius: var(--r-md); font-size: 1rem; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 50; transition: all var(--ease-spring); box-shadow: var(--shadow-md); }
.scroll-top svg { width: 1em; height: 1em; }
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--dark); transform: translateY(-3px); }

/* ── SCROLL REVEAL (general) ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: 280px; height: 340px; }
  .skillbars-wrapper { gap: 1rem 2rem; }
}
@media (max-width: 900px) {
  .two-col-grid { grid-template-columns: 1fr; }
  /* FIX: Stack skill bars to single column on mobile */
  .skillbars-wrapper { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 2.5rem; }
  .hero-text { max-width: 100%; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-socials { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-hire-wrap { display: flex; justify-content: center; }
  .hero-photo-wrap { width: 260px; height: 310px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-card:nth-child(5) { grid-column: 1 / -1; }
  .ref-grid { grid-template-columns: 1fr; max-width: 480px; }
  /* FIX: Services already single column, confirm max-width works */
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hamburger { display: flex; }
  .btn-talk { display: none; }
  .navbar {
    position: absolute; top: 66px; left: 0; width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .navbar.open { max-height: 400px; }
  .nav-list { flex-direction: column; padding: 1rem 0; gap: 0; }
  .nav-list a { display: block; padding: 0.85rem 1.5rem; border-radius: 0; font-size: 0.97rem; border-bottom: 1px solid var(--border); }
  .nav-list li:last-child a { border-bottom: none; }
  .project-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .r-stats { flex-direction: column; }
  .research-card { padding: 1.75rem 1.25rem; }
  .contact-form-wrap { padding: 1.75rem; }
  .exp-top { flex-direction: column; }
  .exp-right { align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .video-controls-bar { flex-wrap: wrap; gap: 0.5rem; }
  .vc-progress { order: 3; width: 100%; flex-basis: 100%; }
  /* FIX: 2 columns for stats on tablet */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .resume-sub-heading { flex-wrap: wrap; }
  .resume-sub-line { display: none; }
  .ref-card-top { padding: 1.5rem 1.5rem 1rem; }
  .ref-card-body { padding: 1.2rem 1.5rem 1.5rem; }
  .btn-hire { font-size: 0.95rem; padding: 0.75rem 1.5rem; }
  .service-card { padding: 2rem 1.5rem; }
  .service-icon-wrap { width: 72px; height: 72px; font-size: 1.8rem; }
  .service-icon-wrap svg { width: 1.8em; height: 1.8em; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-name { font-size: 2.3rem; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .btn-hire { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .logo { font-size: 1.25rem; }
  .research-card-header { flex-direction: column; align-items: flex-start; }
  /* FIX: Single column stats on small mobile */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 1.5rem 0.75rem; }
  .stat-number { font-size: 1.8rem; }
  .ref-grid { max-width: 100%; }
  .services-grid { max-width: 100%; }
  /* FIX: Ensure skill bar text doesn't overflow on very small screens */
  .skill-bar-name { font-size: 0.85rem; }
  .skillbars-wrapper { gap: 0.75rem; }
  .skillbars-col { gap: 1.25rem; }
}

.project-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.project-buttons .view-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}