/* ============================================================
   YOGESH CENTURY B.K. — PORTFOLIO  v2
   Outfit + JetBrains Mono · Dark + Light Themes
   ============================================================ */

/* ── DARK MODE TOKENS (default) ──────────────────────────── */
:root {
  --bg:          #060a12;
  --bg-alt:      #0b1120;
  --card:        #0f1829;
  --card-2:      #141e30;
  --border:      rgba(148,163,184,0.1);
  --border-h:    rgba(148,163,184,0.22);

  --blue:        #38bdf8;
  --blue-dim:    rgba(56,189,248,0.12);
  --green:       #34d399;
  --green-dim:   rgba(52,211,153,0.12);
  --purple:      #a78bfa;
  --purple-dim:  rgba(167,139,250,0.12);
  --orange:      #fb923c;

  --tx-1: #f1f5f9;
  --tx-2: #cbd5e1;
  --tx-3: #94a3b8;
  --tx-4: #475569;

  --font-ui:   'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --rad:    14px;
  --rad-lg: 22px;
  --ease:   cubic-bezier(0.4,0,0.2,1);
  --dur:    0.3s;

  /* Theme toggle button */
  --toggle-bg:     rgba(255,255,255,0.07);
  --toggle-border: rgba(255,255,255,0.12);
  --toggle-icon:   '☀️';
  --shadow-card:   0 4px 24px rgba(0,0,0,0.35);
}

/* ── LIGHT MODE TOKENS ───────────────────────────────────── */
html[data-theme="light"] {
  /* Warm off-white backgrounds — easy on the eyes */
  --bg:          #f5f0eb;
  --bg-alt:      #ede8e2;
  --card:        #ffffff;
  --card-2:      #f8f4f0;
  --border:      rgba(120,90,60,0.12);
  --border-h:    rgba(120,90,60,0.26);

  /* Richer accent tones for light bg */
  --blue:        #0284c7;
  --blue-dim:    rgba(2,132,199,0.1);
  --green:       #059669;
  --green-dim:   rgba(5,150,105,0.1);
  --purple:      #7c3aed;
  --purple-dim:  rgba(124,58,237,0.1);
  --orange:      #ea580c;

  /* Warm dark text — readable, never harsh */
  --tx-1: #1c1410;
  --tx-2: #3d2e22;
  --tx-3: #7a6253;
  --tx-4: #b09a88;

  /* Light-mode button hint */
  --toggle-bg:     rgba(0,0,0,0.06);
  --toggle-border: rgba(0,0,0,0.12);
  --toggle-icon:   '🌙';
  --shadow-card:   0 4px 24px rgba(120,80,40,0.1);
}

/* ── SMOOTH THEME TRANSITION ─────────────────────────────── */
*, *::before, *::after {
  transition-property: background-color, border-color, color, box-shadow, fill;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.4,0,0.2,1);
}
/* But DON'T transition transforms/opacity (breaks animations) */
.reveal, .name-line, .phone-wrap, #bg-canvas,
.status-dot, .scroll-bar, .avatar-ring, .avatar-inner {
  transition-property: opacity, transform, background-color, border-color, color;
}

/* ── RESET ───────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tx-2);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── BACKGROUND ──────────────────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.4;
}
.noise-overlay {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.section    { padding: 110px 0; position: relative; z-index: 2; }
.bg-alt     { background: var(--bg-alt); }

/* ── SHARED SECTION LABELS ───────────────────────────────── */
.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  opacity: 0.9;
}
.sec-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--tx-1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 56px;
}
.sec-sub {
  font-size: 1.05rem;
  color: var(--tx-3);
  margin-top: -44px;
  margin-bottom: 52px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  border-radius: var(--rad);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: #060a12;
  box-shadow: 0 0 24px rgba(56,189,248,0.3);
}
.btn-primary:hover { background: #7dd3fc; box-shadow: 0 0 40px rgba(56,189,248,0.45); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--tx-1);
  border: 1.5px solid var(--border-h);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 44px;
  transition: all var(--dur) var(--ease);
}
.navbar.scrolled {
  background: rgba(6,10,18,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 44px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem; font-weight: 700;
  color: var(--tx-1);
}
.logo-bracket { color: var(--blue); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-link {
  font-size: 0.9rem; font-weight: 500;
  color: var(--tx-3);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--tx-1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--tx-1); border-radius: 2px; transition: var(--dur) var(--ease); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ── THEME TOGGLE ────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--toggle-bg);
  border: 1.5px solid var(--toggle-border);
  border-radius: 100px;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tx-2);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56,189,248,0.2);
}
.toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-block;
}
.toggle-label-dark  { display: inline; }
.toggle-label-light { display: none; }
html[data-theme="light"] .toggle-label-dark  { display: none; }
html[data-theme="light"] .toggle-label-light { display: inline; }

