:root{
  --bg: #0b111a;
  --surface: #0f1723;
  --text: #e7edf7;
  --muted: rgba(231,237,247,.72);

  /* UIverse-like neumorphism: soft, consistent light source */
  --shadowA: 12px 12px 24px rgba(0,0,0,.55);
  --shadowB: -12px -12px 24px rgba(255,255,255,.035);

  --insetA: inset 10px 10px 20px rgba(0,0,0,.55);
  --insetB: inset -10px -10px 20px rgba(255,255,255,.04);

  --border: rgba(255,255,255,.06);
  --radius: 22px;
  --radius2: 16px;

  /* One accent (quiet) */
  --accent: #7cc7ff;

  --max: 1120px;
  --navH: 72px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
strong{font-weight:700}
.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto;}

.ambient{
  position:fixed; inset:0; z-index:-2;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124,199,255,.10), transparent 60%),
    radial-gradient(800px 500px at 85% 15%, rgba(124,199,255,.07), transparent 65%),
    radial-gradient(900px 600px at 55% 110%, rgba(124,199,255,.06), transparent 70%);
  filter: blur(2px);
  opacity: .85;
}

/* neumorphism surfaces */
.neu{
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadowA), var(--shadowB);
  border-radius: var(--radius);
}
.neuInset{
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  box-shadow: var(--insetA), var(--insetB);
  border-radius: 999px;
}

/* buttons */
.neuBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadowA), var(--shadowB);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor:pointer;
  user-select:none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.neuBtn:hover{transform: translateY(-1px); filter: brightness(1.02);}
.neuBtn:active{
  transform: translateY(0px);
  box-shadow: var(--insetA), var(--insetB);
}
.neuBtn--accent{
  border-color: rgba(124,199,255,.22);
  background: linear-gradient(180deg, rgba(124,199,255,.14), rgba(255,255,255,.02));
}

/* NAV */
.navWrap{
  position:sticky;
  top:0;
  z-index:50;
  padding: 14px 0;
  backdrop-filter: blur(10px);
}
.nav{
  width:min(var(--max), calc(100% - 26px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: 22px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 999px;
}
.brand:hover{background: rgba(255,255,255,.03);}
.brandDot{
  width:10px; height:10px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(124,199,255,.08);
}
.brandName{font-weight:800; letter-spacing:.6px}
.brandTag{
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.navLinks{
  display:flex;
  align-items:center;
  gap:10px;
}
.navLink{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 999px;
}
.navLink:hover{color: var(--text); background: rgba(255,255,255,.03);}
.navLink.active{
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.resumeBtn{white-space:nowrap}

/* mobile nav */
.navToggle{
  display:none;
  width:44px; height:44px;
}
.navToggle span{
  display:block;
  width:18px; height:2px;
  margin:5px auto;
  background: rgba(231,237,247,.85);
  border-radius: 2px;
}

/* PAGE */
.page{padding-bottom: 40px;}
.section{
  padding: 72px 0;
  scroll-margin-top: calc(var(--navH) + 26px);
}
.sectionHead{
  margin-bottom: 22px;
}
.h1{
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  margin: 10px 0 14px;
  letter-spacing: -1px;
}
.h2{
  margin:0 0 8px;
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.6px;
}
.h3{margin:0 0 8px; font-size:18px}
.lead{
  margin:0 0 18px;
  color: var(--muted);
  max-width: 65ch;
  font-size: 16px;
  line-height: 1.6;
}
.sub{margin:0; color: var(--muted); max-width: 70ch; line-height:1.6}
.muted{color: var(--muted); line-height:1.6}

.accent{color: var(--accent); font-weight: 800;}
.quote{color: rgba(231,237,247,.45);}

.hero{
  padding: 26px 0 10px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items:start;
}
.chipRow{display:flex; gap:10px; flex-wrap:wrap;}
.chip{
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(231,237,247,.78);
}

.heroActions{display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 18px;}
.miniRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
.mini{
  padding: 14px 14px;
  border-radius: 18px;
}
.miniK{font-weight:800; font-size:12px; color: rgba(231,237,247,.7); letter-spacing:.3px}
.miniV{margin-top:6px; font-weight:600; color: rgba(231,237,247,.9);}

.heroRight{display:flex; flex-direction:column; gap: 12px;}
.avatarCard{
  padding: 14px;
  border-radius: var(--radius);
}
.avatar{
  position:relative;
  display:block;
  width: 220px;
  height: 220px;
  margin-left:auto;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadowA), var(--shadowB);
  background: rgba(255,255,255,.02);
  transition: transform .22s ease, box-shadow .22s ease;
}
.avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s ease, filter .35s ease;
  filter: contrast(1.02) saturate(1.02);
}
.sheen{
  position:absolute;
  inset:-40%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.12), transparent 65%);
  transform: translateX(-40%) rotate(12deg);
  opacity:0;
  transition: opacity .35s ease;
}
.avatar:hover{
  transform: translateY(-2px);
}
.avatar:hover img{
  transform: scale(1.06);
  filter: contrast(1.06) saturate(1.06);
}
.avatar:hover .sheen{
  opacity:1;
  animation: sheen 1.1s ease forwards;
}
@keyframes sheen{
  to{transform: translateX(60%) rotate(12deg);}
}
.avatarText{
  margin-top: 12px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:baseline;
}
.avatarTitle{font-weight:800}
.avatarSub{color: var(--muted); font-size: 13px;}

