:root {
  --bg: #202020;
  --bg-alt: #2a2a2a;
  --fg: #f0f0f0;
  --muted: #b5b5b5;
  --accent: #ff7a45;
  --border-subtle: #3a3a3a;
  --max-width: 760px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151823 0, #050608 55%);
  color: var(--fg);
  line-height: 1.6;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

html {
  scroll-behavior: smooth;
}

#about, #experience, #projects, #contact {
  scroll-margin-top: 80px;
}

/* Header and nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.7), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--fg);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}


.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
}

.about-photo img {
  width: 240px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

.project-photo img {
  width: 100%;
  max-width: 600px; 
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

/* Hero */

.hero {
  padding: 4.5rem 0 2.5rem;
}



.hero-subtitle {
  max-width: 36rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 620px;
  opacity: 0.9;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 620px;
  opacity: 0.9;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 2;
  min-width: 280px;
}

.hero-photo img {
  width: 240px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  max-width: 100%;
}

/* Sections */

.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-accent {
  background: radial-gradient(circle at top left, #161b24, #050608 70%);
}

.section h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.section p {
  font-size: 0.97rem;
  color: var(--muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.list li {
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.list strong {
  color: var(--fg);
}

.note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

/* Links */

a {
  color: var(--accent);
}

a:hover {
  opacity: 0.9;
}

.project-item {
  margin-bottom: 2rem;
}

.sub-list {
  list-style: disc;
  margin-left: 1.25rem;
  color: var(--muted);
}

.sub-list li {
  margin-bottom: 0.3rem;
}


/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.75rem 0 2.5rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-tagline {
  opacity: 0.85;
}

/* Responsive */

@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 3.5rem;
  }
}