/* =========================
   Base / Palette / Typo
   ========================= */
:root {
  --ink: #3b2f27;
  --ink-soft: #6b5547;
  --brand: #a8795d;
  --brand-dark: #8f6148;
  --paper: #faf7f3;
  --panel: #ffffff;
  --line: rgba(0,0,0,0.08);
  --radius: 18px;
  --shadow: 0 6px 30px rgba(0,0,0,0.06);

  /* Lemonade sizing */
  --lemonade-size: 150px;
  --lemonade-bottom: 125px;
}

html { scroll-behavior: smooth; }

.brand {
  font-family: 'Herr Von Muellerhoff', cursive;
  font-size: 68px;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
}

/* Constrain main sections */
header,
section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}
/* =========================
   Navbar (final polished)
   ========================= */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 45px 0 10px;
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--panel);
  border-bottom: 3px solid #e7d9cf;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
/* Pill buttons for page links */
.navbar .nav-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}

/* ===== NAVBAR LINKS (Refined Pill Style + Brand Colors) ===== */
.nav-link,
.nav-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: 999px;                      /* keeps the soft pill shape */
  text-decoration: none !important;
  font-weight: 500;
  font-size: 15px;

  background: #d9b8a4;                       /* lighter brown base */
  color: #fff;                               /* white text for contrast */
  border: 1px solid transparent;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: background 0.25s ease, 
              color 0.25s ease,
              transform 0.2s ease,
              box-shadow 0.25s ease;
}

.nav-link:hover {
  background: var(--brand);                  /* your medium brown tone */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.nav-link.is-active,
.nav-link.active {
  background: var(--brand-dark);             /* active page = darker brown */
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


/* Add a bit of glow and separation to brand area */
.brand-group {
  text-align: center;
  margin-bottom: 10px;
  padding: 6px 20px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #faf7f3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand {
  font-family: 'Herr Von Muellerhoff', cursive;
  font-size: 68px;
  color: var(--brand);
  text-shadow: 0 1px 0 var(--paper), 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 4px; /* small breathing space below the script font */
}

.brand-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
  margin-top: 8px; /* increased spacing between name and subtitle */
}

/* Brand area – open and airy */
.brand-group {
  text-align: center;
  margin-bottom: 14px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.brand {
  font-family:'Great Vibes', cursive;
  font-size:68px;
  line-height:1.1;
  letter-spacing:0.5px;
  color:var(--brand);
}

.brand-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.35px;
  margin: 0px;               /* no overlap, sits comfortably under */
}
 

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #6b7280;
  position: relative;
  z-index: 2;
}

