/* ============================================================
   MAYANK RAJPUT PORTFOLIO — REDESIGNED CSS
   Theme: Deep Dark Teal + Warm Gold + Cyan
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg:           #050f0f;
  --bg-2:         #081818;
  --bg-3:         #0d2020;
  --bg-card:      #0f2525;
  --glass:        rgba(13, 32, 32, 0.7);
  --glass-heavy:  rgba(8, 20, 20, 0.94);
  --glass-b:      rgba(0, 212, 200, 0.07);
  --glass-bh:     rgba(0, 212, 200, 0.18);

  --gold:         #c9a227;
  --gold-light:   #e8be3a;
  --gold-dim:     rgba(201, 162, 39, 0.12);
  --gold-glow:    rgba(201, 162, 39, 0.3);

  --teal:         #00d4c8;
  --teal-dim:     rgba(0, 212, 200, 0.1);
  --teal-glow:    rgba(0, 212, 200, 0.2);

  --text:         #e8f4f4;
  --text-2:       #7a9e9e;
  --text-3:       #3d6060;
  --border:       rgba(0, 212, 200, 0.08);
  --border-h:     rgba(0, 212, 200, 0.2);
  --bg-stat-card: rgba(13, 26, 26, 0.45);

  --cursor-dot:   #c9a227;
  --cursor-ring:  rgba(201, 162, 39, 0.45);
  --nav-h:        70px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --t:            0.4s;
  --t-fast:       0.18s;

  --font-body:    'Space Grotesk', sans-serif;
  --font-head:    'Sora', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ===== LIGHT THEME — fully reworked for readability ===== */
[data-theme="light"] {
  --bg:           #f4f8f8;
  --bg-2:         #e8f0f0;
  --bg-3:         #dceaea;
  --bg-card:      #ffffff;
  --glass:        rgba(255, 255, 255, 0.75);
  --glass-heavy:  rgba(248, 252, 252, 0.97);
  --glass-b:      rgba(0, 140, 130, 0.07);
  --glass-bh:     rgba(0, 140, 130, 0.18);

  --gold:         #a87c10;
  --gold-light:   #c99520;
  --gold-dim:     rgba(168, 124, 16, 0.1);
  --gold-glow:    rgba(168, 124, 16, 0.25);

  --teal:         #007a73;
  --teal-dim:     rgba(0, 122, 115, 0.1);
  --teal-glow:    rgba(0, 122, 115, 0.15);

  --text:         #0d1f1f;
  --text-2:       #2f5050;
  --text-3:       #5a8080;
  --border:       rgba(0, 100, 90, 0.12);
  --border-h:     rgba(0, 100, 90, 0.28);
  --bg-stat-card: rgba(0, 100, 90, 0.04);

  --cursor-dot:   #0d1f1f;
  --cursor-ring:  rgba(13, 31, 31, 0.35);
}

