:root {
  --primary: #1a365d;
  --accent: #2b6cb0;
  --text: #2d3748;
  --muted: #718096;
  --bg: #f7fafc;
}

body {
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--primary);
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 700;
  margin: 0;
}

/* Header / navigation */
header {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
}

header .row,
footer .row {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

nav a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

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

/* Hero */
.jumbotron {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45)),
                    url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: 0;
  border-radius: 0;
}

.jumbotron h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 0.5rem;
}

.jumbotron h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin: 0;
}

/* Content */
section {
  padding: 3rem 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

section .row img {
  margin: 0 0 30px;
  width: 100%;
}

.portrait, figure img {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.portrait {
  max-width: 350px;
}

.card {
  border: 0;
  border-radius: 8px;
}

.card .card-img-top {
  margin: 0;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.card-title {
  font-size: 1.4rem;
}

figure img {
  width: 100%;
}

figure {
  margin-bottom: 30px;
}

.btn.btn-primary {
  border-radius: 2px;
  border: 0;
  color: #fbd1d5;
  background-color: #ffffff;
}

.btn.btn-primary:hover {
  color: #ffffff;
  background-color: #fbd1d5;
}

.btn-secondary {
  background-color: #2a70e0;
  color: #ffffff;
  margin: 0 0 30px;
}

/* Footer */
footer {
  background: #1a202c;
  color: #e2e8f0;
  font-size: 14px;
  padding: 2rem 0;
  margin-top: 3rem;
}

footer a {
  color: #90cdf4;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

footer ul {
  list-style: none;
}

/* v2 additions */
header { padding: 8px 0; }
.navbar-brand .h1 { color: var(--primary); font-weight: 700; margin: 0; font-size: 1.75rem; }
.navbar-light .navbar-nav .nav-link { color: var(--primary); font-weight: 500; border-radius: 6px; padding: .5rem 1rem; }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { background: var(--accent); color: #fff; }
.navbar-light .navbar-nav .active > .nav-link { color: var(--accent); }
.pitch { max-width: 640px; margin: 1rem auto 0; color: #fff; }
.hero-buttons .btn { margin: 0 .35rem; }
section .row img.about-photo { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto 1.5rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
@media (max-width: 575.98px) {
  section .row img.about-photo { width: 220px; max-width: 220px; margin: 0 auto 1.5rem; aspect-ratio: 1 / 1; object-fit: cover; object-position: 70% 15%; border-radius: 50%; }
}
img { max-width: 100%; }
.skills { columns: 2 220px; padding-left: 1.2rem; }
.learning { margin-top: .5rem; }
section h2 { margin-top: 2rem; }
.footer-links { list-style: none; margin: 0; padding-left: 15px; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.footer-links li { margin-left: 1.5rem; }
@media (max-width: 767.98px) {
  footer .row { display: block; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-links li { margin: .4rem .9rem; }
  .navbar-collapse .nav-link { padding: .75rem 1rem; }
}
