/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0d;
  --bg-alt:    #111111;
  --surface:   #1a1a1a;
  --border:    #2a2a2a;
  --text:      #e8e8e8;
  --text-muted:#888;
  --accent:    #7c6af7;
  --accent-dim:#7c6af720;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: #fff; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-bottom 0.3s;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #6a58e8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 2rem;
  position: relative;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding-top: 4rem;
}

.hero-greeting {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.hero-socials {
  display: flex;
  gap: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}

.hero-socials a {
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.hero-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.hero-socials svg { width: 20px; height: 20px; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

.hero-scroll span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Sections ── */
.section { padding: 6rem 2rem; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 240px;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.975rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.stat:hover { border-color: var(--accent); }

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--mono);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 106, 247, 0.12);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-icon { font-size: 1.75rem; line-height: 1; }

.project-links a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: inline-flex;
}

.project-links a:hover { color: var(--accent); }
.project-links svg { width: 18px; height: 18px; }

.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem;
}

.skill-group-title {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}

.skill-pill:hover { border-color: var(--accent); color: var(--accent); }

.skill-pill.exploring {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Contact ── */
.contact-container {
  text-align: center;
  max-width: 560px;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-links {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-links a:hover { color: var(--accent); }
.divider { color: var(--border); }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1; min-width: 120px; }
  .nav-links { gap: 1.25rem; }
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