/* ===== RESET ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  cursor: none;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
/* Restore normal cursor on touch/pointer-coarse devices (mobile, tablet) */
@media (hover: none), (pointer: coarse) {
  html, body, a, button, [data-magnetic], .skill-card, .chip, .nl,
  .pill-link, .pill-toggle, .scroll-progress, .theme-toggle,
  .btn, .btn-gold-sm, .btn-ghost-sm, .modal-close, .pricing-card button {
    cursor: pointer !important;
  }
  .cursor-dot, .cursor-ring { display: none !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  transition: background .5s var(--ease), color .5s var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; outline: none; font-family: var(--font-body); }
ul { list-style: none; }
input, textarea { font-family: var(--font-body); color: var(--text); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* Light mode — force form field colors */
[data-theme="light"] input,
[data-theme="light"] textarea {
  background: rgba(0,0,0,0.04);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: var(--text-3); }

/* ===== PAGE WIPE ===== */
.page-wipe {
  position: fixed; inset: 0;
  background: var(--gold);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transform-origin: top;
  animation: wipeOut 0.8s 2s var(--ease) forwards;
}
@keyframes wipeOut {
  to { transform: scaleY(0); transform-origin: bottom; }
}
.wipe-content { text-align: center; }
.wipe-logo {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: #050f0f;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.wipe-dot { color: #050f0f; }
.wipe-bar-wrap {
  width: 180px; height: 2px;
  background: rgba(5,15,15,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.wipe-bar-fill {
  height: 100%;
  background: #050f0f;
  width: 0;
  animation: wipeBar 1.8s var(--ease) forwards;
  border-radius: 2px;
}
@keyframes wipeBar { to { width: 100%; } }

/* ===== CUSTOM CURSOR ===== */
/* ===== CUSTOM CURSOR ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  top: 0; left: 0;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--cursor-dot);
  /* offset for dot center */
  margin-left: -3.5px; margin-top: -3.5px;
  transition: opacity .3s ease;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid var(--cursor-ring);
  /* offset for ring center */
  margin-left: -17px; margin-top: -17px;
  transition: width .28s var(--ease), height .28s var(--ease),
              border-color .28s ease, background .28s ease, opacity .3s ease;
}
.cursor-ring.hover {
  width: 52px; height: 52px;
  margin-left: -26px; margin-top: -26px;
  border-color: var(--gold);
  background: var(--gold-dim);
}
.cursor-ring.click {
  width: 26px; height: 26px;
  margin-left: -13px; margin-top: -13px;
  background: rgba(201,162,39,.2);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  z-index: 900; opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s var(--ease);
  cursor: none;
}
.scroll-progress.show { opacity: 1; transform: translateY(0); }
.scroll-progress svg {
  position: absolute; inset: 0;
  transform: rotate(-90deg);
}
.scroll-progress svg path {
  fill: none; stroke: var(--gold); stroke-width: 3;
  stroke-dasharray: 307; stroke-dashoffset: 307;
  transition: stroke-dashoffset .1s linear;
}
.scroll-progress i {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold); font-size: 13px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed; bottom: 84px; right: 28px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  z-index: 900; font-size: 15px;
  transition: box-shadow .2s ease, background .5s ease, border-color .3s ease;
  cursor: none;
}
.theme-toggle:hover { box-shadow: 0 0 20px var(--gold-glow); }

/* ===== CONTACT MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card {
  width: 100%; max-width: 920px;
  max-height: 90vh; overflow-y: auto;
  border-radius: 20px;
  padding: 50px;
  position: relative;
  transform: scale(0.92) translateY(24px);
  transition: transform .5s var(--ease);
  border: 1px solid var(--glass-bh);
  scrollbar-width: none;
}
.modal-card::-webkit-scrollbar { display: none; }
.modal-overlay.open .modal-card { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: color .2s, border-color .2s, background .2s;
  cursor: none;
}
.modal-close:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.modal-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 14px 0 12px;
}
.modal-sub {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}
.modal-contacts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.modal-contact-row {
  display: flex; align-items: center; gap: 12px;
  font-size: .88rem; color: var(--text-2);
  transition: color .2s;
}
.modal-contact-row:hover { color: var(--teal); }
.modal-contact-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--teal-dim);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* ===== NAVBAR ===== */
/* ===== NAVBAR — Premium Glassmorphism ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  /* Rich glass backdrop */
  background: rgba(5, 12, 12, 0.55);
  backdrop-filter: blur(28px) saturate(2) brightness(0.9);
  -webkit-backdrop-filter: blur(28px) saturate(2) brightness(0.9);
  /* Premium border with teal tint */
  border-bottom: 1px solid rgba(0, 212, 200, 0.12);
  box-shadow:
    0 1px 0 rgba(201, 162, 39, 0.06),
    0 8px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,.03);
  transition: background .4s ease, border-color .4s ease;
}
/* Gold–teal shimmer line at very top */
.navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,212,200,.5) 25%,
    rgba(201,162,39,.6) 50%,
    rgba(0,212,200,.5) 75%,
    transparent 100%);
  opacity: 0.5;
  animation: navShimmer 6s ease-in-out infinite;
}
@keyframes navShimmer {
  0%, 100% { opacity: .35; background-position: 0% 50%; }
  50%       { opacity: .6;  background-position: 100% 50%; }
}
[data-theme="light"] .navbar {
  background: rgba(240, 248, 248, 0.72);
  border-bottom-color: rgba(0, 122, 115, 0.14);
  box-shadow: 0 8px 32px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.6);
}
.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  /* Subtle letter shimmer on hover */
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .85; }
.nav-logo::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity .3s;
}
.nav-logo:hover::after { opacity: 1; animation: logoGradient 1.5s linear infinite; }
@keyframes logoGradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nl {
  padding: 7px 13px;
  font-size: .78rem; font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: .09em;
  border-radius: 8px;
  position: relative;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
/* Animated underline pill */
.nl::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
  transition: left .35s var(--ease), right .35s var(--ease), opacity .2s;
  opacity: 0;
}
.nl:hover {
  color: var(--text);
  background: rgba(0,212,200,.06);
}
.nl:hover::after { left: 13px; right: 13px; opacity: .7; }
.nl.active {
  color: var(--gold);
  background: var(--gold-dim);
}
.nl.active::after { left: 13px; right: 13px; opacity: 1; background: var(--gold); }
.nav-right {
  display: flex; align-items: center; gap: 20px;
  flex-shrink: 0; margin-left: auto;
}
.nav-email {
  font-family: var(--font-mono);
  font-size: .72rem; color: var(--text-2);
  transition: color .2s;
}
.nav-email:hover { color: var(--teal); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  font-size: .88rem; font-weight: 600;
  letter-spacing: .02em;
  /* Only transition visual properties — NOT transform (JS RAF controls that) */
  transition: box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  position: relative; overflow: hidden;
  cursor: none;
  will-change: transform;
}
.btn-gold { background: var(--gold); color: #050f0f; font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 8px 32px var(--gold-glow); }
.btn-gold-sm {
  display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: 6px;
  background: var(--gold); color: #050f0f;
  font-size: .8rem; font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .2s var(--ease);
  cursor: none;
}
.btn-gold-sm:hover { background: var(--gold-light); box-shadow: 0 6px 20px var(--gold-glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
/* ── Teal-outline variant for Resume button ── */
.btn-teal-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-teal-outline:hover {
  background: var(--teal-dim);
  color: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 6px 22px rgba(0,212,200,0.18);
}
.btn-ghost-sm {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 6px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border); font-size: .82rem; font-weight: 500;
  transition: color .2s, border-color .2s, transform .2s var(--ease);
  cursor: none;
}
.btn-ghost-sm:hover { color: var(--gold); border-color: var(--gold); }
.btn-xl { padding: 17px 36px; font-size: 1rem; border-radius: 10px; }
.full { width: 100%; justify-content: center; }
.mt-32 { margin-top: 32px; }

/* ===== PILL NAV (Mobile) ===== */
.pill-nav {
  display: none;
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
}
.pill-track {
  background: var(--glass-heavy);
  border: 1px solid var(--glass-bh);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 60px;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 6px;
  transition: all .5s var(--ease);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.pill-toggle {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 50px;
  background: var(--gold); color: #050f0f;
  font-size: .82rem; font-weight: 700;
  cursor: none;
  transition: background .2s;
}
.pill-toggle:hover { background: var(--gold-light); }
.pill-links {
  display: flex; align-items: center; gap: 4px;
  max-width: 0; overflow: hidden;
  transition: max-width .5s var(--ease), opacity .4s ease;
  opacity: 0;
}
.pill-nav.expanded .pill-links { max-width: 600px; opacity: 1; }
.pill-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  color: var(--text-2); white-space: nowrap;
  transition: color .2s, background .2s;
  cursor: none; background: none; border: none;
}
.pill-link:hover { color: var(--gold); background: var(--gold-dim); }
.pill-link i { font-size: 13px; }
.pill-cta { color: var(--teal); }
.pill-cta:hover { background: var(--teal-dim); color: var(--teal); }

/* ===== GLASS ===== */
.glass-heavy {
  background: var(--glass-heavy);
  border: 1px solid var(--glass-bh);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ===== LAYOUT ===== */
main { padding-top: var(--nav-h); }
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;
}
.section { position: relative; overflow: hidden; }
.section-pad { padding: 120px 0; }

/* ===== SECTION HEAD ===== */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem; color: var(--teal);
  text-transform: uppercase; letter-spacing: .18em;
  padding: 5px 14px;
  border: 1px solid var(--teal-dim);
  border-radius: 40px;
  background: var(--teal-dim);
  margin-bottom: 18px;
}
.section-head { margin-bottom: 70px; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
}
.section-sub { color: var(--text-2); margin-top: 16px; font-size: .95rem; max-width: 480px; line-height: 1.7; }
.accent-gold { color: var(--gold); }
.accent-teal { color: var(--teal); }

/* ===== PULSE RING ===== */
.pulse-ring {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; flex-shrink: 0;
  animation: pulseRing 2.2s ease infinite;
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); }
  60% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
}

