/* ═══════════════════════════════════════════════════
   MANASI SUYAL — PORTFOLIO
   Clean · Minimal · Bioluminescent Dark
   Fonts: Playfair Display · Outfit · Space Mono
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Outfit:wght@200;300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── VARIABLES ──────────────────────────────────── */
:root {
  --bg:           #04070f;
  --bg-2:         #060a13;
  --surface:      rgba(255,255,255,0.035);
  --surface-2:    rgba(255,255,255,0.06);
  --border:       rgba(255,255,255,0.06);
  --border-glow:  rgba(0,200,255,0.2);
  --text:         #e2f0ff;
  --text-muted:   rgba(180,215,255,0.45);
  --text-soft:    rgba(190,220,255,0.65);

  --cyan:         #00d4ff;
  --cyan-dim:     rgba(0,212,255,0.12);
  --teal:         #00ffcc;
  --rose:         #ff6eb4;
  --violet:       #9d6bff;
  --glow-cyan:    rgba(0,212,255,0.18);

  --lm-bg:        #f4f8ff;
  --lm-bg-2:      #e8f2ff;
  --lm-text:      #040d1a;
  --lm-muted:     rgba(4,13,26,0.5);
  --lm-surface:   rgba(0,140,200,0.05);
  --lm-border:    rgba(0,120,180,0.12);
  --lm-cyan:      #006fa3;
  --lm-teal:      #006e50;
  --lm-rose:      #bb2266;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }
::selection { background: rgba(0,212,255,0.18); color: var(--text); }
body.light-mode ::selection { background: rgba(0,111,163,0.12); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--teal)); border-radius: 3px; }

/* ── BODY ───────────────────────────────────────── */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
}
body.light-mode { background: var(--lm-bg); color: var(--lm-text); cursor: auto; }

/* ── CANVAS ─────────────────────────────────────── */
#particleCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.38; }

/* ── CURSOR ─────────────────────────────────────── */
.cursor-orb {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.38); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s ease;
  mix-blend-mode: screen;
}
.cursor-dot {
  position: fixed; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); box-shadow: 0 0 7px var(--cyan);
}
body.light-mode .cursor-orb, body.light-mode .cursor-dot { display: none; }
body.cursor-expand .cursor-orb { width: 54px; height: 54px; border-color: rgba(0,255,204,0.48); background: rgba(0,212,255,0.04); }

/* ── BLOBS ──────────────────────────────────────── */
.blob {
  position: fixed; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0; opacity: 0.2;
  animation: blobDrift 22s ease-in-out infinite;
}
.blob-1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(0,212,255,0.2), transparent 70%); top: -80px; left: -80px; animation-duration: 24s; }
.blob-2 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(157,107,255,0.16), transparent 70%); top: 38%; right: -80px; animation-duration: 30s; animation-delay: -9s; }
.blob-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,255,204,0.13), transparent 70%); bottom: 12%; left: 28%; animation-duration: 26s; animation-delay: -15s; }
@keyframes blobDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(22px,-28px) scale(1.04); }
  66%       { transform: translate(-16px,24px) scale(0.97); }
}
body.light-mode .blob { opacity: 0.07; }

/* ── HEADER ─────────────────────────────────────── */
header {
  position: fixed; top: 0; width: 100%;
  padding: 18px 56px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000;
  background: rgba(4,7,15,0.55);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid var(--border);
  transition: padding 0.35s ease, background 0.35s ease;
}
body.light-mode header { background: rgba(244,248,255,0.84); border-bottom-color: var(--lm-border); }

/* ── LOGO ────────────────────────────────────────── */
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-mark { position: relative; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.logo-glow-bg {
  position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.14), transparent 70%);
  animation: glowPulse 3.2s ease-in-out infinite; pointer-events: none;
}
.logo-svg { width: 34px; height: 34px; position: relative; z-index: 1; transition: transform 0.5s var(--ease-out); }
.logo-link:hover .logo-svg { transform: rotate(90deg) scale(1.08); }
.logo-hex { animation: spinRing 28s linear infinite; transform-origin: 18px 18px; }
.logo-dot-accent { animation: pulse 2.8s ease-in-out infinite; transform-origin: 18px 18px; }
body.light-mode .logo-glow-bg { background: radial-gradient(circle, rgba(0,111,163,0.09), transparent 70%); }

