:root {
  --bg: #020617;
  --bg-elevated: #0b1220;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #111827 0, #020617 52%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* TOP NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.94),
    rgba(15, 23, 42, 0.88),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.4);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  width: 32px;
  height: 32px;
  border-radius: 40%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  transition: color 0.12s ease, background 0.12s ease;
}

.nav a:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.8);
}

/* HERO */

.hero {
  padding: 3rem 1.5rem 2.5rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  /* Optional: if your hair/top gets cropped weirdly, tweak this: */
  /* object-position: center 20%; */
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-soft);
}

.hero-text {
  max-width: 600px;
}

.hero-eyebrow {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0 0 0.25rem;
}

.hero-text h1 {
  margin: 0 0 0.4rem;
  font-size: 2.5rem;
}

.subtitle {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* BUTTONS */

.btn {
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.09s ease;
}

.btn.primary {
  background: var(--accent);
  color: #0b1120;
  border-color: var(--accent);
  font-weight: 600;
}

.btn.primary:hover {
  background: #60a5fa;
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.92);
  color: var(--text-main);
  border-color: var(--accent-soft);
}

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

.btn.ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* SECTIONS */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.7rem;
}

.section-line {
  flex: 1;
  height: 1px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.8), transparent 70%);
}

/* Chips */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Project cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0.3rem 0;
}

.tech-used {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-link {
  margin-top: 1rem;
  align-self: flex-start;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* Contact */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .site-header-inner {
    padding-inline: 1rem;
  }

  .nav {
    gap: 0.7rem;
    font-size: 0.85rem;
  }
}