/* ===== AVAILABILITY PILL ===== */
.avail-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: #34d399;
  padding: 10px 16px;
  border: 1px solid rgba(52,211,153,.18);
  border-radius: 30px;
  background: rgba(52,211,153,.05);
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.particle-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .35;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  z-index: 0; pointer-events: none;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative; z-index: 2;
  padding-top: 40px; padding-bottom: 40px;
}
.hero-left { flex: 1; max-width: 620px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .8rem;
  color: #34d399; padding: 8px 16px;
  border: 1px solid rgba(52,211,153,.2);
  border-radius: 40px; background: rgba(52,211,153,.05);
  margin-bottom: 28px;
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-2);
  line-height: 1.8; max-width: 500px; margin-bottom: 40px;
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 40px;
}
.hstat { padding: 0 28px 0 0; }
.hstat:first-child { padding-left: 0; }
.hstat-num {
  font-family: var(--font-head);
  font-size: 2.8rem; font-weight: 800;
  color: var(--gold); line-height: 1; display: inline-block;
}
.hstat-sup {
  font-family: var(--font-head);
  font-size: 1.8rem; font-weight: 800; color: var(--gold);
}
.hstat p {
  font-size: .78rem; color: var(--text-2); margin-top: 4px; line-height: 1.4;
}
.hstat-sep {
  width: 1px; height: 44px;
  background: var(--border); margin: 0 28px 0 0;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-socials { display: flex; gap: 12px; }
.hsoc {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 16px;
  transition: color .2s, border-color .2s, background .2s;
}
.hsoc:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }

/* Hero Right — Photo */
.hero-right { flex-shrink: 0; }
.hero-photo-wrap {
  position: relative;
  width: 380px; height: 380px;
}
.hero-photo-ring, .ring2 {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--teal-dim);
  animation: rotateRing 18s linear infinite;
}
.hero-photo-ring { inset: -20px; }
.ring2 { inset: -38px; border-color: var(--gold-dim); animation-direction: reverse; animation-duration: 28s; }
.hero-photo {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 8px var(--gold-dim), 0 0 60px var(--teal-glow);
  position: relative; z-index: 2;
}
.photo-teal-glow {
  position: absolute; inset: 20%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  border-radius: 50%; z-index: 0; pointer-events: none;
  animation: glowPulse 4s ease infinite;
}
@keyframes rotateRing { to { transform: rotate(360deg); } }
@keyframes glowPulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* Floating badges */
.float-badge {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 30px;
  background: var(--glass-heavy);
  border: 1px solid var(--glass-bh);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .78rem; font-weight: 600; color: var(--text);
  animation: floatBadge 6s ease infinite;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.float-badge i, .float-badge .ti-svg { font-size: 16px; color: var(--gold); }
.float-badge .ti-svg { width: 16px; height: 16px; }
.fb1 { top: 5%; right: -30px; animation-delay: 0s; }
.fb2 { bottom: 12%; right: -25px; animation-delay: 1.5s; }
.fb3 { top: 30%; left: -30px; animation-delay: 0.8s; }
.fb4 { bottom: 5%; left: -10px; animation-delay: 2.2s; }
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .12em;
}
.scroll-mouse {
  width: 22px; height: 34px; border-radius: 12px;
  border: 1.5px solid var(--text-3);
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 7px; border-radius: 3px;
  background: var(--gold);
  animation: scrollWheel 2s ease infinite;
}
@keyframes scrollWheel { 0%,100%{transform:translateY(0);opacity:1} 60%{transform:translateY(10px);opacity:0} }

