/* ============================================================
   FABY VANYO — Portfolio · Vibrant + Light/Dark + Animations
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- DARK THEME (default) ---- */
:root {
  --footer-bg: var(--bg);
  --bg: #080810;
  --bg2: #0e0e1a;
  --surface: #131320;
  --surface2: #1a1a2e;
  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --violet-dim: #6d28d9;
  --pink: #ec4899;
  --pink-light: #f472b6;
  --cyan: #06b6d4;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --green: #10b981;
  --text: #f1f0ff;
  --text-muted: #9090b8;
  --text-dim: #4a4a70;
  --border: rgba(139,92,246,0.2);
  --border-dim: rgba(255,255,255,0.06);
  --nav-bg: rgba(8,8,16,0.88);
  --shadow-card: 0 4px 30px rgba(0,0,0,0.35);
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
  --bg: #f5f4ff;
  --bg2: #ede9fe;
  --surface: #ffffff;
  --surface2: #f3f0ff;
  --text: #1a1040;
  --text-muted: #5a5280;
  --text-dim: #9590b8;
  --border: rgba(109,40,217,0.18);
  --border-dim: rgba(109,40,217,0.09);
  --shadow-card: 0 4px 30px rgba(109,40,217,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.dark-section { background: var(--bg2); transition: background 0.4s ease; }

/* ---- NAV ---- */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,16,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] .nav-header {
  background: rgba(220, 210, 255, 0.97);
  border-bottom: 1px solid rgba(139,92,246,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 130px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s;
}

.logo:hover .logo-img {
  opacity: 0.85;
  transform: scale(1.03);
}

.nav-links { display: flex; gap: 36px; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
}

.theme-toggle:hover {
  border-color: var(--violet-light);
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 0 16px rgba(139,92,246,0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.16) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float-orb 9s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float-orb 12s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.06); }
  66% { transform: translate(-20px,30px) scale(0.94); }
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(120deg, var(--violet-light), var(--pink-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradient-shift 6s ease infinite;
  margin-bottom: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '✦';
  font-style: normal;
  font-size: 0.6rem;
  opacity: 0.7;
  flex-shrink: 0;
  -webkit-text-fill-color: unset;
  background: none;
}

.hero-roles {
  font-size: 1rem;
  font-weight: 600;
  color: var(--violet-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-text h1 .accent {
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--pink-light) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-dim), var(--pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--violet-light);
  border: 1.5px solid rgba(139,92,246,0.4);
}
.btn-outline:hover {
  background: rgba(139,92,246,0.1);
  border-color: var(--violet-light);
  transform: translateY(-2px);
}

/* Hero badge */
.hero-badge { flex-shrink: 0; }

.badge-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.badge-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--violet), var(--pink), var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin-ring 8s linear infinite;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, var(--bg) 70%);
  transition: background 0.4s;
}

.badge-ring span {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet-light), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.badge-ring small {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.section-title.light { color: var(--text); }

.section-title-bar {
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  margin-bottom: 48px;
}
.section-title-bar.gold { background: linear-gradient(90deg, var(--gold), var(--pink-light)); }
.section-title-bar.center { margin-left: auto; margin-right: auto; }

.section-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 48px; }
.section-sub.light { color: var(--violet-light); opacity: 0.9; }

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

.about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 1rem; line-height: 1.85; }
.about-text p strong { color: var(--text); }
.about-langs { display: flex; gap: 10px; margin-top: 24px; }

.tag {
  background: rgba(139,92,246,0.1);
  color: var(--violet-light);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  transform: scaleX(0);
  transition: transform 0.35s;
}

.stat-card:hover { border-color: var(--border); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(139,92,246,0.15); }
.stat-card:hover::before { transform: scaleX(1); }

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet-light), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

/* ---- PROJECTS ---- */
.projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 24px;
  padding: 36px;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  opacity: 0;
  transition: opacity 0.35s;
}

.project-card:hover { transform: translateY(-8px) scale(1.01); }
.project-card:hover::before { opacity: 1; }

.project-card:nth-child(1)::before { background: linear-gradient(135deg,var(--violet),var(--pink)); -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; }
.project-card:nth-child(1):hover { box-shadow: 0 24px 60px rgba(139,92,246,0.2); }

