/* ═══════════════════════════════════════════════════
   style.css — Johnson Mugarra · Professional Portfolio
   Enhanced with modern animations, accessibility, and new sections
   ═══════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: #06091A;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Variables ───────────────────────────────────────── */
:root {
  --blue:      #0A84FF;
  --blue-soft: rgba(10,132,255,.15);
  --blue-glow: rgba(10,132,255,.35);
  --teal:      #32D3C8;
  --purple:    #BF5AF2;
  --amber:     #FF9F0A;
  --green:     #30D158;

  /* Glass surfaces */
  --glass-bg:       rgba(255,255,255,.045);
  --glass-border:   rgba(255,255,255,.10);
  --glass-shine:    rgba(255,255,255,.16);
  --glass-blur:     24px;

  /* Backgrounds */
  --bg:        #06091A;
  --bg2:       #080C1F;

  /* Text */
  --text:      #F0F4FF;
  --muted:     rgba(240,244,255,.50);
  --muted2:    rgba(240,244,255,.30);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
}

/* ── LIGHT theme overrides ───────────────────────────────── */
:root[data-theme="light"] {
  /* Page backgrounds — intentionally off-white, not stark */
  --bg:    #ECF0F9;
  --bg2:   #E2E8F5;

  /* Text — solid colours, WCAG AA+ at every size */
  --text:  #0F172A;       /* near-black navy            */
  --muted: #47556A;       /* slate — readable body copy */
  --muted2:#8696B0;       /* muted labels / captions    */

  /* Cards: opaque enough to contrast against the bg */
  --glass-bg:     rgba(255,255,255,.92);
  --glass-border: rgba(15,23,42,.09);
  --glass-shine:  rgba(255,255,255,1);

  /* Accent tweaks */
  --blue-soft: rgba(10,132,255,.10);
  --blue-glow: rgba(10,132,255,.20);
}

/* Body: subtle directional gradient for visual depth */
:root[data-theme="light"] body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 15%  0%, rgba(10,132,255,.07)  0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 85% 25%, rgba(191,90,242,.05)  0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 50% 88%, rgba(50,211,200,.04)  0%, transparent 65%);
}

/* Orbs — slightly muted in light */
:root[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(10,132,255,.12),  transparent 70%); }
:root[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(191,90,242,.09),  transparent 70%); }
:root[data-theme="light"] .orb-3 { background: radial-gradient(circle, rgba(50,211,200,.07),  transparent 70%); }

/* Nav */
:root[data-theme="light"] nav          { background: rgba(236,240,249,.82); border-bottom-color: rgba(15,23,42,.10); }
:root[data-theme="light"] nav.scrolled { background: rgba(236,240,249,.97); border-bottom-color: rgba(15,23,42,.14); }
:root[data-theme="light"] .mob-menu    { background: rgba(236,240,249,.98); }