.hero-name {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Herr Von Muellerhoff', cursive;
  font-size: 220px;
  color: rgba(176,127,94,0.1);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.hero .subtitle {
  position: relative;
  z-index: 2;
  color: #555;
  margin-top: 20px;
}

/* =========================
   Headings & Buttons
   ========================= */
h1, h2 { font-family: 'Playfair Display', serif; }

h1 {
  font-size: 42px;
  text-align: center;
  color:var(--brand);
}

p.subtitle {
  text-align: center;
  margin-top: -10px;
  color: #555;
}

/* ===== BUTTONS (Unified across all pages) ===== */
/* Base button — use .btn for both <a> and <button> */
.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font: 500 15px 'Poppins', sans-serif;
  letter-spacing: .3px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  transition: background .25s ease, transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:hover, a.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.btn:active, a.btn:active { transform: translateY(0); }
@media (max-width: 768px) {
  .btn, a.btn { display:block; width:80%; margin:8px auto; }
}

/* =========================
   Lists
   ========================= */
ul { list-style: none; padding: 0; }
li {
  margin: 6px 0;
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* =========================
   Case Studies
   ========================= */
#case-studies {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.case {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.case h3 {
  color: var(--brand);
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

.case p { margin: 8px 0; }

/* =========================
   About (Accordion + Anim)
   ========================= */
.about-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 16px;
}

.section-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.3px;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.about-card {
  border-radius: var(--radius);
  border: 1.5px solid #8f6148; /* thin warm brown trim */
  background: var(--panel);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); /* keep the bubble lift */
  overflow: clip;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.about-card:hover {
  transform: translateY(-2px);
  border-color: #4b2e1f; /* darker brown when hovered */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about-card[open] {
  border-color: #4b2e1f; /* keep the dark brown while open */
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
}
.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

.about-card .chev {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  transform: rotate(-90deg);
  transition: transform 200ms ease, opacity 200ms ease;
  opacity: 0.7;
}
.about-card[open] .chev {
  transform: rotate(0deg);
  opacity: 1;
}

.about-body {
  padding: 0 20px 18px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  animation: about-slide-up .25s ease; /* closing */
}
.about-card[open] .about-body {
  animation: about-slide-down .25s ease; /* opening */
}
.about-body p { margin: 12px 0; }
.about-body ul { margin: 10px 0 10px 18px; }
.about-body li { margin: 6px 0; }

@keyframes about-slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes about-slide-up {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* =========================
   Lemonade (volunteering)
   ========================= */
.lemonade-glass {
  position: fixed;
  bottom: var(--lemonade-bottom);
  left: -160px; /* start off-screen on the left */
  width: var(--lemonade-size);
  height: var(--lemonade-size);
  pointer-events: none;
  opacity: 0;
  z-index: 2000;
  isolation: isolate;
}
.lemonade-glass svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lemonade-glass.animate {
  opacity: 1;
  animation: lemonade-slide 2.6s ease-out forwards;
}

/* cup flight */
@keyframes lemonade-slide {
  0%   { transform: translateX(0) rotate(-8deg); opacity: 0; }
  10%  { opacity: 1; }
  70%  { transform: translateX(calc(100vw + 320px)) rotate(6deg); opacity: 1; }
  100% { transform: translateX(calc(100vw + 320px)) rotate(0deg); opacity: 0; }
}

/* soft glow + trailing aura */
.lemonade-glass.animate::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--lemonade-size);
  height: var(--lemonade-size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,112,112,0.55) 0%, rgba(224,112,112,0) 70%);
  filter: blur(28px);
  opacity: 0.6;
  animation: lemonade-core 2.6s ease-out forwards;
  z-index: -1;
}
.lemonade-glass.animate::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% - 2px); /* stick to cup’s right edge */
  transform: translateY(-50%) skewX(-8deg);
  height: 60%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(270deg, rgba(224,112,112,0.65) 0%, rgba(224,112,112,0) 100%);
  filter: blur(18px);
  opacity: 0;
  animation: lemonade-follow-ltr 2.6s ease-out forwards;
}

@keyframes lemonade-core {
  0%   { transform: scale(0.85); opacity: 0; }
  12%  { transform: scale(1);    opacity: 0.8; }
  45%  { transform: scale(1.08); opacity: 0.55; }
  75%  { transform: scale(1.03); opacity: 0.4; }
  100% { transform: scale(0.92); opacity: 0; }
}
@keyframes lemonade-follow-ltr {
  0%   { width: 0;    opacity: 0; }
  12%  { width: 28vw; opacity: 0.7; }
  45%  { width: 52vw; opacity: 0.45; }
  75%  { width: 24vw; opacity: 0.25; }
  100% { width: 0;    opacity: 0; }
}
/* =========================================================
   EXPERIENCE PAGE STYLES
   ========================================================= */

/* ===== Page Background ===== */
body.experience-page {
  background: linear-gradient(180deg, var(--canvas) 0%, #fff 520px);
}

/* ===== Hero Section ===== */
.experience-hero {
  max-width: 1100px;
  margin: 40px auto 24px;
  padding: 28px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
}

.experience-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 8px 0;
  letter-spacing: 0.3px;
}

.experience-sub {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  margin: 0;
}

.experience-badgebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), 0 0 0 6px var(--ring);
}

.hero-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f9f6f3);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.metric .num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--brand-accent);
}

.metric .lbl {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* ===== Timeline ===== */
.exp-wrap {
  max-width: 1100px;
  margin: 12px auto 60px;
  padding: 0 22px;
}

.timeline {
  position: relative;
  margin: 22px 0 0 0;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--brand-accent), rgba(176, 127, 94, 0));
  opacity: 0.35;
}

