/* ============================================================
   style.css — Sujay Shrestha Portfolio
   Edit this file to change colors, fonts, spacing, layout.
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES (edit colors here) ── */
:root {
  --white: #ffffff;
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #aeaeb2;
  --accent: #0071e3;        /* ← main blue color */
  --accent-light: #e8f0fe;
  --border: rgba(0,0,0,0.08);
  --radius: 18px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── MATERIAL ICONS ── */
.icon {
  font-family: 'Material Symbols Rounded';
  font-weight: 300; font-style: normal; font-size: 20px;
  line-height: 1; display: inline-flex; align-items: center;
  justify-content: center; vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--text2); text-decoration: none;
  padding: 6px 12px; border-radius: 20px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg); color: var(--text); }
.nav-game {
  font-size: 13px; font-weight: 500; color: var(--accent);
  background: var(--accent-light); border: none; cursor: pointer;
  padding: 7px 14px; border-radius: 20px; transition: background .2s;
  font-family: inherit; display: inline-flex; align-items: center; gap: 5px;
}
.nav-game .icon { font-size: 15px; }
.nav-game:hover { background: #d2e3fc; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 100px 24px 80px; position: relative;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  background: var(--accent-light); padding: 6px 14px; border-radius: 20px;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp .7s .1s forwards;
}
.hero-chip .icon { font-size: 15px; }
h1 {
  font-size: clamp(44px, 8vw, 92px); font-weight: 600;
  letter-spacing: -2.5px; line-height: 1.04; color: var(--text); margin-bottom: 20px;
  opacity: 0; animation: fadeUp .8s .25s forwards;
}
h1 .blue { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px); font-weight: 300; color: var(--text2);
  max-width: 540px; line-height: 1.65; margin-bottom: 44px;
  opacity: 0; animation: fadeUp .8s .4s forwards;
}
.hero-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: fadeUp .8s .55s forwards;
}
.btn-p {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 500;
  padding: 13px 24px; border-radius: 980px; border: none; cursor: pointer;
  text-decoration: none; transition: all .2s; font-family: inherit;
}
.btn-p:hover { background: #0077ed; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,113,227,.3); }
.btn-p .icon { font-size: 18px; }
.btn-s {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); color: var(--text); font-size: 15px; font-weight: 500;
  padding: 13px 24px; border-radius: 980px; border: none; cursor: pointer;
  text-decoration: none; transition: all .2s; font-family: inherit;
}
.btn-s:hover { background: #e5e5ea; transform: translateY(-1px); }
.btn-s .icon { font-size: 18px; }
.scroll-hint {
  position: absolute; bottom: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeUp .8s 1.1s forwards;
}
.scroll-hint-label { font-size: 11px; font-weight: 500; color: var(--text3); letter-spacing: .05em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text3), transparent); animation: pulse 2s ease-in-out infinite; }

/* ── SECTION COMMON ── */
.sec { padding: 100px 24px; }
.sec-inner { max-width: 960px; margin: 0 auto; }
.sec-bg { background: var(--bg); }
.sec-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}
.sec-label .icon { font-size: 14px; }
h2 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 600;
  letter-spacing: -1.4px; line-height: 1.08; margin-bottom: 14px;
}
.sec-sub { font-size: 17px; font-weight: 300; color: var(--text2); max-width: 500px; line-height: 1.65; }