/* ── NAV ─────────────────────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-link {
  text-decoration: none; font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.2px; color: var(--text-muted);
  position: relative; transition: color 0.24s ease;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(to right, var(--cyan), var(--teal));
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
body.light-mode .nav-link { color: var(--lm-muted); }
body.light-mode .nav-link:hover { color: var(--lm-text); }
body.light-mode .nav-link::after { background: linear-gradient(to right, var(--lm-cyan), var(--lm-teal)); }

.theme-toggle {
  cursor: pointer; font-size: 0.95rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--border-glow); background: var(--surface-2); transform: rotate(20deg) scale(1.08); box-shadow: 0 0 14px var(--glow-cyan); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 100px 80px; gap: 80px; flex-wrap: wrap;
}
.hero-left { flex: 1.1; min-width: 320px; display: flex; flex-direction: column; gap: 0; }

.hero-badge    { opacity: 0; animation: riseIn 0.75s 0.10s var(--ease-out) forwards; }
.hero-greeting { opacity: 0; animation: riseIn 0.75s 0.20s var(--ease-out) forwards; }
.hero-name     { opacity: 0; animation: riseIn 0.75s 0.30s var(--ease-out) forwards; }
.hero-typed-wrap { opacity: 0; animation: riseIn 0.75s 0.42s var(--ease-out) forwards; }
.hero-actions  { opacity: 0; animation: riseIn 0.75s 0.54s var(--ease-out) forwards; }

@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 50px;
  border: 1px solid rgba(0,255,204,0.2); background: rgba(0,255,204,0.05);
  backdrop-filter: blur(8px); margin-bottom: 22px; width: fit-content;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 2.2s ease-in-out infinite; }
.badge-text { font-size: 0.73rem; font-weight: 500; letter-spacing: 0.8px; color: var(--teal); font-family: 'Space Mono', monospace; text-transform: uppercase; }
body.light-mode .hero-badge { border-color: rgba(0,110,80,0.18); background: rgba(0,110,80,0.05); }
body.light-mode .badge-dot  { background: var(--lm-teal); box-shadow: none; }
body.light-mode .badge-text { color: var(--lm-teal); }

.hero-greeting { font-family: 'Space Mono', monospace; font-size: 0.82rem; letter-spacing: 3.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
body.light-mode .hero-greeting { color: var(--lm-muted); }

.hero-name { font-family: 'Playfair Display', serif; font-size: clamp(4rem, 8vw, 8rem); font-weight: 900; line-height: 0.93; letter-spacing: -3px; color: var(--text); margin-bottom: 28px; display: flex; flex-direction: column; }
.name-line { display: block; }
.accent-word {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 50%, var(--violet) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% 200%; animation: flowGradient 7s ease infinite;
}
@keyframes flowGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
body.light-mode .hero-name { color: var(--lm-text); }
body.light-mode .accent-word { background: linear-gradient(135deg, var(--lm-cyan), var(--lm-teal), var(--lm-rose)); -webkit-background-clip: text; background-clip: text; }

.hero-typed-wrap { display: flex; align-items: center; margin-bottom: 40px; }
.typed-dash { font-family: 'Space Mono', monospace; color: var(--cyan); font-size: 1.2rem; opacity: 0.6; margin-right: 2px; }
#element { font-size: 1.22rem; font-weight: 300; color: var(--text-soft); display: inline-block; min-height: 1.9rem; letter-spacing: 0.2px; }
body.light-mode #element { color: var(--lm-muted); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.2px;
  text-decoration: none; color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border: none; position: relative; overflow: hidden; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s ease;
  box-shadow: 0 0 22px rgba(0,212,255,0.22), 0 4px 16px rgba(0,0,0,0.22);
}
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--teal), var(--cyan)); opacity: 0; transition: opacity 0.32s ease; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 38px rgba(0,212,255,0.38), 0 8px 26px rgba(0,0,0,0.32); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.send-btn { cursor: pointer; font-family: 'Outfit', sans-serif; width: 100%; justify-content: center; border-radius: 14px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 34px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none; color: var(--text-soft);
  background: transparent; border: 1px solid rgba(0,212,255,0.17);
  backdrop-filter: blur(8px); transition: all 0.28s var(--ease-out);
}
.btn-ghost:hover { border-color: rgba(0,212,255,0.44); color: var(--cyan); background: rgba(0,212,255,0.05); box-shadow: 0 0 16px rgba(0,212,255,0.09); transform: translateY(-3px); }
body.light-mode .btn-ghost { color: var(--lm-muted); border-color: rgba(0,100,160,0.17); }
body.light-mode .btn-ghost:hover { color: var(--lm-cyan); border-color: rgba(0,100,160,0.38); background: rgba(0,100,160,0.04); }

/* Hero right */
.hero-right { flex: 0.85; min-width: 280px; display: flex; align-items: center; justify-content: center; position: relative; opacity: 0; animation: riseIn 1s 0.4s var(--ease-out) forwards; }
.photo-frame { position: relative; width: 370px; height: 370px; display: flex; align-items: center; justify-content: center; }
.photo-ring { position: absolute; border-radius: 50%; border: 1px solid; animation: spinRing linear infinite; }
.photo-ring-1 { inset: -16px; border-color: rgba(0,212,255,0.18); animation-duration: 22s; }
.photo-ring-2 { inset: -32px; border-color: rgba(0,255,204,0.1); border-style: dashed; animation-duration: 32s; animation-direction: reverse; }
.photo-ring-3 { inset: -52px; border-color: rgba(157,107,255,0.07); animation-duration: 46s; }
@keyframes spinRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero-photo {
  width: 370px; height: 370px; border-radius: 50%; object-fit: cover; object-position: top;
  border: 2px solid rgba(0,212,255,0.22);
  box-shadow: 0 0 0 8px rgba(0,212,255,0.04), 0 0 48px rgba(0,212,255,0.13), 0 28px 68px rgba(0,0,0,0.52);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
  position: relative; z-index: 1;
}
.hero-photo:hover { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(0,212,255,0.05), 0 0 76px rgba(0,212,255,0.26), 0 34px 86px rgba(0,0,0,0.62); }
.photo-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(0,212,255,0.09), transparent 70%); animation: glowPulse 3.5s ease-in-out infinite; z-index: 0; }
.float-chip { position: absolute; padding: 7px 13px; border-radius: 50px; font-size: 0.76rem; font-weight: 500; backdrop-filter: blur(16px); border: 1px solid rgba(0,212,255,0.17); background: rgba(4,7,15,0.74); color: var(--text-soft); white-space: nowrap; pointer-events: none; z-index: 2; }
.chip-1 { top: 8%; right: -18px; animation: chipFloat 5.2s ease-in-out infinite; }
.chip-2 { bottom: 18%; right: -28px; animation: chipFloat 6.5s 1s ease-in-out infinite; }
.chip-3 { top: 42%; left: -28px; animation: chipFloat 7s 0.5s ease-in-out infinite; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
body.light-mode .float-chip { background: rgba(244,248,255,0.9); border-color: rgba(0,100,160,0.17); color: var(--lm-muted); }

/* ── SECTION SEPARATOR ──────────────────────────── */
.section-sep { height: 1px; width: 60%; margin: 0 auto; background: linear-gradient(to right, transparent, rgba(0,212,255,0.13), rgba(0,255,204,0.09), transparent); }

/* ── SECTION COMMON ─────────────────────────────── */
.section-eyebrow { font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; opacity: 0.85; }
body.light-mode .section-eyebrow { color: var(--lm-cyan); }
.section-heading { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.9rem); font-weight: 700; line-height: 1.08; color: var(--text); margin-bottom: 20px; letter-spacing: -0.8px; }
body.light-mode .section-heading { color: var(--lm-text); }

