/* =========================================================
   Ayinkx · Portfolio
   ========================================================= */

:root {
  --bg: #0D1117;
  --bg-soft: #0f1620;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(0, 247, 255, 0.35);

  --accent: #00F7FF;
  --accent-2: #0e75b6;
  --accent-3: #8A2BE2;
  --accent-soft: rgba(0, 247, 255, 0.12);

  --text: #e6edf3;
  --muted: #9aa7b2;
  --muted-2: #6b7681;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(0, 247, 255, 0.18), 0 0 40px -8px rgba(0, 247, 255, 0.35);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-code: "Fira Code", ui-monospace, monospace;

  --nav-h: 72px;
  --maxw: 1180px;
}

/* ===================== Light theme ===================== */
:root[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-soft: #eef2f7;
  --surface: rgba(12, 32, 64, 0.035);
  --surface-2: rgba(12, 32, 64, 0.07);
  --border: rgba(12, 32, 64, 0.13);
  --border-strong: rgba(14, 117, 182, 0.55);
  --accent: #0e75b6;
  --accent-2: #0a4f86;
  --accent-3: #7a1fd0;
  --accent-soft: rgba(14, 117, 182, 0.1);
  --text: #101a26;
  --muted: #4b5a68;
  --muted-2: #7d8a97;
  --shadow: 0 18px 45px -22px rgba(12, 32, 64, 0.3);
  --glow: 0 0 0 1px rgba(14, 117, 182, 0.2), 0 0 40px -10px rgba(14, 117, 182, 0.35);
}
:root[data-theme="light"] .bg-orbs span { opacity: 0.16; }
:root[data-theme="light"] .hero__grid {
  background-image: linear-gradient(rgba(12, 32, 64, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 32, 64, 0.06) 1px, transparent 1px);
}
:root[data-theme="light"] .hero__name {
  background-image: linear-gradient(120deg, #0a2a44 8%, var(--accent) 55%, var(--accent-3) 100%);
  background-size: 220% 220%;
}
:root[data-theme="light"] .nav.scrolled { background: rgba(246, 248, 251, 0.85); }
:root[data-theme="light"] .nav__links { background: rgba(246, 248, 251, 0.98); }
:root[data-theme="light"] .hero__chip { background: rgba(255, 255, 255, 0.92); }
:root[data-theme="light"] .project__tags span,
:root[data-theme="light"] .tl-item__tags span { background: rgba(12, 32, 64, 0.05); }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea { background: rgba(12, 32, 64, 0.04); }
:root[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(14, 117, 182, 0.1), transparent 66%); }
:root[data-theme="light"] .btn--primary { color: #ffffff; }
:root[data-theme="light"] .filter.active { color: #ffffff; }
:root[data-theme="light"] .nav__logo-mark { color: #ffffff; }
:root[data-theme="light"] .stat { background: #ffffff; }


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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--accent); color: #001014; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1f2a37; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2c3a4a; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== Background orbs ===================== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
.bg-orbs span:nth-child(1) { width: 480px; height: 480px; background: #0e75b6; top: -140px; left: -120px; }
.bg-orbs span:nth-child(2) { width: 420px; height: 420px; background: #00F7FF; bottom: -160px; right: -100px; animation-delay: -6s; opacity: .22; }
.bg-orbs span:nth-child(3) { width: 380px; height: 380px; background: #8A2BE2; top: 45%; left: 55%; animation-delay: -12s; opacity: .18; }

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

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
}
.btn i { font-size: 0.95em; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001a1f; box-shadow: 0 10px 30px -12px var(--accent);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px var(--accent); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--border-strong); color: var(--accent); transform: translateY(-3px); background: var(--accent-soft); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); padding: 10px 18px; }
.btn--ghost:hover { border-color: var(--border-strong); color: var(--accent); }
.btn--block { width: 100%; justify-content: center; }

/* ===================== Nav ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 17, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 22px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.nav__logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #001a1f;
  font-weight: 800; box-shadow: 0 0 22px -6px var(--accent);
}
.dot { color: var(--accent); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__link {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 0.92rem; color: var(--muted); font-weight: 500; transition: color .25s ease, background .25s ease;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.active { color: var(--accent); }
.nav__link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 20px; height: 2px; border-radius: 2px; background: var(--accent);
}
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); }
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero__hello { color: var(--muted); font-family: var(--font-code); font-size: 1rem; margin-bottom: 12px; }
.wave { display: inline-block; animation: wave 2.5s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } }

.hero__name {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -1px; line-height: 1.02;
  font-size: clamp(2.8rem, 7vw, 5rem);
  background: linear-gradient(120deg, #ffffff 20%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__roles { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.7rem); margin-top: 12px; color: var(--text); min-height: 1.6em; }
.typed { color: var(--accent); }
.caret { display: inline-block; color: var(--accent); animation: blink 1s steps(1) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }

.hero__desc { color: var(--muted); max-width: 560px; margin-top: 18px; font-size: 1.02rem; }
.hero__desc strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__socials { display: flex; gap: 12px; margin-top: 30px; }
.hero__socials a, .contact__socials a, .footer__socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
}
.hero__socials a:hover, .contact__socials a:hover, .footer__socials a:hover {
  color: var(--accent); border-color: var(--border-strong); background: var(--accent-soft); transform: translateY(-4px);
}

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; }
.hero__avatar {
  width: min(340px, 78%); border-radius: 50%;
  border: 3px solid rgba(0, 247, 255, 0.4);
  box-shadow: 0 0 60px -10px var(--accent), inset 0 0 40px rgba(0,0,0,.5);
  animation: bob 6s ease-in-out infinite;
}
.hero__ring {
  position: absolute; width: min(400px, 90%); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(0, 247, 255, 0.3); animation: spin 26s linear infinite;
}
.hero__ring::before, .hero__ring::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 16px var(--accent); top: -6px; left: 50%;
}
.hero__ring::after { top: auto; bottom: -6px; background: var(--accent-3); box-shadow: 0 0 16px var(--accent-3); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; font-family: var(--font-head);
  background: rgba(13, 17, 23, 0.85); border: 1px solid var(--border); backdrop-filter: blur(6px);
  box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite;
}
.hero__chip i { color: var(--accent); }
.hero__chip--1 { top: 8%; left: -2%; animation-delay: -1s; }
.hero__chip--2 { top: 26%; right: -4%; animation-delay: -2.4s; }
.hero__chip--3 { bottom: 22%; left: -6%; animation-delay: -3.2s; }
.hero__chip--4 { bottom: 6%; right: 0%; animation-delay: -0.6s; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid var(--muted-2); border-radius: 14px; position: relative; }
.mouse::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, -4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ===================== Sections ===================== */
.section { padding: 110px 0; position: relative; }
.section__eyebrow { font-family: var(--font-code); color: var(--accent); font-size: 0.9rem; letter-spacing: 1px; }
.section__title {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.5px;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 44px;
}
.section__title::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), transparent); }