.status{
  padding: 14px 16px;
  border-radius: var(--radius);
}
.statusRow{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.statusRow:last-child{border-bottom:none}
.statusK{color: var(--muted); font-size: 13px;}
.statusV{font-weight: 700; font-size: 13px;}

.scrollHint{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin-top: 18px;
  color: rgba(231,237,247,.55);
  font-size: 13px;
}
.mouse{
  width: 22px; height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  position:relative;
}
.mouse::after{
  content:"";
  position:absolute;
  left:50%; top:7px;
  width:3px; height:6px;
  border-radius: 3px;
  background: rgba(231,237,247,.55);
  transform: translateX(-50%);
  animation: wheel 1.5s ease infinite;
}
@keyframes wheel{
  0%{opacity:.2; transform: translate(-50%, 0)}
  45%{opacity:1}
  100%{opacity:.2; transform: translate(-50%, 14px)}
}

/* layout grids */
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  padding: 18px;
  border-radius: var(--radius);
}
.pillRow{display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px;}
.pill{
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(231,237,247,.75);
}

.skillList{margin-top: 12px; display:flex; flex-direction:column; gap: 10px;}
.skill{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
}
.dots{
  display:inline-flex;
  gap: 6px;
}
.dots i{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(231,237,247,.18);
  box-shadow: 0 0 0 5px rgba(0,0,0,.08);
}
.dots i.on{
  background: rgba(124,199,255,.85);
  box-shadow: 0 0 0 5px rgba(124,199,255,.10);
}