.t-item {
  position: relative;
  margin: 0 0 24px 0;
}

.t-dot {
  position: absolute;
  left: -2px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 6px var(--ring);
}

.exp-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.exp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

.exp-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.role {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--ink);
}

.where {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.dates {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--brand-accent);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.tag {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7f0;
  border: 1px dashed rgba(176, 127, 94, 0.45);
}

.xp {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  margin: 10px 0 0;
}

/* ===== Skill Categories (match Case Study boxes) ===== */
.skill-category {
  background: var(--panel);                 /* same white as your case cards */
  border: 2px solid var(--brand-dark);      /* brown trim */
  border-radius: var(--radius);             /* same rounded corners */
  box-shadow: var(--shadow);                /* soft shadow */
  padding: 28px 32px;
  margin: 32px 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Optional: slight hover lift like case cards */
.skill-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.1);
}

/* Category headings */
.skill-category h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}

/* The skill list inside each category */
.skill-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  justify-content: center;
}




/* ===== Responsive ===== */
@media (max-width: 920px) {
  .experience-hero {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding-left: 22px;
  }

  .experience-hero {
    margin-top: 24px;
  }
}
/* ===== Skills page polish (chips under each category) ===== */
.skills-section {
  max-width: 980px;
  margin: 40px auto 60px;
  padding: 0 16px;
}

.skills-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--brand-dark);
  margin: 0 0 16px;
}

.skill-category {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
  margin: 14px 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.skill-category > h3 {
  margin: 0 0 10px;
  font: 700 16px 'Poppins', sans-serif;
  letter-spacing: .2px;
  color: var(--ink-soft);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem;
}

.skill-list .skill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f7f3ef);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 600 13.5px 'Poppins', sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.skill-list .skill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.12);
}
/* ===== Skills page shell – match About card ===== */
.skills-shell {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 32px 28px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--brand-dark);
  box-shadow: var(--shadow);
}

/* Center title like About */
.skills-shell .section-title {
  text-align: center;
  margin-bottom: 28px;
}

/* ===== Accordion (same vibe as About dropdowns) ===== */
.skills-accordion {
  background: var(--panel);
  border: 1px solid var(--brand-dark);
  margin-bottom: 18px;
  overflow: hidden;
}

/* Remove default triangle */
.skills-accordion summary::-webkit-details-marker {
  display: none;
}
.skills-accordion summary {
  list-style: none;
}

/* Header bar */
.skills-accordion > summary {
  cursor: pointer;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--ink);
}

/* Arrow rotate when open */
.skills-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
}

/* Smooth arrow animation */
.accordion-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

/* Panel behind the bubbles */
.skills-panel {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 18px 20px 22px;
  background: rgba(255,255,255,0.95);
}

/* Reuse your existing bubble grid but let it wrap nicely */
.skills-panel .skills {
  margin-top: 0;
}

/* Optional: tighten gaps a bit inside accordion */
.skills-panel .skill {
  min-height: 34px;
  padding: 6px 14px;
}


/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  .exp-card {
    transition: none;
  }
}
/* =========================
   Case Studies (Accordion)
   ========================= */
.case-accordions {
  max-width: 900px;
  margin: 80px auto 100px;
  padding: 0 20px;
}

.case-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.case {
  background: var(--panel);
  border: 1.5px solid #8f6148; /* warm brown trim to match About section */
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); /* same soft bubble effect */
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.case:hover {
  transform: translateY(-2px);
  border-color: #4b2e1f; /* darker brown hover accent */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.case[open] {
  border-color: #4b2e1f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}

.case summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.case summary::-webkit-details-marker { display: none; }

.case summary span {
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.case .chev {
  width: 22px; height: 22px;
  stroke: var(--ink-soft); fill: none; stroke-width: 2;
  transition: transform .25s ease;
}

.case[open] .chev { transform: rotate(180deg); }

.case-body {
  padding: 0 24px 22px 24px;
  border-top: 1px dashed var(--line);
  animation: dropIn .25s ease;
}

.case-body p {
  margin: 12px 0 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: .96rem;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Small tweak for header to match Experience */
.page-header {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 30px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--brand-dark);
}
.page-header p {
  color: var(--ink-soft);
  margin-top: 8px;
}


/* =========================
   Footer
   ========================= */
footer {
  text-align: center;
  background: #ffffff; /* same crisp white as header */
  padding: 56px 20px 52px;
  border-top: 3px solid #e7d9cf; /* thicker line to match nav divider */
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06); /* gentle upward lift like header’s drop shadow */
  margin-top: 60px;
}

footer h2 {
  font-family: 'Playfair Display', serif;
  color: var(--brand-dark);
  font-size: 24px;
  margin-bottom: 10px;
}

footer p {
  color: #555;
  margin: 6px 0;
}

footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 14px;
  color: #777;
  margin-top: 15px;
}

