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

:root {
  --primary: hsl(187, 60%, 38%);
  --foreground: hsl(220, 15%, 15%);
  --muted: hsl(220, 8%, 50%);
  --bg: hsl(0, 0%, 100%);
  --bg-alt: hsl(220, 10%, 96%);
  --border: hsl(220, 10%, 90%);
  --footer-bg: hsl(220, 15%, 15%);
  --footer-fg: hsl(0, 0%, 95%);
  --radius: 0.5rem;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

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

/* ── Accent Line ── */
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 2rem;
}

/* ── Author Intro ── */
.author-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.author-photo {
  width: 7rem;
  height: 7rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 8px 30px -8px rgba(45,140,150,0.25);
  border: 1px solid var(--border);
}

.author-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 1.25rem;
  letter-spacing: -0.02em;
}

.author-role {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.375rem;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .author-photo { width: 9rem; height: 9rem; }
  .author-name { font-size: 2rem; }
  .author-role { font-size: 1rem; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content { text-align: center; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.text-primary { color: var(--primary); }

.hero-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }

/* ── Sections ── */
.section {
  padding: 7rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Grid ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── Cards ── */
.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--primary); }

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  transition: color 0.2s;
}
.card:hover h3 { color: var(--primary); }

.card p {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── Skills List ── */
.skills-list {
  border-top: 1px solid var(--border);
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}
.skill-row:hover { padding-left: 0.75rem; }

.skill-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.2s;
}
.skill-row:hover .skill-label { color: var(--primary); }

.skill-detail {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .skill-row {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .skill-label {
    width: 16rem;
    flex-shrink: 0;
    font-size: 1.25rem;
  }
}

/* ── Testimonials ── */
.testimonial {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.testimonial p {
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial footer {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Contact ── */
.contact-content {
  text-align: center;
  max-width: 640px;
}

.contact-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--footer-fg);
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }
