/* ===== Tokens ===== */
:root {
  --bg: #0e0b1f;
  --bg-soft: #171331;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.10);
  --text: #f3f0ff;
  --muted: #b3aed6;
  --pink: #ff5d9e;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --grad: linear-gradient(120deg, #ff5d9e, #8b5cf6 45%, #22d3ee);
  --grad-warm: linear-gradient(120deg, #fbbf24, #ff5d9e);
  --radius: 20px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Sora", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .btn, .eyebrow { font-family: "Space Grotesk", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { color: #fff; font-weight: 600; }
section { scroll-margin-top: 90px; }

/* ===== Animated background ===== */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s var(--ease) infinite; }
.blob-1 { background: var(--pink); top: -10%; left: -8%; }
.blob-2 { background: var(--purple); top: 30%; right: -12%; animation-delay: -6s; }
.blob-3 { background: var(--cyan); bottom: -15%; left: 25%; animation-delay: -12s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(6%, -8%) scale(1.1); }
  66% { transform: translate(-5%, 6%) scale(.92); }
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(14, 11, 31, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.brand span { color: var(--pink); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: .95rem; position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 100px;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; border: 0;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px var(--purple); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px var(--pink); }
.btn-ghost { background: var(--card); border: 1px solid var(--card-border); color: #fff; }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--pink); }
.btn-upwork { background: #14a800; color: #fff; box-shadow: 0 10px 30px -10px #14a800; }
.btn-upwork:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px #14a800; filter: brightness(1.08); }

/* ===== Layout helpers ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vw, 130px) clamp(20px, 5vw, 48px); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 6vw, 60px); }
.section-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding: 120px clamp(20px, 5vw, 48px) 60px;
}
.eyebrow { color: var(--pink); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.8rem); font-weight: 700; letter-spacing: -3px; line-height: 1; margin: 8px 0 6px; }
.role { font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 600; min-height: 1.4em; }
.rotator { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); margin: 22px 0 30px; font-size: 1.12rem; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; }
.hero-stats b { display: block; font-size: 1.9rem; font-family: "Space Grotesk"; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-photo { position: relative; display: grid; place-items: center; }
.photo-ring {
  width: clamp(240px, 30vw, 360px); aspect-ratio: 1; border-radius: 50%; padding: 6px;
  background: var(--grad); box-shadow: 0 30px 80px -20px var(--purple);
  animation: spin 14s linear infinite;
}
.photo-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-soft); animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; background: rgba(23,19,49,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--card-border); padding: 8px 14px; border-radius: 100px; font-size: .8rem; font-weight: 600;
  white-space: nowrap; animation: bob 5s ease-in-out infinite;
}
.chip-1 { top: 6%; left: -4%; color: var(--cyan); }
.chip-2 { top: 30%; right: -10%; color: var(--pink); animation-delay: -1.2s; }
.chip-3 { bottom: 18%; left: -8%; color: var(--lime); animation-delay: -2.4s; }
.chip-4 { bottom: 2%; right: 4%; color: var(--amber); animation-delay: -3.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Gallery ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-chip {
  padding: 8px 18px; border-radius: 100px; background: var(--card); border: 1px solid var(--card-border);
  color: var(--muted); font-size: .88rem; cursor: pointer; transition: .2s; font-family: "Space Grotesk";
}
.filter-chip:hover { color: #fff; border-color: var(--purple); }
.filter-chip.active { background: var(--grad); color: #fff; border-color: transparent; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--card-border); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); border-color: var(--purple); }
.card-media { position: relative; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.card-media img, .card-media iframe { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.card-media .play {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(transparent, rgba(14,11,31,.4)); transition: background .25s;
}
.card-media .play:hover { background: rgba(14,11,31,.25); }
.play-btn {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px var(--pink); transition: transform .2s;
}
.card-media .play:hover .play-btn { transform: scale(1.12); }
.play-btn::before { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 12px; border-radius: 100px;
  font-size: .72rem; font-weight: 700; font-family: "Space Grotesk"; letter-spacing: .5px;
  background: rgba(14,11,31,.7); backdrop-filter: blur(6px); border: 1px solid var(--card-border);
}
.badge.video { color: var(--pink); }
.badge.image { color: var(--cyan); }
.card { cursor: pointer; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { font-size: 1.1rem; font-weight: 600; }
.card-counts { display: flex; gap: 14px; margin-top: 8px; }
.card-counts span { font-size: .82rem; color: var(--muted); }
.gallery-empty { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 1.05rem; background: var(--card); border: 1px dashed var(--card-border); border-radius: var(--radius); }
.gallery-empty em { color: var(--amber); font-style: normal; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: rgba(8,6,18,.93); backdrop-filter: blur(10px); }
.lightbox.open { display: flex; }
.lb-stage { width: min(960px, 100%); display: flex; flex-direction: column; gap: 12px; }
.lightbox-inner { width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6); background: #000; }
.lightbox-inner iframe, .lightbox-inner img { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.lb-caption { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-family: "Space Grotesk"; }
.lb-title { color: #fff; font-weight: 600; }
.lb-counter { font-size: .9rem; }
.lb-nav { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; background: var(--card); border: 1px solid var(--card-border); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: .2s; }
.lb-nav:hover { background: var(--grad); border-color: transparent; transform: scale(1.08); }
.lightbox-close { position: absolute; top: 24px; right: 28px; font-size: 2.2rem; color: #fff; cursor: pointer; background: none; border: 0; line-height: 1; z-index: 2; }
@media (max-width: 600px) {
  .lb-nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox { padding: 14px; gap: 4px; }
}

/* ===== About ===== */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.about-img-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); position: relative; }
.about-img-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 50%, rgba(139,92,246,.35)); }
.about-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-text p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.about-points { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.about-points li { padding: 12px 18px; background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; font-weight: 500; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--grad); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 38px 30px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--pink); }
.tl-item:nth-child(2n)::before { border-color: var(--cyan); }
.tl-item:nth-child(3n)::before { border-color: var(--lime); }
.tl-date { font-size: .8rem; color: var(--amber); font-family: "Space Grotesk"; font-weight: 600; letter-spacing: .5px; }
.tl-role { font-size: 1.25rem; font-weight: 600; margin-top: 4px; }
.tl-co { color: var(--muted); font-size: .95rem; }
.tl-desc { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ===== Skills ===== */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.skill-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; transition: transform .25s var(--ease), border-color .25s; }
.skill-card:hover { transform: translateY(-5px); border-color: var(--purple); }
.skill-card h3 { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.skill-card .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-card .pills span { font-size: .82rem; padding: 6px 13px; border-radius: 100px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: var(--muted); transition: .2s; }
.skill-card .pills span:hover { color: #fff; border-color: var(--pink); background: rgba(255,93,158,.12); }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testi { position: relative; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px 26px 24px; transition: transform .25s var(--ease), border-color .25s; overflow: hidden; }
.testi:hover { transform: translateY(-5px); border-color: var(--purple); }
.testi .quote-mark { position: absolute; top: -10px; right: 18px; font-family: "Space Grotesk"; font-size: 6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }
.testi blockquote { font-size: 1.02rem; color: var(--text); position: relative; z-index: 1; }
.testi figcaption { margin-top: 18px; display: flex; flex-direction: column; }
.testi figcaption b { font-family: "Space Grotesk"; font-weight: 600; }
.testi figcaption span { color: var(--muted); font-size: .85rem; }

/* ===== Contact ===== */
.contact-card { text-align: center; background: var(--card); border: 1px solid var(--card-border); border-radius: 28px; padding: clamp(40px, 7vw, 70px); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .08; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; position: relative; }
.contact-link { display: flex; align-items: center; gap: 10px; padding: 13px 22px; background: rgba(255,255,255,.04); border: 1px solid var(--card-border); border-radius: 100px; transition: .2s; font-weight: 500; }
a.contact-link:hover { transform: translateY(-3px); border-color: var(--pink); background: rgba(255,93,158,.1); }
.ci { font-size: 1.1rem; }

/* ===== Footer ===== */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 30px clamp(20px,5vw,48px) 40px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--card-border); flex-wrap: wrap; gap: 12px; }
.to-top { color: var(--muted); transition: color .2s; }
.to-top:hover { color: var(--pink); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 130px; }
  .hero-photo { order: -1; }
  .hero-cta, .hero-stats { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .about { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 320px; margin: 0 auto; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: 70%; max-width: 300px; flex-direction: column; justify-content: center; gap: 28px; background: rgba(14,11,31,.97); backdrop-filter: blur(16px); transform: translateX(100%); transition: transform .35s var(--ease); padding: 40px; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 60; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .hero-stats { gap: 22px; }
  .float-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