/* ===== GLITCH TEXT ===== */
@keyframes glitch1 {
  0%,100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 1px); }
  40% { clip-path: inset(50% 0 30% 0); transform: translate(3px, -1px); }
  60% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 2px); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(2px, -2px); }
}
@keyframes glitch2 {
  0%,100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  20% { clip-path: inset(60% 0 20% 0); transform: translate(3px, -1px); }
  40% { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 1px); }
  60% { clip-path: inset(10% 0 70% 0); transform: translate(2px, 2px); }
  80% { clip-path: inset(80% 0 10% 0); transform: translate(-2px, -2px); }
}
.glitch-target {
  position: relative;
  display: inline-block;
}
.glitch-target.glitching::before,
.glitch-target.glitching::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
}
.glitch-target.glitching::before {
  color: var(--teal); animation: glitch1 .4s steps(1) forwards;
}
.glitch-target.glitching::after {
  color: var(--gold); animation: glitch2 .4s steps(1) forwards;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 30px;
  position: relative; overflow: hidden;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.svc-card:hover {
  border-color: var(--glass-bh);
  background: var(--bg-3);
  box-shadow: 0 12px 50px rgba(0,0,0,0.3), inset 0 0 40px var(--teal-dim);
}
.svc-num {
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--text-3); margin-bottom: 20px;
  transition: color .3s;
}
.svc-card:hover .svc-num { color: var(--teal); }
.svc-icon {
  font-size: 28px; color: var(--gold);
  margin-bottom: 20px; display: block;
  transition: transform .3s var(--ease);
}
.svc-card:hover .svc-icon { transform: scale(1.15) rotate(-5deg); }
.svc-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.svc-card p { font-size: .86rem; color: var(--text-2); line-height: 1.7; }
.svc-arrow {
  position: absolute; top: 24px; right: 24px;
  color: var(--text-3); font-size: 14px;
  transition: color .3s, transform .3s var(--ease);
}
.svc-card:hover .svc-arrow { color: var(--gold); transform: translate(3px, -3px); }
.svc-hover-line {
  position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0; background: var(--gold);
  transition: width .4s var(--ease);
}
.svc-card:hover .svc-hover-line { width: 100%; }

/* ===== ABOUT ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-p {
  font-size: .95rem; color: var(--text-2); line-height: 1.8; margin-bottom: 16px;
}
.about-p strong { color: var(--text); font-weight: 600; }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  font-family: var(--font-mono); font-size: .73rem;
  padding: 5px 13px;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-2);
  transition: color .2s, border-color .2s, background .2s;
  cursor: default;
}
.chip:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }
.about-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.astat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 20px;
  text-align: center;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.astat:hover {
  border-color: var(--gold-dim); box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.astat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin: 0 auto 14px;
  transition: background .3s;
}
.astat:hover .astat-icon { background: var(--gold); color: #050f0f; }
.astat-label { font-family: var(--font-mono); font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 6px; }
.astat-big { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.4; }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color .3s, box-shadow .3s, background .3s, transform .3s var(--ease);
  cursor: default;
}
.skill-card:hover {
  border-color: var(--glass-bh);
  box-shadow: 0 8px 30px rgba(0,0,0,.25), 0 0 20px var(--teal-glow);
  background: var(--bg-3);
}
.skill-icon {
  font-size: 28px; color: var(--text-2);
  transition: color .3s, transform .3s var(--ease);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
}
.skill-card:hover .skill-icon { color: var(--gold); transform: scale(1.15); }
.ts-icon, .pg-icon, .gql-icon {
  font-family: var(--font-mono); font-size: .72rem;
  font-weight: 700; letter-spacing: -.02em;
}
.mongo-icon { display: flex; align-items: center; justify-content: center; }
.mongo-icon svg { width: 24px; height: 24px; }
.skill-name { font-size: .75rem; font-weight: 600; color: var(--text-2); line-height: 1; }
.skill-level {
  font-family: var(--font-mono); font-size: .6rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 30px; font-weight: 600;
}
.expert {
  background: var(--gold-dim); color: var(--gold);
  border: 1px solid rgba(201,162,39,.2);
}
.proficient {
  background: var(--teal-dim); color: var(--teal);
  border: 1px solid rgba(0,212,200,.15);
}
.intermediate {
  background: rgba(100,80,180,.12); color: #a78bfa;
  border: 1px solid rgba(167,139,250,.15);
}

/* ===== PORTFOLIO / CASE STUDIES ===== */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.case-study:last-of-type { border-bottom: 1px solid var(--border); }
.case-study:hover { background: rgba(13, 32, 32, 0.4); }
.case-study .cs-content {
  padding: 0 80px 0 60px;
}
.case-study.cs-reverse { direction: rtl; }
.case-study.cs-reverse > * { direction: ltr; }
.case-study.cs-reverse .cs-content { padding: 0 60px 0 80px; }
.cs-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cs-num {
  font-family: var(--font-mono); font-size: 3rem;
  font-weight: 800; color: var(--border-h);
  line-height: 1; letter-spacing: -.04em;
}
.cs-tag {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--teal); text-transform: uppercase; letter-spacing: .1em;
}
.cs-title {
  font-family: var(--font-head); font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.2;
  margin-bottom: 18px;
  transition: color .2s;
}
.case-study:hover .cs-title { color: var(--gold); }
.cs-desc { font-size: .9rem; color: var(--text-2); line-height: 1.75; margin-bottom: 22px; }
.cs-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cs-tech span {
  font-family: var(--font-mono); font-size: .7rem;
  padding: 4px 11px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--text-2);
}
.cs-links { display: flex; gap: 10px; }

