:root {
  --bg: #0f0f13;
  --bg-surface: #16161d;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --border: #2a2a35;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5fa;
    --bg-surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --accent: #4f46e5;
    --accent-hover: #6366f1;
    --border: #dde0f0;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* ── Profile Photo ── */
.profile-photo {
  width: 220px;
  height: 300px;
  border-radius: 1rem;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  margin: 0 auto;
  border: 2px solid var(--border);
}

/* ── Shared section styles ── */
.section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

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

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ── Wide container variant ── */
.container--wide {
  max-width: 860px;
}

/* ── Learning Journey / Tech Stack ── */
.stack-subsection {
  margin-bottom: 2.5rem;
}

.stack-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.focus-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.focus-card {
  padding: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 0.5rem;
  transition: border-left-color 0.2s ease;
}

.focus-card:hover {
  border-left-color: var(--accent);
}

.focus-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.focus-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.stack-categories {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.stack-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.stack-category-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 7rem;
  flex-shrink: 0;
  padding-top: 0.3rem;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

/* ── Projects Carousel (commented out) ── */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 1rem;
}

.carousel-slide {
  min-width: 100%;
  padding: 2.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.project-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}

.project-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--border);
  transition: background-color 0.25s ease;
}

.dot.active {
  background-color: var(--accent);
}

/* ── Bio ── */
.bio-text {
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.8;
}

.bio-text + .bio-text {
  margin-top: 1.25rem;
}

/* ── Links ── */
.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.link-card:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

.link-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

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

/* ── Responsive ── */
@media (max-width: 600px) {
  .section {
    padding: 3.5rem 1.5rem;
  }

  .focus-cards {
    grid-template-columns: 1fr;
  }

  .stack-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stack-category-label {
    width: auto;
  }

  .links-grid {
    flex-direction: column;
  }

  .link-card {
    width: 100%;
  }
}