/* Light mode canvas/noise */
html[data-theme="light"] #bg-canvas { opacity: 0.1; }
html[data-theme="light"] .noise-overlay { opacity: 0.15; }

/* Light mode phone */
html[data-theme="light"] .phone-shell { background: #fff; border-color: rgba(2,132,199,0.22); box-shadow: 0 40px 80px rgba(120,80,40,0.12); }
html[data-theme="light"] .phone-inner { background: #ede8e2; }
html[data-theme="light"] .phone-pill  { background: #d6cfc7; }

/* Light mode mock screens */
html[data-theme="light"] .mock-screen { background: #f8f4f0; border-color: rgba(0,0,0,0.07); box-shadow: 0 0 0 8px #ede8e2, 0 0 0 9px rgba(0,0,0,0.04); }
html[data-theme="light"] .trip-card   { background: linear-gradient(135deg,#dbeafe,#bfdbfe); border-color: rgba(2,132,199,0.3); }
html[data-theme="light"] .geo-card    { background: linear-gradient(135deg,#d1fae5,#a7f3d0); border-color: rgba(5,150,105,0.3); }
html[data-theme="light"] .qpay-card   { background: linear-gradient(135deg,#ede9fe,#ddd6fe); border-color: rgba(124,58,237,0.3); }
html[data-theme="light"] .mhc-label   { color: var(--tx-3); }
html[data-theme="light"] .mhc-val     { color: var(--tx-1); }
html[data-theme="light"] .mock-chip   { background: rgba(0,0,0,0.05); border-color: var(--border); color: var(--tx-2); }
html[data-theme="light"] .mock-rating-bar { border-top-color: var(--border); }

/* Light mode project visuals */
html[data-theme="light"] .trip-visual { background: linear-gradient(135deg,#e0f2fe,#f0f9ff); border-color: rgba(2,132,199,0.18); }
html[data-theme="light"] .geo-visual  { background: linear-gradient(135deg,#dcfce7,#f0fdf4); border-color: rgba(5,150,105,0.18); }
html[data-theme="light"] .qpay-visual { background: linear-gradient(135deg,#ede9fe,#faf5ff); border-color: rgba(124,58,237,0.18); }

/* Light mode navbar scrolled */
html[data-theme="light"] .navbar.scrolled { background: rgba(245,240,235,0.92); border-bottom-color: var(--border); }

/* Light mode code syntax */
html[data-theme="light"] .cp-line  { color: var(--tx-3); }
html[data-theme="light"] .cp-kw    { color: #7c3aed; }
html[data-theme="light"] .cp-type  { color: #0284c7; }
html[data-theme="light"] .cp-proto { color: #059669; }
html[data-theme="light"] .cp-str   { color: #b45309; }
html[data-theme="light"] .ccb-line .kw     { color: #7c3aed; }
html[data-theme="light"] .ccb-line .str    { color: #b45309; }
html[data-theme="light"] .ccb-line .bool   { color: #be185d; }
html[data-theme="light"] .ccb-line .fn     { color: #0284c7; }
html[data-theme="light"] .ccb-line .method { color: #059669; }

/* Light mode pills & chips */
html[data-theme="light"] .pill-hi       { background: rgba(2,132,199,0.1); border-color: rgba(2,132,199,0.25); }
html[data-theme="light"] .pill          { background: #f0ebe5; border-color: var(--border); }
html[data-theme="light"] .story-chips span { background: rgba(2,132,199,0.1); border-color: rgba(2,132,199,0.25); }
html[data-theme="light"] .tl-stack span   { background: rgba(2,132,199,0.09); border-color: rgba(2,132,199,0.2); }
html[data-theme="light"] .badge          { border-color: rgba(120,90,60,0.2); color: var(--tx-3); }
html[data-theme="light"] .badge--green   { background: rgba(5,150,105,0.1); border-color: rgba(5,150,105,0.35); }

/* Light mode avatar */
html[data-theme="light"] .avatar-inner { background: #fff; }

/* Light mode scroll indicator */
html[data-theme="light"] .scroll-bar { background: linear-gradient(to bottom, #0284c7, transparent); }

/* Light mode hero btn-primary */
html[data-theme="light"] .btn-primary { background: #0284c7; color: #fff; box-shadow: 0 0 24px rgba(2,132,199,0.3); }
html[data-theme="light"] .btn-primary:hover { background: #0369a1; box-shadow: 0 0 36px rgba(2,132,199,0.4); }

/* Light mode store pills */
html[data-theme="light"] .ios-pill     { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.15); color: var(--tx-2); }
html[data-theme="light"] .android-pill { background: rgba(5,150,105,0.08); border-color: rgba(5,150,105,0.3); }
html[data-theme="light"] .web-pill     { background: rgba(2,132,199,0.08); border-color: rgba(2,132,199,0.3); }

/* Light mode proj-tech-row */
html[data-theme="light"] .proj-tech-row span { background: #f0ebe5; border-color: var(--border); }

/* Light mode tl-card */
html[data-theme="light"] .tl-card { box-shadow: 0 2px 12px rgba(120,80,40,0.08); }

/* Light mode contact cards */
html[data-theme="light"] .cta-code-block { background: var(--bg-alt); }


/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 60px;
  padding: 140px 44px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; z-index: 2;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--green);
  margin-bottom: 28px;
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero-name {
  font-size: clamp(3.5rem, 6.5vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--tx-1);
  display: flex; flex-direction: column; gap: 2px;
}
.name-line { display: block; opacity: 0; transform: translateY(28px); animation: slide-up 0.65s var(--ease) forwards; }
.name-line:nth-child(1) { animation-delay: 0.1s; }
.name-line:nth-child(2) { animation-delay: 0.22s; }
.name-line:nth-child(3) { animation-delay: 0.34s; }
.accent-text { color: var(--blue); }
@keyframes slide-up { to { opacity:1; transform:translateY(0); } }

.hero-role {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 1.05rem; font-weight: 500;
  color: var(--purple);
}
.role-slash { opacity: 0.5; }
.cursor-blink { animation: blink 1s infinite; color: var(--blue); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--tx-2);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat-val { display: block; font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-lbl { font-size: 0.78rem; font-weight: 500; color: var(--tx-3); letter-spacing: 0.04em; margin-top: 4px; }
.stat-sep { width: 1px; height: 38px; background: var(--border); }

/* Hero phone */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-wrap { position: relative; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-18px) rotate(-2deg)} }

.phone-shell {
  width: 270px; height: 540px;
  background: var(--card);
  border-radius: 44px;
  border: 2px solid rgba(56,189,248,0.18);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden; position: relative;
}
.phone-inner {
  position: absolute; inset: 10px;
  background: var(--bg-alt);
  border-radius: 36px;
  padding: 44px 18px 20px;
  overflow: hidden;
}
.phone-pill {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: var(--card);
  border-radius: 20px;
}
.app-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 20px; }
.app-tile {
  aspect-ratio: 1; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border);
}
.c-green  { background: var(--green-dim);  border-color: rgba(52,211,153,.2); }
.c-blue   { background: var(--blue-dim);   border-color: rgba(56,189,248,.2); }
.c-purple { background: var(--purple-dim); border-color: rgba(167,139,250,.2); }
.c-orange { background: rgba(251,146,60,.12); border-color: rgba(251,146,60,.2); }

.code-preview { font-family: var(--font-mono); font-size: 0.62rem; line-height: 1.7; }
.cp-line { color: var(--tx-3); white-space: nowrap; }
.cp-line.indent  { padding-left: 12px; }
.cp-line.indent2 { padding-left: 24px; }
.cp-kw    { color: #c792ea; }
.cp-type  { color: var(--blue); }
.cp-proto { color: var(--green); }
.cp-br    { color: var(--tx-3); }
.cp-str   { color: #c3e88d; }

.phone-halo {
  position: absolute; inset: -40px; z-index: -1;
  background: radial-gradient(ellipse at 50% 60%, rgba(56,189,248,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--tx-4); letter-spacing: 0.12em;
  animation: fade-in 1s 1.5s both;
}
.scroll-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scr 2s infinite;
}
@keyframes scr { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@keyframes fade-in { from{opacity:0} to{opacity:1} }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: start;
}

.about-sidebar { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.avatar-ring {
  width: 200px; height: 200px; border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--blue), var(--purple), var(--green), var(--blue));
  padding: 3px;
  animation: spin 8s linear infinite;
  overflow: hidden; /* ← ADD THIS */
  flex-shrink: 0;   /* ← ADD THIS (prevents squishing) */
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--card);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  animation: spin-reverse 8s linear infinite;
  gap: 4px;
  overflow: hidden;
  flex-shrink: 0; /* ← ADD THIS */
}
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
.avatar-initials { font-size: 2.8rem; font-weight: 800; color: var(--blue); line-height: 1; }
.avatar-sub { font-size: 0.72rem; color: var(--tx-4); }

.quick-facts {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.qf-row { display: flex; align-items: flex-start; gap: 12px; }
.qf-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.qf-label { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--tx-4); letter-spacing: 0.07em; margin-bottom: 2px; }
.qf-value { font-size: 0.9rem; font-weight: 600; color: var(--tx-1); }

.about-socials { display: flex; gap: 12px; }
.soc-btn {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-3); transition: all var(--dur) var(--ease);
}
.soc-btn svg { width: 18px; height: 18px; }
.soc-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(56,189,248,0.15); }

/* Story blocks */
.about-story { display: flex; flex-direction: column; gap: 0; }
.story-block {
  display: flex; gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.story-block:first-child { padding-top: 0; }
.story-block:last-of-type { border-bottom: none; }

.story-num {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  color: var(--blue); opacity: 0.5;
  padding-top: 5px;
  flex-shrink: 0;
  width: 24px;
}
.story-text h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--tx-1);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.story-text p {
  font-size: 1rem;
  color: var(--tx-2);
  line-height: 1.78;
}
.story-text strong { color: var(--tx-1); font-weight: 600; }

.story-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 28px;
}
.story-chips span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--blue-dim);
  border: 1px solid rgba(56,189,248,0.25);
  color: var(--blue);
  font-weight: 500;
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute; left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), var(--purple), transparent);
}
.tl-item { position: relative; margin-bottom: 48px; padding-left: 40px; }
.tl-dot {
  position: absolute; left: -26px; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--tx-4);
  background: var(--bg-alt);
}
.tl-dot--active { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 14px rgba(56,189,248,0.6); }
.tl-date {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--tx-4); letter-spacing: 0.05em; margin-bottom: 12px;
}
.tl-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rad-lg); padding: 28px;
  transition: all var(--dur) var(--ease);
}
.tl-card:hover { border-color: var(--border-h); box-shadow: 0 0 40px rgba(56,189,248,0.08); transform: translateX(4px); }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tl-title { font-size: 1.15rem; font-weight: 700; color: var(--tx-1); letter-spacing: -0.02em; }
.tl-company { font-size: 0.9rem; font-weight: 500; color: var(--purple); margin-top: 3px; }
.tl-list { padding-left: 18px; list-style: disc; margin-bottom: 16px; }
.tl-list li { font-size: 0.95rem; color: var(--tx-2); margin-bottom: 8px; line-height: 1.65; }
.tl-list li strong { color: var(--tx-1); font-weight: 600; }
.tl-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-stack span {
  font-family: var(--font-mono); font-size: 0.73rem;
  padding: 3px 10px; border-radius: 6px;
  background: var(--blue-dim); border: 1px solid rgba(56,189,248,0.2);
  color: var(--blue); font-weight: 500;
}
.badge {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border-h);
  color: var(--tx-3); white-space: nowrap; flex-shrink: 0;
}
.badge--green { border-color: rgba(52,211,153,.4); color: var(--green); background: var(--green-dim); }

/* ── PROJECTS ────────────────────────────────────────────── */
.projects-list { display: flex; flex-direction: column; gap: 80px; }

.proj-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.proj-card--flip { direction: rtl; }
.proj-card--flip > * { direction: ltr; }

/* Mockup visual panel */
.proj-visual {
  position: relative;
  border-radius: var(--rad-lg);
  padding: 48px 36px;
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
  overflow: hidden;
}
.trip-visual  { background: linear-gradient(135deg, #0c1f35 0%, #071525 100%); border: 1px solid rgba(56,189,248,0.15); }
.geo-visual   { background: linear-gradient(135deg, #0b2018 0%, #061410 100%); border: 1px solid rgba(52,211,153,0.15); }
.qpay-visual  { background: linear-gradient(135deg, #160c2a 0%, #0d0818 100%); border: 1px solid rgba(167,139,250,0.15); }

.visual-glow {
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%; filter: blur(60px);
  pointer-events: none; opacity: 0.35;
}
.trip-glow  { background: var(--blue); }
.geo-glow   { background: var(--green); }
.qpay-glow  { background: var(--purple); }

/* Phone mockup inside card */
.mock-phone {
  width: 220px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
  position: relative; z-index: 1;
}
.mock-screen {
  background: #0a0f1a;
  border-radius: 32px;
  border: 2px solid rgba(255,255,255,0.08);
  padding: 40px 16px 16px;
  overflow: hidden;
  box-shadow: 0 0 0 8px #0d1220, 0 0 0 9px rgba(255,255,255,0.04);
}
.mock-notch {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #0a0f1a; border-radius: 12px;
  z-index: 2;
}

.mock-appbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mock-logo-text { font-size: 0.75rem; font-weight: 700; color: var(--tx-1); }
.mock-tag-sm { font-family: var(--font-mono); font-size: 0.58rem; color: var(--tx-4); }

.mock-hero-card {
  border-radius: 12px; padding: 14px; margin-bottom: 12px;
}
.trip-card  { background: linear-gradient(135deg, #1e3a5f, #0f2040); border: 1px solid rgba(56,189,248,0.2); }
.geo-card   { background: linear-gradient(135deg, #0f3022, #071a10); border: 1px solid rgba(52,211,153,0.2); }
.qpay-card  { background: linear-gradient(135deg, #2a1854, #160c30); border: 1px solid rgba(167,139,250,0.2); }
.mhc-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--tx-4); letter-spacing: 0.05em; margin-bottom: 4px; }
.mhc-val   { font-size: 0.9rem; font-weight: 700; color: var(--tx-1); margin-bottom: 2px; }
.mhc-sub   { font-size: 0.62rem; color: var(--tx-3); }

.mock-row { display: flex; gap: 6px; margin-bottom: 12px; }
.mock-chip {
  flex: 1; text-align: center;
  font-size: 0.6rem; font-weight: 600;
  padding: 6px 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--tx-2);
}

.mock-rating-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.65rem; color: var(--tx-3);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.stars { font-size: 0.7rem; }
.rating-val { font-family: var(--font-mono); font-size: 0.6rem; }

/* Project info panel */
.proj-info { display: flex; flex-direction: column; gap: 18px; }

.proj-meta-row { display: flex; align-items: center; gap: 10px; }
.proj-company-lbl { font-family: var(--font-mono); font-size: 0.78rem; color: var(--tx-4); font-weight: 500; }
.proj-badge {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 3px 12px; border-radius: 100px;
  font-weight: 600; letter-spacing: 0.02em;
}
.blue-badge   { background: var(--blue-dim);   border: 1px solid rgba(56,189,248,0.3);   color: var(--blue); }
.green-badge  { background: var(--green-dim);  border: 1px solid rgba(52,211,153,0.3);   color: var(--green); }
.purple-badge { background: var(--purple-dim); border: 1px solid rgba(167,139,250,0.3);  color: var(--purple); }

.proj-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--tx-1);
  letter-spacing: -0.03em; line-height: 1.15;
}
.proj-nep { font-size: 0.6em; color: var(--tx-3); font-weight: 400; }

.proj-desc { font-size: 1rem; color: var(--tx-2); line-height: 1.78; }

.proj-stats-row { display: flex; gap: 24px; flex-wrap: wrap; }
.ps-item { display: flex; flex-direction: column; gap: 3px; }
.ps-val { font-size: 1.3rem; font-weight: 800; color: var(--tx-1); line-height: 1; }
.ps-lbl { font-family: var(--font-mono); font-size: 0.68rem; color: var(--tx-4); }

.proj-tech-row { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-tech-row span {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  padding: 5px 12px; border-radius: 8px;
  background: var(--card-2); border: 1px solid var(--border);
  color: var(--tx-2);
}

.proj-store-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.store-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--rad);
  font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.store-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.ios-pill     { color: var(--tx-1);  border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }
.android-pill { color: var(--green); border-color: rgba(52,211,153,0.3);   background: var(--green-dim); }
.web-pill     { color: var(--blue);  border-color: rgba(56,189,248,0.3);   background: var(--blue-dim); }
.ios-pill:hover     { border-color: var(--tx-1);  background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.android-pill:hover { border-color: var(--green); background: rgba(52,211,153,0.18);  transform: translateY(-2px); }
.web-pill:hover     { border-color: var(--blue);  background: rgba(56,189,248,0.18);  transform: translateY(-2px); }

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.skill-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rad-lg); padding: 28px;
  transition: all var(--dur) var(--ease);
}
.skill-card:hover { border-color: var(--border-h); box-shadow: 0 0 30px rgba(56,189,248,0.07); }
.sk-icon { font-size: 1.8rem; margin-bottom: 14px; }
.skill-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--tx-1); margin-bottom: 16px; letter-spacing: -0.02em; }
.sk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-hi {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  padding: 5px 12px; border-radius: 8px;
  background: var(--blue-dim); border: 1px solid rgba(56,189,248,0.25);
  color: var(--blue);
}
.pill {
  font-family: var(--font-mono); font-size: 0.78rem;
  padding: 5px 12px; border-radius: 8px;
  background: var(--card-2); border: 1px solid var(--border);
  color: var(--tx-3);
}

/* ── ACHIEVEMENTS ────────────────────────────────────────── */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.ach-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rad-lg); padding: 28px;
  transition: all var(--dur) var(--ease);
}
.ach-card:hover { border-color: var(--border-h); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.ach-emo { font-size: 2.2rem; margin-bottom: 14px; }
.ach-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--tx-1); margin-bottom: 10px; letter-spacing: -0.02em; }
.ach-card p { font-size: 0.95rem; color: var(--tx-2); line-height: 1.68; }
.ach-card strong { color: var(--blue); font-weight: 600; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.con-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rad); transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.con-card:not(.no-hover):hover { border-color: var(--border-h); transform: translateX(5px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.con-icon { font-size: 1.4rem; flex-shrink: 0; }
.con-text { flex: 1; }
.con-lbl { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--tx-4); letter-spacing: 0.06em; margin-bottom: 3px; }
.con-val { font-size: 0.95rem; font-weight: 500; color: var(--tx-1); }
a.con-card:hover .con-val { color: var(--blue); }
.con-arrow { font-size: 1.2rem; color: var(--tx-4); margin-left: auto; transition: transform var(--dur) var(--ease); }
.con-card:hover .con-arrow { transform: translateX(4px); color: var(--blue); }

.cta-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--rad-lg); padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.cta-code-block {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 2;
}
.ccb-line.comment { color: var(--tx-4); font-style: italic; }
.ccb-line .kw     { color: #c792ea; }
.ccb-line .str    { color: #c3e88d; }
.ccb-line .bool   { color: #ff9cac; }
.ccb-line .fn     { color: var(--blue); }
.ccb-line .method { color: var(--green); }
.ccb-line .comment { color: var(--tx-4); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { padding: 40px 0; border-top: 1px solid var(--border); position: relative; z-index: 2; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-logo { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--tx-1); }
.footer-copy { font-size: 0.92rem; color: var(--tx-3); }
.footer-year { font-family: var(--font-mono); font-size: 0.75rem; color: var(--tx-4); }

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

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 130px 28px 80px; text-align: center; }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .scroll-hint { display: none; }

  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-sidebar { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .quick-facts { max-width: 340px; }

  .proj-card { grid-template-columns: 1fr; gap: 40px; }
  .proj-card--flip { direction: ltr; }

  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .navbar.scrolled { padding: 12px 20px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
    background: rgba(6,10,18,0.97); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 32px;
    border-left: 1px solid var(--border);
    transition: right 0.4s var(--ease); z-index: 200; padding: 40px;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.05rem; }
  .hamburger { display: flex; z-index: 201; }

  .section { padding: 80px 0; }
  .hero { padding: 120px 20px 60px; }

  .proj-visual { padding: 36px 24px; min-height: 340px; }
  .mock-phone { width: 180px; }

  .skills-grid, .ach-grid { grid-template-columns: 1fr; }

  .proj-stats-row { gap: 16px; }
  .proj-store-btns { gap: 8px; }
  .store-pill { padding: 9px 14px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .stat-val { font-size: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .about-sidebar { flex-direction: column; align-items: center; }
  .hero-role { justify-content: center; }
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top; /* ← adjust to "center" or "top" to frame your face */
  display: block;
  flex-shrink: 0; /* ← ADD THIS */
}