/* ===================== About ===================== */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text strong { color: var(--text); font-weight: 600; }
.about__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.about__facts i { color: var(--accent); margin-right: 8px; }

.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card {
  padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.mini-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.mini-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: 12px; }
.mini-card h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.mini-card p { color: var(--muted); font-size: 0.9rem; }

/* ===================== Skills ===================== */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.skills__bars { display: flex; flex-direction: column; gap: 18px; }
.bar { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 14px; }
.bar__label { font-size: 0.92rem; color: var(--text); font-weight: 500; }
.bar__track { height: 9px; border-radius: 20px; background: var(--surface-2); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: 20px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 1.2s cubic-bezier(.22,.61,.36,1); box-shadow: 0 0 16px -2px var(--accent); }
.bar__pct { font-family: var(--font-code); font-size: 0.82rem; color: var(--muted); text-align: right; }

.skills__tags { display: flex; flex-direction: column; gap: 24px; }
.tag-group h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 12px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.chip:hover { color: var(--accent); border-color: var(--border-strong); background: var(--accent-soft); transform: translateY(-3px); }

/* ===================== Projects ===================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; font-family: var(--font-head);
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { color: #001a1f; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.project::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(0,247,255,.10), transparent 45%);
}
.project:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project:hover::before { opacity: 1; }
.project__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.project__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; }
.project__links { display: flex; gap: 8px; }
.project__links a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); border: 1px solid var(--border); transition: color .25s, border-color .25s, transform .25s; }
.project__links a:hover { color: var(--accent); border-color: var(--border-strong); transform: translateY(-3px); }
.project h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.project p { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.project__tags span { font-size: 0.72rem; font-family: var(--font-code); padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--accent); border: 1px solid var(--border); }
.projects__more { display: flex; justify-content: center; margin-top: 40px; }

/* ===================== Creative (Music & Content) ===================== */
.creative__intro { color: var(--muted); margin: -24px 0 40px; max-width: 760px; }
.creative__intro strong { color: var(--text); font-weight: 600; }
.creative { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.creative__card {
  padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.creative__card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.creative__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 1.4rem; margin-bottom: 16px; }
.creative__icon--music { background: rgba(138, 43, 226, .16); color: #b57bff; }
.creative__icon--content { background: var(--accent-soft); color: var(--accent); }
.creative__card h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 10px; }
.creative__card p { color: var(--muted); font-size: 0.95rem; }
.creative__list { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.creative__list li { color: var(--muted); font-size: 0.92rem; }
.creative__list i { color: var(--accent-3); margin-right: 8px; }
.creative__stats { display: flex; gap: 30px; margin: 18px 0; }
.creative__stats strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); line-height: 1.2; }
.creative__stats span { font-size: 0.82rem; color: var(--muted-2); }
.creative__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted);
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.pill:hover { color: var(--accent); border-color: var(--border-strong); background: var(--accent-soft); transform: translateY(-3px); }
.creative__embed { margin-top: 30px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.creative__embed iframe { display: block; border-radius: 12px; }
.creative__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ===================== Timeline ===================== */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-3), transparent); }
.tl-item { position: relative; padding: 0 0 34px 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(0,247,255,.12), 0 0 16px -2px var(--accent);
}
.tl-item__date { font-family: var(--font-code); font-size: 0.82rem; color: var(--accent); }
.tl-item__role { font-family: var(--font-head); font-size: 1.12rem; margin: 4px 0 2px; }
.tl-item__org { color: var(--muted); font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.tl-item p { color: var(--muted); font-size: 0.93rem; }
.tl-item__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tl-item__tags span { font-size: 0.72rem; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--border); }

