/* ─── clear / reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #07060f; }
::-webkit-scrollbar-thumb { background: #7c5cfc; border-radius: 4px; }

/* ─── design color and fonts ─── */
:root {
  --bg0: #07060f;
  --bg1: #0d0b1a;
  --bg2: #111026;
  --bg3: #181630;
  --card: rgba(255,255,255,0.042);
  --bd:   rgba(255,255,255,0.085);
  --bdh:  rgba(139,92,246,0.35);

  --p1: #a78bfa;   /* violet-400 */
  --p2: #7c5cfc;   /* main purple */
  --p3: #c084fc;   /* lighter purple */
  --c1: #67e8f9;   /* cyan-300 */
  --c2: #06b6d4;   /* cyan-500 */

  --grad: linear-gradient(135deg, #7c5cfc, #c084fc, #67e8f9);
  --grad2: linear-gradient(90deg, #7c5cfc 0%, #c084fc 60%, #67e8f9 100%);

  --txt:   #ddd8f5;
  --muted: #7a709c;
  --dim:   #3d3660;

  --ff:  'Bricolage Grotesque', sans-serif;
  --fb:  'Plus Jakarta Sans', sans-serif;
  --fm:  'JetBrains Mono', monospace;
}

body {
  background: var(--bg0);
  color: var(--txt);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
section { padding: 110px 0; }

.sl {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--p1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sl::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--grad2);
  flex-shrink: 0;
}

.st {
  font-family: var(--ff);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  color: var(--txt);
  line-height: 1.1;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

/* ─── noise overlay temp fix ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

/* ─── navigation bar ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px 0;
  transition: all 0.35s;
}
.nav.stuck {
  background: rgba(7,6,15,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bd);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--fm);
  font-size: 14px;
  letter-spacing: 0.04em;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo span { -webkit-text-fill-color: var(--muted); }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--p1); }
.nav-links a.active { color: var(--txt); }
.nav-cta {
  font-family: var(--fm);
  font-size: 11.5px;
  background: linear-gradient(135deg, rgba(124,92,252,0.18), rgba(192,132,252,0.1));
  border: 1px solid rgba(139,92,246,0.35);
  color: var(--p1);
  padding: 8px 20px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-cta:hover { background: rgba(124,92,252,0.22); border-color: var(--p1); }

/* hamburger */
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.ham span { display: block; width: 22px; height: 1.5px; background: var(--txt); transition: all 0.3s; }
.mob-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7,6,15,0.97); backdrop-filter: blur(20px);
  z-index: 190; flex-direction: column; justify-content: center;
  align-items: center; gap: 0;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-family: var(--ff); font-size: 36px; font-weight: 800;
  color: var(--muted); padding: 14px 0; transition: color 0.2s;
  letter-spacing: -0.02em;
}
.mob-nav a:hover { color: var(--p1); }
.mob-close {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--fm); font-size: 22px; color: var(--muted); cursor: pointer;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb1 {
  width: 600px; height: 500px;
  top: -160px; left: -100px;
  background: radial-gradient(circle, rgba(124,92,252,0.18) 0%, transparent 70%);
}
.orb2 {
  width: 500px; height: 450px;
  top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(103,232,249,0.1) 0%, transparent 70%);
}
.orb3 {
  width: 400px; height: 300px;
  bottom: 60px; left: 40%;
  background: radial-gradient(circle, rgba(192,132,252,0.09) 0%, transparent 70%);
}

.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--p1);
  opacity: 0;
  animation: float var(--d, 8s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes float {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-120px) scale(1); }
}

.hero-inner { position: relative; z-index: 1; max-width: 880px; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--bd);
  background: var(--card);
  border-radius: 100px;
  padding: 7px 18px;
  font-family: var(--fm);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
}
.hero-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad2);
  background-size: 200% 200%;
  animation: dotAnim 3s ease infinite;
}
@keyframes dotAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}
.hero-pill em { font-style: normal; color: var(--p3); }

.hero-name {
  font-family: var(--ff);
  font-size: clamp(54px, 9.5vw, 98px);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-name .grd {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-family: var(--fm);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
  margin-bottom: 26px;
  min-height: 1.6em;
}
#tcursor {
  color: var(--p1);
  animation: cb 1.1s step-end infinite;
}
@keyframes cb { 50% { opacity: 0; } }