/* Case study visual */
.cs-visual { padding: 20px 60px 20px 0; }
.case-study.cs-reverse .cs-visual { padding: 20px 0 20px 60px; }
.cs-mockup {
  background: linear-gradient(135deg, var(--cs-from), var(--cs-to));
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16/10;
  transition: transform .4s var(--ease), box-shadow .4s ease;
  position: relative;
}
.case-study:hover .cs-mockup {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 40px var(--teal-glow);
}
.case-study.cs-reverse:hover .cs-mockup {
  transform: perspective(800px) rotateY(3deg) rotateX(2deg) scale(1.02);
}
.csmk-bar {
  background: rgba(0,0,0,.3); padding: 8px 12px;
  display: flex; gap: 5px; align-items: center;
}
.csmk-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.csmk-body { display: flex; height: calc(100% - 32px); }
.csmk-body.pad { padding: 16px; flex-direction: column; gap: 12px; height: auto; }
.csmk-sidebar {
  width: 40px; background: rgba(0,0,0,.2);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 12px 8px;
}
.csmk-sidebar.narrow { width: 36px; }
.csmk-menu-item {
  width: 20px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.12);
}
.csmk-menu-item.active { background: rgba(201,162,39,.7); }
.csmk-avatar-sm {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.csmk-avatar-sm.active-av { background: rgba(0,212,200,.5); }
.csmk-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.csmk-header-row { display: flex; align-items: center; justify-content: space-between; }
.csmk-title-line { height: 8px; width: 40%; background: rgba(255,255,255,.1); border-radius: 4px; }
.csmk-btn-sm { height: 20px; width: 18%; background: rgba(201,162,39,.5); border-radius: 4px; }
.csmk-kanban { display: flex; gap: 10px; flex: 1; }
.csmk-col { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.csmk-col-head { height: 16px; background: rgba(255,255,255,.07); border-radius: 4px; }
.csmk-card { height: 36px; background: rgba(255,255,255,.06); border-radius: 6px; }
.csmk-card.tall { height: 56px; }
.csmk-card.sm { height: 26px; }
.csmk-card.gold-card { background: rgba(201,162,39,.2); border: 1px solid rgba(201,162,39,.3); }
.csmk-stats-row { display: flex; gap: 10px; }
.csmk-stat-card { flex: 1; height: 50px; background: rgba(255,255,255,.06); border-radius: 8px; }
.csmk-stat-card.highlight { background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.2); }
.csmk-chart-area { flex: 1; display: flex; align-items: flex-end; padding-top: 10px; }
.csmk-chart-bars { display: flex; gap: 8px; align-items: flex-end; width: 100%; height: 80px; }
.ccb { flex: 1; background: rgba(0,212,200,.2); border-radius: 3px 3px 0 0; }
.ccb.gold-bar { background: rgba(201,162,39,.5); }
.csmk-store-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 12px;
}
.csmk-logo-line { width: 50px; height: 8px; background: rgba(255,255,255,.15); border-radius: 4px; }
.csmk-nav-dots { display: flex; gap: 6px; }
.csmk-nav-dots span { width: 24px; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; }
.csmk-cart-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(201,162,39,.15);
  display: flex; align-items: center; justify-content: center;
}
.csmk-product-grid { display: flex; gap: 10px; }
.csmk-product { flex: 1; height: 90px; background: rgba(255,255,255,.06); border-radius: 8px; }
.csmk-product.featured-product { background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.2); }
.csmk-chat { flex: 1; display: flex; flex-direction: column; }
.csmk-chat-header { height: 30px; background: rgba(0,0,0,.2); border-bottom: 1px solid rgba(255,255,255,.05); }
.csmk-messages { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.csmk-msg { height: 14px; width: 65%; background: rgba(255,255,255,.08); border-radius: 10px; }
.csmk-msg.right { align-self: flex-end; }
.csmk-msg.gold-msg { background: rgba(0,212,200,.25); }
.csmk-msg.short { width: 40%; }
.csmk-input-bar { height: 28px; background: rgba(0,0,0,.2); border-top: 1px solid rgba(255,255,255,.05); }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 30px;
  position: relative;
  transition: border-color .3s, box-shadow .3s;
}
.pricing-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.featured-card {
  border-color: rgba(201,162,39,.25);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(201,162,39,.04) 100%);
  margin-top: -10px;
  transition: border-color .3s, box-shadow .3s, margin-top .3s var(--ease);
}
.featured-card:hover { margin-top: -14px; box-shadow: 0 30px 70px rgba(0,0,0,.4), 0 0 40px var(--gold-glow); }
.pc-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold); color: #050f0f;
  font-size: .7rem; font-weight: 700;
  padding: 4px 16px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.pc-plan {
  font-family: var(--font-mono); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-2); margin-bottom: 14px; display: block;
}
.pc-price { display: flex; align-items: flex-start; gap: 3px; }
.pc-cur { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--gold); padding-top: 6px; }
.pc-num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pc-period { font-size: .78rem; color: var(--text-3); display: block; margin-top: 4px; }
.pc-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pc-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pc-features li { display: flex; align-items: center; gap: 10px; font-size: .87rem; color: var(--text-2); }
.pc-features li i { font-size: 11px; color: var(--teal); flex-shrink: 0; }
.pc-features li.off { opacity: .35; }
.pc-features li.off i { color: var(--text-3); }

/* ===== CONTACT CTA ===== */
.contact-cta {
  padding: 140px 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,212,200,.04) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-inner { position: relative; }
