/* ==========================================================================
   style.css — Personal Portfolio Layout Redesign
   Design system: #ffffff background, #1a56db, #346df1 accent, Inter + Playfair
   ========================================================================== */

:root {
  /* Color palette */
  --color-accent: #3b71f3;
  /* Primary blue matched from image */
  --color-accent-hover: #295ce0;
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-card: #f3f4f6;
  /* Light gray for cards & footer */

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --max-width: 996px;
  /* Narrower container for this specific centered look */
  --nav-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Offset anchor scrolling so the fixed nav doesn't cover section titles */
  scroll-padding-top: calc(var(--nav-height) + 3rem);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* --------------------------------------------------------------------------
   UTILITY & LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section {
  padding-block: 6rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* White button for colored sections */
.btn-primary--white {
  background-color: #ffffff;
  color: var(--color-text-primary);
}

.btn-primary--white:hover {
  background-color: #f8fafc;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  background-color: transparent;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 1.5rem;
  /* Add margin to top to make it float */
  left: 0;
  right: 0;
  max-width: var(--max-width);
  margin-inline: auto;
  /* Center it */
  height: 64px;
  /* Slightly thinner */
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-radius: 8px;
  /* Rounded corners for the strip */
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  /* Removed padding-inline so the .container inside controls the width precisely */
}

.nav.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  /* Optional: slight shrink when scrolling */
  transform: translateY(-4px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  /* Removed border-bottom as the whole nav now has a border */
}

.nav__logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav__link:hover {
  color: var(--color-accent);
}

/* Active blue underline (like the mockup) */
.nav__link.active {
  color: var(--color-accent);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
}

.nav__resume {
  gap: 8px;
  padding: 0.5rem 1.25rem;
}

.nav__hamburger {
  display: none;
}

.nav__mobile-menu {
  display: none;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-height) + 6rem);
  padding-bottom: 0rem;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background-color: #f1f5fa;
  color: var(--color-accent);
  padding: 0.35rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__social {
  display: flex;
  gap: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Hidden on desktop, shown on mobile */
.hero__social-label {
  display: none;
}

.hero__social a {
  transition: color 0.2s;
}

.hero__social a:hover {
  color: var(--color-text-primary);
}

.hero__divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hero__status {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  max-width: 480px;
}

/* --------------------------------------------------------------------------
   WORK
   -------------------------------------------------------------------------- */
.work {
  padding-top: 0rem;
  padding-bottom: 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.work__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.work__view-all {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.work__view-all:hover {
  color: var(--color-accent);
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  display: block;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0;
  /* Changed to 0 as requested */
  height: 280px;
  /* Reduced height to 280px */
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card__image {
  transform: scale(1.05);
}

.card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 2rem 1.5rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card__title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
}

.card__arrow {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */
.about {
  background-color: var(--color-accent);
  color: #fff;
  padding-block: 5rem;
  margin-top: 4rem;
  /* Allow the photo to break out of the top/bottom slightly like the design */
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about__bio {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 440px;
}

/* Polaroi/pinned style image wrapper */
.about__photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__polaroid {
  /* Exact rotation from the newly requested design */
  transform: rotate(-3deg);
  background-color: #ede9dc;
  /* Off-white card background from design */
  padding: 0.75rem 0.75rem 2rem 0.75rem;
  border-radius: 8px;
  /* Slightly rounded outer card */
  box-shadow: 4px 12px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

.about__image {
  width: 250px;
  height: 290px;
  object-fit: cover;
  border-radius: 4px;
  /* Slightly rounded inner image */
  background-color: #ddd;
  /* fallback */
}

/* The pin at the top right */
.about__pin {
  position: absolute;
  top: -16px;
  right: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding-block: 3rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* --- Hero --- */
  .hero {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 0;
    text-align: center;
  }

  .hero__inner {
    align-items: center;
  }

  .hero__badge {
    margin-bottom: 2rem;
  }

  .hero__name {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.05;
  }

  /* "Vivek" stays large; "Singh" is smaller and lighter */
  .hero__name-first {
    font-size: 1em;
    /* inherits 3.5rem */
    font-weight: 700;
  }

  .hero__name-last {
    font-size: 0.55em;
    /* ~1.9rem */
    font-weight: 400;
  }

  .hero__tagline {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    white-space: normal;
  }

  .hero__actions {
    margin-bottom: 5rem;
  }

  /* Social row: label far-left, icons far-right, sits above the divider */
  .hero__social {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
  }

  .hero__social-label {
    display: block !important;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    margin-right: auto;
  }

  .hero__social-link {
    margin-left: 0.5rem;
  }

  .hero__social-link svg {
    width: 15px;
    height: 15px;
  }

  /* Hide the label on desktop */
  .hero__divider {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  /* --- Work / Cards --- */
  .work__grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .card {
    height: 240px;
  }

  .card__title {
    font-size: 1.1rem;
  }

  .card__content {
    padding: 2.5rem 1rem 1rem 1rem;
  }

  /* --- Section title --- */
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* --- About --- */
  .about__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__bio {
    margin-inline: auto;
  }

  .about__pin {
    right: 50%;
    transform: translateX(50%) rotate(0deg);
  }

  /* Nav: match container padding so it aligns with content width */
  .nav {
    left: 2rem;
    right: 2rem;
  }
}

/* ================= CASE STUDY ================= */

.case-hero {
  padding-top: calc(var(--nav-height) + 6rem);
}

.case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.case-hero__back:hover {
  color: var(--color-accent);
}

/* Image placeholders (replaced with real images later) */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-card);
  border: 2px dashed var(--color-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.img-placeholder--hero {
  aspect-ratio: 16 / 7;
}

.img-placeholder--wide {
  aspect-ratio: 21 / 9;
  margin-bottom: 3rem;
}

.case-hero__inner {
  display: flex;
  flex-direction: column;
}

.case-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin: 1rem 0;
}

.case-hero__summary {
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.case-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.case-hero__image img,
.case-section__image img,
.case-full-image img,
.case-grid__item img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.case-section__grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.case-section__grid--reverse {
  flex-direction: column;
}

.case-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.case-impact__metric {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {

  .case-hero__title {
    font-size: 3.5rem;
  }

  .case-section__grid {
    flex-direction: row;
    align-items: center;
  }

  .case-section__grid--reverse {
    flex-direction: row-reverse;
    align-items: center;
  }

  .case-section__content,
  .case-section__image {
    flex: 1;
  }

  .case-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* --- Shared helpers --- */
.cs-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.cs-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.cs-subheading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Alternate section background */
.cs-alt-bg {
  background-color: var(--color-bg-card);
}

/* --- Overview stats strip --- */
.cs-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.cs-overview__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cs-overview__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.cs-overview__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* --- Two column intro/problem --- */
.cs-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .cs-two-col {
    grid-template-columns: 1fr 1fr;
  }

  .cs-overview {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Personas --- */
.cs-persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cs-persona-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cs-persona {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-persona__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  color: var(--color-text-primary);
}

.cs-persona__role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* --- Design decisions --- */
.cs-decision {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--color-border);
}

.cs-decision:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cs-decision__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cs-decision__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
}

.cs-decision__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.cs-decision__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cs-decision__body {
    grid-template-columns: 1fr 1fr;
  }

  .cs-decision__body--reverse {
    direction: rtl;
  }

  .cs-decision__body--reverse>* {
    direction: ltr;
  }
}

/* --- User flow screens grid --- */
.cs-screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cs-screens-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Conclusion cards --- */
.cs-conclusion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cs-conclusion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cs-conclusion-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}

.cs-conclusion-card__icon {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.cs-conclusion-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.cs-conclusion-card__list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Closing section --- */
.cs-closing {
  background-color: var(--color-accent);
  color: #ffffff;
}

.cs-closing__inner {
  max-width: 640px;
}

.cs-closing__label {
  color: #ffffff;
}

.cs-closing__title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.cs-closing__body {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.cs-closing__cta {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cs-closing__cta:hover {
  border-color: #ffffff;
}

/* --- Extra placeholder variants --- */
.img-placeholder--square {
  aspect-ratio: 1 / 1;
}

.img-placeholder--screen {
  aspect-ratio: 9 / 16;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.25s ease;
  cursor: default;
  object-fit: contain;
}

.lightbox-overlay.is-open img {
  transform: scale(1);
}

/* Clickable case-study images */
.page-case-study img:not(.nav__logo) {
  cursor: zoom-in;
}

/* ==========================================================================
   CASE STUDY — MOBILE SPACING  (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {

  /* Hero */
  .case-hero {
    padding-top: calc(var(--nav-height) + 3rem);
  }

  .case-hero__title {
    font-size: 2rem;
    margin: 0.75rem 0;
  }

  .case-hero__summary {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .case-hero__meta {
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .case-hero__back {
    margin-bottom: 1.25rem;
  }

  /* Section padding — tighter on mobile */
  .page-case-study .section {
    padding-block: 3rem;
  }

  /* Section title */
  .page-case-study .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  /* Body text */
  .cs-body {
    font-size: 0.95rem;
  }

  /* Overview strip — 2 columns on mobile */
  .cs-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    margin-top: 2rem;
  }

  .cs-overview__value {
    font-size: 0.9rem;
  }

  /* Two-col intro → tighter gap */
  .cs-two-col {
    gap: 2rem;
  }

  /* Persona grid — tighter */
  .cs-persona-grid {
    gap: 1.5rem;
    margin-bottom: 0;
  }

  .cs-persona__name {
    font-size: 1rem;
    margin-top: 0.75rem;
  }

  /* Design decisions — tighter */
  .cs-decision {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .cs-decision__header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .cs-decision__number {
    font-size: 1.75rem;
  }

  .cs-decision__title {
    font-size: 1.15rem;
  }

  .cs-decision__body {
    gap: 1.25rem;
  }

  /* Conclusion cards — tighter padding */
  .cs-conclusion-grid {
    gap: 1rem;
  }

  .cs-conclusion-card {
    padding: 1.25rem;
  }

  /* Screens grid */
  .cs-screens-grid {
    gap: 1rem;
  }

  /* Closing section */
  .cs-closing__title {
    font-size: 1.75rem;
  }

  /* Wide placeholder — 16/9 on mobile instead of ultra-wide */
  .img-placeholder--wide {
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
  }

  /* Hero placeholder — full 16/9 on mobile */
  .img-placeholder--hero {
    aspect-ratio: 16 / 9;
  }

}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
  }

  .nav__hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
  }

  .nav__mobile-menu.is-open {
    display: block;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav__mobile-link {
    display: block;
    padding: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   MODAL & FORM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-bg);
  width: 90%;
  max-width: 480px;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-text-primary);
}

.modal__close {
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 4px;
}

.modal__close:hover {
  color: var(--color-text-primary);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}


/* ==========================================================================
   BLOG POST PAGE  (blog-1.html, blog-2.html, …)
   ========================================================================== */
.post-body {
  max-width: 680px;
  color: var(--color-text-secondary);
  line-height: 1.85;
  font-size: 1.0625rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body ul,
.post-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 2rem 0;
  color: var(--color-text-muted);
  font-style: italic;
  background: #f8faff;
  border-radius: 0 4px 4px 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.post-tag {
  background: #f1f5fa;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--color-accent);
}