:root{
  --bg0:#06070a;
  --bg1:#0b0f16;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.085);
  --line: rgba(255,255,255,0.14);
  --txt: rgba(241,245,255,0.92);
  --muted: rgba(241,245,255,0.68);
  --shadow: 0 14px 44px rgba(0,0,0,0.38);
  --shadow2: 0 18px 70px rgba(0,0,0,0.48);
  --r: 18px;
  --r2: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--txt);
  background:
    radial-gradient(1100px 700px at 20% -10%, rgba(120,160,255,0.25), transparent 55%),
    radial-gradient(900px 650px at 110% 10%, rgba(240,140,255,0.16), transparent 52%),
    radial-gradient(900px 650px at 30% 120%, rgba(120,255,196,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow:hidden;
}

/* TOPBAR */
.topbar{
  position: fixed;
  top:0; left:0; right:0;
  height: 78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(6,8,12,0.58);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.topbar-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 320px;
}
.avatar{
  width: 46px; height: 46px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow);
}
.avatar img{ width:100%; height:100%; object-fit:cover; }
.topbar-title h1{
  margin:0;
  font-size: 1.02rem;
  line-height:1.15;
}
.topbar-title p{
  margin:2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tabs{
  display:flex;
  gap:8px;
  align-items:center;
  overflow:auto;
  padding: 6px 4px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar{ display:none; }

.tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(241,245,255,0.78);
  text-decoration:none;
  font-size: 0.92rem;
  white-space:nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.tab:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.tab.active{
  background: linear-gradient(135deg, rgba(120,160,255,0.28), rgba(240,140,255,0.18));
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.95);
}

.present-tools{
  display:flex;
  gap:8px;
  align-items:center;
  padding-left: 10px;
}
.toolbtn{
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(241,245,255,0.84);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.toolbtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

/* SCROLL MAIN */
.scroll{
  position: absolute;
  inset: 78px 0 0 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* PANEL */
.panel{
  min-height: calc(100vh - 78px);
  scroll-snap-align: start;
  padding: 22px 18px 42px;
  display:flex;
  align-items:center;
}
.panel-inner{
  width: min(1200px, 100%);
  margin: 0 auto;
}

h2{
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  letter-spacing: 0.2px;
}
h3{ margin: 0 0 10px; }
h4{ margin: 0 0 8px; }

.lead{
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(241,245,255,0.88);
}
.muted{ color: var(--muted); }

.hero{
  display:grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
}
.hero-right{ display:grid; gap: 14px; }

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* CARDS */
.card, .big-card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r2);
  padding: 14px 14px;
  box-shadow: var(--shadow);
}
.big-card{
  background: rgba(255,255,255,0.07);
  padding: 16px 16px;
}
.card ul, .card ol{ margin: 10px 0 0; padding-left: 18px; }
.card li{ margin: 5px 0; }

.item{
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.item:first-of-type{ border-top:0; padding-top: 0; }
.item-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(241,245,255,0.85);
  font-size: 0.85rem;
}
.pill-note{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(241,245,255,0.85);
  width: fit-content;
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skills{
  margin-top: 10px;
}

.tags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(241,245,255,0.82);
  font-size: 0.9rem;
}

/* Steps */
.steps{
  margin: 10px 0 0;
  padding-left: 18px;
}
.steps li{ margin: 7px 0; }

/* Images / gallery */
.shot{
  margin: 0;
  overflow:hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  box-shadow: var(--shadow2);
}
.shot img{
  width: 100%;
  display:block;
  height: 260px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .25s ease;
}
.shot:hover img{ transform: scale(1.04); }
.shot figcaption{
  padding: 10px 12px 12px;
  color: rgba(241,245,255,0.78);
  font-size: 0.92rem;
}

/* Clickable image */
.img-link{
  display:block;
  cursor: zoom-in;
}

/* PDF */
.pdf-wrap{
  position: relative;
  width: 100%;
  padding-top: 130%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  box-shadow: var(--shadow2);
}
.pdf-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* Hint */
.hint{
  margin-top: 16px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(241,245,255,0.65);
}
.mouse{
  width: 18px; height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.25);
  position: relative;
}
.mouse:after{
  content:"";
  position:absolute;
  left:50%; top:6px;
  width:4px; height:4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  transform: translateX(-50%);
  animation: wheel 1.2s infinite ease-in-out;
}
@keyframes wheel{
  0%{ opacity:0; transform: translate(-50%, 0); }
  30%{ opacity:1; }
  100%{ opacity:0; transform: translate(-50%, 10px); }
}

/* Anim panel in */
.panel .panel-inner{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .28s ease, transform .28s ease;
}
.panel.in .panel-inner{
  opacity: 1;
  transform: translateY(0);
}

/* Links */
a{ color: rgba(170,200,255,0.92); }
a:hover{ color: rgba(210,220,255,0.98); }

/* Footer */
.end{
  margin-top: 16px;
  padding: 14px 6px 0;
  color: rgba(241,245,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9999;
}
.lightbox.open{
  opacity: 1;
  pointer-events: auto;
}
.lb-img{
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 25px 80px rgba(0,0,0,0.60);
  background: rgba(0,0,0,0.25);
}
.lb-close{
  position: fixed;
  top: 92px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(20,20,20,0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.lb-close:hover{
  background: rgba(30,30,30,0.78);
}

/* Responsive */
@media (max-width: 1040px){
  .hero{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .shot img{ height: 220px; }
  .topbar-left{ min-width: 240px; }
}
@media (max-width: 820px){
  .grid-2{ grid-template-columns: 1fr; }
  .shot img{ height: 200px; }
  .topbar{ height: 84px; }
  .scroll{ inset: 84px 0 0 0; }
  .panel{ min-height: calc(100vh - 84px); }
}