/* ── ABOUT ──────────────────────────────────────── */
.about-section { position: relative; z-index: 1; display: flex; gap: 80px; padding: 100px; flex-wrap: wrap; align-items: flex-start; }
.about-img-col { flex: 0 0 270px; max-width: 270px; }
.about-img-frame { position: relative; }
.about-img-frame img { width: 100%; border-radius: 22px; display: block; border: 1px solid rgba(0,212,255,0.14); box-shadow: 0 20px 60px rgba(0,0,0,0.42), 0 0 34px rgba(0,212,255,0.07); transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease; margin-top: 80px; }
.about-img-frame img:hover { transform: translateY(-7px) scale(1.015); box-shadow: 0 30px 70px rgba(0,0,0,0.52), 0 0 48px rgba(0,212,255,0.12); }
.img-overlay-badge { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 50px; background: rgba(4,7,15,0.9); backdrop-filter: blur(16px); border: 1px solid rgba(0,212,255,0.18); font-size: 0.78rem; font-weight: 500; color: var(--text-soft); white-space: nowrap; box-shadow: 0 8px 26px rgba(0,0,0,0.32); }
.img-overlay-badge .material-symbols-outlined { font-size: 0.95rem; color: var(--cyan); }
body.light-mode .img-overlay-badge { background: rgba(244,248,255,0.94); border-color: rgba(0,100,160,0.17); color: var(--lm-muted); }
body.light-mode .img-overlay-badge .material-symbols-outlined { color: var(--lm-cyan); }
.about-content-col { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 36px; }
.about-body { font-size: 0.96rem; line-height: 1.9; color: var(--text-muted); font-weight: 300; }
body.light-mode .about-body { color: var(--lm-muted); }

