/* Jadon Lindsay portfolio — Prologue-inspired editorial pass.
   Flat maroon / taupe / cream, always light. Sidebar + main content
   on Bootstrap 4. Tweak --accent to recolor. */

:root {
  --accent: #851509;
  --accent-2: #6e1108;
  --sidebar-bg: #111010;
  --sidebar-ink: #eeede4;
  --muted: #816f68;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }

body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #eeede4; color: #111010; }
h1, h2, h3 { font-family: "Poppins", sans-serif; letter-spacing: -0.5px; }

/* ---------- Scroll reveal (vanilla, no extra deps) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sidebar: left-aligned, icon + label nav ---------- */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
  min-height: 100vh;
  padding: 2.5rem 1.75rem;
  text-align: left;
  border-right: 4px solid var(--accent);
}

@media (min-width: 768px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

.sidebar-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }

.profile-photo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 0;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin-bottom: 0;
}

.sidebar h1 { font-size: 1.5rem; margin-bottom: 0.15rem; letter-spacing: -0.5px; line-height: 1.15; }
.sidebar-role { color: #c9c2b8; margin-bottom: 0; font-size: 0.9rem; line-height: 1.4; }

.sidebar-nav { margin: 2rem 0 1.5rem; border-top: 1px solid #3a3330; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sidebar-ink);
  padding: 0.7rem 0.5rem;
  text-decoration: none;
  border-bottom: 1px solid #3a3330;
  border-left: 3px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sidebar-nav a svg { flex-shrink: 0; opacity: 0.75; }
.sidebar-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.sidebar-nav a.active {
  color: #fff;
  background: rgba(133, 21, 9, 0.35);
  border-left-color: var(--accent);
}
.sidebar-nav a.active svg { opacity: 1; }

.sidebar-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.sidebar-links a {
  color: #eeede4;
  border: 1px solid #816f68;
  border-radius: 0;
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sidebar-links a:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.sidebar-foot { color: #a89e95; font-size: 0.85rem; margin-top: 1.5rem; }

.sidebar-logo-wrap {
  margin: 1.5rem auto 0;
  width: 100%;
  display: block;
  text-align: center;
}
.sidebar-logo { width: 60%; height: auto; display: block; margin: 0 auto; opacity: 0.5; }

/* ---------- Main content ---------- */
.content { padding: 3rem 2.5rem; max-width: 900px; }
.content section { margin-bottom: 3rem; }
.content h2 {
  font-weight: 800;
  font-size: 1.9rem;
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.content h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 0;
  margin-top: 0.5rem;
}

/* Continuous strip: no box — the white band runs edge to edge of the
   main column, alternating with the cream page, Prologue-style. */
.band {
  background: #fff;
  margin: 0 -2.5rem 3rem;
  padding: 2rem 2.5rem 1.25rem;
}
.band h2::after { background: var(--accent); }

/* ---------- Hero banner ---------- */
.hero-banner {
  position: relative;
  z-index: 20;
  background: var(--accent);
  color: #fff;
  border-radius: 0;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--card-shadow);
  border-bottom: 5px solid #816f68;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.hero-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero-headline { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0.75rem 0 0.5rem; line-height: 1.15; letter-spacing: -1px; }
.hero-interest { color: #fff; opacity: 0.95; margin-top: 0.75rem; margin-bottom: 0; font-weight: 600; }

/* ---------- Photo-cover header (Projects page) ---------- */
.cover-header {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--card-shadow);
}
.cover-header img { width: 100%; height: 320px; object-fit: cover; display: block; }
.cover-header .cover-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(17, 16, 16, 0.85));
  color: #fff;
}
.cover-header .cover-text h2 { color: #fff; margin-bottom: 0.25rem; }
.cover-header .cover-text h2::after { background: var(--accent); }
.cover-header .cover-text p { margin: 0; opacity: 0.95; }

/* ---------- Project index grid (thumbnails above the cards) ---------- */
.project-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.project-index a {
  display: block;
  background: #fff;
  border: 1px solid #ddd8cf;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: #111010;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-index a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14); }
.project-index img { width: 100%; height: 140px; object-fit: cover; display: block; }
.project-index .idx-body { padding: 0.85rem 1rem 1rem; }
.project-index .idx-body strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.project-index .idx-body span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Home featured-projects carousel (compact) ---------- */
.project-carousel.home-carousel .carousel-item img { height: 280px; }
.home-carousel .carousel-caption p { font-size: 1rem; color: #111010; }
.home-carousel .carousel-caption a { font-weight: 600; }
.hero-btns { margin-top: 1.5rem; }
.hero-banner .hero-btns { margin-bottom: 0; }
.btn-hero {
  background: #fff;
  color: var(--accent);
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.btn-hero:hover { color: var(--accent); background: #eeede4; transform: translateY(-2px); }

/* ---------- Projects dropdown on the hero button ---------- */
.btn-dropdown { position: relative; flex: 1 1 220px; }
.btn-dropdown > .btn-tile { width: 100%; }
.btn-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd8cf;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 10;
}
.btn-dropdown:hover .btn-dropdown-menu,
.btn-dropdown:focus-within .btn-dropdown-menu { display: block; }
.btn-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #111010;
  text-decoration: none;
  font-weight: 500;
}
.btn-dropdown-menu a:hover { background: #eeede4; color: var(--accent); }

.hero-bio { color: #fff; opacity: 0.95; margin-top: 1.5rem; font-size: 1.05rem; }

/* ---------- Experience timeline ---------- */
.timeline-item {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid #ddd8cf;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 0;
  background: var(--accent);
  border: 3px solid #eeede4;
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline-item h3 { margin-bottom: 0; }
.date { color: var(--muted); font-style: italic; margin-bottom: 0.25rem; }

.project-card {
  margin-bottom: 1.25rem;
  border-radius: 0;
  border: 1px solid #ddd8cf;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.project-card .card-subtitle { color: var(--muted); font-style: italic; }
.phase-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.project-img { border-radius: 0; margin-top: 0.75rem; }

/* ---------- Project carousels (manual advance, no auto-slide) ---------- */
.project-carousel { margin-top: 1rem; }
.project-carousel .carousel-item img {
  height: 400px;
  object-fit: contain;
  background: #eeede4;
  border-radius: 0;
}
.project-carousel .carousel-caption {
  position: static;
  color: var(--muted);
  padding: 0.5rem 0 0;
}
.project-carousel .carousel-caption p { margin: 0; font-size: 0.9rem; }
.project-carousel .carousel-indicators { position: static; margin: 0.75rem 0 0; }
.project-carousel .carousel-indicators li { background-color: #816f68; }
.project-carousel .carousel-indicators li.active { background-color: var(--accent); }
.project-carousel .carousel-control-prev-icon,
.project-carousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 0;
  padding: 1.25rem;
  background-size: 60% 60%;
}
@media (max-width: 767px) {
  .project-carousel .carousel-item img { height: 260px; }
  .cover-header img { height: 220px; }
}
.tags { color: var(--accent); font-size: 0.9rem; font-weight: 600; }

.skill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-list li {
  background: #fff;
  border: 1px solid #ddd8cf;
  border-radius: 0;
  padding: 0.4rem 1rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.skill-list li:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn-maroon {
  background: var(--accent);
  color: #fff;
  border-radius: 0;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 4px 14px rgba(133, 21, 9, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-maroon:hover { color: #fff; opacity: 0.92; transform: translateY(-2px); }

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-tile {
  flex: 1 1 220px;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

footer { color: var(--muted); font-size: 0.9rem; padding: 1rem 0 2rem; }
footer .credit { font-size: 0.8rem; }
a { color: var(--accent); }
