/* ─── Reset & Base ─── */

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

:root {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e5e5;
  --color-card-bg: #fff;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  --max-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a2e;
    --color-text: #e0e0e0;
    --color-muted: #999;
    --color-accent: #60a5fa;
    --color-accent-hover: #93bbfd;
    --color-border: #2a2a3e;
    --color-card-bg: #22223a;
  }
}

html {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ─── Container ─── */

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

/* ─── Links ─── */

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;

  &:hover {
    color: var(--color-accent-hover);
  }
}

/* ─── Hero ─── */

.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  filter: brightness(0.6);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tagline {
  margin-top: 0.75rem;
  font-size: 1.15rem;
  color: #ddd;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.95rem;
}

.hero-links a {
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid transparent;

  &:hover {
    color: #fff;
    border-bottom-color: #fff;
  }
}

/* ─── Sections ─── */

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

section p {
  max-width: 38rem;
}

/* ─── About ─── */

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

.about-image {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

/* ─── Projects ─── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.project-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-card-bg);
  overflow: hidden;
  transition: border-color 0.15s ease;

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

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.project-image--logo {
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 1.5rem;
}

.project-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  height: 180px;
  background: #fff;
  padding: 1.5rem;
}

.project-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 0.75rem;
}

.project-card-body {
  padding: 1.25rem;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.project-card-inline-image {
  width: 100%;
  border-radius: 0.375rem;
  margin-top: 0.75rem;
  display: block;
}

/* ─── Contact ─── */

.contact {
  padding-bottom: 4rem;
}

/* ─── Footer ─── */

.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ─── Responsive ─── */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .hero-image {
    height: 300px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
    height: 200px;
  }

  section {
    padding: 2rem 0;
  }
}