/* Info cards */
.info-cards-section { display: flex; gap: 14px; flex-wrap: wrap; }
.info-card { flex: 1 1 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 18px; position: relative; overflow: hidden; transition: all 0.38s var(--ease-out); }
.shimmer-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0,212,255,0.05), transparent); transform: skewX(-15deg); transition: left 0.62s ease; }
.shimmer-card:hover::before { left: 150%; }
.shimmer-card:hover { border-color: rgba(0,212,255,0.19); box-shadow: 0 14px 42px rgba(0,0,0,0.28), 0 0 22px rgba(0,212,255,0.05); transform: translateY(-5px); }
body.light-mode .info-card { background: rgba(0,120,180,0.04); border-color: rgba(0,120,180,0.09); }
body.light-mode .shimmer-card:hover { border-color: rgba(0,100,160,0.24); box-shadow: 0 14px 42px rgba(0,0,0,0.07); }
.card-icon-wrap { width: 38px; height: 38px; border-radius: 11px; background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.11); display: flex; align-items: center; justify-content: center; margin-bottom: 13px; }
.card-icon-wrap .material-symbols-outlined { font-size: 1.2rem; color: var(--cyan); }
body.light-mode .card-icon-wrap { background: rgba(0,100,160,0.05); border-color: rgba(0,100,160,0.1); }
body.light-mode .card-icon-wrap .material-symbols-outlined { color: var(--lm-cyan); }
.info-card h3 { font-size: 0.76rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 9px; }
body.light-mode .info-card h3 { color: var(--lm-cyan); }
.info-card p { font-size: 0.86rem; line-height: 1.65; color: var(--text-muted); font-weight: 300; }
.info-card p em { font-style: italic; color: var(--text-soft); }
body.light-mode .info-card p { color: var(--lm-muted); }

/* Tools */
.tools-section { display: flex; flex-direction: column; gap: 0; }
.tools-heading { font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; font-family: 'Space Mono', monospace; }
body.light-mode .tools-heading { color: var(--lm-muted); }
.tools-category { margin-bottom: 18px; }
.tools-label { display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 11px; padding: 3px 10px; border: 1px solid rgba(0,212,255,0.17); border-radius: 20px; background: rgba(0,212,255,0.04); font-family: 'Space Mono', monospace; }
body.light-mode .tools-label { color: var(--lm-cyan); border-color: rgba(0,100,160,0.15); background: rgba(0,100,160,0.04); }
.tools-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.tool-icon { position: relative; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.28s var(--ease-out); will-change: transform; }
.tool-icon img { width: 24px; height: 24px; transition: transform 0.28s ease; }
.tool-icon:hover { border-color: rgba(0,212,255,0.28); background: rgba(0,212,255,0.06); transform: translateY(-5px) scale(1.06); box-shadow: 0 8px 20px rgba(0,0,0,0.26), 0 0 12px rgba(0,212,255,0.1); }
.tool-icon:hover img { transform: scale(1.1); }
.tooltip { visibility: hidden; opacity: 0; position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%) translateY(4px); background: rgba(4,7,15,0.96); border: 1px solid rgba(0,212,255,0.17); color: var(--text-soft); font-size: 0.7rem; padding: 4px 10px; border-radius: 8px; white-space: nowrap; transition: all 0.2s ease; z-index: 10; pointer-events: none; }
.tool-icon:hover .tooltip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
body.light-mode .tooltip { background: rgba(244,248,255,0.97); border-color: rgba(0,100,160,0.17); color: var(--lm-muted); }