/* ===================== Contact ===================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact__info > p { color: var(--muted); margin-bottom: 26px; }
.contact__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.contact__list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, transform .25s, background .25s; }
.contact__list a:hover { border-color: var(--border-strong); transform: translateX(6px); background: var(--surface-2); }
.contact__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.contact__list span { display: flex; flex-direction: column; font-size: 0.92rem; }
.contact__list small { color: var(--muted-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; }
.contact__socials { display: flex; flex-wrap: wrap; gap: 12px; }

.contact__form { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
  background: rgba(0,0,0,.25); border: 1px solid var(--border); color: var(--text); transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
.form__note { margin-top: 14px; font-size: 0.88rem; color: var(--accent); min-height: 1.2em; }
.form__note.error { color: #ff6b6b; }

/* ===================== Footer ===================== */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.footer__copy { color: var(--muted); font-size: 0.88rem; }
.heart { color: #ff6b6b; }
.footer__socials { display: flex; gap: 12px; }

/* ===================== To top ===================== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #001a1f;
  box-shadow: 0 12px 30px -10px var(--accent);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

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

/* ===================== Responsive ===================== */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__socials { justify-content: center; }
  .hero__visual { order: -1; }
  .about, .skills, .contact { grid-template-columns: 1fr; gap: 34px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 4px;
    padding: 18px 24px 26px; background: rgba(13,17,23,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav.open .nav__links { transform: translateY(0); }
  .nav__link { padding: 12px 14px; }
  .nav__link.active::after { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 80px 0; }
  .hero__chip { display: none; }
  .creative { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; }
  .about__cards { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 96px 1fr 40px; gap: 10px; }
  .container { padding: 0 18px; }
}

/* ===================== Motion & FX ===================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 1000; background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 12px -1px var(--accent);
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(0,247,255,.12), rgba(138,43,226,.06) 45%, transparent 66%);
  transition: transform .12s ease-out, opacity .4s ease;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }

.hero__particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

/* animated gradient name */
.hero__name { background-size: 220% 220%; animation: gradientShift 7s ease-in-out infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* marquee */
.marquee { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 20px; padding: 0 20px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--muted); letter-spacing: .5px; white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .8rem; opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* timeline draw-in */
.timeline::before { transform: scaleY(0); transform-origin: top; transition: transform 1.3s cubic-bezier(.22,.61,.36,1); }
.timeline.in-view::before { transform: scaleY(1); }

/* tilt + magnetic + ripple */
.project, .creative__card, .mini-card { will-change: transform; }
.project.is-tilting, .creative__card.is-tilting, .mini-card.is-tilting { transition: transform .1s ease-out; }
.btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ===================== Loader ===================== */
.loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; gap: 20px; background: var(--bg); transition: opacity .6s ease, visibility .6s ease; }
.loader.done { opacity: 0; visibility: hidden; }
.loader__logo { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 18px; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: #001a1f; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 40px -6px var(--accent); animation: loaderPop 1.2s ease-in-out infinite; }
@keyframes loaderPop { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.05); } }
.loader__bar { width: 140px; height: 4px; margin: 0 auto; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); animation: loaderSlide 1.1s ease-in-out infinite; }
@keyframes loaderSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }

/* ===================== Custom cursor ===================== */
.custom-cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s ease; }
.custom-cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.custom-cursor--ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--border-strong); background: transparent; box-shadow: none; transition: opacity .3s ease, width .18s ease, height .18s ease, margin .18s ease, background .18s ease; }
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor, html.has-custom-cursor * { cursor: none; }
  html.has-custom-cursor input, html.has-custom-cursor textarea { cursor: text; }
  html.has-custom-cursor .custom-cursor { opacity: 1; }
}
html.has-custom-cursor .custom-cursor--ring.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--accent-soft); }

/* ===================== Nav icon buttons ===================== */
.nav__icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 38px; padding: 0 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease; }
.nav__icon-btn:hover { color: var(--accent); border-color: var(--border-strong); background: var(--accent-soft); transform: translateY(-2px); }
.nav__icon-btn kbd { font-family: var(--font-code); font-size: .62rem; padding: 1px 4px; border-radius: 4px; background: var(--surface-2); color: var(--muted-2); border: 1px solid var(--border); }
@media (max-width: 992px) { .nav__icon-btn kbd { display: none; } .nav__cta { display: none; } }

/* ===================== Stats strip ===================== */
.stats { padding: 42px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat { padding: 22px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.stat:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; background: linear-gradient(120deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 6px; font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.stat__label i { color: var(--accent); }
@media (max-width: 992px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================== Testimonials ===================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 28px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.quote:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.quote__mark { font-family: var(--font-head); font-size: 3rem; line-height: .6; color: var(--accent); opacity: .5; }
.quote blockquote { margin: 6px 0 18px; color: var(--text); font-size: .96rem; }
.quote figcaption { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.quote__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; }
.proof { margin-top: 34px; text-align: center; }
.proof__label { display: block; color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.proof__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.proof__item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .88rem; font-weight: 500; transition: color .25s ease, border-color .25s ease, background .25s ease; }
.proof__item i { color: var(--accent); }
.proof__item:hover { color: var(--text); border-color: var(--border-strong); background: var(--accent-soft); }
@media (max-width: 768px) { .quotes { grid-template-columns: 1fr; } }

/* ===================== Latest release + media ===================== */
.release { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; margin-top: 34px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.release__art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.release__tag { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--font-code); font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; }
.release__info h3 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 4px; }
.release__meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.release__links { display: flex; flex-wrap: wrap; gap: 12px; }
.media-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px; }
.media-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.media-card--video iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.media-card--ig { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 30px; }
.media-card--ig > i { font-size: 2rem; color: #E4405F; }
.media-card--ig h3 { font-family: var(--font-head); font-size: 1.25rem; }
.media-card--ig p { color: var(--muted); font-size: .92rem; }
@media (max-width: 768px) { .release { grid-template-columns: 1fr; } .release__art { max-width: 240px; } .media-grid { grid-template-columns: 1fr; } }

/* ===================== Command palette ===================== */
.cmdk { position: fixed; inset: 0; z-index: 9997; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
.cmdk[hidden] { display: none; }
.cmdk__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cmdk__box { position: relative; width: min(560px, 100%); border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; animation: cmdkIn .22s ease; }
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.cmdk__search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.cmdk__search i { color: var(--accent); }
.cmdk__search input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-family: var(--font-body); font-size: 1rem; }
.cmdk__search kbd, .cmdk__foot kbd { font-family: var(--font-code); font-size: .68rem; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted-2); }
.cmdk__list { max-height: 340px; overflow-y: auto; padding: 8px; }
.cmdk__item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--text); cursor: pointer; }
.cmdk__item i { width: 18px; text-align: center; color: var(--muted); }
.cmdk__item .cmdk__hint { margin-left: auto; font-size: .74rem; color: var(--muted-2); }
.cmdk__item.active, .cmdk__item:hover { background: var(--accent-soft); }
.cmdk__item.active i, .cmdk__item:hover i { color: var(--accent); }
.cmdk__empty { padding: 24px; text-align: center; color: var(--muted); }
.cmdk__foot { display: flex; gap: 18px; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .74rem; }
.cmdk__foot kbd + kbd { margin-left: 3px; }

