/* ==========================================================================
   Custom theme — Lee Rogers portfolio
   Layered on top of Beautiful Jekyll. Loaded after the theme CSS so these
   rules win. Uses the theme's CSS variables where helpful.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:wght@500;600;700&display=swap');

:root {
  --ink: #15212B;
  --ink-soft: #243340;
  --accent: #0E7C86;
  --accent-2: #16A39B;
  --accent-soft: #E6F2F1;
  --muted: #6A7682;
  --line: #E5EAEC;
  --bg-soft: #F6F9F9;
  --hero-grad: linear-gradient(135deg, #15212B 0%, #123741 55%, #0E5A60 100%);
}

/* --- Base typography --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #36424C;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
}

main h2 {
  font-size: 1.9rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-soft);
}

main h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
}

main h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-top: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover, a:focus {
  color: var(--ink);
  text-decoration: underline;
}

/* --- Navbar --- */
.navbar-custom {
  box-shadow: 0 1px 0 rgba(21,33,43,.06), 0 6px 18px rgba(21,33,43,.04);
}
.navbar-custom .navbar-brand {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.navbar-custom .navbar-nav .nav-link {
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
}
.navbar-custom .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem;
  bottom: 0.55rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.navbar-custom .navbar-nav .nav-link:hover::after,
.navbar-custom .navbar-nav .nav-item.active .nav-link::after {
  transform: scaleX(1);
}

/* --- Header / hero band (all pages) --- */
header.header-section {
  background: var(--hero-grad);
}
header.header-section .intro-header {
  margin-bottom: 0;
  padding-bottom: 3rem;
}
.intro-header .page-heading,
.intro-header .post-heading {
  text-align: center;
}
.intro-header .page-heading h1 {
  font-family: 'Lora', Georgia, serif;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  color: rgba(255,255,255,.86);
  font-style: normal;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.intro-header .page-heading hr.small {
  border-color: rgba(255,255,255,.35);
  width: 60px;
  margin: 1.1rem auto;
}

/* --- Buttons --- */
.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.4rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-neutral, .btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(14,124,134,.22);
}
.btn-neutral:hover, .btn-neutral:focus,
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(21,33,43,.22);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* --- Homepage: intro + stats + cards + CTA --- */
.welcome-section {
  margin: 0 auto 3rem;
  max-width: 760px;
}
.welcome-section .lead {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 auto 3.5rem;
  max-width: 900px;
}
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat .num {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat .label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(21,33,43,.05) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(21,33,43,.12) !important;
}
.card .fas {
  color: var(--accent) !important;
}
.card-title {
  font-size: 1.25rem;
}

.cta-band {
  margin: 4rem auto 1rem;
  background: var(--hero-grad);
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  color: #fff;
  border: 0;
  margin-top: 0;
}
.cta-band p {
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* --- Skill badges (About) --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.skill-badges li {
  background: var(--accent-soft);
  color: #0B5A62;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Experience timeline --- */
.timeline {
  position: relative;
  margin: 1.5rem 0 0;
  padding-left: 1.75rem;
  border-left: 2px solid var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-item h3 {
  margin: 0;
  font-size: 1.2rem;
}
.timeline-item .org {
  color: var(--accent);
  font-weight: 600;
}
.timeline-item .period {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.15rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
}
.timeline-item ul li {
  margin-bottom: 0.35rem;
}

/* --- Education cards --- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.edu-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.edu-card .degree { font-weight: 700; color: var(--ink); }
.edu-card .school { color: var(--muted); font-size: 0.92rem; }

/* --- Portfolio items --- */
.portfolio-container { margin-bottom: 30px; }
.pdf-container {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin-top: 1rem;
}
.portfolio-item {
  background: #fff !important;
  border: 1px solid var(--line);
  border-radius: 14px !important;
  box-shadow: 0 6px 20px rgba(21,33,43,.05) !important;
  padding: 1.75rem !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(21,33,43,.10) !important;
}
.portfolio-item h3 { margin-top: 0; }
.portfolio-item em { color: var(--accent); font-style: normal; font-weight: 600; }
.portfolio-description {
  background: var(--bg-soft) !important;
  border: 1px solid var(--line);
  border-radius: 14px !important;
}

/* --- Footer --- */
footer .social-network-links a {
  color: var(--footer-link-col);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .welcome-section .lead { font-size: 1.15rem; }
  .stat .num { font-size: 1.9rem; }
  main h2 { font-size: 1.55rem; }
}
@media (max-width: 575px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