/* ── PROJECTS ───────────────────────────────────── */
.projects-section { position: relative; z-index: 1; padding: 100px 0 80px; }
.projects-header { padding: 0 100px; margin-bottom: 44px; }
.section-sub { font-size: 0.78rem; color: var(--text-muted); font-family: 'Space Mono', monospace; letter-spacing: 1px; margin-top: 6px; }
body.light-mode .section-sub { color: var(--lm-muted); }
.projects-track-wrap { overflow: hidden; position: relative; padding: 10px 0 28px; }
.projects-track-wrap::before, .projects-track-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.projects-track-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.projects-track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
body.light-mode .projects-track-wrap::before { background: linear-gradient(to right, var(--lm-bg), transparent); }
body.light-mode .projects-track-wrap::after  { background: linear-gradient(to left,  var(--lm-bg), transparent); }
.projects-track { display: flex; gap: 22px; overflow-x: auto; padding: 10px 100px 18px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; scroll-behavior: smooth; }
.projects-track::-webkit-scrollbar { display: none; }
.projects-track:active { cursor: grabbing; }
.project-card { flex: 0 0 295px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: all 0.38s var(--ease-out); position: relative; will-change: transform; }
.project-card::after { content: ''; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(135deg, rgba(0,212,255,0.04), transparent 60%); opacity: 0; transition: opacity 0.32s ease; pointer-events: none; }
.project-card:hover { transform: translateY(-10px) scale(1.01); border-color: rgba(0,212,255,0.22); box-shadow: 0 22px 58px rgba(0,0,0,0.42), 0 0 30px rgba(0,212,255,0.07); }
.project-card:hover::after { opacity: 1; }
body.light-mode .project-card { background: rgba(255,255,255,0.78); border-color: rgba(0,120,180,0.09); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
body.light-mode .project-card:hover { border-color: rgba(0,100,160,0.24); box-shadow: 0 22px 58px rgba(0,0,0,0.09); }
.card-media { position: relative; overflow: hidden; height: 180px; }
.project-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s var(--ease-out); }
.project-card:hover .project-image { transform: scale(1.06); }
.card-media-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,7,15,0.62), transparent 60%); }
.project-tag { position: absolute; top: 11px; right: 11px; padding: 4px 10px; border-radius: 50px; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.7px; background: rgba(0,212,255,0.11); border: 1px solid rgba(0,212,255,0.22); color: var(--cyan); backdrop-filter: blur(8px); font-family: 'Space Mono', monospace; }
body.light-mode .project-tag { background: rgba(0,100,160,0.08); border-color: rgba(0,100,160,0.2); color: var(--lm-cyan); }
.project-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.project-body h3 { font-size: 0.96rem; font-weight: 600; color: var(--text); line-height: 1.35; }
body.light-mode .project-body h3 { color: var(--lm-text); }
.project-body p { font-size: 0.83rem; line-height: 1.65; color: var(--text-muted); font-weight: 300; }
body.light-mode .project-body p { color: var(--lm-muted); }
.project-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2px; color: var(--cyan); text-decoration: none; margin-top: 3px; transition: gap 0.24s ease; }
.project-cta:hover { gap: 10px; }
body.light-mode .project-cta { color: var(--lm-cyan); }
.projects-footer { text-align: center; padding: 36px 100px 0; }
.see-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-size: 0.86rem; font-weight: 600; text-decoration: none; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); transition: all 0.28s var(--ease-out); }
.see-more-btn:hover { border-color: rgba(0,212,255,0.26); color: var(--cyan); background: rgba(0,212,255,0.05); box-shadow: 0 8px 24px rgba(0,212,255,0.09); transform: translateY(-2px); }
body.light-mode .see-more-btn { color: var(--lm-muted); background: rgba(0,100,160,0.03); border-color: rgba(0,100,160,0.12); }
body.light-mode .see-more-btn:hover { color: var(--lm-cyan); border-color: rgba(0,100,160,0.3); background: rgba(0,100,160,0.06); }