/* =========================
   Preloader (optional)
   ========================= */
.preloader {
  position: fixed;
  inset: 0;
  background: #faf7f3;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}
.preloader[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.logo-container { margin-top: 100px; }
.center-circle {
  width: 8cm;
  height: 8cm;
  background: transparent;
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulseCircle 2s infinite ease-in-out;
}
.initials {
  color: var(--brand);
  font-size: 4cm;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  animation: fadeInInitials 2s infinite ease-in-out;
}
.coffee-container {
  position: absolute;
  bottom: 0;
  left: -100px;
  animation: slideCoffee 3s infinite;
}
.coffee-mug {
  width: 120px;
  height: 140px;
  background:var(--brand);
  border-radius: 0 0 60px 60px;
  position: relative;
}
.coffee-mug::before {
  content: '';
  position: absolute;
  right: -40px;
  top: 30px;
  width: 40px;
  height: 60px;
  border: 8px solid var(--brand);
  border-left: none;
  border-radius: 0 40px 40px 0;
}
.coffee {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 100px;
  height: 100px;
  background: #784c32;
  border-radius: 50%;
  overflow: hidden;
}
.coffee-spill {
  position: absolute;
  top: -100px;
  left: 60px;
  width: 20px;
  height: 100px;
  background: #784c32;
  animation: spillCoffee 3s infinite;
  transform-origin: bottom;
}

/* Preloader keyframes */
@keyframes pulseCircle {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(176,127,94,0.4); }
  70% { transform: scale(1); box-shadow: 0 0 20px rgba(176,127,94,0.3); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(176,127,94,0.4); }
}
@keyframes fadeInInitials { 0%{opacity:.5} 50%{opacity:1} 100%{opacity:.5} }
@keyframes slideCoffee {
  0% { transform: translateX(0); }
  50% { transform: translateX(calc(100vw + 100px)); }
  50.01% { transform: translateX(-100px); }
  100% { transform: translateX(0); }
}
@keyframes spillCoffee {
  0% { transform: rotate(-45deg) scale(0); }
  30% { transform: rotate(-45deg) scale(1); }
  35% { transform: rotate(-45deg) scale(1); }
  45% { transform: rotate(-45deg) scale(0); }
  100% { transform: rotate(-45deg) scale(0); }
}

/* =========================
   Accessibility / Motion
   ========================= */
@media (prefers-reduced-motion: reduce) {
  .lemonade-glass.animate { animation: none; opacity: 1; }
  .lemonade-glass.animate::before,
  .lemonade-glass.animate::after { animation: none; opacity: 0; }
  .books-rain .book { animation: none !important; }
  .center-circle, .initials { animation: none; }
}
/* ===== Mobile Drawer Nav ===== */
.menu-toggle {
  display: none;
  position: absolute;
  left: 16px;
  top: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 7px 4px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

/* Drawer hidden by default (slides from the left) */
#drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 82%;
  max-width: 320px;
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 9999;
  pointer-events: auto;

  /* NEW — make it opaque */
  background: var(--panel);          /* solid white panel */
  border-right: 3px solid #e7d9cf;   /* matches header/footer divider */
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}

/* Ensure the links inside the drawer are clickable */
#drawer a, #drawer button { pointer-events: auto; }


/* Backdrop hidden by default */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9998; 
}

/* When the body is “open”, show both */
.drawer-open #drawer { transform: translateX(0); }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

