*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
/* ===== DESIGN TOKENS ===== */
:root {
  --bg:        #0d0f14;
  --surface:   #141720;
  --surface2:  #1c2030;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --text:      #e8eaf0;
  --muted:     #7a8099;
  --faint:     #3a3f52;
 
  --indigo:    #7c6bff;
  --indigo-lt: #a89fff;
  --indigo-bg: rgba(124,107,255,0.12);
 
  --amber:     #f0b429;
  --amber-bg:  rgba(240,180,41,0.12);
 
  --teal:      #3ecfcf;
  --teal-bg:   rgba(62,207,207,0.1);
 
  --coral:     #ff6b6b;
 
  --r: 14px;
  --r-sm: 8px;
}
 
html { scroll-behavior: smooth; }
 
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
 
/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
 
.logo {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo-bracket { color: var(--indigo); }
 
nav ul { list-style: none; display: flex; gap: 4px; }
 
.nav-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: all 0.22s;
  cursor: pointer;
  display: inline-block;
}
.nav-link:hover { color: var(--text); border-color: var(--border2); }
.nav-link.active {
  color: var(--indigo-lt);
  background: var(--indigo-bg);
  border-color: rgba(124,107,255,0.25);
}
 
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: 0.3s;
}
 
/* ===== SECTIONS ===== */
.section { display: none; min-height: 100vh; padding-top: 66px; }
.section.active { display: flex; flex-direction: column; }
 
.section-inner {
  max-width: 960px; width: 100%;
  margin: 0 auto;
  padding: 72px 48px 80px;
}
 
.sec-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--indigo);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
 
.sec-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 48px;
}
 
/* ===== HOME ===== */
#home { justify-content: center; align-items: center; position: relative; overflow: hidden; }
#home::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,107,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}
#home::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(62,207,207,0.08) 0%, transparent 70%);
  pointer-events: none;
}
 
.home-wrap {
  max-width: 1060px; width: 100%;
  margin: 0 auto; padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  position: relative; z-index: 1;
}
 
.home-text { flex: 1; }
 
.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-bg);
  border: 1px solid rgba(62,207,207,0.2);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
 
.home-text h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: var(--text);
  margin-bottom: 18px;
}
.home-text h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--indigo-lt);
}
 
.role-line {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
 
.role-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 240px;
}
 
#roleText {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--amber);
}
 
.cursor {
  font-weight: 300;
  color: var(--amber);
  animation: blink 1s step-start infinite;
  margin-left: 1px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
 
.home-bio {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 400px;
  margin-bottom: 32px;
}
 
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
 
.btn-primary {
  display: inline-block; padding: 12px 28px;
  background: var(--indigo);
  color: #fff; text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 0.88rem; font-weight: 600;
  transition: all 0.2s;
  border: none;
}
.btn-primary:hover { background: #6b5aee; transform: translateY(-1px); }
 
.btn-ghost {
  display: inline-block; padding: 12px 28px;
  border: 1px solid var(--border2);
  color: var(--text); text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 0.88rem; font-weight: 600;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--indigo-lt); color: var(--indigo-lt); }
 
.home-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.5px;
}
.stat-lbl { font-size: 0.75rem; color: var(--muted); }
.stat-sep { width: 1px; height: 36px; background: var(--faint); }
 
/* Photo */
.home-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 300px; height: 320px;
}
.img-box {
  position: absolute;
  top: 20px; left: 20px;
  width: 260px; height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border2);
  z-index: 2;
}
.img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
 
.img-deco-ring {
  position: absolute;
  top: 0; left: 0;
  width: 280px; height: 300px;
  border-radius: 18px;
  border: 1px solid rgba(124,107,255,0.3);
  z-index: 1;
}
 
.img-dot-grid {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, var(--faint) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  z-index: 0;
}
 
/* ===== ABOUT ===== */
.about-layout { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
.about-text p { color: var(--muted); font-size: 0.97rem; line-height: 1.8; margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }
 
.about-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.ac-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.ac-row:last-child { border-bottom: none; }
.ac-row span:first-child { font-size: 0.78rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.ac-row span:last-child { font-size: 0.88rem; color: var(--text); font-weight: 500; text-align: right; }
 
/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
 
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--border2); transform: translateY(-2px); }
 
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.sc-a::before { background: var(--indigo); }
.sc-b::before { background: var(--teal); }
.sc-c::before { background: var(--amber); }
.sc-d::before { background: var(--coral); }
 
.sc-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--faint);
  margin-bottom: 14px;
}
.skill-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.sc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-pills span {
  font-size: 0.8rem; font-weight: 500;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 30px;
}
 
/* ===== PROJECTS ===== */
.projects-list { display: flex; flex-direction: column; gap: 20px; }
 
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.proj-card:hover { border-color: var(--border2); transform: translateY(-2px); }
 
.pc-featured {
  border-color: rgba(124,107,255,0.25);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(124,107,255,0.05) 100%);
}
.pc-featured:hover { border-color: rgba(124,107,255,0.4); }
 
.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
 
.proj-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--indigo-lt);
  background: var(--indigo-bg);
  padding: 4px 10px;
  border-radius: 4px;
}
 
.proj-links { display: flex; gap: 10px; }
.proj-links a {
  font-size: 0.8rem; font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border2);
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.18s;
}
.proj-links a:hover { color: var(--text); border-color: var(--indigo-lt); background: var(--indigo-bg); }
 
.proj-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.45rem; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
 
.proj-card p {
  font-size: 0.93rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 18px;
}
 
.proj-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-tech span {
  font-size: 0.76rem; font-weight: 600;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 4px 10px;
  border-radius: 4px;
}
 
/* ===== CONTACT ===== */
.contact-sub { color: var(--muted); font-size: 1rem; margin-bottom: 36px; margin-top: -24px; }
 
.contact-cards { display: flex; flex-direction: column; gap: 12px; max-width: 540px; }
 
.cc {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 20px 24px;
  text-decoration: none;
  transition: all 0.2s;
}
.cc:hover { border-color: var(--indigo-lt); transform: translateX(6px); background: var(--surface2); }
 
.cc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem; font-weight: 500;
  flex-shrink: 0;
}
.li { background: rgba(10,102,194,0.15); color: #4d9de0; border: 1px solid rgba(10,102,194,0.2); }
.gh { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.em { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(240,180,41,0.2); }
 
.cc-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cc-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); font-weight: 600; }
.cc-val { font-size: 0.9rem; color: var(--text); font-weight: 500; }
 
.cc-arr { color: var(--faint); font-size: 1rem; transition: all 0.2s; }
.cc:hover .cc-arr { color: var(--indigo-lt); transform: translateX(4px); }
 
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header { padding: 0 20px; }
  nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 4px; }
  .menu-toggle { display: flex; }
 
  .home-wrap { flex-direction: column-reverse; padding: 24px 20px; gap: 36px; }
  .home-text h1 { font-size: 2.8rem; }
  .home-img-wrap { width: 200px; height: 220px; margin: 0 auto; }
  .img-box { width: 180px; height: 200px; top: 12px; left: 12px; }
  .img-deco-ring { width: 190px; height: 210px; }
  .home-bio { max-width: 100%; }
 
  .section-inner { padding: 48px 20px 60px; }
  .sec-title { font-size: 2rem; }
  .about-layout { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .skills-grid { grid-template-columns: 1fr; }
  .proj-card { padding: 22px 18px; }
}