/* =========================================================
   Ahmed Muhudin Ali — Portfolio
   ========================================================= */

:root {
  --bg: #0A0C10;
  --bg-2: #0D1016;
  --surface: #12161F;
  --surface-2: #171C27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --navy: #1E3A6E;
  --navy-bright: #2D5299;
  --gold: #C9A35B;
  --gold-soft: rgba(201, 163, 91, 0.16);
  --text: #F2F2F2;
  --muted: #9AA3B2;

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.glass {
  background: linear-gradient(160deg, rgba(23, 28, 39, 0.78), rgba(18, 22, 31, 0.62));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }
.btn--gold {
  background: linear-gradient(135deg, #D9B871, var(--gold) 55%, #A9853F);
  color: #14110A;
  box-shadow: 0 8px 28px -10px rgba(201, 163, 91, 0.6);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -10px rgba(201, 163, 91, 0.75); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

.link-gold { color: var(--gold); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.link-gold:hover { background-size: 100% 1px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 500; font-size: 14px; }
.text-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader__mark {
  font-family: var(--serif); font-size: 64px; font-weight: 700; letter-spacing: 0.06em;
  background: linear-gradient(120deg, #8F7240, #E8CD8F 45%, var(--gold) 60%, #8F7240);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 1.4s linear infinite, pop 0.7s var(--ease) both;
}
.preloader__line { width: 72px; height: 2px; background: var(--border); overflow: hidden; border-radius: 2px; position: relative; }
.preloader__line::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: load 1s var(--ease) forwards; }
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Scroll progress & cursor ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1500;
  background: linear-gradient(90deg, #A9853F, var(--gold), #E8CD8F);
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(201, 163, 91, 0.6);
}
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 91, 0.075), rgba(30, 58, 110, 0.06) 40%, transparent 70%);
  opacity: 0; transition: opacity 0.4s;
  will-change: transform;
}
.has-cursor .cursor-glow { opacity: 1; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s, height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; }
.nav__logo span { color: var(--gold); }
.nav__links { display: flex; gap: 4px; }
.nav__link {
  position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color 0.3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform 0.4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 960; }
.nav__toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; width: 14px; left: 19px; background: var(--gold); }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.nav__backdrop { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 950;
    width: min(320px, 84vw);
    flex-direction: column; gap: 4px;
    padding: calc(var(--nav-h) + 16px) 28px 32px;
    background: rgba(14, 17, 24, 0.96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__link { font-size: 18px; padding: 14px 4px; border-bottom: 1px solid var(--border); opacity: 0; transform: translateX(20px); transition: opacity 0.4s, transform 0.5s var(--ease), color 0.3s; }
  .nav__links.is-open .nav__link { opacity: 1; transform: none; }
  .nav__links.is-open .nav__link:nth-child(2) { transition-delay: 0.04s; }
  .nav__links.is-open .nav__link:nth-child(3) { transition-delay: 0.08s; }
  .nav__links.is-open .nav__link:nth-child(4) { transition-delay: 0.12s; }
  .nav__links.is-open .nav__link:nth-child(5) { transition-delay: 0.16s; }
  .nav__links.is-open .nav__link:nth-child(6) { transition-delay: 0.2s; }
  .nav__links.is-open .nav__link:nth-child(7) { transition-delay: 0.24s; }
  .nav__link::after { left: 4px; right: auto; width: 24px; bottom: 10px; transform-origin: left; }
  .nav__backdrop {
    display: block; position: fixed; inset: 0; z-index: 940; background: rgba(0,0,0,0.55);
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .nav__backdrop.is-open { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 64px;
  overflow: hidden; isolation: isolate;
}
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -2; opacity: 0.5; }
.hero__blob--navy { width: 560px; height: 560px; background: var(--navy); top: -140px; left: -180px; animation: drift 22s ease-in-out infinite alternate; }
.hero__blob--gold { width: 380px; height: 380px; background: rgba(201, 163, 91, 0.35); bottom: -160px; left: 30%; animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(120px, 80px) scale(1.15); } }

.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 13px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 24px;
}
.hero__eyebrow svg { color: var(--gold); }
.hero__name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 7.2vw, 92px); line-height: 1.02; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero__name .word { display: inline-block; white-space: nowrap; }
.hero__name .char {
  display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(4deg);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.hero__name .word:last-child { color: var(--gold); font-style: italic; }
.is-ready .hero__name .char { opacity: 1; transform: none; }
.hero__typing { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; color: var(--text); min-height: 1.6em; margin-bottom: 18px; }
#typed { background: linear-gradient(90deg, var(--text), #CFD6E2); -webkit-background-clip: text; background-clip: text; }
.hero__caret { display: inline-block; width: 2px; height: 1.05em; background: var(--gold); margin-left: 4px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__intro { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__socials { display: flex; gap: 10px; }
.hero__socials a, .footer__socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.35s var(--ease), background 0.3s;
}
.hero__socials a:hover, .footer__socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); background: var(--gold-soft); }
.hero__socials svg, .footer__socials svg { width: 17px; height: 17px; }

/* entrance stagger for hero content */
.hero__eyebrow, .hero__typing, .hero__intro, .hero__actions, .hero__socials {
  opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.is-ready .hero__eyebrow { opacity: 1; transform: none; }
.is-ready .hero__typing { opacity: 1; transform: none; transition-delay: 0.55s; }
.is-ready .hero__intro { opacity: 1; transform: none; transition-delay: 0.7s; }
.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: 0.85s; }
.is-ready .hero__socials { opacity: 1; transform: none; transition-delay: 1s; }

.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 480px; }
.hero__glow {
  position: absolute; inset: 8% -6% 4%; z-index: -1;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(45, 82, 153, 0.55), transparent 75%),
    radial-gradient(closest-side at 60% 70%, rgba(201, 163, 91, 0.22), transparent 80%);
  filter: blur(30px);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); opacity: 0.85; } }
.hero__photo {
  width: 100%; height: auto;
  /* fade the black studio backdrop into the page so there's no visible box */
  -webkit-mask-image: radial-gradient(ellipse 50% 54% at 50% 46%, #000 62%, transparent 99%);
  mask-image: radial-gradient(ellipse 50% 54% at 50% 46%, #000 62%, transparent 99%);
  mix-blend-mode: lighten;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease) 0.2s, transform 1.8s var(--ease) 0.2s;
}
.is-ready .hero__photo { opacity: 1; transform: none; }
.hero__badge {
  position: absolute; left: -4%; bottom: 18%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 14px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.8);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s var(--ease) 1.2s, transform 0.9s var(--ease) 1.2s;
  animation: float 6s ease-in-out 2.2s infinite;
}
.is-ready .hero__badge { opacity: 1; transform: none; }
.hero__badge svg { width: 30px; height: 30px; color: var(--gold); padding: 6px; border-radius: 10px; background: var(--gold-soft); box-sizing: content-box; }
.hero__badge strong { display: block; font-size: 14px; line-height: 1.3; }
.hero__badge span { font-size: 12px; color: var(--muted); }
@keyframes float { 50% { translate: 0 -8px; } }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--border-strong); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 8px); text-align: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { order: -1; max-width: 320px; }
  .hero__intro { margin-inline: auto; }
  .hero__actions, .hero__socials { justify-content: center; }
  .hero__badge { left: auto; right: -6%; bottom: 14%; padding: 8px 12px 8px 10px; }
  .hero__badge svg { width: 22px; height: 22px; }
  .hero__scroll { display: none; }
}
@media (max-width: 420px) {
  .hero__visual { max-width: 260px; }
  .hero__badge { right: -14%; }
  .btn { padding: 13px 22px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
@media (max-width: 700px) { .section { padding: 84px 0; } }
.section__head { margin-bottom: 56px; max-width: 680px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px;
}
.section__kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section__head--center .section__kicker::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.01em; }
.section__title em { color: var(--gold); font-weight: 500; }
.section__lead { color: var(--muted); font-size: 17px; margin: 18px 0 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.stagger.is-visible > * { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about__text p { color: var(--muted); font-size: 17px; }
.about__text .about__lead { color: var(--text); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.55; font-family: var(--serif); font-weight: 500; margin-bottom: 1.2em; }
.about__facts { display: grid; gap: 14px; }
.fact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); transition: border-color 0.4s, transform 0.4s var(--ease); }
.fact:hover { border-color: rgba(201, 163, 91, 0.4); transform: translateX(6px); }
.fact svg { width: 22px; height: 22px; color: var(--gold); padding: 10px; border-radius: 12px; background: var(--gold-soft); box-sizing: content-box; }
.fact span { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.fact strong { font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Stats ---------- */
.stats { position: relative; padding: 0; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 24px;
  background: linear-gradient(120deg, rgba(30, 58, 110, 0.35), rgba(18, 22, 31, 0.7) 50%, rgba(201, 163, 91, 0.1));
  overflow: hidden;
}
.stat { padding: 40px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--border); }
.stat__num { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 54px); font-weight: 600; line-height: 1; color: var(--text); margin-bottom: 10px; }
.stat__num i { font-style: normal; color: var(--gold); }
.stat p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 800px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat { padding: 30px 14px; }
}