.project-card:nth-child(2)::before { background: linear-gradient(135deg,var(--cyan),var(--violet)); -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; }
.project-card:nth-child(2):hover { box-shadow: 0 24px 60px rgba(6,182,212,0.15); }

.project-card:nth-child(3)::before { background: linear-gradient(135deg,var(--gold),var(--pink)); -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; }
.project-card:nth-child(3):hover { box-shadow: 0 24px 60px rgba(245,158,11,0.15); }

.project-card:nth-child(4)::before { background: linear-gradient(135deg,var(--green),var(--cyan)); -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; }
.project-card:nth-child(4):hover { box-shadow: 0 24px 60px rgba(16,185,129,0.15); }

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--surface) 60%, rgba(139,92,246,0.06) 100%);
}

/* Project screenshot */
.project-screenshot {
  position: relative;
  width: calc(100% + 72px);
  margin: -36px -36px 28px -36px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  aspect-ratio: 16/8;
}

.project-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-screenshot img { transform: scale(1.04); }

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,8,16,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .screenshot-overlay { opacity: 1; }
.project-body { display: flex; flex-direction: column; }
.project-card.no-screenshot { display: flex; align-items: stretch; }
.project-card.no-screenshot .project-body { justify-content: space-between; }

/* Phone mockup card */
.project-card--phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  overflow: visible;
}

.project-card--phone .project-body {
  flex: 1;
  min-width: 0;
}

.phone-mockup {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.phone-frame {
  width: 130px;
  background: #1a1a2e;
  border-radius: 28px;
  border: 3px solid rgba(139,92,246,0.5);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.2),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  padding: 14px 8px 10px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover .phone-frame {
  transform: translateY(-6px) rotate(1deg);
  box-shadow:
    0 0 0 1px rgba(167,139,250,0.4),
    0 30px 70px rgba(139,92,246,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.phone-notch {
  width: 40px;
  height: 8px;
  background: #0d0d18;
  border-radius: 6px;
  margin: 0 auto 8px;
  position: relative;
}

.phone-notch::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139,92,246,0.5);
  right: 4px;
  top: 1px;
}

.phone-screen {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 390/844;
  width: 100%;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .phone-screen img { transform: scale(1.03); }

.phone-home-bar {
  width: 36px;
  height: 4px;
  background: rgba(139,92,246,0.4);
  border-radius: 4px;
  margin: 8px auto 0;
}

@media (max-width: 640px) {
  .project-card--phone {
    flex-direction: column;
  }
  .phone-frame { width: 110px; }
}

/* Book mockup card */
.project-card--book {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.project-card--book .project-body { flex: 1; min-width: 0; }

.book-mockup {
  flex-shrink: 0;
  perspective: 600px;
  padding: 10px 16px 10px 6px;
}

.book-cover {
  position: relative;
  width: 100px;
  transform: rotateY(-18deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    4px 6px 20px rgba(0,0,0,0.5),
    -2px 0 6px rgba(0,0,0,0.3);
}

.project-card:hover .book-cover {
  transform: rotateY(-8deg) translateY(-4px);
  box-shadow:
    8px 12px 32px rgba(0,0,0,0.5),
    0 0 30px rgba(245,158,11,0.2),
    -4px 0 8px rgba(0,0,0,0.3);
}

.book-cover img {
  display: block;
  width: 100%;
  border-radius: 2px 5px 5px 2px;
}

.book-spine {
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, #1a1040, #2d1b69);
  border-radius: 2px 0 0 2px;
  transform: rotateY(90deg);
  transform-origin: right center;
}

@media (max-width: 640px) {
  .project-card--book { flex-direction: column; }
  .book-cover { width: 80px; }
}

.project-icon {
  font-size: 2.6rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(139,92,246,0.4));
  transition: transform 0.3s;
}
/* project-icon hover animation removed */

.project-card h3 { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.project-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 24px; }
.project-card p em { color: var(--violet-light); font-style: normal; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--violet-light);
  transition: all 0.25s;
}
.project-link:hover { color: var(--pink-light); gap: 12px; }

/* ---- EXPERIENCE ---- */
.exp-blocks { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

.exp-block {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.exp-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  border-radius: 0 0 24px 24px;
  transition: transform 0.35s;
}
.exp-block:nth-child(1)::after { background: linear-gradient(90deg,var(--violet),var(--pink)); }
.exp-block:nth-child(2)::after { background: linear-gradient(90deg,var(--cyan),var(--violet)); }
.exp-block:nth-child(3)::after { background: linear-gradient(90deg,var(--gold),var(--pink)); }
.exp-block:nth-child(4)::after { background: linear-gradient(90deg,var(--green),var(--cyan)); }

.exp-block:hover { border-color: var(--border); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.exp-block:hover::after { transform: scaleX(1); }

.exp-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  filter: drop-shadow(0 0 8px rgba(139,92,246,0.3));
  transition: transform 0.3s;
}
.exp-block:hover .exp-icon { transform: scale(1.2); }

.exp-block h3 { font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.exp-block p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }

/* ---- NOW ---- */
.now-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.now-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 28px 28px 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.35s;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.now-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.now-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(139,92,246,0.12);
}
.now-card:hover::after { opacity: 1; }

.now-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet-light);
  margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
  animation: pulse-dot 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(139,92,246,0.2); }
  50% { box-shadow: 0 0 0 7px rgba(139,92,246,0.08); }
}

