/* ====== Netflix-like Dark Premium ====== */
:root{
  --bg: #0b0b0f;
  --bg2:#0f1018;
  --card:#121321;
  --card2:#15172a;
  --text:#f3f4f6;
  --muted:#b8bcc7;
  --line: rgba(255,255,255,.08);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --accent:#e50914;          /* vibe Netflix */
  --accent2:#ff3942;
  --good:#49f2a2;
  --radius: 18px;
  --radius2: 24px;
  --container: 1120px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 5%, rgba(229,9,20,.18), transparent 55%),
              radial-gradient(900px 650px at 80% 20%, rgba(255,57,66,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
}

a{ color:inherit; text-decoration:none; }
strong{ color:#ffffff; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{ left: 16px; top: 16px; width:auto; height:auto; padding:10px 12px; border-radius:12px; background:var(--card); border:1px solid var(--line); z-index:9999; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(229,9,20,.95), rgba(170,0,10,.95));
  color:#fff;
  box-shadow: 0 10px 30px rgba(229,9,20,.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  cursor:pointer;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 50px rgba(229,9,20,.25); }
.btn:active{ transform: translateY(0px) scale(.99); }

.btn--ghost{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
}
.btn--ghost:hover{ background: rgba(255,255,255,.06); }

.link{
  color: rgba(255,255,255,.9);
  opacity:.85;
  transition: opacity .2s var(--ease);
}
.link:hover{ opacity:1; }

.topbar{
  position: sticky;
  top:0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11,11,15,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar[data-elevate].is-elevated{
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  background: rgba(11,11,15,.72);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  padding: 8px 10px;
  border-radius: 14px;
}
.brand:hover{ background: rgba(255,255,255,.04); }
.brand__dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(229,9,20,.18);
}
.brand__name{ font-weight: 700; letter-spacing:.2px; }

.nav{ display:flex; gap:18px; }
.nav a{
  opacity:.82;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.nav a:hover{ opacity:1; background: rgba(255,255,255,.04); }

.topbar__actions{ display:flex; align-items:center; gap:10px; }
.iconbtn{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.iconbtn__bar{
  display:block;
  width:18px; height:2px;
  margin:4px auto;
  background: rgba(255,255,255,.88);
  border-radius:99px;
}

.mobile{
  border-top: 1px solid rgba(255,255,255,.06);
}
.mobile__inner{
  padding: 14px 0 16px;
  display:grid;
  gap:10px;
}
.mobile__link{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  opacity:.9;
}
.mobile__link:hover{ background: rgba(255,255,255,.05); opacity:1; }

/* ====== HERO ====== */
.hero{
  position:relative;
  padding: 56px 0 28px;
  overflow:hidden;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: start;
}
.kicker{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  letter-spacing:.25px;
}
.title{
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
  margin: 14px 0 12px;
  letter-spacing: -0.02em;
}
.title__accent{
  display:inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.subtitle{
  max-width: 60ch;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; margin: 8px 0 18px; }

.hero__stats{
  display:flex; gap:14px; flex-wrap:wrap;
  padding-top: 12px;
}
.stat{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  min-width: 160px;
}
.stat__num{ font-weight: 800; letter-spacing:.2px; }
.stat__label{ display:block; color: rgba(255,255,255,.72); font-size: 13px; margin-top: 2px; }

.hero__card{
  position:relative;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.shine{
  position:absolute;
  inset:-120px -220px auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(229,9,20,.18), transparent 58%);
  transform: rotate(15deg);
  pointer-events:none;
}
.profile{ padding: 18px; }
.profile__imgwrap{
  position:relative;
  width: 120px; height: 120px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: 0 18px 45px rgba(0,0,0,.4);
}
.profile__ring{
  position:absolute; inset:-16px;
  border-radius: 999px;
  border: 1px solid rgba(229,9,20,.28);
  box-shadow: 0 0 0 10px rgba(229,9,20,.08);
  pointer-events:none;
}
.profile__img{
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.02);
}
.profile__meta{ padding-top: 14px; }
.profile__name{ margin: 4px 0 2px; font-size: 20px; letter-spacing:.2px; }
.profile__role{ margin:0 0 12px; color: rgba(255,255,255,.74); }

.chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 12px; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size: 12px;
  color: rgba(255,255,255,.84);
}
.profile__links{ display:flex; gap:14px; flex-wrap:wrap; margin: 10px 0 14px; }
.profile__cta{ display:flex; gap:10px; flex-wrap:wrap; }

.hero__fade{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg2));
  pointer-events:none;
}

/* ====== SECTIONS ====== */
.section{ padding: 56px 0; }
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section__head{ margin-bottom: 18px; }
.h2{
  margin:0;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.lead{
  margin: 10px 0 0;
  color: rgba(255,255,255,.76);
  line-height: 1.6;
  max-width: 76ch;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 16px 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.h3{ margin: 2px 0 8px; font-size: 16px; }
.card p{ margin:0; color: rgba(255,255,255,.72); line-height: 1.6; }

/* ====== Skills ====== */
.skillgrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.panel{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.panel__title{ margin:0 0 10px; font-size: 14px; color: rgba(255,255,255,.86); letter-spacing:.2px; }
.pillset{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.15);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.pill[data-hot="true"]{
  border-color: rgba(229,9,20,.32);
  box-shadow: 0 0 0 6px rgba(229,9,20,.08) inset;
}

/* ====== Projects ====== */
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.filters{ display:flex; gap:8px; flex-wrap:wrap; }
.filter{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  cursor:pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.filter:hover{ background: rgba(255,255,255,.05); transform: translateY(-1px); }
.filter[aria-pressed="true"]{
  background: rgba(229,9,20,.14);
  border-color: rgba(229,9,20,.32);
  color:#fff;
}

.searchbox input{
  width: min(360px, 84vw);
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  outline: none;
}
.searchbox input:focus{
  border-color: rgba(229,9,20,.45);
  box-shadow: 0 0 0 6px rgba(229,9,20,.10);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.pcard{
  position:relative;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 16px;
  cursor:pointer;
  overflow:hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.pcard:hover{
  transform: translateY(-2px);
  border-color: rgba(229,9,20,.28);
}
.pcard__top{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
}
.badge{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.pcard__title{ margin: 12px 0 8px; font-size: 16px; }
.pcard__desc{ margin:0; color: rgba(255,255,255,.72); line-height: 1.55; }
.pcard__tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 12px; }
.tag{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.note{
  margin-top: 18px;
  display:flex; gap:12px; align-items:flex-start;
  padding: 14px 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.note__dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--good);
  box-shadow: 0 0 0 7px rgba(73,242,162,.10);
  margin-top: 6px;
}

/* ====== Contact ====== */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.contact__card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.contact__card--form{ background: rgba(0,0,0,.14); }
.contact__row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  margin-top: 10px;
}
.label{ color: rgba(255,255,255,.68); font-size: 13px; }
.value{ color: rgba(255,255,255,.9); opacity:.92; }
.contact__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.muted{ color: rgba(255,255,255,.72); margin: 0 0 12px; }

.field{ display:grid; gap:8px; margin-top: 12px; }
.field span{ color: rgba(255,255,255,.75); font-size: 13px; }
.field input, .field textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  outline: none;
}
.field input:focus, .field textarea:focus{
  border-color: rgba(229,9,20,.45);
  box-shadow: 0 0 0 6px rgba(229,9,20,.10);
}

/* ====== Modal ====== */
.modal{
  width: min(820px, calc(100% - 24px));
  border:none;
  padding:0;
  border-radius: 22px;
  background: transparent;
}
.modal::backdrop{
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
}
.modal__inner{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(18,19,33,.96), rgba(12,12,18,.96));
  box-shadow: 0 26px 90px rgba(0,0,0,.55);
  padding: 18px;
  position:relative;
}
.modal__close{
  position:absolute;
  right: 12px; top: 10px;
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-size: 22px;
  cursor:pointer;
}
.modal__close:hover{ background: rgba(255,255,255,.06); }
.modal h3{ margin: 8px 0 8px; }
.modal p{ margin: 0 0 10px; color: rgba(255,255,255,.74); line-height: 1.65; }
.kv{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.kv strong{ color: rgba(255,255,255,.88); font-weight: 700; }
.kv span{ color: rgba(255,255,255,.78); }
.modal .tagsline{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 12px; }

/* ====== Footer ====== */
.footer{
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.76);
}
.footer__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

/* ====== Reveal on scroll ====== */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* ====== Responsive ====== */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .skillgrid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .iconbtn{ display:inline-block; }
}
