:root {
  --ink: #172033;
  --muted: #5c667a;
  --line: #dce2ea;
  --brand: #0f6f68;
  --brand-dark: #0a5651;
  --surface: #f6f8fb;
  --accent: #b76e2d;
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-top: 72px;
}

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

a:hover {
  color: var(--brand-dark);
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
}

.hero-section {
  padding: 88px 0 72px;
  background:
    linear-gradient(135deg, rgba(15, 111, 104, 0.08), rgba(183, 110, 45, 0.08)),
    #ffffff;
}

.page-header {
  padding: 64px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy,
.max-width-text {
  max-width: 720px;
}

.metric-panel,
.info-panel,
.skill-group,
.portfolio-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.metric-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.metric-panel > div {
  min-height: 132px;
  padding: 24px;
  background: #ffffff;
}

.metric-value {
  display: block;
  color: var(--brand);
  font-size: 1.75rem;
  font-weight: 800;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portfolio-card:hover {
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
  transform: translateY(-2px);
}

.portfolio-card .card-body,
.info-panel,
.skill-group,
.contact-form {
  padding: 24px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  padding: 4px 10px;
  color: #344055;
  background: #f9fbfd;
  font-size: 0.85rem;
}

.timeline-item {
  border-left: 3px solid var(--brand);
  padding: 0 0 28px 24px;
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.progress {
  height: 8px;
  background: #e9eef5;
}

.progress-bar {
  background: var(--brand);
}

.language-list {
  display: grid;
  gap: 10px;
}

.language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.language-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.flash-area {
  margin-top: 20px;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(15, 111, 104, 0.16);
}

@media (max-width: 575.98px) {
  body {
    padding-top: 64px;
  }

  .hero-section {
    padding: 56px 0 48px;
  }

  .metric-panel {
    grid-template-columns: 1fr;
  }
}