/* ── CONTACT ────────────────────────────────────── */
.contact-section { position: relative; z-index: 1; padding: 100px; }
.contact-inner { display: flex; gap: 72px; flex-wrap: wrap; align-items: flex-start; max-width: 1080px; margin: 0 auto; }
.contact-left { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 22px; }
.contact-desc { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); font-weight: 300; }
body.light-mode .contact-desc { color: var(--lm-muted); }
.email-pill { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 50px; font-size: 0.86rem; font-weight: 500; text-decoration: none; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); transition: all 0.28s var(--ease-out); width: fit-content; }
.email-pill:hover { color: var(--cyan); border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); box-shadow: 0 8px 20px rgba(0,212,255,0.08); transform: translateY(-2px); }
.email-pill .material-icons { font-size: 16px; }
body.light-mode .email-pill { color: var(--lm-muted); border-color: rgba(0,100,160,0.12); }
body.light-mode .email-pill:hover { color: var(--lm-cyan); border-color: rgba(0,100,160,0.3); }
.social-links { display: flex; gap: 11px; }
.social-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 17px; border-radius: 10px; font-size: 0.8rem; font-weight: 500; text-decoration: none; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); transition: all 0.26s ease; }
.social-btn:hover { color: var(--text); border-color: rgba(0,212,255,0.2); background: var(--surface-2); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,212,255,0.06); }
body.light-mode .social-btn { color: var(--lm-muted); background: rgba(0,100,160,0.03); border-color: rgba(0,100,160,0.09); }
body.light-mode .social-btn:hover { color: var(--lm-text); border-color: rgba(0,100,160,0.24); }
.contact-right { flex: 1; min-width: 290px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; backdrop-filter: blur(18px); position: relative; overflow: hidden; }
.contact-form::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(0,212,255,0.32), rgba(0,255,204,0.22), transparent); }
body.light-mode .contact-form { background: rgba(255,255,255,0.74); border-color: rgba(0,120,180,0.09); }
body.light-mode .contact-form::before { background: linear-gradient(to right, transparent, rgba(0,100,160,0.22), transparent); }
.field-group { position: relative; }
.field-group input, .field-group textarea { width: 100%; padding: 18px 16px 8px; background: rgba(255,255,255,0.025); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.91rem; font-weight: 400; outline: none; transition: border-color 0.26s ease, box-shadow 0.26s ease; resize: none; }
.field-group textarea { min-height: 125px; padding-top: 22px; }
.field-group label { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); font-size: 0.86rem; color: var(--text-muted); pointer-events: none; transition: all 0.22s var(--ease-out); }
.field-group textarea ~ label { top: 20px; transform: none; }
.field-group input:focus ~ label, .field-group input:not(:placeholder-shown) ~ label, .field-group textarea:focus ~ label, .field-group textarea:not(:placeholder-shown) ~ label { top: 8px; font-size: 0.68rem; color: var(--cyan); letter-spacing: 0.5px; transform: translateY(0); }
.field-group textarea:focus ~ label, .field-group textarea:not(:placeholder-shown) ~ label { top: 6px; }
.field-group input:focus, .field-group textarea:focus { border-color: rgba(0,212,255,0.32); box-shadow: 0 0 0 3px rgba(0,212,255,0.06); background: rgba(0,212,255,0.022); }
body.light-mode .field-group input, body.light-mode .field-group textarea { background: rgba(255,255,255,0.84); border-color: rgba(0,120,180,0.12); color: var(--lm-text); }
body.light-mode .field-group label { color: var(--lm-muted); }
body.light-mode .field-group input:focus ~ label, body.light-mode .field-group input:not(:placeholder-shown) ~ label, body.light-mode .field-group textarea:focus ~ label, body.light-mode .field-group textarea:not(:placeholder-shown) ~ label { color: var(--lm-cyan); }
body.light-mode .field-group input:focus, body.light-mode .field-group textarea:focus { border-color: rgba(0,100,160,0.32); box-shadow: 0 0 0 3px rgba(0,100,160,0.06); }

/* ── FOOTER ─────────────────────────────────────── */
.footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 56px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); position: relative; z-index: 1; }
body.light-mode .footer { color: var(--lm-muted); border-top-color: rgba(0,100,160,0.07); }
.footer-right { display: flex; gap: 22px; }
.footer-right a { text-decoration: none; font-size: 0.76rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); transition: color 0.24s, transform 0.24s; display: inline-block; }
.footer-right a:hover { color: var(--cyan); transform: translateY(-1px); }
body.light-mode .footer-right a:hover { color: var(--lm-cyan); }

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }

/* ── REVEAL ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MAIN FADE ──────────────────────────────────── */
main { animation: fadeIn 0.45s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── HAMBURGER ───────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; z-index: 1100;
  transition: all 0.28s var(--ease-out);
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-soft); border-radius: 2px;
  transition: all 0.28s var(--ease-out);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
body.light-mode .hamburger { border-color: var(--lm-border); }
body.light-mode .hamburger span { background: var(--lm-muted); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { padding: 120px 60px 80px; gap: 56px; }
  .about-section, .contact-section { padding: 80px 60px; }
  .projects-header, .projects-footer { padding-left: 60px; padding-right: 60px; }
  .projects-track { padding-left: 60px; padding-right: 60px; }
}

@media (max-width: 860px) {
  .hero { flex-direction: column; padding: 110px 40px 70px; text-align: center; gap: 48px; }
  .hero-badge, .hero-actions { justify-content: center; }
  .name-line { display: flex; justify-content: center; }
  .hero-typed-wrap { justify-content: center; }
  .about-section { flex-direction: column; padding: 80px 40px; align-items: center; }
  .about-img-col { max-width: 220px; flex: none; }
  .about-img-frame img { margin-top: 0; }
  .about-content-col { min-width: unset; }
  .contact-section { padding: 80px 40px; }
  .contact-inner { gap: 40px; }
  .projects-header, .projects-footer { padding-left: 40px; padding-right: 40px; }
  .projects-track { padding-left: 40px; padding-right: 40px; }
  .photo-frame { width: 280px; height: 280px; }
  .hero-photo { width: 280px; height: 280px; }
  /* Tighten rings on medium screens */
  .photo-ring-1 { inset: -10px; }
  .photo-ring-2 { inset: -20px; }
  .photo-ring-3 { inset: -32px; }
  .chip-1 { right: -8px; top: 22%; }
  .chip-2 { right: -8px; bottom: 22%; }
  .chip-3 { left: -8px; bottom: 14%; }
}