.hero-bio {
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.9;
  margin-bottom: 48px;
}
.hero-bio strong { color: var(--txt); font-weight: 500; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-g {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--grad2);
  color: #fff;
  font-family: var(--fm);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 8px;
  border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-g::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn-g:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-o {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent;
  color: var(--txt);
  font-family: var(--fm);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--bd);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-o:hover { border-color: var(--bdh); background: rgba(124,92,252,0.07); transform: translateY(-2px); }

.scroll-cue {
  position: absolute; bottom: 38px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue span {
  font-family: var(--fm); font-size: 10px;
  color: var(--dim); letter-spacing: 0.15em; text-transform: uppercase;
}
.scroll-cue-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--p2), transparent);
  animation: scl 2.2s ease infinite;
  transform-origin: top;
}
@keyframes scl {
  0% { transform: scaleY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ─── about section ─── */
#about { background: var(--bg1); }
.about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 80px; align-items: start;
}
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 15.5px; line-height: 1.9; }
.about-text p strong { color: var(--txt); font-weight: 500; }

.about-grid-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 11px; margin-top: 36px;
}
.stat-box {
  border: 1px solid var(--bd);
  background: var(--card);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-box:hover { border-color: var(--bdh); transform: translateY(-2px); }
.stat-n {
  font-family: var(--ff); font-size: 28px; font-weight: 800;
  background: var(--grad2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; margin-bottom: 2px;
}
.stat-l { font-family: var(--fm); font-size: 10.5px; color: var(--muted); }

/* infornation sidebar */
.info-panel {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 18px;
}
.ip-hd { font-family: var(--fm); font-size: 10px; color: var(--p1); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
.ip-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bd); font-size: 13.5px; }
.ip-row:last-child { border-bottom: none; }
.ip-k { font-family: var(--fm); font-size: 11px; color: var(--dim); min-width: 72px; }
.ip-v { color: var(--txt); }
.ip-v.open {
  background: var(--grad2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 500;
}

.soc-row { display: flex; gap: 9px; flex-wrap: wrap; }
.soc {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--bd);
  border-radius: 8px; padding: 9px 14px;
  font-family: var(--fm); font-size: 11.5px; color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.soc svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.soc:hover { border-color: var(--bdh); color: var(--p1); }

/* ─── skills section ─── */
#skills { background: var(--bg0); }
.skills-intro {
  font-size: 15px; color: var(--muted); max-width: 620px;
  margin-bottom: 52px; line-height: 1.85;
}
.skills-intro strong { color: var(--txt); font-weight: 500; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.sk-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.sk-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: var(--grad2); opacity: 0;
  transition: opacity 0.25s;
}
.sk-card:hover { border-color: var(--bdh); transform: translateY(-4px); }
.sk-card:hover::before { opacity: 1; }

.sk-icon { font-size: 22px; margin-bottom: 14px; }
.sk-name { font-family: var(--ff); font-size: 15px; font-weight: 600; color: var(--txt); margin-bottom: 16px; }
.sk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-pill {
  font-family: var(--fm); font-size: 10.5px;
  padding: 3px 10px; border-radius: 4px;
  border: 1px solid var(--bd); color: var(--muted);
}
.sk-pill.hi {
  border-color: rgba(167,139,250,0.35); color: var(--p1);
  background: rgba(124,92,252,0.08);
}
.sk-pill.md {
  border-color: rgba(103,232,249,0.25); color: #67e8f9;
  background: rgba(6,182,212,0.06);
}
.sk-pill.lo { color: var(--dim); font-style: italic; }

.skills-legend {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px; font-family: var(--fm); font-size: 11px; color: var(--muted);
}
.sk-leg { display: flex; align-items: center; gap: 7px; }
.sk-dot { width: 7px; height: 7px; border-radius: 50%; }

/* ─── projects done ─── */
#projects { background: var(--bg1); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }

.proj-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 30px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.28s;
}
.proj-card:hover { border-color: var(--bdh); transform: translateY(-6px); }

.proj-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad2); opacity: 0;
  transition: opacity 0.25s;
}
.proj-card:hover .proj-accent { opacity: 1; }

.proj-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.proj-ico { font-size: 28px; }
.proj-links { display: flex; gap: 13px; }
.plink { color: var(--muted); transition: color 0.2s; }
.plink:hover { color: var(--p1); }
.plink svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.plink svg.str { fill: none; stroke: currentColor; stroke-width: 2; }

