/* =========================
   Design system (no libs)
   ========================= */
:root{
  --bg: #0b1020;
  --bg2:#070a12;
  --text:#e9ecf6;
  --muted:#aab2d5;
  --card: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --shadow: 0 20px 80px rgba(0,0,0,.45);
  --shadow2: 0 12px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 24px;
  --accent: #7c5cff;
  --accent2:#18e0ff;
  --ok:#2ee59d;
  --warn:#ffcc66;
  --danger:#ff5c7a;
  --blur: 16px;
  --container: 1100px;
}

:root[data-theme="light"]{
  --bg: #f7f8ff;
  --bg2:#eef0ff;
  --text:#12162a;
  --muted:#4a5270;
  --card: rgba(255,255,255,.70);
  --stroke: rgba(15,20,40,.10);
  --shadow: 0 25px 90px rgba(20,28,60,.18);
  --shadow2: 0 12px 40px rgba(20,28,60,.12);
}

*{ 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", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(900px 700px at 80% 30%, rgba(24,224,255,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100svh;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
strong{ font-weight:700; }

.container{
  width:min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.muted{ color:var(--muted); }
.tiny{ font-size: 12px; line-height: 1.4; }

.glass{
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius2);
}

/* =========================
   Background Orbs
   ========================= */
.bg-orbs{ position:fixed; inset:0; pointer-events:none; z-index:-1; }
.orb{
  position:absolute;
  width: 520px; height:520px;
  filter: blur(30px);
  opacity:.45;
  border-radius:999px;
  transform: translate3d(0,0,0);
  animation: float 12s ease-in-out infinite;
}
.orb.o1{ left:-140px; top:-140px; background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.7), transparent 60%); }
.orb.o2{ right:-180px; top:120px; width:620px; height:620px; background: radial-gradient(circle at 35% 35%, rgba(24,224,255,.55), transparent 62%); animation-duration: 14s; }
.orb.o3{ left:140px; bottom:-220px; width:720px; height:720px; background: radial-gradient(circle at 40% 40%, rgba(46,229,157,.40), transparent 62%); animation-duration: 16s; }

@keyframes float{
  0%,100%{ transform: translateY(0) translateX(0) scale(1); }
  50%{ transform: translateY(18px) translateX(12px) scale(1.03); }
}

/* =========================
   Topbar + Nav
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  margin: 10px auto 0;
  width: min(var(--container), calc(100% - 32px));
  border-radius: 22px;
  background: rgba(20,26,55,.35);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow2);
}
:root[data-theme="light"] .topbar{
  background: rgba(255,255,255,.55);
}

.brand{ display:flex; gap:12px; align-items:center; }
.brand__logo{
  width:40px; height:40px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(24,224,255,.85));
  color:white;
  font-weight:800;
  letter-spacing:.5px;
  box-shadow: 0 10px 30px rgba(124,92,255,.25);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__name{ font-weight:800; }
.brand__role{ font-size: 12px; color: var(--muted); }

.nav{ display:flex; gap:10px; align-items:center; }
.nav__link{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 14px;
  transition: .2s ease;
}
.nav__link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.nav__link.is-active{
  color: var(--text);
  background: rgba(124,92,255,.18);
  border: 1px solid rgba(124,92,255,.25);
}

.nav__cta{
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24,224,255,.25);
  background: rgba(24,224,255,.10);
  transition: .2s ease;
}
.nav__cta:hover{
  transform: translateY(-1px);
  background: rgba(24,224,255,.14);
}

.topbar__actions{ display:flex; gap:10px; align-items:center; }

/* Hamburger (mobile) */
.hamburger{ display:none; }
.hamburger__lines{
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  display:block;
  border-radius: 999px;
}
.hamburger__lines::before,
.hamburger__lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition:.2s ease;
}
.hamburger__lines::before{ top:-7px; }
.hamburger__lines::after{ top:7px; }

/* =========================
   Buttons
   ========================= */
.btn{
  position:relative;
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  transition: .18s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn:active{ transform: translateY(0px) scale(.99); }
.btn--ghost{
  background: transparent;
}
.btn--primary{
  border: 1px solid rgba(124,92,255,.32);
  background: linear-gradient(135deg, rgba(124,92,255,.75), rgba(24,224,255,.35));
  box-shadow: 0 14px 40px rgba(124,92,255,.18);
}
.btn__shine{
  position:absolute;
  inset: -1px;
  border-radius: 16px;
  background: radial-gradient(650px 180px at 0% 0%, rgba(255,255,255,.26), transparent 45%);
  opacity: .55;
  pointer-events:none;
  mix-blend-mode: screen;
}
.icon{ font-size: 16px; }

/* =========================
   Sections & Layout
   ========================= */
.section{
  margin-top: 34px;
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.section__head h2{
  margin:0;
  font-size: 28px;
  letter-spacing: .2px;
}
.section__head p{ margin:0; max-width: 60ch; }

.grid{ display:grid; gap: 14px; }
.grid--2{ grid-template-columns: 1fr 1fr; }
.grid--3{ grid-template-columns: 1fr 1fr 1fr; }

.card{ padding: 18px; border-radius: var(--radius2); }
.card__title{ margin:0 0 10px; font-size: 18px; }
.callout{
  margin-top: 12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.20);
  background: rgba(255,255,255,.05);
}
:root[data-theme="light"] .callout{
  border-color: rgba(20,28,60,.18);
  background: rgba(20,28,60,.04);
}
.callout__icon{ font-size: 18px; }

/* =========================
   Hero
   ========================= */
.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  margin-top: 18px;
}
.hero__card{ padding: 22px; }
.hero__badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
}
.dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(46,229,157,.12);
}
.hero__title{
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.5px;
}
.hero__subtitle{
  display:block;
  margin-top: 4px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}