@media (max-width: 700px) {
  /* ── NAV: show hamburger, hide inline links ── */
  .hamburger { display: flex; }
  .nav-right {
    position: fixed; inset: 0; top: 0;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 32px;
    background: rgba(4,7,15,0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    transform: translateX(100%);
    transition: transform 0.38s var(--ease-out);
    z-index: 1050;
  }
  body.light-mode .nav-right {
    background: rgba(244,248,255,0.97);
  }
  .nav-right.open { transform: translateX(0); }
  .nav-right .nav-link { font-size: 1.5rem; font-weight: 500; color: var(--text-soft); }
  body.light-mode .nav-right .nav-link { color: var(--lm-muted); }
  .nav-right .theme-toggle { margin-top: 12px; width: 48px; height: 48px; font-size: 1.2rem; }

  /* ── HEADER ── */
  header { padding: 14px 20px; }

  /* ── HERO ── */
  .hero { padding: 90px 20px 50px; gap: 36px; }
  .hero-name { font-size: clamp(3rem, 14vw, 5rem); letter-spacing: -1.5px; }
  .hero-greeting { font-size: 0.72rem; letter-spacing: 2.5px; }
  #element { font-size: 1rem; }
  .typed-dash { font-size: 1rem; }
  .hero-typed-wrap { margin-bottom: 28px; }
  .btn-primary, .btn-ghost { padding: 13px 26px; font-size: 0.95rem; }
  .hero-actions { gap: 10px; }

  /* ── PHOTO FRAME ── */
  .photo-frame { width: 230px; height: 230px; }
  .hero-photo { width: 230px; height: 230px; }
  .photo-ring-1 { inset: -8px; }
  .photo-ring-2 { inset: -16px; }
  .photo-ring-3 { inset: -26px; }

  /* ── FLOAT CHIPS ── */
  .float-chip { font-size: 0.7rem; padding: 5px 10px; gap: 4px; }
  .chip-1 { right: -12px; top: 16%; }
  .chip-2 { right: -12px; bottom: 18%; }
  .chip-3 { left: -12px; bottom: 10%; }

  /* ── ABOUT ── */
  .about-section { padding: 60px 20px; }
  .about-body { font-size: 0.97rem; }
  .info-cards-section { flex-direction: column; }
  .info-card { padding: 18px; }
  /* Touch-friendly tool icons */
  .tool-icon { width: 50px; height: 50px; border-radius: 14px; }
  .tool-icon img { width: 26px; height: 26px; }

  /* ── PROJECTS ── */
  .projects-section { padding-top: 60px; }
  .projects-header, .projects-footer { padding-left: 20px; padding-right: 20px; }
  .projects-track { padding-left: 16px; padding-right: 16px; gap: 14px; }
  .project-card { flex: 0 0 calc(85vw); max-width: 320px; }
  /* Disable fade edges on small screens so first card is fully visible */
  .projects-track-wrap::before, .projects-track-wrap::after { width: 24px; }

  /* ── CONTACT ── */
  .contact-section { padding: 60px 20px; }
  .contact-form { padding: 22px 16px; }
  .contact-email a { font-size: 0.82rem; word-break: break-all; white-space: normal; }
  .field-group input, .field-group textarea { font-size: 16px; } /* prevents iOS zoom */
  .send-btn { padding: 16px; font-size: 1rem; }
  .social-links { flex-wrap: wrap; }
  .social-btn { padding: 12px 18px; min-height: 44px; }

  /* ── SECTION HEADINGS ── */
  .section-heading { font-size: clamp(1.9rem, 7vw, 2.6rem); }

  /* ── FOOTER ── */
  .footer { flex-direction: column; gap: 11px; text-align: center; padding: 16px 20px; }

  /* ── BLOBS: smaller on mobile ── */
  .blob-1 { width: 260px; height: 260px; }
  .blob-2 { width: 200px; height: 200px; }
  .blob-3 { width: 180px; height: 180px; }
}

/* ── TOUCH DEVICES: hide custom cursor ── */
@media (pointer: coarse) {
  body { cursor: auto !important; }
  .cursor-orb, .cursor-dot { display: none !important; }
}

/* ── CONTACT EMAIL ──────────────────────────────── */
.contact-email a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: all 0.28s var(--ease-out);
  width: fit-content;
}
.contact-email a:hover {
  color: var(--cyan);
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 8px 20px rgba(0,212,255,0.08);
  transform: translateY(-2px);
}
.contact-email a .material-icons { font-size: 16px; }
body.light-mode .contact-email a { color: var(--lm-muted); border-color: rgba(0,100,160,0.12); }
body.light-mode .contact-email a:hover { color: var(--lm-cyan); border-color: rgba(0,100,160,0.3); }

/* ── LOGO NAME ───────────────────────────────────── */
.logo-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.55rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.3px;
  line-height: 1;
  margin-left: 8px;
  transition: opacity 0.25s ease;
}
.logo-link:hover .logo-name { opacity: 0.85; }
body.light-mode .logo-name {
  background: linear-gradient(135deg, var(--lm-cyan), var(--lm-teal));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── FONT SIZE BOOST — non-hero sections ─────────── */

/* About section */
.about-body { font-size: 1.08rem; }
.info-card h3 { font-size: 0.88rem; }
.info-card p { font-size: 0.97rem; }
.tools-heading { font-size: 0.8rem; }
.tools-label { font-size: 0.76rem; }
.section-eyebrow { font-size: 0.8rem; }
.section-heading { font-size: clamp(2.3rem, 4vw, 3.3rem); }

/* Projects section */
.project-body h3 { font-size: 1.08rem; }
.project-body p { font-size: 0.95rem; }
.project-cta { font-size: 0.88rem; }
.project-tag { font-size: 0.76rem; }
.section-sub { font-size: 0.88rem; }
.see-more-btn { font-size: 0.95rem; }

/* Contact section */
.contact-desc { font-size: 1.08rem; }
.email-pill { font-size: 0.97rem; }
.contact-email a { font-size: 0.97rem; }
.social-btn { font-size: 0.9rem; }
.field-group input,
.field-group textarea { font-size: 1rem; }
.field-group label { font-size: 0.95rem; }
.btn-primary,
.btn-ghost,
.send-btn { font-size: 1rem; }

/* Footer */
.footer { font-size: 0.9rem; }
.footer-right a { font-size: 0.84rem; }