.cta-teal-line {
  width: 60px; height: 2px;
  background: var(--teal);
  margin: 0 auto 24px;
  border-radius: 2px;
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -0.04em;
  margin: 16px 0 20px;
  line-height: 1.1;
}
.cta-sub { font-size: 1rem; color: var(--text-2); margin-bottom: 44px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-direct-email {
  font-family: var(--font-mono); font-size: .82rem;
  color: var(--text-3); transition: color .2s;
}
.cta-direct-email:hover { color: var(--text-2); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-head); font-size: 1.5rem;
  font-weight: 800; letter-spacing: -0.04em;
  color: inherit; text-decoration: none;
  /* Subtle 'I'm a link' hint — no underline, cursor changes on hover */
  transition: opacity .2s;
}
.footer-logo:hover { opacity: 0.7; }
/* Footer resume download icon */
.footer-resume-link {
  color: var(--teal) !important;
  transition: color .2s, transform .2s !important;
}
.footer-resume-link:hover { color: var(--gold) !important; transform: translateY(-2px); }
.footer-copy { font-size: .82rem; color: var(--text-2); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  color: var(--text-3); font-size: 16px;
  transition: color .2s;
}
.footer-socials a:hover { color: var(--gold); }

/* ===== FORM ELEMENTS ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-2); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: .9rem;
  outline: none; resize: none;
  transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-success {
  display: none; align-items: center; gap: 9px;
  margin-top: 14px; padding: 12px 16px;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2);
  border-radius: 8px; color: #34d399; font-size: .86rem;
}
.form-success.visible { display: flex; }

/* ===== SCROLL REVEAL ===== */
.reveal-up {
  opacity: 0; transform: translateY(36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ===== MAGNETIC ===== */
/* will-change promotes the element to its own compositor layer.
   The transition-property override MUST exclude transform so CSS transitions
   never fight the JS RAF loop — the ONLY place transform is written is JS. */
.magnetic {
  display: inline-flex;
  will-change: transform;
  transition-property: border-color, background, box-shadow, opacity, filter !important;
}
/* Tilt cards: same rule — once revealed, JS owns the transform */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card.in {
  transition-property: border-color, background, box-shadow, opacity, filter !important;
}

/* ===== EDUCATION SECTION ===== */
.edu-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px;
  display: flex; gap: 24px; align-items: flex-start;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.edu-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.edu-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.edu-period {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--teal); letter-spacing: .08em; display: block; margin-bottom: 10px;
}
.edu-degree {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 8px;
}
.edu-spec { font-size: .88rem; color: var(--text-2); margin-bottom: 6px; }
.edu-college { font-size: .82rem; color: var(--text-3); }
.ach-title {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 20px;
}
.ach-list { display: flex; flex-direction: column; gap: 14px; }
.ach-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.ach-item:hover {
  border-color: var(--border-h);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.ach-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ach-icon.gold { background: var(--gold-dim); color: var(--gold); }
.ach-icon.teal { background: var(--teal-dim); color: var(--teal); }
.ach-icon.purple { background: rgba(167,139,250,.1); color: #a78bfa; }
.ach-name { font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.ach-detail { font-size: .78rem; color: var(--text-2); }

/* ===== CASE STUDY BADGES ===== */
.cs-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-badge-live {
  font-family: var(--font-mono); font-size: .65rem; font-weight: 700;
  color: #34d399; padding: 3px 10px;
  border: 1px solid rgba(52,211,153,.25);
  border-radius: 20px; background: rgba(52,211,153,.07);
  display: flex; align-items: center; gap: 5px;
}
.cs-badge-live i { font-size: 6px; animation: pulseRing 2s ease infinite; }

/* VIGIL mockup extras */
.agent-dot { width: 8px; height: 8px; border-radius: 50%; }
.agent-dot.green { background: #34d399; }
.agent-dot.amber { background: #fbbf24; }
.agent-dot.red   { background: #f87171; }
.csmk-agent-dots { display: flex; gap: 6px; }
.vigil-chart { position: relative; overflow: hidden; }
.vigil-line { position: absolute; left: 0; right: 0; height: 1px; background: rgba(0,212,200,.25); }
.vigil-line.warn { background: rgba(251,191,36,.3); }
.vigil-anomaly { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #f87171; box-shadow: 0 0 8px #f87171; }
.vigil-bars { position: relative; z-index: 2; }
.alert-bar { background: rgba(248,113,113,.4) !important; }
.csmk-agent-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.agent-row { display: flex; align-items: center; gap: 8px; }
.agent-status { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.agent-status.ok { background: #34d399; }
.agent-status.warn { background: #fbbf24; }
.agent-line { flex: 1; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; }

/* LifeLens mockup */
.lens-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lens-logo { width: 50px; height: 8px; border-radius: 4px; background: rgba(167,139,250,.5); }
.lens-tabs { display: flex; gap: 6px; }
.lens-tab { width: 30px; height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; }
.lens-tab.active-tab { background: rgba(167,139,250,.5); }
.lens-progress { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; margin-bottom: 12px; }
.lens-prog-fill { height: 100%; background: rgba(167,139,250,.6); border-radius: 2px; }
.lens-chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.lens-msg { height: 12px; border-radius: 8px; }
.lens-msg.ai-msg { background: rgba(255,255,255,.06); width: 80%; }
.lens-msg.user-msg { background: rgba(167,139,250,.2); width: 60%; align-self: flex-end; }
.lens-msg.long { height: 20px; }
.lens-msg.short { width: 40%; }
.lens-dossier { background: rgba(0,0,0,.2); border-radius: 8px; padding: 10px; }
.lens-dos-head { height: 8px; background: rgba(167,139,250,.3); border-radius: 3px; width: 50%; margin-bottom: 10px; }
.lens-dos-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lens-dos-label { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; flex: 1; }
.lens-dos-val { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; width: 30%; }
.lens-dos-val.gold-val { background: rgba(201,162,39,.4); }

/* Hero role display */
.hero-role {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.role-label {
  font-family: var(--font-mono); font-size: .85rem; font-weight: 500;
  color: var(--text-2);
}
.role-sep {
  font-family: var(--font-mono); font-size: .85rem;
  color: var(--text-3);
}
.fb-text { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-photo-wrap { width: 300px; height: 300px; }
  .fb1, .fb2, .fb3, .fb4 { display: none; }
  .edu-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  .hero-container { gap: 40px; }
  .about-layout { grid-template-columns: 1fr; gap: 50px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .featured-card { transform: translateY(0); }
  .case-study { grid-template-columns: 1fr; }
  .case-study .cs-content { padding: 40px 40px 0; }
  .cs-visual { padding: 20px 40px 40px; }
  .case-study.cs-reverse { direction: ltr; }
  .case-study.cs-reverse .cs-content { padding: 40px 40px 0; }
  .case-study.cs-reverse .cs-visual { padding: 20px 40px 40px; }
  .nav-links { display: none; }
  .pill-nav { display: flex; }
  .nav-right { margin-left: auto; }
  .nav-email { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section-pad { padding: 60px 0; }
  
  /* Hero section adjustments */
  .hero-container { flex-direction: column-reverse; gap: 30px; padding: 20px 0 50px; }
  .hero-photo-wrap { width: 210px; height: 210px; }
  .hero-left { max-width: 100%; text-align: center; }
  .hero-role { justify-content: center; gap: 8px; }
  .hero-name { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  
  /* Convert hero stats to elegant glassmorphic mini-cards */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 28px;
    flex-direction: row;
  }
  .hstat-sep { display: none; }
  .hstat {
    background: var(--bg-stat-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
  }
  .hstat-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  
  /* Grid collapses with balanced padding */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card { padding: 28px 20px; border-radius: 14px; }
  
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .skill-card { padding: 14px 12px; border-radius: 10px; }
  
  .about-stat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .astat { padding: 20px 16px; border-radius: 12px; }
  
  .case-study .cs-content { padding: 24px 16px 0; }
  .cs-visual { padding: 12px 16px 24px; }
  .case-study.cs-reverse .cs-content { padding: 24px 16px 0; }
  .case-study.cs-reverse .cs-visual { padding: 12px 16px 24px; }
  
  .edu-layout { grid-template-columns: 1fr; gap: 24px; }
  .edu-card { padding: 24px 20px; border-radius: 14px; }
  .ach-item { padding: 12px 16px; border-radius: 10px; }
  
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-card { padding: 32px 24px; border-radius: 14px; }
  
  /* ===== MODAL: MOBILE COMPACT — everything visible, zero scrolling ===== */
  /* Overlay slides up as a bottom sheet */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: auto;
    border-radius: 22px 22px 0 0;
    padding: 20px 18px 18px;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .modal-card::-webkit-scrollbar { display: none; }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* Hide verbose info rows — free up vertical space for the form */
  .modal-contacts,
  .modal-sub,
  .modal-info .avail-pill { display: none !important; }
  .modal-info { padding-bottom: 0; }
  .modal-title { font-size: 1.45rem; margin: 6px 0 6px; }
  .modal-form .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal-form .form-group { margin-bottom: 10px; }
  .modal-form .form-group label { font-size: .68rem; margin-bottom: 5px; }
  .modal-form .form-group input,
  .modal-form .form-group textarea { padding: 9px 12px; font-size: .84rem; border-radius: 7px; }
  .modal-form textarea { height: 72px; resize: none; }
  .modal-form .btn { width: 100%; justify-content: center; padding: 11px 20px; font-size: .85rem; margin-top: 2px; }
  .form-success { margin-top: 8px; font-size: .8rem; padding: 10px 12px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  footer { padding-bottom: 115px !important; }
  .scroll-progress { bottom: 90px; right: 14px; }
  .theme-toggle { bottom: 146px; right: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-scroll-hint { display: none; }
  .section-head { margin-bottom: 36px; }
  .cs-num { font-size: 1.8rem; }
  @media (hover: none) {
    .tilt-card:active {
      transform: scale3d(0.97, 0.97, 1) !important;
      border-color: var(--teal) !important;
      box-shadow: 0 5px 15px rgba(0,212,200,0.12) !important;
      transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
    }
    .btn:active {
      transform: scale3d(0.96, 0.96, 1) !important;
      transition: transform 0.1s ease !important;
    }
  }
}

/* Vertical reachability layout for floating pill menu on mobile */
@media (max-width: 580px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pill-nav {
    bottom: 16px;
  }
  .pill-track {
    flex-direction: column-reverse; /* menu toggle at bottom, links slide up */
    border-radius: 20px;
    padding: 8px;
    align-items: stretch;
    width: 280px;
    gap: 0;
  }
  .pill-toggle {
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
  }
  .pill-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: 0;
    max-width: none !important;
    width: 100%;
    margin-bottom: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s ease, margin 0.4s ease;
  }
  .pill-nav.expanded .pill-links {
    max-height: 340px;
    opacity: 1;
    margin-bottom: 8px;
  }
  .pill-link {
    padding: 10px 16px;
    font-size: 0.8rem;
    justify-content: center;
    border-radius: 12px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stat-grid { grid-template-columns: 1fr 1fr; }
  .cta-title { font-size: 1.8rem; }
  .hero-photo-wrap { width: 180px; height: 180px; }
  .navbar-inner { padding: 0 16px; }
  .nav-logo { font-size: 1.25rem; }
  .btn-gold-sm { padding: 8px 14px; font-size: .75rem; }
  .modal-card { padding: 20px 14px; }
  
  .cs-tech { gap: 6px; }
  .cs-tech span { font-size: .65rem; padding: 3px 8px; }
  
  /* Scale down projects chrome details on tiny screens */
  .cs-screenshot-img-wrap { max-height: 220px; }
  .cs-browser-chrome { padding: 8px 12px; gap: 4px; }
  .cs-brow-dot { width: 7px; height: 7px; }
  .cs-brow-bar { height: 16px; font-size: 0.55rem; padding: 0 6px; }
}

/* ===== CURSOR POINTER OVERRIDE ===== */
a, button, [data-magnetic], .skill-card, .chip, .nl,
.pill-link, .pill-toggle, .scroll-progress, .theme-toggle {
  cursor: none;
}

/* ===== ADMIN FOOTER LINK ===== */
.admin-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: .85rem;
  transition: color .2s, border-color .2s, background .2s;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-link:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }

/* ===== HERO STATS (rendered by JS) ===== */
.hstat { display: flex; align-items: center; gap: 10px; }
.hstat p { font-size: .78rem; color: var(--text-2); line-height: 1.4; }
.hstat p strong { display: block; color: var(--text); font-weight: 700; font-size: .82rem; }
.hstat-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--gold-dim); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.hstat-sep { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

/* ===== ABOUT PARAGRAPHS (rendered by JS) ===== */
#aboutP1, #aboutP2, #aboutP3 { /* inherits .about-p if class not applied, ensure visibility */ font-size: .95rem; line-height: 1.75; color: var(--text-2); margin-bottom: 16px; }

/* ===== EDU LAYOUT (rendered by JS) ===== */
.edu-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.edu-main {}
.edu-card { display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; align-items: flex-start; }
.edu-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--gold-dim); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.edu-info {}
.edu-period { font-family: var(--font-mono); font-size: .75rem; color: var(--teal); font-weight: 600; letter-spacing: .08em; display: block; margin-bottom: 6px; }
.edu-degree { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.edu-spec { font-size: .85rem; color: var(--text-2); margin-bottom: 4px; }
.edu-college { font-size: .82rem; color: var(--text-3); }
.edu-achievements {}
.ach-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.ach-list { display: flex; flex-direction: column; gap: 12px; }
.ach-item { display: flex; gap: 14px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; transition: border-color .2s; }
.ach-item:hover { border-color: var(--border-h); }
.ach-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ach-icon.gold   { background: var(--gold-dim);              color: var(--gold); }
.ach-icon.teal   { background: var(--teal-dim);              color: var(--teal); }
.ach-icon.purple { background: rgba(167,139,250,.12);        color: #a78bfa;     }
.ach-info {}
.ach-name   { font-size: .87rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ach-detail { font-size: .77rem; color: var(--text-2); }

/* ===== ABOUT STAT CARDS (rendered by JS) ===== */
.astat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; transition: border-color .2s; }
.astat:hover { border-color: var(--border-h); }
.astat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-dim); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin: 0 auto 10px; }
.astat-label { font-size: .72rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.astat-big { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* ===== CTA HEADING WRAP ===== */
#ctaHeadingWrap { margin-bottom: 12px; }

/* ===== RESPONSIVE: edu-layout ===== */
@media (max-width: 1024px) {
  .edu-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .edu-card { flex-direction: column; }
  .edu-layout { gap: 24px; }
}

/* ===== GPU HINTS for animated elements ===== */
/* These rules enforce that CSS transitions never write 'transform'.
   All transform changes on .magnetic and .btn are driven by JS RAF. */
.btn {
  will-change: transform;
  transition-property: border-color, background, box-shadow, opacity, filter !important;
}

/* ===== PROJECT SCREENSHOT FRAME ===== */
.cs-screenshot-wrap {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.case-study:hover .cs-screenshot-wrap {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 40px var(--teal-glow);
}
.case-study.cs-reverse:hover .cs-screenshot-wrap {
  transform: perspective(800px) rotateY(3deg) rotateX(2deg) scale(1.02);
}

/* Browser chrome bar */
.cs-browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cs-brow-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .85;
}
.cs-brow-bar {
  flex: 1;
  height: 20px;
  background: rgba(255,255,255,.06);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Screenshot image */
.cs-screenshot-img-wrap {
  position: relative;
  overflow: hidden;
  max-height: 340px;
}
.cs-screenshot-img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform .6s var(--ease);
}
.cs-screenshot-img-wrap:hover .cs-screenshot-img {
  transform: scale(1.04);
}
.cs-screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 60%,
    rgba(5, 15, 15, 0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity .3s ease;
  color: var(--teal);
  font-size: 1rem;
}
.cs-screenshot-img-wrap:hover .cs-screenshot-overlay {
  opacity: 1;
}

/* ============================================================
   PHONE — Disable inside-card icon/element hover transforms
   Applies only to ≤ 767px (phones). Desktop & tablet untouched.
   ============================================================ */
@media (max-width: 767px) {
  /* Service cards — icon spin/scale & arrow nudge */
  .svc-card:hover .svc-icon { transform: none; }
  .svc-card:hover .svc-arrow { transform: none; }

  /* Skill cards — icon scale */
  .skill-card:hover .skill-icon { transform: none; }

  /* Education cards — lift transform */
  .edu-card:hover { transform: none; }

  /* Footer resume link — lift */
  .footer-resume-link:hover { transform: none; }
}