/* Keep hamburger above all */
.menu-toggle { z-index: 1100; position: fixed; top: 14px; left: 16px; }
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px 24px;
}
.mobile-drawer .nav-link {
  display: block;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(176,127,94,0.06);
  color: var(--ink);
}
.mobile-drawer .nav-link:hover {
  background: rgba(176,127,94,0.12);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 1250;
  transition: opacity .3s ease;
}

body.drawer-open .mobile-drawer { right: 0; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }

body.drawer-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.drawer-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .nav-links { display: none; }
  nav { padding-top: 52px; }
}
@media (max-width: 520px) {
  nav {
    width: 100%;
    box-sizing: border-box;
  }
  .brand-subtitle { max-width: 92%; margin-left: auto; margin-right: auto; }
}
/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  nav { padding: 10px 0; }
  a.btn { display: block; margin: 10px auto; width: fit-content; }
  footer { padding: 40px 15px; }

  .hero-name { font-size: 160px; }
}
@media (max-width: 520px) {
  /* Disable books animation on phones */
  .books-stage { display: none; }

  /* Keep lemonade contained */
  :root {
    --lemonade-size: 120px;
    --lemonade-bottom: 90px;
  }
  .lemonade-glass { left: -140px; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
body.contact-page {
  background: linear-gradient(180deg, var(--paper) 0%, #fff 420px);
}

.contact-hero {
  max-width: 900px;
  margin: 48px auto 8px;
  padding: 0 20px;
  text-align: center;
}
.contact-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 46px);
  color: var(--brand);
  margin: 0 0 6px;
}
.contact-hero .subtitle {
  color: #666;
  margin-top: 6px;
}

.contact-cards {
  max-width: 1100px;
  margin: 30px auto 40px;
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

@media (max-width: 760px) {
  .contact-cards {
    padding: 0 14px 20px;
    margin-top: 20px;
  }
}


.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}
.contact-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
}
.contact-icon {
  width: 22px; height: 22px;
  color: var(--brand);
  opacity: .9;
}

.muted { color: #6f6f6f; margin: 8px 0 16px; }
/* Form inside the Message Me card */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b8a9a0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}

/* Primary button — used everywhere (links and buttons) */
.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font: 500 15px 'Poppins', sans-serif;
  letter-spacing: .3px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease;
}
.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 100%);
}


.form-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}


/* Status text */
.form-status {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: right;
}

.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }


.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* Variants */
.btn-primary { 
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.btn-primary:hover {
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-dark);
  border: 2px solid var(--brand-dark);
  box-shadow: none;
}
.btn-secondary:hover {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.pillline { margin-top: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.pill.mono {
  background: #fff7f0;
  border: 1px dashed rgba(176, 127, 94, 0.45);
  color: var(--ink);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: #1f1f1f;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 3000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* small copy icon next to email pill */
.email-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-icon-btn {
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
  transition: background 0.2s ease;
}
.copy-icon-btn:hover {
  background: rgba(0,0,0,0.05);
}
.copy-icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Mobile: hide hero header, keep only hamburger */
@media (max-width: 768px){
  .site-header { display: none; }       /* whatever wraps the big logo/tagline/buttons */
}

/* Make the hamburger always tappable */
.nav-toggle{
  position: fixed;
  top: 14px; left: 16px;
  z-index: 1001;           /* above everything */
  pointer-events: auto;
}
/* Drawer (left slide) */
.side-nav{
  position: fixed;
  inset: 0 auto 0 0;       /* top:0 right:auto bottom:0 left:0 */
  width: 82%;
  max-width: 320px;
  background: var(--panel, #fff);
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 1000;
}

/* When open */
.side-nav.open{ transform: translateX(0); }

/* Dim background behind drawer */
.scrim{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 999;
}
.scrim.show{ opacity: 1; pointer-events: auto; }

/* === Mobile Navbar Fix — Show Logo and Tighten Spacing === */
@media (max-width: 768px) {

  /* Show logo again on top (centered) */
  .brand-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
  }

  .brand {
    font-size: 42px;
  }

  .brand-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
  }

  /* Navbar padding smaller */
  .navbar {
    padding: 20px 0 8px;
  }

  /* Hamburger position */
  .menu-toggle {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 1100;
  }

  /* Hide main nav links until hamburger opens */
  .nav-links {
    display: none !important;
  }

  /* Reduce the space before hero text */
  header.hero {
    margin-top: 10px;
  }

  .hero {
    padding-top: 40px;
  }
}

/* === Simple Hamburger Toggle === */
nav ul {
  display: none;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

nav ul.open {
  display: flex;
}

.hamburger {
  display: block;
  cursor: pointer;
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  nav ul { display: flex !important; flex-direction: row; }
}
/* ===== BACK TO TOP BUTTON (Arrow Only, Unified) ===== */
#backToTop {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 24px;         /* Above footer */
  right: 20px;          /* Aligned right */
  z-index: 1200;

  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  cursor: pointer;

  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: all 0.25s ease;
}

#backToTop:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
/* ===== Mail fly-by animation (envelope pops across screen) ===== */
#mail-fly {
  position: fixed;
  left: -120px;
  bottom: 18vh;
  opacity: 0;
  transform: translateX(-30vw) rotate(-8deg) scale(0.95);
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}

#mail-fly.show {
  animation: mail-fly 1200ms ease-out forwards;
}

