/* =====================================================
   stylesheet.css — Alex Hageman Personal Landing Page
   ===================================================== */

/* ── Google Fonts are loaded via <link> in index.html ── */

/* ── 1. CSS Custom Properties ─────────────────────── */
:root {
  --color-bg:          #F8F9FA;
  --color-bg-alt:      #E9ECEF;
  --color-text:        #1A2332;
  --color-text-muted:  #4A5568;
  --color-accent:      #0D6E6E;
  --color-accent-dark: #0A5555;
  --color-white:       #FFFFFF;
  --color-border:      #CED4DA;

  --font-family:       'Inter', system-ui, sans-serif;
  --font-size-base:    16px;
  --line-height-base:  1.6;

  --max-width:         900px;
  --section-padding:   4rem 1.5rem;
  --radius:            0.5rem;
  --radius-pill:       9999px;
}

/* ── 2. Reset & Base ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

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

a:hover,
a:focus {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* ── 3. Typography ────────────────────────────────── */
h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ── 4. Layout Utility ────────────────────────────── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

/* ── 5. Navigation ────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── 6. Hero Section ──────────────────────────────── */
#hero {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-accent);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(13, 110, 110, 0.18);
}

.tagline {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-accent);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

/* ── 7. About Section ─────────────────────────────── */
#about {
  background-color: var(--color-bg);
}

#about p {
  font-size: 1.0625rem;
  max-width: 680px;
}

/* ── 8. Skills Section ────────────────────────────── */
#skills {
  background-color: var(--color-bg-alt);
}

.skills-group {
  margin-bottom: 2rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-pill);
}

.tag--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.tag--secondary {
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ── 9. Projects Section ──────────────────────────── */
#projects {
  background-color: var(--color-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(13, 110, 110, 0.12);
  transform: translateY(-2px);
}

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

.project-type {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.project-card p:not(.project-type) {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.project-tags li {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
}

/* ── 10. Contact / Footer ─────────────────────────── */
footer {
  background-color: #1A2332;
  color: var(--color-white);
}

footer h2 {
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
}

footer p {
  color: #A0AEC0;
}

.contact-intro {
  max-width: 560px;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.contact-links a:hover,
.contact-links a:focus {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.contact-icon {
  font-size: 0.8125rem;
  font-weight: 700;
  background-color: var(--color-accent);
  color: var(--color-white);
  width: 28px;
  height: 28px;
  border-radius: 0.3125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.875rem;
  color: #718096;
}

/* ── 11. Responsive ───────────────────────────────── */
@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.875rem;
  }
}

@media (max-width: 420px) {
  .nav-links {
    display: none;
  }
}

/* ── 12. Focus Styles (Keyboard Accessibility) ────── */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