.now-card:nth-child(2) .now-dot { background: var(--pink-light); box-shadow: 0 0 0 3px rgba(236,72,153,0.2); animation-delay: 0.4s; }
.now-card:nth-child(3) .now-dot { background: var(--gold-light); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); animation-delay: 0.8s; }
.now-card:nth-child(4) .now-dot { background: #6ee7b7; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); animation-delay: 1.2s; }

.now-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.now-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .now-grid { grid-template-columns: 1fr; }
}

/* ---- CONTACT ---- */
.contact-inner { text-align: center; }

.contact-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 18px 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-card);
}
.contact-card:hover {
  border-color: var(--border);
  color: var(--violet-light);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 36px rgba(139,92,246,0.18);
}
.contact-icon { font-size: 1.3rem; }

/* ---- FOOTER ---- */
.footer { background: #080810; border-top: 1px solid rgba(255,255,255,0.07); padding: 36px 0; transition: background 0.4s ease; }
[data-theme="light"] .footer { background: #ddd5f8; border-top-color: rgba(139,92,246,0.2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: 0.85rem; color: #6a6a90; }
[data-theme="light"] .footer p { color: #5a5080; }
[data-theme="light"] .back-to-top { color: var(--violet-dim); }
[data-theme="light"] .nav-links a { color: #4a3a80; }
[data-theme="light"] .nav-links a:hover { color: #1a1040; }
.back-to-top { font-size: 0.85rem; font-weight: 600; color: var(--violet-light); transition: color 0.2s; }
.back-to-top:hover { color: var(--pink-light); }

/* ---- SCROLL ANIMATIONS ---- */
.anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.anim.from-left  { transform: translateX(-32px); }
.anim.from-right { transform: translateX(32px); }
.anim.pop        { transform: scale(0.92); }
.anim.visible    { opacity: 1; transform: translate(0) scale(1); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .exp-blocks { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px; left: 0; right: 0;
    background: #080810;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 20px 28px;
    gap: 20px;
  }
  .nav-toggle { display: block; }

  /* Sections */
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }

  /* Hero */
  .hero { padding: 48px 0 40px; min-height: auto; }
  .hero-inner { flex-direction: column; gap: 32px; text-align: center; }
  .hero-text h1 { font-size: clamp(2.6rem, 12vw, 3.5rem); }
  .hero-eyebrow { font-size: 0.85rem; justify-content: center; }
  .hero-roles { font-size: 0.85rem; }
  .hero-sub { font-size: 1rem; margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-badge { order: -1; }
  .badge-ring { width: 130px; height: 130px; }
  .badge-ring span { font-size: 2.4rem; }

  /* About */
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-card { padding: 20px 12px; }
  .stat-num { font-size: 1.9rem; }

  /* Projects */
  .project-card { padding: 24px; }
  .project-screenshot {
    width: calc(100% + 48px);
    margin: -24px -24px 20px -24px;
  }
  .project-card--phone {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .phone-frame { width: 110px; align-self: center; }
  .project-card--book {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .book-mockup { align-self: center; }
  .book-cover { width: 90px; }

  /* Experience */
  .exp-block { padding: 22px 20px; }

  /* Now */
  .now-card { padding: 22px 20px; }

  /* Contact */
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-card { justify-content: center; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }

  /* Section title bar centered on contact */
  .section-title-bar.center { margin-left: auto; margin-right: auto; }
}