/* Section rhythm — alternate subtle tinting */
:root[data-theme="light"] #metrics      { background: rgba(15,23,42,.025); border-top-color: rgba(15,23,42,.07); border-bottom-color: rgba(15,23,42,.07); }
:root[data-theme="light"] .metric       { background: #fff; border-color: rgba(15,23,42,.08); box-shadow: 0 2px 12px rgba(15,23,42,.07), inset 0 1px 0 #fff; }
:root[data-theme="light"] .metric:hover { background: rgba(10,132,255,.04); }
:root[data-theme="light"] #projects     { background: rgba(15,23,42,.022); border-top-color: rgba(15,23,42,.08); }
:root[data-theme="light"] #Education    { background: rgba(15,23,42,.015); border-top-color: rgba(15,23,42,.07); }
:root[data-theme="light"] #testimonials { background: rgba(15,23,42,.025); border-top-color: rgba(15,23,42,.08); }
:root[data-theme="light"] #publications { background: rgba(15,23,42,.015); border-top-color: rgba(15,23,42,.07); }
:root[data-theme="light"] footer        { background: rgba(15,23,42,.04);  border-top-color:  rgba(15,23,42,.10); }

/* Cards — solid white + layered shadow = crisp depth without glass wash-out */
:root[data-theme="light"] .proj-card,
:root[data-theme="light"] .cert-card,
:root[data-theme="light"] .c-item,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .testimonial-card,
:root[data-theme="light"] .highlight-card,
:root[data-theme="light"] .pub-item,
:root[data-theme="light"] .trust-item {
  background: #fff;
  border-color: rgba(15,23,42,.08);
  box-shadow:
    0 1px 3px  rgba(15,23,42,.05),
    0 4px 16px rgba(15,23,42,.07),
    inset 0 1px 0 #fff;
}
:root[data-theme="light"] .proj-card:hover,
:root[data-theme="light"] .cert-card:hover,
:root[data-theme="light"] .testimonial-card:hover {
  box-shadow:
    0 4px 8px  rgba(15,23,42,.06),
    0 14px 36px rgba(15,23,42,.12),
    inset 0 1px 0 #fff;
}
:root[data-theme="light"] .highlight-card:hover,
:root[data-theme="light"] .pub-item:hover,
:root[data-theme="light"] .trust-item:hover {
  box-shadow:
    0 4px 8px  rgba(15,23,42,.06),
    0 12px 28px rgba(15,23,42,.10),
    inset 0 1px 0 #fff;
}

/* Form inputs */
:root[data-theme="light"] input,
:root[data-theme="light"] textarea {
  background: #fff;
  border-color: rgba(15,23,42,.16);
  color: var(--text);
  box-shadow: none;
}
:root[data-theme="light"] input:focus,
:root[data-theme="light"] textarea:focus {
  border-color: rgba(10,132,255,.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,132,255,.12);
}

/* Badges / filters / tags */
:root[data-theme="light"] .bdg,
:root[data-theme="light"] .ptag,
:root[data-theme="light"] .filt {
  background: rgba(255,255,255,.88);
  border-color: rgba(15,23,42,.11);
  color: var(--muted);
}
:root[data-theme="light"] .filt.active { background: var(--blue); color: #fff; border-color: var(--blue); }
:root[data-theme="light"] .bdg:hover   { color: var(--blue); background: rgba(10,132,255,.08); }
:root[data-theme="light"] .chip        { background: rgba(10,132,255,.08); border-color: rgba(10,132,255,.18); }

/* Skill track */
:root[data-theme="light"] .sk-track { background: rgba(15,23,42,.08); }

/* Text colour overrides — all use solid slate for readability */
:root[data-theme="light"] .hero-desc,
:root[data-theme="light"] .contact-intro,
:root[data-theme="light"] .about-text p,
:root[data-theme="light"] .proj-card p,
:root[data-theme="light"] .test-text,
:root[data-theme="light"] .pub-desc,
:root[data-theme="light"] .github-desc,
:root[data-theme="light"] .highlight-card p,
:root[data-theme="light"] .metric-lbl,
:root[data-theme="light"] .t-desc { color: var(--muted); }

/* Scrollbar in light */
:root[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg2); }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(10,132,255,.40); }

/* smooth cross-fade when theme switches */
*, *::before, *::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: .32s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}
/* but DON'T animate transforms — keeps hover springs crisp */
.btn-primary, .btn-secondary, .btn-ghost, .btn-send, .proj-card,
.cert-card, .bdg, .filt, .c-item, .theme-toggle, .testimonial-card {
  transition-property: background-color, border-color, color, box-shadow,
                        transform, opacity;
}

/* ── Skip Link (Accessibility) ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--blue);
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ── Focus Visible States (Accessibility) ────────────────── */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Page Loader ───────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease;
}
.loader-content {
  text-align: center;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
.loader-content p {
  color: var(--muted);
  font-size: 0.9rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Theme toggle button ─────────────────────────────────── */
.theme-toggle {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; flex-shrink: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.theme-toggle:hover {
  border-color: rgba(10,132,255,.4);
  color: var(--blue);
  background: var(--blue-soft);
  transform: rotate(22deg) scale(1.12);
}

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 5px; }

/* ── Background orbs ─────────────────────────────────── */
.orb {
  position: fixed; border-radius: 69%;
  pointer-events: none; z-index: 0;
  filter: blur(90px);
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(10,132,255,.22), transparent 70%);
  top: -120px; left: -120px;
  animation-duration: 20s;
}
.orb-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(191,90,242,.18), transparent 70%);
  top: 30vh; right: -100px;
  animation-duration: 16s; animation-delay: -5s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(50,211,200,.14), transparent 70%);
  bottom: 20vh; left: 20%;
  animation-duration: 22s; animation-delay: -10s;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,60px) scale(1.08); }
}

