*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d0d14;
  --surface: #13131f;
  --border: rgba(255,255,255,0.07);
  --text: #e8e6f0;
  --muted: #6b6880;
  --accent: #7c6af5;
  --accent2: #f0b429;
  --green: #3ecf8e;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled { background: rgba(13,13,20,0.9); border-color: var(--border); backdrop-filter: blur(12px); }
.logo { font-family: 'Space Mono', monospace; font-size: 1rem; color: var(--accent); text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color 0.2s; letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 40px 60px;
  max-width: 900px; margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  color: var(--accent); border: 1px solid rgba(124,106,245,0.3);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 36px;
  width: fit-content;
  animation: fadeIn 0.6s 0.1s both;
}
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .name { color: var(--accent); display: block; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: block;
  animation: slideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  transform: translateY(100%);
}
.hero h1 .line:nth-child(1) span { animation-delay: 0.2s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.35s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.5s; }

.hero-sub {
  font-size: 1.05rem; line-height: 1.75; color: var(--muted);
  max-width: 520px; margin-bottom: 40px;
  animation: fadeIn 0.7s 0.7s both;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeIn 0.7s 0.85s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  font-family: 'Outfit', sans-serif; border: none;
}
.btn-fill { background: var(--accent); color: #fff; }
.btn-fill:hover { background: #8f7ef7; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,106,245,0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 40px;
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  color: var(--muted); display: flex; align-items: center; gap: 12px;
  animation: fadeIn 0.7s 1.1s both;
}
.scroll-bar {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: grow 2s ease-in-out infinite;
}
@keyframes grow { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(1.3)} }

/* ── SECTIONS ── */
section { padding: 80px 40px; max-width: 900px; margin: 0 auto; }
.section-label {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 700;
  line-height: 1.15; margin-bottom: 40px; letter-spacing: -0.01em;
}

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.skill-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-pill:hover { border-color: rgba(124,106,245,0.4); transform: translateY(-2px); }
.skill-pill-icon { font-size: 1.4rem; margin-bottom: 8px; display: block; }
.skill-pill-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.skill-pill-tags { font-size: 0.72rem; color: var(--muted); line-height: 1.6; }

/* ── PROJECTS ── */
.projects-list { display: flex; flex-direction: column; gap: 16px; }
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 20px; align-items: start;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none; color: inherit;
}
.project-card:hover { border-color: rgba(124,106,245,0.4); transform: translateX(4px); }
.project-num {
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  color: var(--muted); margin-bottom: 8px;
}
.project-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.project-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.project-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.68rem; font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(124,106,245,0.1); color: var(--accent);
  border: 1px solid rgba(124,106,245,0.2);
}
.project-arrow {
  font-size: 1.2rem; color: var(--muted);
  transition: color 0.2s, transform 0.2s; margin-top: 4px;
}
.project-card:hover .project-arrow { color: var(--accent); transform: translate(3px,-3px); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text { font-size: 0.9rem; line-height: 1.85; color: var(--muted); }
.about-text p { margin-bottom: 16px; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-details { display: flex; flex-direction: column; gap: 14px; }
.detail-row {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
}
.detail-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.detail-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.detail-value { font-size: 0.88rem; font-weight: 500; }

/* ── CONTACT ── */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 52px 48px;
  text-align: center;
}
.contact-box h3 {
  font-size: clamp(22px, 3vw, 36px); font-weight: 700;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.contact-box p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; max-width: 440px; margin: 0 auto 32px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  text-decoration: none; transition: all 0.2s;
}
.contact-link:hover { border-color: rgba(124,106,245,0.4); color: var(--accent); background: rgba(124,106,245,0.06); }

/* ── EDUCATION ── */
.education-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 900px; margin: 0 auto; }
.education-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; gap: 16px; align-items: center;
}
.edu-year {
  font-family: 'Space Mono', monospace;
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 110px;
}
.edu-body .edu-school { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.edu-body .edu-degree { color: var(--muted); font-size: 0.88rem; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  padding: 24px 20px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-text { font-size: 0.82rem; color: var(--muted); font-family: 'Space Mono', monospace; }
.footer-small { font-size: 0.75rem; color: var(--muted); }

@media (max-width: 720px) {
  .hero { padding: 80px 20px 40px; }
  section { padding: 60px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.26s; }
.reveal-d4 { transition-delay: 0.34s; }

/* ── DIVIDER ── */
.full-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

@keyframes slideUp { to { transform: translateY(0); } }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
