/* ===== RESET & ROOT ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fafaf9;
  --bg2: #ffffff;
  --bg3: #f4f4f2;
  --border: #e8e8e5;
  --accent: #5b4cf5;
  --accent-light: #ede9ff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --green: #16a34a;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 820px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.87;
}

.btn-secondary {
  background: var(--bg2);
  color: var(--text);
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: #bbb;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 2.5rem;
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.s-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.s-title {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin-bottom: 0.6rem;
}

.s-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}

/* ===== ABOUT STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 2rem;
}

.stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.stat-num {
  font-size: 30px;
  font-weight: 500;
  color: var(--accent);
}

.stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== SKILLS ===== */
.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2rem;
}

.skill {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.skill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== PROJECTS ===== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2rem;
}

.proj {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.proj:hover {
  border-color: #c4b8ff;
  box-shadow: 0 2px 12px rgba(91, 76, 245, 0.07);
}

.proj-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}

.proj-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.proj-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.proj-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
}

.proj-arrow {
  color: #bbb;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.proj:hover .proj-arrow {
  color: var(--accent);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2rem;
}

.contact-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
}

.contact-item:hover {
  border-color: var(--accent);
}

.c-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.c-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.c-val {
  font-size: 13px;
  color: var(--text);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero h1 {
    font-size: 34px;
  }

  section {
    padding: 2.5rem 1.25rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}