.proj-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--fm); font-size: 9.5px;
  padding: 3px 9px; border-radius: 3px;
  margin-bottom: 11px;
}
.pb-wip { background: rgba(103,232,249,0.08); color: #67e8f9; border: 1px solid rgba(103,232,249,0.22); }
.pb-live { background: rgba(74,222,128,0.08); color: #4ade80; border: 1px solid rgba(74,222,128,0.22); }
.pb-hack { background: rgba(167,139,250,0.08); color: var(--p1); border: 1px solid rgba(167,139,250,0.22); }

.proj-title { font-family: var(--ff); font-size: 20px; font-weight: 800; color: var(--txt); margin-bottom: 11px; letter-spacing: -0.01em; transition: color 0.2s; }
.proj-card:hover .proj-title { color: var(--p1); }

.proj-desc { font-size: 13.5px; color: var(--muted); line-height: 1.78; flex: 1; margin-bottom: 22px; }

.proj-foot { display: flex; flex-wrap: wrap; gap: 7px; }
.tech-tag {
  font-family: var(--fm); font-size: 10.5px;
  color: var(--dim); padding: 3px 9px;
  border: 1px solid var(--bd); border-radius: 4px;
}

/* ─── resume section ─── */
#resume { background: var(--bg0); }
.resume-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 52px; }
.rc-title { font-family: var(--fm); font-size: 10px; color: var(--p1); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }
.rc-title::after { content: ''; flex: 1; height: 1px; background: var(--bd); }

.tl { padding-left: 20px; position: relative; }
.tl::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 1px; background: linear-gradient(to bottom, rgba(124,92,252,0.4), transparent); }

.tl-item { position: relative; margin-bottom: 36px; }
.tl-item::before {
  content: ''; position: absolute; left: -24px; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--p2); background: var(--bg0);
}
.tl-date { font-family: var(--fm); font-size: 10.5px; color: var(--dim); margin-bottom: 6px; }
.tl-role { font-family: var(--ff); font-size: 15px; font-weight: 700; color: var(--txt); margin-bottom: 3px; }
.tl-org { font-family: var(--fm); font-size: 11.5px; color: var(--p1); margin-bottom: 9px; }
.tl-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

.resume-cta {
  border: 1px dashed rgba(124,92,252,0.3);
  border-radius: 16px;
  padding: 44px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124,92,252,0.04), rgba(103,232,249,0.02));
}
.resume-cta p { color: var(--muted); font-size: 14px; max-width: 480px; margin: 0 auto 26px; }

/* ─── contact section ─── */
#contact { background: var(--bg1); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.ci-text p { color: var(--muted); font-size: 15px; line-height: 1.9; margin-bottom: 38px; }
.ci-text p strong { color: var(--txt); font-weight: 500; }

.contact-items { display: flex; flex-direction: column; gap: 18px; }
.citem { display: flex; align-items: center; gap: 14px; }
.citem-ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(124,92,252,0.09); border: 1px solid rgba(124,92,252,0.25);
  display: flex; align-items: center; justify-content: center;
}
.citem-ico svg { width: 15px; height: 15px; fill: var(--p1); }
.citem-lbl { font-family: var(--fm); font-size: 10px; color: var(--dim); display: block; margin-bottom: 2px; }
.citem-val { font-size: 14px; color: var(--txt); transition: color 0.2s; }
a.citem-val:hover { color: var(--p1); }

/* Form */
.cf { display: flex; flex-direction: column; gap: 15px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-family: var(--fm); font-size: 10.5px; color: var(--muted); letter-spacing: 0.05em; }
.fg input, .fg textarea {
  background: var(--bg3); border: 1px solid var(--bd);
  border-radius: 9px; color: var(--txt);
  font-family: var(--fb); font-size: 14px;
  padding: 12px 16px; outline: none; resize: vertical;
  transition: border-color 0.2s;
}
.fg input:focus, .fg textarea:focus { border-color: rgba(124,92,252,0.55); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--dim); }
.fg textarea { min-height: 118px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ok-msg {
  font-family: var(--fm); font-size: 12px; color: #4ade80;
  display: none; padding: 10px 14px;
  background: rgba(74,222,128,0.07); border: 1px solid rgba(74,222,128,0.2);
  border-radius: 7px;
}

/* ─── footer part ─── */
footer {
  background: var(--bg0);
  border-top: 1px solid var(--bd);
  padding: 28px 0;
}
.fi { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.fi p { font-family: var(--fm); font-size: 11px; color: var(--dim); }
.fi a { color: var(--p1); }
.fi-heart {
  font-family: var(--fm); font-size: 11px; color: var(--dim);
  display: flex; align-items: center; gap: 5px;
}

/* ─── .rv css ─── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.vi { opacity: 1; transform: none; }

/* ─── responsive maker css ─── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .resume-cols { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .nav-links, .nav-cta { display: none; }
  .ham { display: flex; }
}
@media (max-width: 580px) {
  .skills-grid { grid-template-columns: 1fr; }
  .about-grid-stats { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
  .fg-row { grid-template-columns: 1fr; }
}