/* ── Glass mixin helper ──────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
}

/* ── Scroll progress ─────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; z-index: 999;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width .08s linear;
  box-shadow: 0 0 8px var(--blue);
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 5%;
  background: rgba(6,9,26,.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: background .3s, border-color .3s;
}
nav.scrolled {
  background: rgba(6,9,26,.75);
  border-color: rgba(255,255,255,.13);
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-weight: 800; font-size: 1.2rem;
  color: var(--text); text-decoration: none; letter-spacing: -.02em;
}
.nav-logo em { font-style: normal; color: var(--blue); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 500; transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 1px; transition: width .3s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue); }

.nav-cta {
  background: var(--blue-soft);
  border: 1px solid rgba(10,132,255,.35);
  color: var(--blue); padding: .38rem 1.15rem;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif; 
  text-decoration: none; transition: all .25s;
  letter-spacing: .02em;
}
.nav-cta:hover {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 18px var(--blue-glow);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 22px; height: 1.5px; display: block;
  background: var(--text); transition: all .3s;
}
.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 190;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  background: rgba(6,9,26,.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.mob-menu.open { display: flex; }
.mob-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--text); text-decoration: none; transition: color .2s;
}
.mob-menu a:hover { color: var(--blue); }
.mob-close {
  position: absolute; top: 1.4rem; right: 5%;
  background: none; border: none; font-size: 1.5rem;
  color: var(--muted); cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 5% 5rem; position: relative; z-index: 1;
}
#hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,132,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,132,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 5%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 5%, #000 0%, transparent 100%);
}
:root[data-theme="light"] #hero::before {
  background-image:
    linear-gradient(rgba(10,132,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,132,255,.022) 1px, transparent 1px);
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 5rem; align-items: center;
  max-width: 1160px; width: 100%; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(48,209,88,.12);
  border: 1px solid rgba(48,209,88,.30);
  padding: .3rem 1rem; border-radius: 20px;
  font-size: .7rem; color: var(--green);
  letter-spacing: .07em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1.8rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

h1.hero-name {
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.1; letter-spacing: -.02em; margin-bottom: .6rem;
}
h1.hero-name em {
  font-style: normal;
  color: var(--blue);
  text-shadow: 0 0 40px rgba(10,132,255,.4);
}

.hero-role {
  font-size: .95rem; color: var(--muted);
  font-weight: 500; margin-bottom: 1.5rem; letter-spacing: .01em;
}
.hero-desc {
  max-width: 540px; color: var(--muted);
  font-size: .96rem; line-height: 1.8; margin-bottom: 2.2rem;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-btns { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2rem; }

.btn-primary {
  background: var(--blue); color: #fff;
  padding: .7rem 1.8rem; border-radius: 22px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
  border: none; cursor: pointer;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  display: inline-flex; align-items: center; gap: .4rem;
  box-shadow: 0 4px 20px rgba(10,132,255,.3);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(10,132,255,.5);
  background: #2196FF;
}

.btn-secondary {
  background: var(--purple); color: #fff;
  padding: .7rem 1.8rem; border-radius: 22px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
  border: none; cursor: pointer;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  display: inline-flex; align-items: center; gap: .4rem;
  box-shadow: 0 4px 20px rgba(191,90,242,.3);
}
.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(191,90,242,.5);
  background: #D785FF;
}

.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--muted); padding: .7rem 1.8rem; border-radius: 22px;
  font-size: .9rem; text-decoration: none;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600;
}
.btn-ghost:hover {
  border-color: rgba(10,132,255,.4); color: var(--blue);
  transform: translateY(-2px);
  background: rgba(10,132,255,.08);
}

/* ── Trust Badges ────────────────────────────────────── */
.trust-badges {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem;
}
.trust-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: .8rem 1.2rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; min-width: 110px;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.trust-item strong {
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.2;
  display: block;
}
.trust-item span {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.trust-item:hover {
  transform: translateY(-3px);
  border-color: rgba(10,132,255,.3);
  background: rgba(10,132,255,.06);
}

/* ── Profile card ────────────────────────────────────── */
.profile-card {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl); padding: 2rem 1.6rem;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 var(--glass-shine);
}
.profile-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--teal), transparent);
}