/* ── ML DEMO ── */
.demo-card {
  margin-top: 48px;
  background: var(--white); border-radius: 24px; overflow: hidden;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 20px 60px rgba(0,0,0,.08);
  border: 1px solid var(--border);
}
.demo-card-top {
  padding: 18px 26px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.demo-card-name {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600;
}
.demo-card-name .icon { font-size: 18px; color: var(--accent); }
.demo-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: #1a7f37;
  background: #dafbe1; padding: 4px 10px; border-radius: 20px;
}
.demo-live::before { content:''; width:6px; height:6px; border-radius:50%; background:#1a7f37; animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.demo-frame-wrap { width: 100%; height: 580px; background: var(--bg); position: relative; }
.demo-frame-wrap iframe { width:100%; height:100%; border:none; display:block; }
.demo-placeholder {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 14px; text-align: center; padding: 40px;
}
.demo-placeholder .icon { font-size: 52px; color: var(--text3); }
.demo-placeholder h3 { font-size: 20px; font-weight: 600; }
.demo-placeholder p { font-size: 14px; color: var(--text2); max-width: 340px; line-height: 1.7; }
.demo-placeholder code { font-size: 13px; background: var(--bg); padding: 8px 16px; border-radius: 8px; color: var(--accent); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 48px; }
.about-text { font-size: 17px; font-weight: 300; color: var(--text2); line-height: 1.8; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-text p + p { margin-top: 18px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: var(--bg); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s;
}
.stat:hover { transform: translateY(-3px); }
.stat .icon { font-size: 22px; color: var(--accent); margin-bottom: 10px; display: block; }
.stat-n { font-size: 34px; font-weight: 600; letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.stat-d { font-size: 13px; color: var(--text2); }

/* ── PROJECTS ── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 48px;
}
.proj-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  position: relative;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.1); }
.proj-card.featured {
  grid-column: span 2; flex-direction: row; align-items: flex-start; gap: 32px;
  background: var(--text); color: var(--white);
}
.proj-card.featured .proj-icon { background: rgba(255,255,255,.1); }
.proj-card.featured .proj-icon .icon { color: #fff; }
.proj-card.featured h3 { color: #fff; }
.proj-card.featured p { color: rgba(255,255,255,.65); }
.proj-card.featured .proj-tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.proj-card.featured .proj-link { color: rgba(255,255,255,.55); }
.proj-card.featured:hover { box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.proj-card.featured:hover .proj-link { color: #fff; }
.proj-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proj-icon .icon { font-size: 24px; color: var(--accent); }
.proj-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.proj-card p { font-size: 13px; color: var(--text2); line-height: 1.65; flex: 1; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-tag { font-size: 11px; font-weight: 500; color: var(--text2); background: var(--bg); padding: 3px 9px; border-radius: 20px; }
.proj-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  text-decoration: none; margin-top: auto;
  transition: gap .15s;
}
.proj-link .icon { font-size: 15px; }
.proj-link:hover { gap: 7px; }
.proj-demo-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 600; color: #1a7f37;
  background: #dafbe1; padding: 3px 9px; border-radius: 20px;
}

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.skill-group { background: var(--white); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--border); }
.skill-group-lbl {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--text2);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px;
}
.skill-group-lbl .icon { font-size: 15px; color: var(--accent); }
.skill-list { display: flex; flex-direction: column; gap: 0; }
.skill-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.skill-row:last-child { border-bottom: none; padding-bottom: 0; }
.skill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .45; }
.skill-dot.green { background: #1a7f37; opacity: 1; }

/* ── EXPERIENCE ── */
.exp-list { display: flex; flex-direction: column; margin-top: 48px; }
.exp-item {
  display: grid; grid-template-columns: 180px 1fr;
  padding: 32px 0; border-bottom: 1px solid var(--border); gap: 40px;
}
.exp-item:last-child { border-bottom: none; }
.exp-period { font-size: 13px; color: var(--text3); padding-top: 2px; }
.exp-role { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.exp-co {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 10px;
}
.exp-co .icon { font-size: 14px; }
.exp-desc { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ── CONTACT ── */
.contact-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-inner h2 { margin-bottom: 14px; }
.contact-sub { font-size: 17px; font-weight: 300; color: var(--text2); line-height: 1.65; margin-bottom: 40px; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.clink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 980px;
  text-decoration: none; border: 1px solid var(--border);
  color: var(--text); background: var(--white);
  transition: all .2s;
}
.clink:hover { background: var(--text); color: var(--white); border-color: var(--text); transform: translateY(-2px); }
.clink .icon { font-size: 18px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 22px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
.f-name { font-size: 14px; font-weight: 500; }
.f-copy { font-size: 12px; color: var(--text3); }
.f-game {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text3);
  cursor: pointer; border: none; background: none; font-family: inherit;
  transition: color .2s;
}
.f-game .icon { font-size: 15px; }
.f-game:hover { color: var(--accent); }

/* ── GAME OVERLAY ── */
#game-ov {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(40px);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
}
#game-ov.open { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from{opacity:0;transform:scale(.97);} to{opacity:1;transform:scale(1);} }
.g-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.g-close:hover { background: #e5e5ea; }
.g-close .icon { font-size: 20px; color: var(--text2); }
.g-title { font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.g-sub { font-size: 13px; color: var(--text2); }
#gc { border-radius: 20px; box-shadow: 0 4px 0 rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.12); display: block; }
.g-ui { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.g-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 980px;
  border: 1px solid var(--border); background: var(--white); color: var(--text);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.g-btn.pri { background: var(--text); color: var(--white); border-color: var(--text); }
.g-btn.pri:hover { background: #3a3a3c; }
.g-btn:hover { background: var(--bg); }
.g-btn .icon { font-size: 17px; }
.g-scores { display: flex; gap: 8px; }
.g-score { font-size: 13px; font-weight: 500; color: var(--text2); background: var(--bg); padding: 7px 14px; border-radius: 980px; }
.g-score span { color: var(--text); font-weight: 600; }
#pup { display: none; }

/* ── ANIMATIONS ── */
.sa { opacity:0; transform:translateY(24px); transition:opacity .65s cubic-bezier(.16,1,.3,1),transform .65s cubic-bezier(.16,1,.3,1); }
.sa.on { opacity:1; transform:translateY(0); }
.sa-l { opacity:0; transform:translateX(-24px); transition:opacity .65s cubic-bezier(.16,1,.3,1),transform .65s cubic-bezier(.16,1,.3,1); }
.sa-l.on { opacity:1; transform:translateX(0); }
.sa-r { opacity:0; transform:translateX(24px); transition:opacity .65s cubic-bezier(.16,1,.3,1),transform .65s cubic-bezier(.16,1,.3,1); }
.sa-r.on { opacity:1; transform:translateX(0); }
.d1{transition-delay:.07s!important} .d2{transition-delay:.13s!important}
.d3{transition-delay:.19s!important} .d4{transition-delay:.25s!important}
.d5{transition-delay:.31s!important} .d6{transition-delay:.37s!important}
@keyframes fadeUp { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
@keyframes pulse { 0%,100%{opacity:.3;} 50%{opacity:1;} }

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .nav-links { display: none; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card.featured { grid-column: span 1; flex-direction: column; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 6px; }
  footer { padding: 20px 24px; flex-direction: column; gap: 10px; text-align: center; }
}
@media(max-width:600px){
  .proj-grid { grid-template-columns: 1fr; }
}
