/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --surface: #16161f;
  --surface-2: #1e1e2a;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8f0;
  --text-muted: #8888a8;
  --accent: #a78bfa;
  --accent-2: #f472b6;
  --accent-warm: #fb923c;
  --accent-teal: #34d399;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
a, button { cursor: none; }
@media (hover: none) { a, button { cursor: auto; } }

img, video { max-width: 100%; display: block; }

/* ===========================
   CUSTOM CURSOR
=========================== */
#cursor {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s, opacity 0.2s;
  opacity: 0;
}

#cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
  opacity: 0;
}

#cursor.active {
  width: 56px; height: 56px;
  border-color: var(--accent-2);
  background: rgba(167,139,250,0.08);
}

#cursor.visible, #cursor-dot.visible { opacity: 1; }

@media (hover: none) { #cursor, #cursor-dot { display: none; } }

/* ===========================
   SCROLL PROGRESS BAR
=========================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); background: rgba(167,139,250,0.12); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  padding-top: 64px;
}

/* Staggered hero entrance */
.animate-hero {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.2s);
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.15;
  padding-bottom: 0.1em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 520px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.4s;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-2), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%;  }
}

/* Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -150px; right: -200px;
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--accent-2);
  bottom: -100px; right: 200px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

/* Ripple */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.btn:active::after { opacity: 1; transform: scale(1); transition: 0s; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 4px 24px rgba(167,139,250,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(167,139,250,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* Magnetic wrapper set by JS */
.magnetic-wrap { display: inline-block; }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 7rem 2rem; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text);
}

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

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.skill-tag {
  padding: 0.3rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Education timeline */
.about-education h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.timeline { display: flex; flex-direction: column; gap: 1.5rem; }

.timeline-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
  margin-top: 0.35rem;
  box-shadow: 0 0 12px rgba(167,139,250,0.5);
}

.timeline-year { font-size: 0.78rem; color: var(--accent); font-weight: 500; margin-bottom: 0.2rem; }
.timeline-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.timeline-sub { font-size: 0.85rem; color: var(--text-muted); }

/* ===========================
   EXPERIENCE
=========================== */
.exp-list { display: flex; flex-direction: column; gap: 1.5rem; }

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}