/* spinning gradient ring */
.pic-wrap { position: relative; width: 130px; height: 130px; }
.pic-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--blue), var(--teal), var(--purple), var(--blue));
  animation: spin 6s linear infinite;
  filter: blur(1px);
}
@keyframes spin { to { transform: rotate(360deg); } }
.pic-inner {
  position: absolute; inset: 3px; border-radius: 50%;
  background: var(--bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pic-inner img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.pic-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0D1A3A, #0A254A);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .35rem;
}
.pic-ph svg { opacity: .3; }
.pic-ph small {
  font-size: .58rem; color: var(--muted); text-align: center;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.5;
}

.p-name { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-weight: 700; font-size: .95rem; text-align: center; color: var(--text); 
}
.p-role { 
  font-size: .7rem; color: var(--blue); letter-spacing: .1em; 
  text-transform: uppercase; font-weight: 600; 
}
.p-loc  { 
  font-size: .76rem; color: var(--muted); 
  display: flex; align-items: center; gap: .3rem; 
}
.p-chips { 
  display: flex; flex-wrap: wrap; gap: .32rem; justify-content: center; 
}
.chip {
  background: rgba(10,132,255,.12);
  border: 1px solid rgba(10,132,255,.22);
  color: var(--blue); font-size: .65rem; padding: .18rem .6rem;
  border-radius: 20px; font-weight: 600; letter-spacing: .03em;
  transition: all .2s;
}
.chip:hover { background: rgba(10,132,255,.22); }

/* Profile Social Links */
.p-social {
  display: flex; gap: .8rem; margin-top: .5rem;
}
.p-social a {
  width: 32px; height: 32px;
  background: rgba(10,132,255,.1);
  border: 1px solid rgba(10,132,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.p-social a:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(10,132,255,.3);
}

/* ═══════════════════════════════════════════════════════
   SHARED SECTION
   ═══════════════════════════════════════════════════════ */
section { padding: 6rem 5%; position: relative; z-index: 1; }
.container { max-width: 1160px; margin: 0 auto; }

.s-label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--blue);
  font-weight: 700; margin-bottom: 1rem;
}
.s-label::before {
  content: '';
  width: 28px; height: 1.5px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

h2.s-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.025em;
  margin-bottom: 3rem;
}

/* ═══════════════════════════════════════════════════════
   METRICS
   ═══════════════════════════════════════════════════════ */
#metrics {
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 3rem 5%;
  margin: 3rem 0;
  position: relative;
  z-index: 1;
}
.metrics-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
}
.metric {
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.metric:hover {
  background: rgba(10,132,255,.05);
  border-color: rgba(10,132,255,.25);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
}
.metric-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  color: var(--blue); line-height: 1.1; margin-bottom: .5rem;
}
.metric-val sup { font-size: .9rem; font-weight: 600; margin-left: .1rem; }
.metric-lbl {
  font-size: .76rem; color: var(--muted);
  letter-spacing: .04em; line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════
   CLIENTS / TRUSTED BY
   ═══════════════════════════════════════════════════════ */
.clients-section {
  padding: 4rem 5%;
  background: rgba(255,255,255,.015);
  border-bottom: 1px solid var(--glass-border);
}
.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.client-logo:hover { transform: translateY(-3px); }
.client-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  opacity: .7;
  filter: grayscale(35%);
  transition: opacity .3s, filter .3s;
}
.client-logo:hover img {
  opacity: 1;
  filter: grayscale(0%);
}
:root[data-theme="light"] .client-logo img {
  opacity: .65;
  filter: grayscale(30%) contrast(1.05);
}
:root[data-theme="light"] .client-logo:hover img {
  opacity: 1;
  filter: grayscale(0%) contrast(1);
}
.client-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 4.5rem; align-items: start;
}
.about-text p {
  margin-bottom: 1.3rem; line-height: 1.85;
  color: var(--muted); font-size: .96rem;
}
.about-text p strong { color: var(--text); font-weight: 600; }
.about-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem;
}