/* ---------- Tilt cards (shared) ---------- */
.tilt { transform-style: preserve-3d; transition: opacity 1s var(--ease), transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.stagger > .tilt { transition-delay: calc(var(--i, 0) * 110ms), 0s, 0s, 0s; }
.tilt:hover { border-color: rgba(201, 163, 91, 0.45); box-shadow: 0 24px 60px -24px rgba(0,0,0,0.9), 0 0 0 1px rgba(201,163,91,0.15), 0 0 40px -10px rgba(201, 163, 91, 0.25); }

/* ---------- Experience ---------- */
.exp { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; }
.exp-card { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.exp-card__icon svg { width: 26px; height: 26px; color: var(--gold); padding: 14px; border-radius: 16px; background: var(--gold-soft); box-sizing: content-box; }
.exp-card__meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.exp-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 8px 0 4px; }
.exp-card__org { color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.exp-card__list { margin-bottom: 22px; display: grid; gap: 8px; }
.exp-card__list li { position: relative; padding-left: 22px; color: #C9CFDA; font-size: 15px; }
.exp-card__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 1.5px; background: var(--gold); }
.exp-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.exp-card__body > :last-child { margin-top: auto; }
.exp-card__shot {
  position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16 / 9; border: 1px solid var(--border); background: var(--surface);
}
.exp-card__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 1; transition: transform 0.8s var(--ease); }
.exp-card__shot:hover img { transform: scale(1.04); }
.shot-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; background: radial-gradient(circle at 70% 20%, rgba(201,163,91,0.18), transparent 50%), linear-gradient(135deg, var(--navy), #0F1B33); }
.shot-placeholder__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(0,0,0,0.3); }
.shot-placeholder__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.shot-placeholder__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,0.06); padding: 2px 12px; border-radius: 6px; }
.shot-placeholder__body { flex: 1; display: grid; place-content: center; text-align: center; gap: 4px; }
.shot-placeholder__body strong { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); }
.shot-placeholder__body span { color: var(--gold); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 900px) { .exp { grid-template-columns: 1fr; } .exp-card { padding: 24px; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 28px; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold), rgba(201,163,91,0.1)); }
.timeline__item { position: relative; padding-left: 76px; }
.timeline__dot {
  position: absolute; left: 0; top: 18px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--gold); color: var(--gold);
  box-shadow: 0 0 0 6px var(--bg-2), 0 0 24px -4px rgba(201, 163, 91, 0.5);
}
.timeline__dot svg { width: 20px; height: 20px; }
.timeline__card { border-radius: var(--radius); padding: 26px 28px; transition: border-color 0.4s, transform 0.4s var(--ease); }
.timeline__card:hover { border-color: rgba(201, 163, 91, 0.4); transform: translateX(6px); }
.timeline__date { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); margin-bottom: 12px; }
.timeline__card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.timeline__sub { color: var(--text); font-weight: 500; margin-bottom: 6px; }
.timeline__card p:last-child { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 600px) {
  .timeline::before { left: 19px; }
  .timeline__item { padding-left: 56px; }
  .timeline__dot { width: 40px; height: 40px; }
  .timeline__card { padding: 22px 20px; }
}

