:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  color: #f8fafc;
  background: #000000;
  --black: #090909;
  --black-surface: #111111;
  --black-panel: #181818;
  --white: #f8fafc;
  --white-muted: #d1d5db;
  --red: #ca3028;
  --red-dark: #4c0c0c;
  --red-light: #e65b62;
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: linear-gradient(180deg, var(--black-surface) 0%, var(--black) 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
a {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black-panel);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.brand:hover {
  color: var(--red);
}

.site-nav a:hover {
  color: var(--red);
}

.section {
  padding: 4rem 0;
}

.hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 100%);
  max-width: 320px;
}

.hero-image__img,
.hero-image__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 6px solid var(--red);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-image__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image__placeholder {
  background: var(--red-light);
  display: grid;
  place-items: center;
  color: var(--white-muted);
  text-align: center;
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--white);
}

h1 {
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-top: 0.5rem;
}

h3 {
  font-size: 1.15rem;
}

.intro,
.section-heading p:not(.eyebrow), /* keep eyebrows red */
.contact-details p {
  color: var(--white-muted);
  line-height: 1.75;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-width: 1px;
  border-color:var(--white);
  border-style: solid;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--black-panel);
  color: var(--white);
}

.section-heading {
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card,
.contact-card {
  border: 1px solid var(--border-light);
  background: var(--black-panel);
  padding: 1.75rem;
  border-radius: 1rem;
}

.project-card h3 {
  margin-bottom: 0.75rem;
}

.tech {
  margin: 1rem 0 0.75rem;
  color: var(--white-muted);
  font-size: 0.95rem;
}

.card-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-links a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.card-links a:hover {
  text-decoration: underline;
}

.about-section .content-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 400px;
  align-items: stretch;
}

.skill-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--black-panel);
  color: var(--white);
  font-size: 0.95rem;
}

.resume-card {
  margin-top: 1.25rem;
  border: 1px solid var(--border-light);
  background: var(--black-panel);
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.resume-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.resume-embed {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  background: var(--black-surface);
  padding: .5rem;
}

.contact-details p,
.contact-details a {
  font-size: 1rem;
}

.contact-details a {
  color: var(--red);
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus {
  text-decoration: underline;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
}

.site-footer p {
  margin: 0;
  color: var(--white-muted);
  text-align: center;
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-image {
    width: 100%;
    justify-content: center;
  }

  .hero-image__placeholder {
    width: min(260px, 100%);
    margin: 0 auto;
  }

  .about-section .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }
}