/* About Highlights */
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.highlight-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.highlight-card:hover {
  border-color: rgba(10,132,255,.25);
  transform: translateY(-3px);
  background: rgba(10,132,255,.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.08);
}
.highlight-icon {
  font-size: 2rem;
  margin-bottom: .8rem;
}
.highlight-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}
.highlight-card p {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════ */
#projects {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--glass-border);
}
#filter-row {
  display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 3rem;
  justify-content: center;
}
.filt {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--muted); padding: .5rem 1.3rem;
  border-radius: 20px; font-size: .8rem; font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1);
  letter-spacing: .02em;
}
.filt:hover {
  border-color: rgba(10,132,255,.35); color: var(--blue);
  background: rgba(10,132,255,.08);
}
.filt.active {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 0 18px var(--blue-glow);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.proj-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .36s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 6px 24px rgba(0,0,0,.2), inset 0 1px 0 var(--glass-shine);
  position: relative;
  display: flex;
  flex-direction: column;
}
.proj-card.hiding {
  opacity: 0;
  transform: scale(0.92);
}
.proj-card.hidden {
  display: none;
}
.proj-card.featured {
  grid-column: span 2;
}
.proj-card:hover {
  border-color: rgba(10,132,255,.25);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3), inset 0 1px 0 var(--glass-shine);
}

.proj-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--amber);
  color: var(--bg);
  padding: .3rem .8rem;
  border-radius: 12px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  z-index: 2;
}

.proj-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(10,132,255,.08), rgba(50,211,200,.06));
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.proj-placeholder {
  color: rgba(10,132,255,.3);
}

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

.proj-header {
  margin-bottom: 1rem;
}
.proj-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .6rem;
  color: var(--text);
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.ptag {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--muted); font-size: .65rem; padding: .17rem .55rem;
  border-radius: 6px; font-weight: 500; transition: all .2s;
}
.proj-card:hover .ptag { 
  border-color: rgba(10,132,255,.2); 
  color: rgba(10,132,255,.9); 
}

.proj-metrics-row {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.proj-metric {
  flex: 1;
  text-align: center;
}
.proj-metric strong {
  display: block;
  font-size: 1.3rem;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.1;
}
.proj-metric span {
  font-size: .68rem;
  color: var(--muted);
  margin-top: .2rem;
  display: block;
  line-height: 1.3;
}

.proj-card p {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: auto;
  flex: 1;
}

.proj-links {
  display: flex;
  gap: .8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: all .2s;
  padding: .4rem .8rem;
  background: rgba(10,132,255,.08);
  border-radius: 8px;
  border: 1px solid rgba(10,132,255,.2);
}
.proj-link:hover {
  background: rgba(10,132,255,.15);
  transform: translateX(3px);
}
.proj-link svg {
  flex-shrink: 0;
}

/* GitHub Section */
.github-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.github-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.github-desc {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2rem;
}
.github-chart {
  display: inline-block;
  background: var(--glass-bg);
  padding: 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
}
.github-chart img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */
#testimonials {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--glass-border);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.testimonial-card:hover {
  border-color: rgba(10,132,255,.25);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
}
.test-quote {
  font-size: 4rem;
  color: var(--blue);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: -.5rem;
  font-family: Georgia, serif;
}
.test-text {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.test-avatar {
  width: 48px;
  height: 48px;
  background: rgba(10,132,255,.1);
  border: 1px solid rgba(10,132,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.test-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: .2rem;
}
.test-org {
  font-size: .75rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════ */
.skills-layout { 
  display: grid; grid-template-columns: 1fr 1fr; 
  gap: 4.5rem; align-items: start; 
}

.sg-title {
  font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--amber);
  margin-bottom: .9rem; font-weight: 700; margin-top: 1.8rem;
}
.sg-title:first-child { margin-top: 0; }

.sk-row { margin-bottom: .95rem; }
.sk-meta { 
  display: flex; justify-content: space-between; 
  margin-bottom: .38rem; font-size: .83rem; 
}
.sk-name { color: var(--text); font-weight: 400; }
.sk-pct  { color: var(--muted); font-size: .76rem; }
.sk-track {
  background: rgba(255,255,255,.07);
  border-radius: 4px; height: 4px; overflow: hidden;
}
.sk-fill {
  height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(10,132,255,.4);
}

.bdg-group { margin-bottom: 1.5rem; }
.bdg-label { 
  font-size: .67rem; text-transform: uppercase; 
  letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; 
}
.bdg-wrap  { display: flex; flex-wrap: wrap; gap: .4rem; }
.bdg {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--muted); padding: .25rem .8rem;
  border-radius: 8px; font-size: .77rem; font-weight: 500;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.bdg:hover {
  border-color: rgba(10,132,255,.35); color: var(--blue);
  background: rgba(10,132,255,.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10,132,255,.2);
}

/* ═══════════════════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════════════════ */
#publications {
  background: rgba(255,255,255,.015);
  border-top: 1px solid var(--glass-border);
}
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pub-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.pub-item:hover {
  border-color: rgba(10,132,255,.25);
  transform: translateX(5px);
  background: rgba(10,132,255,.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.08);
}
.pub-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: rgba(10,132,255,.08);
  border: 1px solid rgba(10,132,255,.18);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
:root[data-theme="light"] .pub-icon {
  background: rgba(10,132,255,.07);
  border-color: rgba(10,132,255,.16);
}
.pub-content {
  flex: 1;
}
.pub-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}
.pub-meta {
  font-size: .75rem;
  color: var(--blue);
  margin-bottom: .8rem;
  font-weight: 600;
}
.pub-desc {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}
.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pub-tag {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--muted);
  font-size: .7rem;
  padding: .25rem .7rem;
  border-radius: 8px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════════════════ */
#Education {
  background: rgba(255,255,255,.015);
  border-top: 1px solid var(--glass-border);
}
.Education-grid { 
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; 
}
.cert-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md); padding: 1.2rem 1.4rem;
  display: flex; align-items: center; gap: .9rem;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.cert-card:hover {
  border-color: rgba(10,132,255,.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.1);
}
.c-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: var(--r-sm);
  background: rgba(10,132,255,.1);
  border: 1px solid rgba(10,132,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.c-name   { 
  font-weight: 600; font-size: .85rem; line-height: 1.3; color: var(--text); 
}
.c-issuer { 
  font-size: .72rem; color: var(--muted); margin-top: .1rem; 
}

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-layout { 
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; 
}
.contact-intro  { 
  color: var(--muted); line-height: 1.8; margin-bottom: 1.8rem; font-size: .96rem; 
}

.c-items { display: flex; flex-direction: column; gap: .8rem; }
.c-item {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md); padding: .85rem 1.2rem;
  text-decoration: none; color: var(--text);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.c-item:hover {
  border-color: rgba(10,132,255,.3);
  transform: translateX(5px);
  background: rgba(10,132,255,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
}
.c-ico {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: var(--r-sm);
  background: rgba(10,132,255,.1);
  border: 1px solid rgba(10,132,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--blue); 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-weight: 700;
}
.c-lbl { 
  font-size: .65rem; text-transform: uppercase; 
  letter-spacing: .09em; color: var(--muted); 
}
.c-val { font-size: .85rem; font-weight: 400; color: var(--text); }

/* QR Code Section */
.qr-section {
  margin-top: 2rem;
  text-align: center;
}
.qr-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .8rem;
}
.qr-code {
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: white;
  padding: .5rem;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: .35rem; }
label { 
  font-size: .67rem; text-transform: uppercase; 
  letter-spacing: .09em; color: var(--muted); font-weight: 600; 
}
input, textarea {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); color: var(--text);
  padding: .72rem 1rem; border-radius: var(--r-sm);
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-size: .9rem; font-weight: 300;
  outline: none; transition: border-color .25s, background .25s, box-shadow .25s;
  resize: none;
}
input:focus, textarea:focus {
  border-color: rgba(10,132,255,.5);
  background: rgba(10,132,255,.06);
  box-shadow: 0 0 0 3px rgba(10,132,255,.12), 0 0 20px rgba(10,132,255,.08);
}
input::placeholder, textarea::placeholder { color: var(--muted2); }
.btn-send {
  background: var(--blue); color: #fff; border: none;
  padding: .8rem; border-radius: 22px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 20px rgba(10,132,255,.3);
}
.btn-send:hover {
  background: #2196FF; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(10,132,255,.5);
}
.btn-send:disabled { 
  opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; 
}