/* ---------- Certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cert {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
.cert--featured { border-color: rgba(201, 163, 91, 0.45); box-shadow: 0 0 0 1px rgba(201,163,91,0.12), 0 30px 60px -30px rgba(201, 163, 91, 0.35); }
.cert--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--gold) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }
.cert__thumb {
  position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; cursor: zoom-in;
  background: #0E1118; border-bottom: 1px solid var(--border); display: block; width: 100%; padding: 0;
}
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.9s var(--ease), filter 0.6s; filter: saturate(0.92); }
.cert__thumb::after {
  content: "View full certificate"; position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(10,12,16,0.1), rgba(10,12,16,0.75));
  color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  opacity: 0; transition: opacity 0.4s;
}
.cert:hover .cert__thumb img { transform: scale(1.05); filter: none; }
.cert:hover .cert__thumb::after, .cert__thumb:focus-visible::after { opacity: 1; }
.cert__thumb--private {
  cursor: default; display: grid; place-items: center; gap: 10px;
  background: radial-gradient(circle at 50% 40%, rgba(30, 58, 110, 0.5), transparent 65%), #0E1118;
}
.cert__thumb--private::after { display: none; }
.cert__thumb--private .seal { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201,163,91,0.5); background: var(--gold-soft); box-shadow: 0 0 0 10px rgba(201,163,91,0.05), 0 0 40px -6px rgba(201,163,91,0.4); }
.cert__thumb--private .seal svg { width: 44px; height: 44px; color: var(--gold); }
.cert__thumb--private small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; position: absolute; bottom: 14px; }
.cert__thumb--private small svg { width: 13px; height: 13px; }
.cert__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: linear-gradient(135deg, #E8CD8F, var(--gold)); color: #14110A;
  box-shadow: 0 6px 20px -6px rgba(201, 163, 91, 0.8);
}
.cert__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #14110A; animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(20,17,10,0.6); } 100% { box-shadow: 0 0 0 7px rgba(20,17,10,0); } }
.cert__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.cert__issuer { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.cert__issuer svg { width: 18px; height: 18px; }
.cert__title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.cert__desc { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.cert__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cert__meta span { font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); color: #C9CFDA; background: rgba(255,255,255,0.02); }
.cert__meta code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 11.5px; color: var(--text); }
.cert__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .certs { grid-template-columns: 1fr; } .cert__body { padding: 20px; } }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-group { border-radius: var(--radius); padding: 30px 28px; }
.skill-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.skill-group__head svg { width: 22px; height: 22px; color: var(--gold); padding: 10px; border-radius: 12px; background: var(--gold-soft); box-sizing: content-box; }
.skill-group__head h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.025); color: #D7DCE5;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s, color 0.3s, background 0.3s;
  transition-delay: calc(var(--i, 0) * 70ms + 200ms), calc(var(--i, 0) * 70ms + 200ms), 0s, 0s, 0s;
}
.pills li:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
@media (max-width: 1000px) { .skills { grid-template-columns: 1fr 1fr; } .skill-group:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .skills { grid-template-columns: 1fr; } .skill-group { padding: 24px 20px; } }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact__glow { position: absolute; left: 50%; top: 30%; width: 900px; height: 600px; translate: -50% 0; z-index: -1; background: radial-gradient(closest-side, rgba(30, 58, 110, 0.55), transparent), radial-gradient(closest-side at 50% 70%, rgba(201,163,91,0.12), transparent); filter: blur(20px); }
.contact__primary {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  width: fit-content; margin: 0 auto 40px; padding: 20px 36px 20px 24px; border-radius: 999px;
  background: linear-gradient(135deg, #2BD46B, #1EAE55); color: #04210F;
  box-shadow: 0 20px 50px -18px rgba(37, 211, 102, 0.65);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.contact__primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 28px 60px -16px rgba(37, 211, 102, 0.8); }
.contact__primary svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); box-sizing: content-box; color: #fff; }
.contact__primary span { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; line-height: 1.3; }
.contact__primary small { display: block; font-size: 13px; font-weight: 600; opacity: 0.8; }
.socials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
.social {
  --brand: var(--gold);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 26px 12px; border-radius: var(--radius); text-align: center;
  font-weight: 600; font-size: 14px; color: var(--muted);
  transition: opacity 0.8s var(--ease), transform 0.6s var(--ease), color 0.3s, border-color 0.3s, box-shadow 0.4s;
  transition-delay: calc(var(--i, 0) * 80ms), 0s, 0s, 0s, 0s;
}
.social svg { width: 28px; height: 28px; transition: transform 0.5s var(--ease), color 0.3s; }
.social:hover { color: var(--text); transform: translateY(-6px); border-color: color-mix(in srgb, var(--brand) 70%, transparent); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--brand) 70%, transparent), 0 0 30px -8px color-mix(in srgb, var(--brand) 55%, transparent); }
.social:hover svg { color: var(--brand); transform: scale(1.15) rotate(-6deg); }
@media (max-width: 800px) { .socials { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) {
  .socials { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact__primary { padding: 16px 24px 16px 16px; gap: 14px; }
  .contact__primary svg { width: 30px; height: 30px; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.footer__socials { display: flex; gap: 8px; justify-content: center; }
.footer__socials a { width: 36px; height: 36px; }
.footer__socials svg { width: 15px; height: 15px; }
.footer__text { text-align: right; font-size: 13px; color: var(--muted); }
.footer__text p { margin: 0; }
@media (max-width: 800px) { .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } .footer__text { text-align: center; } }

/* ---------- Floating buttons ---------- */
.fab-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.4s var(--ease);
}
.fab-whatsapp svg { width: 30px; height: 30px; }
.fab-whatsapp::before, .fab-whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.4s ease-out infinite; }
.fab-whatsapp::after { animation-delay: 1.2s; }
.fab-whatsapp:hover { transform: scale(1.1); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
.to-top {
  position: fixed; right: 31px; bottom: 94px; z-index: 800;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 22, 31, 0.85); border: 1px solid var(--border-strong); color: var(--gold);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease), border-color 0.3s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); transform: translateY(-3px); }
@media (max-width: 600px) { .fab-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; } .to-top { right: 23px; bottom: 84px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1800;
  display: grid; place-items: center; padding: 64px 80px;
  background: rgba(5, 6, 9, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 1200px; width: 100%; display: grid; justify-items: center; gap: 16px; transform: scale(0.96); transition: transform 0.5s var(--ease); }
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__figure img { max-height: calc(100vh - 180px); width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 40px 100px -30px #000; background: #fff; transition: opacity 0.3s; }
.lightbox__figure figcaption { color: var(--muted); font-size: 14px; text-align: center; }
.lightbox__figure figcaption strong { color: var(--text); font-family: var(--serif); font-size: 18px; font-weight: 600; display: block; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border-strong); background: rgba(18, 22, 31, 0.8); color: var(--text);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.lightbox__close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 28px; line-height: 1; }
.lightbox__nav { top: 50%; translate: 0 -50%; width: 52px; height: 52px; font-size: 32px; line-height: 1; padding-bottom: 4px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.08); }
@media (max-width: 700px) {
  .lightbox { padding: 72px 12px 96px; }
  .lightbox__nav { top: auto; bottom: 22px; translate: none; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .hero__particles, .cursor-glow, .hero__blob { display: none; }
}
