/*
  Apple-inspired portfolio theme
  - focus on whitespace, crisp type, gentle motion, high contrast
  - system font stack for performance
*/

:root {
  /* Neutral, Nothing-style palette */
  --bg: #0a0a0a;
  --surface: #111213;
  --text: #e8e8e8;
  --muted: #a9a9a9;
  --primary: #f2f2f2;
  --accent: #cacaca; /* subtle neutral link color */
  --card: #151617;
  --border: #232425;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.35);
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 16px 48px rgba(0,0,0,.45);

  --container: 1120px;
}

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background canvas behind everything */
#bg { position: fixed; inset: 0; z-index: -1; display: block; background: radial-gradient(1200px 800px at 50% 120%, #0f1216, transparent 60%); }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem .75rem; background: #fff; color: #000; border-radius: .5rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 600; color: var(--primary); text-decoration: none; letter-spacing: .2px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.nav__pfp { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.2); }
.nav__links { display: flex; gap: 1.25rem; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav__links a:hover, .nav__links a:focus { color: var(--primary); }
.nav__links a.is-active { color: var(--primary); position: relative; }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: rgba(255,255,255,.4); border-radius: 2px; }

/* Optional centered pill (Nothing-like) -- desktop only */
@media (min-width: 900px) {
  .nav__inner { justify-content: center; gap: 1rem; }
  .brand { position: absolute; left: 1rem; }
  .nav__links { background: rgba(255,255,255,0.06); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: .25rem .6rem; }
  .nav__links a { padding: .4rem .6rem; border-radius: 999px; }
  .nav__links a:hover { background: rgba(255,255,255,.06); }
}

/* Mobile menu */
.nav__menu { display: none; background: none; border: 0; padding: .25rem; cursor: pointer; }
.nav__menu span { display: block; width: 22px; height: 2px; background: var(--primary); margin: 5px 0; border-radius: 2px; transition: .2s ease; }
.nav__mobile { display: none; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__mobile.open { display: grid; gap: .75rem; padding: .75rem 1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav__mobile a { color: var(--primary); text-decoration: none; padding: .5rem .25rem; }
}

/* Sections */
.section { padding: 72px 0; }
.section { scroll-margin-top: 76px; } /* anchor offset below sticky nav */
.section--pad-lg { padding: 104px 0; }
.section--pad-none { padding: 0; }
.section--surface { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)) var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__header { display:flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section__title { font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: .2px; margin: 0 0 .25rem; }
.section__subtitle { margin: 0; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 96px; padding-bottom: 72px; }
.hero__inner { position: relative; }
.hero__eyebrow { color: var(--muted); font-size: .95rem; }
.hero__title { font-size: clamp(2.2rem, 6.8vw, 4rem); line-height: 1.08; margin: .25rem 0 .75rem; }
.hero__subtitle { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #c9c9c9; max-width: 62ch; }
.hero__ctas { margin-top: 1.25rem; display: flex; gap: .75rem; }

.gradient-text {
  background: linear-gradient(90deg, #ffffff, #cfcfcf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Remove colorful orbs; new portrait/glass styles */
.hero__grid { display: none; }
.hero__media { display: none; }
.hero-product { display: none; }
.hero__copy { display: flex; flex-direction: column; max-width: 900px; margin-inline: auto; text-align: left; }
.hero__copy--center { text-align: center; }
.hero__copy--center .hero__subtitle { margin-inline: auto; }
.hero__title { margin-top: .25rem; }
.hero__subtitle { margin-top: .6rem; max-width: 58ch; }
.hero { padding-top: 80px; padding-bottom: 56px; }

/* Stage CTA */
.stage-cta { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: min(640px, 92vw); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; padding: .85rem; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.stage-cta__title { font-size: 1.25rem; letter-spacing: .3px; }
.stage-cta__sub { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.stage-cta__thumb { position: relative; display: grid; grid-auto-flow: column; align-items: center; gap: .5rem; }
.stage-cta__thumb .mock-media { width: 52px; height: 72px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); }
.chip { display: inline-block; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .2rem .6rem; font-weight: 600; color: var(--text); text-decoration: none; background: rgba(255,255,255,.08); }
.chip:hover { background: rgba(255,255,255,.12); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card { background: color-mix(in oklab, var(--card), black 4%); border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; box-shadow: var(--shadow-sm); position: relative; }
.card__media { aspect-ratio: 16/9; background: linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0)); border-bottom: 1px solid var(--border); }
.bg-gradient { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)); }
.card__body { padding: 1rem; }
.card__title { margin: 0 0 .25rem; font-size: 1.1rem; letter-spacing: .2px; }
.card__text { margin: 0 0 .75rem; color: var(--muted); }
.card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.card__tags span { border: 1px solid var(--border); background: #151515; color: #cfcfcf; border-radius: var(--radius-sm); padding: .25rem .5rem; font-size: .8rem; }
.card__actions { display: flex; gap: .5rem; }

/* About */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: center; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.avatar-stack { position: relative; width: 260px; height: 260px; }
.avatar { width: 240px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #1a1a1a; object-fit: cover; display: block; }
.lead { color: #d5d5d5; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chips span { background: #151515; border: 1px solid var(--border); border-radius: 999px; padding: .35rem .6rem; font-size: .85rem; color: #cfcfcf; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.timeline__item { position: relative; padding-left: 1.75rem; border-left: 1px solid var(--border); }
.timeline__dot { position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.timeline__content h3 { margin: 0 0 .25rem; font-size: 1rem; }
.muted { color: var(--muted); margin: 0 0 .25rem; }

/* Contact */
.contact { text-align: center; }
.contact__actions { display: flex; gap: .75rem; justify-content: center; margin-top: .5rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 24px 0; background: #0e0e0e; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer__links { display: flex; gap: 1rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .9rem; border-radius: 12px; text-decoration: none; font-weight: 600; letter-spacing: .2px; border: 1px solid transparent; }
.btn:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }
.btn--primary { background: #fff; color: #000; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 24px rgba(0,0,0,.35); }
.btn--primary:hover { filter: brightness(0.98); }
.btn--ghost { color: var(--primary); border-color: var(--border); background: #151515; }
.btn--ghost:hover { background: #1a1a1a; }
.btn--link { color: var(--text); text-decoration: none; padding: .25rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.btn--link:hover { color: var(--primary); border-bottom-color: rgba(255,255,255,.35); }

/* Subtle effects */
.reveal { opacity: 0; transform: translateY(12px); }
.fade-up { opacity: 0; transform: translateY(10px); animation: fadeUp .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Scroll cue */
.scroll-cue { display: none; }

/* Tilt hover */
.tilt { transform-style: preserve-3d; }
.tilt:hover { outline: 1px solid color-mix(in oklab, var(--accent), white 10%); }

/* Parallax utility */
.parallax { will-change: transform; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal, .tilt, .parallax, .scroll-cue .wheel { animation: none !important; transition: none !important; transform: none !important; }
}

/* Simple list blocks (Education, Certifications) */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.list li { background: color-mix(in oklab, var(--card), black 4%); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; }
.list__title { font-weight: 600; }
.list__meta { color: var(--muted); font-size: .95rem; }

/* Showcase removed */