.f-msg {
  font-size: .82rem; text-align: center; padding: .75rem;
  border-radius: var(--r-sm); display: none;
  backdrop-filter: blur(12px);
}
.f-msg.show { display: block; }
.f-msg.success {
  color: var(--green); background: rgba(48,209,88,.1);
  border: 1px solid rgba(48,209,88,.25);
}
.f-msg.error {
  color: #FF453A; background: rgba(255,69,58,.1);
  border: 1px solid rgba(255,69,58,.25);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
  background: rgba(255,255,255,.018);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 2rem 5%; position: relative; z-index: 1;
}
.foot-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.foot-logo {
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-weight: 800;
  font-size: 1.05rem; color: var(--text);
}
.foot-logo em { font-style: normal; color: var(--blue); }
.foot-copy { font-size: .76rem; color: var(--muted); }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { 
  font-size: .76rem; color: var(--muted); text-decoration: none; 
  transition: color .2s; 
}
.foot-links a:hover { color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out calc(var(--stagger, 0) * 80ms) forwards;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner     { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile-card   { max-width: 400px; margin: 0 auto; }
  .about-grid     { grid-template-columns: 1fr; }
  .skills-layout  { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .proj-grid      { grid-template-columns: repeat(2,1fr); }
  .metrics-grid   { grid-template-columns: repeat(2,1fr); }
  .Education-grid     { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .trust-badges   { justify-content: center; }
  .proj-card.featured { grid-column: span 1; }
}

@media (max-width: 600px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .proj-grid { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  h1.hero-name { font-size: 1.9rem; }
  .s-title { font-size: 1.55rem; }
  section  { padding: 4rem 5%; }
  .trust-badges { gap: 1rem; }
  .trust-item { min-width: 90px; padding: .6rem .9rem; }
  .trust-item strong { font-size: 1.2rem; }
  .trust-item span { font-size: .65rem; }
  .client-logos { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  
  /* Reduce orb blur on mobile for performance */
  .orb { filter: blur(60px); }
  
  /* Touch-friendly buttons */
  .btn-primary, .btn-secondary, .btn-ghost {
    min-height: 44px;
    padding: 12px 24px;
  }
  
  /* Simplify glassmorphism on mobile */
  nav { backdrop-filter: blur(16px); }
}

/* ── Print Styles ──────────────────────────────────────── */
@media print {
  .orb, nav, .hamburger, .mob-menu, #progress-bar,
  .theme-toggle, .hero-btns, footer { display: none; }
  body { background: white; color: black; }
  section { page-break-inside: avoid; }
}

/* ═══════════════════════════════════════════════════════
   PROFESSIONAL POLISH & ACCESSIBILITY
   ═══════════════════════════════════════════════════════ */

/* Text selection */
::selection      { background: rgba(10,132,255,.25); color: inherit; }
::-moz-selection { background: rgba(10,132,255,.25); color: inherit; }
:root[data-theme="light"] ::selection      { background: rgba(10,132,255,.20); }
:root[data-theme="light"] ::-moz-selection { background: rgba(10,132,255,.20); }

/* Headings: prevent orphaned words on narrow lines */
h1, h2, h3 { text-wrap: balance; }

/* Section anchor offset — content doesn't hide under fixed nav */
section[id] { scroll-margin-top: 80px; }

/* Heading hierarchy font feature */
h1.hero-name, h2.s-title {
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -.025em;
}

/* Proj-image in light mode — remove the harsh blue tint */
:root[data-theme="light"] .proj-image {
  background: linear-gradient(135deg, rgba(15,23,42,.04), rgba(50,211,200,.03));
  border-bottom-color: rgba(15,23,42,.07);
}

/* Proj-placeholder icon in light mode */
:root[data-theme="light"] .proj-placeholder { color: rgba(10,132,255,.25); }

/* Project tag colour in light mode */
:root[data-theme="light"] .proj-card:hover .ptag {
  border-color: rgba(10,132,255,.25);
  color: var(--blue);
}

/* Profile card social in light mode */
:root[data-theme="light"] .p-social a {
  background: rgba(10,132,255,.08);
  border-color: rgba(10,132,255,.18);
}

/* Publication icon in light mode */
:root[data-theme="light"] .c-ico {
  background: rgba(10,132,255,.08);
  border-color: rgba(10,132,255,.16);
}

/* Testimonial quote mark in light mode */
:root[data-theme="light"] .test-quote { opacity: .12; }

/* Better nav-cta contrast in light mode */
:root[data-theme="light"] .nav-cta {
  background: rgba(10,132,255,.10);
  border-color: rgba(10,132,255,.30);
}

/* ── Reduced motion ───────────────────────────────────────
   Honour OS-level preference: no decorative animations,
   no smooth scrolling that can cause motion sickness.
──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