/* ===================== Blog / Notes ===================== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.post-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.post-card__tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; font-family: var(--font-head); color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border); }
.post-card h3 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.35; }
.post-card p { color: var(--muted); font-size: .92rem; flex-grow: 1; }
.post-card__meta { font-family: var(--font-code); font-size: .74rem; color: var(--muted-2); }
@media (max-width: 992px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* ===================== Article / post page ===================== */
.post-wrap { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 44px) 24px 90px; }
.post__back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.post__back:hover { color: var(--accent); }
.post__tag { font-family: var(--font-code); color: var(--accent); font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; }
.post h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; margin: 12px 0 10px; }
.post__meta { color: var(--muted-2); font-size: .88rem; margin-bottom: 30px; }
.post p, .post li { color: var(--muted); line-height: 1.85; margin-bottom: 18px; }
.post h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 34px 0 12px; }
.post a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post code { font-family: var(--font-code); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--accent); }
.post pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; margin-bottom: 22px; }
.post pre code { background: none; border: 0; padding: 0; color: var(--text); }
.post blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--muted); font-style: italic; margin: 0 0 20px; }

/* ===================== 404 page ===================== */
.notfound { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 22vw, 11rem); line-height: 1; background: linear-gradient(120deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-family: var(--font-head); font-size: 1.6rem; margin: 8px 0 10px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }
.notfound__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