/* projects */
.stack{display:flex; flex-direction:column; gap:14px;}
.project{
  padding: 18px;
  border-radius: var(--radius);
}
.projectTop{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.badge{
  padding: 7px 12px;
  font-size: 12px;
  color: rgba(231,237,247,.72);
}
.metaRow{display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px;}
.actions{margin-top: 12px;}
.link{
  color: var(--accent);
  font-weight: 700;
}
.link:hover{text-decoration: underline}

/* timeline */
.timeline{
  padding: 14px;
  border-radius: var(--radius);
}
.tItem{
  display:grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 14px 8px;
}
.tItem:not(:last-child){
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tDot{
  width: 12px; height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(124,199,255,.85);
  box-shadow: 0 0 0 6px rgba(124,199,255,.10);
}
.tTop{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 10px;
}
.tMeta{color: var(--muted); font-size: 12px;}

.langRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.lang{
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(231,237,247,.75);
}

/* arcade */
.arcade{
  padding: 18px;
  border-radius: var(--radius);
}
.arcadeHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.canvas{
  width:100%;
  height: 320px;
  display:block;
  border-radius: 18px;
  background: rgba(0,0,0,.14);
}
.interests{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  color: rgba(231,237,247,.72);
}

/* contact */
.contactList{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.contactItem{
  padding: 10px 12px;
  border-radius: 18px;
  color: rgba(231,237,247,.85);
}
.contactItem:hover{filter: brightness(1.03);}

.form{margin-top: 12px; display:flex; flex-direction:column; gap:12px;}
label span{display:block; margin-bottom: 6px; font-size: 12px; color: rgba(231,237,247,.65);}
.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  background: rgba(0,0,0,.18);
  outline:none;
  font-family: var(--font);
  box-shadow: var(--insetA), var(--insetB);
}
.input:focus{
  border-color: rgba(124,199,255,.22);
  box-shadow: 0 0 0 3px rgba(124,199,255,.10), var(--insetA), var(--insetB);
}
.formRow{display:flex; gap:10px; flex-wrap:wrap; margin-top: 4px;}
.formHint{min-height: 18px; font-size: 13px; color: rgba(231,237,247,.65);}

.footer{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  margin-top: 22px;
  color: rgba(231,237,247,.55);
  font-size: 12px;
}

/* subtle reveal */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in{
  opacity:1;
  transform: translateY(0);
}

/* pseudo-3D: gentle, not dizzy */
.depth{
  will-change: transform;
  transform: translateZ(0);
}

/* responsive */
@media (max-width: 980px){
  .heroGrid{grid-template-columns: 1fr; gap: 14px;}
  .avatar{margin-left:0}
  .miniRow{grid-template-columns: 1fr;}
  .grid2{grid-template-columns: 1fr;}
  .grid3{grid-template-columns: 1fr;}
  .navToggle{display:inline-flex;}
  .navLinks{
    display:none;
    position:absolute;
    left: 16px;
    right: 16px;
    top: 92px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(15,23,35,.92);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: var(--shadowA), var(--shadowB);
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
  }
  .navLinks.open{display:flex;}
}
/* =========================
   SKILL DOT LOADING STATE
========================= */

.dots i {
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* activated dots */
.dots i.on {
  opacity: 1;
  transform: scale(1);
  background: rgba(124,199,255,0.9);
  box-shadow: 0 0 0 6px rgba(124,199,255,0.12);
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* space between dots */
}
/* =========================
   WORK EXPERIENCE / TIMELINE
   ========================= */

.timeline {
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.tItem {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 1.2rem;
  position: relative;
  padding: 1.2rem 0;
}

.tItem:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 36px;
  bottom: -36px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(120, 180, 255, 0.35),
    rgba(120, 180, 255, 0.05)
  );
}

.tDot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 6px;
  background: radial-gradient(
    circle at 30% 30%,
    #9ecbff,
    #3b6fb3
  );
  box-shadow:
    0 0 0 4px rgba(80, 130, 200, 0.12),
    inset 2px 2px 4px rgba(255,255,255,0.25),
    inset -2px -2px 4px rgba(0,0,0,0.35);
}

.tTop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.tTop strong {
  font-weight: 600;
}

.tMeta {
  font-size: 0.85rem;
  opacity: 0.7;
  white-space: nowrap;
}
/* =========================
   TIMELINE — MOBILE FIX
   ========================= */

@media (max-width: 768px) {

  .timeline {
    padding: 1.5rem 1.25rem;
  }

  .tItem {
    grid-template-columns: 10px 1fr;
    gap: 1rem;
    padding: 1.4rem 0;
  }

  .tItem:not(:last-child)::after {
    left: 4px;
    top: 32px;
    bottom: -32px;
  }

  .tDot {
    width: 10px;
    height: 10px;
    margin-top: 8px;
  }

  .tTop {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .tMeta {
    font-size: 0.8rem;
    opacity: 0.6;
  }

  .timeline .muted {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

/* =========================
   EXTRA SMALL DEVICES
   ========================= */

@media (max-width: 420px) {

  .timeline {
    padding: 1.25rem 1rem;
  }

  .tItem {
    gap: 0.8rem;
  }

  .tTop strong {
    font-size: 0.95rem;
  }

  .timeline .muted {
    font-size: 0.9rem;
  }
}