.exp-card:hover {
  border-color: rgba(167,139,250,0.3);
  transform: translateX(4px);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-company { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.exp-role { font-size: 0.9rem; color: var(--accent); font-weight: 500; margin-top: 0.15rem; }
.exp-period { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

.exp-bullets {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-bullets li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ===========================
   PROJECTS
=========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167,139,250,0.4);
  box-shadow: var(--shadow);
}

.project-thumb {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb-wardrobe {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
}

.project-thumb-wander {
  background: linear-gradient(135deg, #0a1a2e 0%, #0d2b4e 50%, #0a1820 100%);
}

.project-thumb-baby {
  background: linear-gradient(135deg, #2e1a0e 0%, #4a2c1a 50%, #2e1a0e 100%);
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.project-card:hover .project-thumb-overlay { opacity: 1; }

.play-btn {
  background: white;
  color: #0a0a0f;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* Phone screenshot preview on card */
.project-screens-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.preview-img {
  position: absolute;
  bottom: -10px;
  width: 105px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  object-fit: cover;
  object-position: top;
  height: 200px;
}

.preview-back {
  left: calc(50% - 90px);
  transform: rotate(-6deg) translateY(10px);
  opacity: 0.75;
  z-index: 1;
}

.preview-front {
  right: calc(50% - 90px);
  transform: rotate(4deg) translateY(4px);
  z-index: 2;
}

.project-card:hover .preview-back  { transform: rotate(-8deg) translateY(6px); opacity: 0.6; }
.project-card:hover .preview-front { transform: rotate(6deg) translateY(0px); }

/* Solo icon (for wander card until screenshots available) */
.project-icon-solo {
  font-size: 5.5rem;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
  transition: transform var(--transition);
}

.project-card:hover .project-icon-solo { transform: scale(1.08) rotate(-3deg); }

.project-body { padding: 1.5rem; }

.project-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ios { background: rgba(167,139,250,0.15); color: var(--accent); }
.badge-ai  { background: rgba(244,114,182,0.15); color: var(--accent-2); }
.badge-social { background: rgba(52,211,153,0.15); color: var(--accent-teal); }

.project-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.appstore-badge {
  display: inline-block;
  transition: opacity var(--transition), transform var(--transition);
}

.appstore-badge img {
  height: 34px;
  width: auto;
  display: block;
}

.appstore-badge:hover {
  opacity: 0.85;
  transform: scale(0.97);
}

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

.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.social-link:hover { color: var(--accent); }

/* ===========================
   FOOTER
=========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===========================
   MODAL
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-icon { font-size: 2.5rem; flex-shrink: 0; }

.modal-header-text { flex: 1; }

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.2rem;
}

.modal-appstore-btn {
  flex-shrink: 0;
  display: block;
  transition: opacity var(--transition), transform var(--transition);
}

.modal-appstore-btn img {
  height: 36px;
  width: auto;
  display: block;
}

.modal-appstore-btn:hover {
  opacity: 0.82;
  transform: scale(0.97);
}

/* Demo area */
.modal-demo-area {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

/* Video embed */
.video-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.video-wrapper video {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: contain;
}

/* Screenshot horizontal strip */
.screenshot-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.screenshot-strip::-webkit-scrollbar { height: 4px; }
.screenshot-strip::-webkit-scrollbar-track { background: transparent; }
.screenshot-strip::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 2px; }

.screenshot {
  flex-shrink: 0;
  width: 160px;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  scroll-snap-align: start;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.screenshot-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
  letter-spacing: 0.05em;
}

/* WanderTogether placeholder screens */
.wander-placeholder {
  padding: 1.5rem 0 0.5rem;
}

.wander-placeholder-screens {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-end;
}

.wander-screen {
  width: 110px;
  height: 200px;
  background: linear-gradient(160deg, #0d2b4e, #0a1a2e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.wander-screen-center {
  height: 230px;
  background: linear-gradient(160deg, #133a5c, #0d2030);
  border-color: rgba(167,139,250,0.2);
}

.wander-screen-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.modal-body {
  padding: 1.75rem 2rem 2rem;
}

.modal-body h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.modal-body h3:first-child { margin-top: 0; }

.modal-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-features li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}

.modal-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1.4;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Video coming soon notice */
.video-placeholder-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.9rem 1.25rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.vp-icon { font-size: 1.3rem; }

.video-placeholder-notice p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for sibling groups */
.stagger > * { transition-delay: calc(var(--idx, 0) * 0.08s); }

/* Skill tag stagger */
.skill-tag {
  opacity: 0;
  transform: scale(0.85) translateY(6px);
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1),
              transform 0.4s cubic-bezier(0.22,1,0.36,1),
              border-color 0.25s, color 0.25s, background 0.25s;
}

.skill-tag.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Project card 3-D tilt */
.project-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(12px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  object-fit: contain;
  transition: opacity 0.2s;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  line-height: 1;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover { background: rgba(255,255,255,0.18); transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { background: rgba(255,255,255,0.18); transform: translateY(-50%) scale(1.08); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .section { padding: 5rem 1.5rem; }
  .modal { max-height: 95vh; }
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0 1rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.35s;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li a {
    display: block;
    padding: 0.85rem 2rem;
    border-radius: 0;
    font-size: 1rem;
  }
  .hamburger { display: flex; }
  .hero-cta { flex-direction: column; }
  .exp-header { flex-direction: column; }
  .modal-header { flex-wrap: wrap; gap: 0.75rem; }
  .modal-appstore-btn { margin-left: auto; }
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