@keyframes mail-fly {
  0% {
    opacity: 0;
    transform: translateX(-30vw) translateY(0) rotate(-8deg) scale(0.95);
  }
  15% {
    opacity: 1;
    transform: translateX(-10vw) translateY(-1vh) rotate(-4deg) scale(1.0);
  }
  55% {
    opacity: 1;
    transform: translateX(45vw) translateY(-6vh) rotate(3deg) scale(1.05);
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.28));
  }
  100% {
    opacity: 0;
    transform: translateX(120vw) translateY(-12vh) rotate(6deg) scale(1.05);
  }
}

/* Envelope colors */
#mail-fly svg rect { fill: #4a2e23; }          /* body */
#mail-fly svg path:first-of-type { fill: #d4a373; } /* flap */
#mail-fly svg path:last-of-type { stroke: #fff; }   /* crease */

/* ===== Dropdown (select) styling — dark brown border ===== */
select {
  background-color: var(--panel);
  border: 2px solid #4b2e1f; /* rich dark brown outline */
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* Hover and focus glow */
select:hover {
  border-color: #3a2316; /* even darker on hover */
  box-shadow: 0 0 0 2px rgba(59, 47, 39, 0.25);
}

select:focus {
  border-color: #3a2316;
  box-shadow: 0 0 0 3px rgba(59, 47, 39, 0.35);
}

/* Dropdown options */
option {
  background-color: #fff;
  color: var(--ink);
}

/* ===== About: paired buttons fix ===== */
.about-buttons{
  display:flex;
  align-items:center;
  justify-content:flex-start;   /* or center if you prefer */
  gap:16px;
  margin-top:18px;
  position:relative;
  background:none !important;
  box-shadow:none !important;
}
/* kill any decorative pseudo-elements some themes add */
.about-buttons::before,
.about-buttons::after{ content:none !important; }

/* unify button dimensions */
.about-buttons .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  padding:0 24px;
  border-radius:999px;
  line-height:1;
  white-space:nowrap;
}

/* primary stays solid */
.about-buttons .btn.btn-primary{
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 100%);
  color:#fff;
  border:none;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* secondary = clean outline, same height */
.about-buttons .btn.btn-secondary{
  background:transparent;
  color:var(--brand-dark);
  border:2px solid var(--brand-dark);
  box-shadow:none;              /* remove that big “shadow bar” look */
}

/* hover states */
.about-buttons .btn.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.about-buttons .btn.btn-secondary:hover{
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  color:#fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* responsive: stack neatly on small screens */
@media (max-width: 560px){
  .about-buttons{
    justify-content:center;
    flex-wrap:wrap;
  }
  .about-buttons .btn{
    width:100%;
    max-width:280px;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;     /* ← centers the buttons horizontally */
  justify-content: center;
  width: 100%;
  gap: 14px;               /* space between buttons */
  margin-top: 20px;
}

.hero-buttons a,
.hero-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;      /* keeps them bubble-sized */
  margin: 0 auto;          /* double centering insurance */
}

