:root{
  --bg:#0c0d10;
  --panel:#111218;
  --glass:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.08);
  --text:#e9eaee;
  --muted:#9aa0aa;
  --amber:#ffb23f;
  --amber-strong:#ff8a00;
  --ring: rgba(255, 153, 0, .35);
  --radius:22px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  background: radial-gradient(1200px 800px at 80% 10%, rgba(255,153,0,.08), transparent 60%),
              radial-gradient(900px 700px at 10% 90%, rgba(255,90,0,.06), transparent 60%),
              var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

/* Ambient page glows */
.bg-glow{
  position:fixed; inset:auto;
  width:60vmax; height:60vmax;
  filter:blur(120px);
  pointer-events:none; z-index:-2; opacity:.45;
  background: radial-gradient(circle at 50% 50%, var(--ring), transparent 60%);
}
.bg-glow--lt{left:-20vmax; top:-10vmax;}
.bg-glow--rt{right:-15vmax; bottom:-15vmax;}

/* Reusables */
.container{width:min(1100px, 92vw); margin-inline:auto}
.section{padding:96px 0; position:relative}
.section__title{
  font-size:clamp(28px, 3.2vw, 40px);
  margin:0 0 12px;
  letter-spacing:-.02em;
}
.section__sub{color:var(--muted); margin:0 0 36px}
.muted{color:var(--muted)}
.display{font-size:clamp(46px, 8.5vw, 90px); letter-spacing:-.035em; line-height:.95}
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  background:linear-gradient(180deg, var(--amber), var(--amber-strong));
  color:#0c0802; font-weight:700; padding:12px 18px; border-radius:999px;
  border:0; text-decoration:none; box-shadow:0 8px 24px rgba(255,138,0,.25);
  transition:transform .2s ease, filter .2s ease, box-shadow .2s ease;
  cursor:pointer;
}
.btn:hover{transform:translateY(-1px); filter:saturate(110%); box-shadow:0 14px 36px rgba(255,138,0,.35)}
.btn--ghost{
  background:transparent; color:var(--text); border:1px solid var(--stroke);
  box-shadow:none;
}
.btn--ghost:hover{border-color:rgba(255,255,255,.22)}
.btn--pill{padding:10px 14px; font-weight:600; background:rgba(255,255,255,.07); color:var(--text)}
.btn--pill:hover{background:rgba(255,255,255,.12)}
.pill{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid var(--stroke); font-size:12px; color:var(--text)
}
.glass{
  background:var(--glass);
  border:1px solid var(--stroke);
  backdrop-filter: blur(12px);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* Navbar */
.nav{
  position:sticky; top:12px; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  width:min(1100px, 92vw); margin:12px auto;
  padding:10px 14px; border-radius:999px;
  background:rgba(16,16,22,.6); border:1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.brand{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center; font-weight:800; text-decoration:none; color:#0c0802;
  background:linear-gradient(180deg, var(--amber), var(--amber-strong));
  box-shadow:0 6px 16px rgba(255,138,0,.35)
}
.nav__links{display:flex; gap:14px; align-items:center}
.nav__link{
  color:var(--muted); text-decoration:none; padding:8px 12px; border-radius:10px; transition:.2s;
}
.nav__link:hover{color:var(--text); background:rgba(255,255,255,.06)}
.nav__link.active{color:var(--text); background:rgba(255,255,255,.08)}

/* Hero */
.hero{
  display:grid; grid-template-columns:1.15fr .85fr; align-items:center;
  gap:36px; width:min(1100px, 92vw); margin-inline:auto; padding:120px 0 60px;
}
.badge{
  display:inline-flex; align-items:center; gap:.5rem; color:#b9ffcc; font-weight:600;
  background:rgba(53, 199, 89, .12); padding:6px 10px; border-radius:999px; border:1px solid rgba(53,199,89,.25)
}
.badge .dot{width:8px; height:8px; background:#3ee281; border-radius:50%}
.hero__title{margin:16px 0 10px}
.hero__tagline{color:var(--muted); margin:0 0 18px; max-width:56ch}
.hero__contacts{list-style:none; padding:0; margin:0 0 22px; display:grid; gap:10px}
.hero__contacts a{color:inherit; text-decoration:none}
.hero__contacts i{width:20px}
.hero__cta{display:flex; gap:12px; margin-bottom:18px}
.hero__tabs{
  display:flex; gap:8px; padding:8px; width:max-content; border-radius:999px;
}
.chip{
  padding:8px 12px; border-radius:999px; color:var(--muted); text-decoration:none; border:1px solid transparent;
  transition:.2s; display:flex; align-items:center; gap:.5rem; background:transparent
}
.chip.active, .chip:hover{color:var(--text); border-color:var(--stroke); background:rgba(255,255,255,.04)}
.hero__visual{position:relative; min-height:420px}
.portrait-wrap{position:relative; width:100%; aspect-ratio:4/5; margin:auto; max-width:420px}
.portrait{
  width:100%; height:100%; object-fit:cover; border-radius:calc(var(--radius) + 6px);
  box-shadow:0 30px 60px rgba(0,0,0,.55)
}
.back-glow{
  position:absolute; inset:-10% -20% -10% -20%; z-index:-1;
  background: radial-gradient(600px 600px at 50% 30%, rgba(255,153,0,.55), transparent 60%);
  filter:blur(50px)
}
.ring{
  position:absolute; inset:auto; border-radius:50%;
  border:2px solid var(--ring); box-shadow:0 0 60px var(--ring) inset; pointer-events:none;
}
.ring--1{width:85%; height:85%; top:-6%; left:7%}
.ring--2{width:60%; height:60%; top:15%; left:20%}

/* Cards Grid */
.cards-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:18px;
}
.card{padding:22px; border-radius:var(--radius)}
.card h3{margin:0 0 10px; font-size:18px}
.tags{display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:8px 0 0}

/* Timeline */
.timeline{display:grid; gap:18px}
.t-item{padding:22px; border-radius:var(--radius); background:var(--panel); border:1px solid var(--stroke)}
.t-meta{display:flex; gap:12px; color:var(--muted); font-size:14px; margin-bottom:6px}
.t-time{background:rgba(255,255,255,.06); padding:4px 8px; border-radius:8px}
.t-points{margin:10px 0 0 18px}

/* Projects */
.projects{display:grid; grid-template-columns:repeat(2, 1fr); gap:22px}
.project{display:grid; grid-template-columns: 1fr 1.1fr; gap:16px; padding:16px}
.project__media img{
  width:100%; height:100%; object-fit:cover; border-radius:calc(var(--radius) - 6px)
}
.project__body h3{margin:6px 0 8px}
.project__meta{display:flex; gap:8px; margin:10px 0 14px}
.link{color:#ffd399; text-decoration:none; font-weight:600}
.link:hover{text-decoration:underline}

/* Education */
.edu{display:grid; grid-template-columns:repeat(3, 1fr); gap:18px}
.edu__col{padding:22px}
.edu__list{margin:6px 0 0 18px}

/* Contact */
.contact{padding:22px; max-width:820px; margin:auto}
.contact .grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
label{display:grid; gap:8px; color:var(--muted); font-weight:600; font-size:14px}
input, textarea{
  width:100%; background:rgba(255,255,255,.04); border:1px solid var(--stroke); color:var(--text);
  padding:12px 14px; border-radius:12px; outline:none; transition:border .2s
}
input:focus, textarea:focus{border-color:rgba(255,255,255,.25)}

/* Footer */
.footer{padding:28px 16px; text-align:center; color:var(--muted)}

/* Reveal animation */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease}
.reveal.visible{opacity:1; transform:none}

/* Responsive */
@media (max-width: 980px){
  .hero{grid-template-columns:1fr; padding-top:130px}
  .cards-grid{grid-template-columns:repeat(2, 1fr)}
  .projects{grid-template-columns:1fr}
  .project{grid-template-columns:1fr}
  .edu{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .nav{gap:10px}
  .nav__links{display:none}
  .hero__contacts{grid-template-columns:1fr}
  .contact .grid{grid-template-columns:1fr}
}

/* Scroll progress bar */
#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, var(--amber), var(--amber-strong));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Core Skill hover pop-up + glow */
.glow-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glow-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 174, 66, 0.3), 0 0 80px rgba(255, 153, 0, 0.15) inset;
}

/* Education combined card */
.edu-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  align-items: flex-start;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.3);
}
.edu-card h3 {
  color: var(--amber);
  margin-bottom: 8px;
}
.tools-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.tools-row img {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  padding: 6px;
  transition: transform .3s ease;
}
.tools-row img:hover { transform: scale(1.1); }
.edu-details ul, .certifications ul {
  margin: 0; padding-left: 20px;
}
.hover-glow {
  background: radial-gradient(400px circle at 50% 30%, rgba(255,174,66,0.08), transparent 70%), var(--glass);
  border: 1px solid var(--stroke);
}

/* Parallax transitions */
.parallax {
  will-change: transform;
  transition: transform 0.2s ease-out;
}
.portrait {
  mask-image: radial-gradient(circle at center, black 80%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 80%, transparent 100%);
}