.hero__lead{
  margin: 10px 0 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}
.hero__quick{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 14px; }
.pill{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
}
.hero__buttons{ display:flex; flex-wrap:wrap; gap:10px; margin: 12px 0 14px; }
.hero__stats{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.stat{
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}
.stat__num{ font-weight: 900; font-size: 20px; letter-spacing:-.3px; }
.stat__label{ font-size: 12px; color: var(--muted); margin-top: 4px; }

.hero__side{ display:flex; flex-direction:column; gap:14px; }

/* =========================
   Lists
   ========================= */
.checklist, .bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.checklist li{ margin: 6px 0; }
.bullets li{ margin: 7px 0; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  color: var(--muted);
}

/* =========================
   Skills filter + tiles
   ========================= */
.skills{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 12px; }
.skill{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor:pointer;
  transition:.2s ease;
}
.skill:hover{ color: var(--text); transform: translateY(-1px); }
.skill.is-active{
  color: var(--text);
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.25);
}

.tile{
  padding: 16px;
  border-radius: var(--radius2);
  transition: .22s ease;
  position:relative;
  overflow:hidden;
}
.tile::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(500px 180px at 0% 0%, rgba(124,92,255,.18), transparent 50%),
              radial-gradient(420px 160px at 90% 10%, rgba(24,224,255,.14), transparent 55%);
  opacity:.9;
  pointer-events:none;
}
.tile > *{ position:relative; }
.tile h3{ margin: 0 0 6px; }
.tile:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.hint{ margin-top: 8px; }

/* =========================
   Timeline
   ========================= */
.timeline{ display:flex; flex-direction:column; gap:14px; }
.timeline__item{
  display:grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 18px;
}
.timeline__dot{
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(24,224,255,.85));
  box-shadow: 0 0 0 10px rgba(124,92,255,.12);
}
.timeline__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
}
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.tag{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
}

/* =========================
   Projects
   ========================= */
.project{
  cursor:pointer;
  transition:.22s ease;
}
.project__icon{ font-size: 26px; margin-bottom: 8px; }
.linklike{
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent2);
  cursor:pointer;
  font-weight: 700;
}
.project:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

/* =========================
   Contacts
   ========================= */
.contact-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
:root[data-theme="light"] .contact-row{
  border-bottom-color: rgba(20,28,60,.08);
}
.contact-row:last-child{ border-bottom: 0; }
.contact-row__label{ color: var(--muted); min-width: 90px; }
.contact-row__value{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.link{ color: var(--text); text-decoration: underline; text-decoration-color: rgba(24,224,255,.35); }
.link:hover{ text-decoration-color: rgba(24,224,255,.70); }

.mini{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor:pointer;
  transition:.18s ease;
}
.mini:hover{ color: var(--text); transform: translateY(-1px); }

/* Form */
.form{ display:flex; flex-direction:column; gap: 12px; }
.field span{ display:block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.input{
  width:100%;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  padding: 12px 12px;
  color: var(--text);
  outline:none;
  transition:.18s ease;
}
.input:focus{
  border-color: rgba(124,92,255,.35);
  box-shadow: 0 0 0 6px rgba(124,92,255,.12);
}
.textarea{ resize: vertical; min-height: 110px; }

/* =========================
   PDF
   ========================= */
.pdf{ padding: 14px; }
.pdf__frame{
  width:100%;
  height: min(78vh, 860px);
  border: 0;
  border-radius: 16px;
  background: rgba(0,0,0,.08);
}
.pdf__hint{ margin-top: 10px; }

/* =========================
   Footer
   ========================= */
.footer{
  margin-top: 34px;
  padding: 16px 6px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.footer__right{ display:flex; gap:10px; align-items:center; }
.dotsep{ opacity:.6; }

/* =========================
   Modal + Toast
   ========================= */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  place-items:center;
  z-index: 50;
}
.modal.is-open{ display:grid; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.modal__panel{
  position:relative;
  width: min(640px, calc(100% - 28px));
  padding: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.modal__close{
  position:absolute;
  right: 12px;
  top: 12px;
  width: 36px; height: 36px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.modal__title{ margin: 6px 0 6px; }
.modal__text{ margin: 0 0 14px; line-height: 1.55; }
.modal__actions{ display:flex; gap:10px; flex-wrap:wrap; }

.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(20,26,55,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  box-shadow: var(--shadow2);
  opacity: 0;
  transform: translateY(10px);
  transition: .25s ease;
  z-index: 60;
  max-width: 360px;
}
:root[data-theme="light"] .toast{ background: rgba(255,255,255,.70); }
.toast.is-show{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Reveal animation
   ========================= */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .hero__stats{ grid-template-columns: 1fr 1fr; }
  .grid--3{ grid-template-columns: 1fr 1fr; }
  .section__head{ flex-direction:column; align-items:flex-start; }
  .nav{ gap:6px; }
}
@media (max-width: 720px){
  .grid--2, .grid--3{ grid-template-columns: 1fr; }
  .hero__stats{ grid-template-columns: 1fr; }
  .nav{
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(20,26,55,.70);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow2);
    display:none;
    flex-direction:column;
    align-items:stretch;
  }
  :root[data-theme="light"] .nav{ background: rgba(255,255,255,.72); }
  .nav.is-open{ display:flex; }
  .nav__link, .nav__cta{ width: 100%; text-align:left; }
  .hamburger{ display:inline-flex; }
}
