@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0c0c0c;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --border: #222;
  --border-hover: #333;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #c9a84c;
  --accent-dim: rgba(201,168,76,0.08);
  --accent-border: rgba(201,168,76,0.15);
  --green: #4a9;
  --red: #c66;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1rem 2rem;
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  max-width: 100%;
}
.nav-name {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text);
}
.nav-name span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 900px; margin: 0 auto;
}
.hero-inner { width: 100%; }
.hero-label {
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem; font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 300; line-height: 1.15; margin-bottom: 2rem;
  color: var(--text);
}
.hero h1 strong { font-weight: 700; }
.hero-desc {
  font-size: 1.05rem; color: var(--text-muted); max-width: 600px;
  line-height: 1.8; margin-bottom: 2.5rem;
}
.hero-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.hero-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; transition: color 0.3s; display: flex; align-items: center; gap: 0.4rem;
}
.hero-links a:hover { color: var(--text); }
.hero-links .sep { color: var(--text-dim); }
.hero-indicator {
  margin-top: 4rem; display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; color: var(--text-dim);
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── SECTIONS ── */
section { max-width: 900px; margin: 0 auto; padding: 6rem 2rem; }
.section-label {
  font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem; font-weight: 500;
}
.section-title {
  font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; font-size: 0.95rem;
}
.divider {
  border: none; border-top: 1px solid var(--border);
  max-width: 900px; margin: 0 auto;
}

/* ── EXPERIENCE ── */
.exp-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; }
.exp-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.3rem; }
.exp-role { font-size: 1.1rem; font-weight: 600; }
.exp-company { color: var(--accent); }
.exp-date { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.exp-bullets { list-style: none; margin-top: 1rem; }
.exp-bullets li {
  color: var(--text-muted); font-size: 0.9rem; padding: 0.4rem 0;
  padding-left: 1.2rem; position: relative; line-height: 1.7;
}
.exp-bullets li::before {
  content: ''; position: absolute; left: 0; top: 0.85rem;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-dim);
}

/* ── PROJECTS ── */
.project {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: border-color 0.3s;
}
.project:hover { border-color: var(--border-hover); }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.project-name { font-size: 1.3rem; font-weight: 600; }
.project-type {
  font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.3rem 0.8rem; border-radius: 3px; border: 1px solid var(--accent-border);
  font-weight: 600;
}
.project-summary { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.7; }
.project-arch {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 6px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.project-arch-title {
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 1rem; font-weight: 600;
}
.arch-flow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  color: var(--text-muted); line-height: 2; white-space: pre-wrap;
}
.arch-flow .highlight { color: var(--accent); }
.arch-flow .muted { color: var(--text-dim); }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tech-tag {
  font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 3px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-muted); font-family: 'JetBrains Mono', monospace;
}
.project-details { list-style: none; }
.project-details li {
  color: var(--text-muted); font-size: 0.88rem; padding: 0.35rem 0;
  padding-left: 1.2rem; position: relative; line-height: 1.6;
}
.project-details li::before {
  content: '→'; position: absolute; left: 0; color: var(--text-dim);
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; color: var(--text-muted); font-size: 0.85rem;
  text-decoration: none; font-weight: 500; transition: color 0.3s;
}
.project-link:hover { color: var(--text); }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.skill-group { background: var(--bg-card); padding: 1.5rem; }
.skill-group-title { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.8rem; font-weight: 600; }
.skill-group ul { list-style: none; }
.skill-group li { color: var(--text-muted); font-size: 0.88rem; padding: 0.25rem 0; }

/* ── EDUCATION ── */
.edu-grid { display: grid; gap: 1rem; }
.edu-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.2rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 0.5rem;
}
.edu-item:last-child { border-bottom: none; }
.edu-school { font-weight: 600; font-size: 0.95rem; }
.edu-detail { color: var(--text-muted); font-size: 0.85rem; }
.edu-year { color: var(--text-dim); font-size: 0.82rem; font-weight: 500; }

/* ── CONTACT ── */
.contact-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 3rem; text-align: center;
}
.contact-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.contact-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.contact-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.88rem;
  font-weight: 500; padding: 0.6rem 1.2rem; border: 1px solid var(--border);
  border-radius: 4px; transition: all 0.3s;
}
.contact-links a:hover { border-color: var(--accent-border); color: var(--text); }

/* ── FOOTER ── */
footer {
  max-width: 900px; margin: 0 auto; padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text-dim); flex-wrap: wrap; gap: 1rem;
}

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ── MOBILE ── */
@media (max-width: 640px) {
  nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.72rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  section { padding: 4rem 1.5rem; }
  .project { padding: 1.5rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .contact-links { flex-direction: column; align-items: center; }
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 520px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(12,12,12,0.95); backdrop-filter: blur(20px);
    flex-direction: column; padding: 1.5rem 2rem; gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}
