/* =============================================================
   KISHEN PATEL — PORTFOLIO  |  style.css
   =============================================================
   Table of contents
   1.  CSS Custom Properties (design tokens)
   2.  Reset & Base
   3.  Typography helpers
   4.  Layout utilities
   5.  Navbar
   6.  Hero / About
   7.  Section headings (shared)
   8.  Projects
   9.  Skills
   10. Resume
   11. Blog
   12. Footer / Contact
   13. Fade-in animation
   14. Responsive — 768 px breakpoint
   ============================================================= */


/* ─────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
───────────────────────────────────────────────────────────── */
:root {
  /* Colours */
  --white:        #FFFFFF;
  --text:         #2D3142;
  --orange:       #EF8354;
  --blue:         #3A6EA5;
  --grey:         #BFC0C0;
  --light-bg:     #F7F7F8;

  /* Typography */
  --font-heading: 'Avenir', 'Avenir Next', 'Nunito', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad-v: 100px;
  --container-max: 1100px;

  /* Transitions */
  --transition:   0.3s ease;
}


/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}


/* ─────────────────────────────────────────────────────────────
   3. TYPOGRAPHY HELPERS
───────────────────────────────────────────────────────────── */

/* Shared heading style — Avenir / Nunito light */
.heading-avenir {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Small-caps category label above headings */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}

/* Optional subtitle beneath a section heading */
.section-subheading {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey);
  letter-spacing: 0.02em;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Thin horizontal rule under section headings */
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--grey);
  margin: 16px auto 48px;
  opacity: 0.6;
}

/* Orange accent divider used in profile card */
.orange-divider {
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin: 10px auto;
  border-radius: 2px;
}


/* ─────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-pad-v);
}

.section--white { background: var(--white); }
.section--light  { background: var(--light-bg); }

/* Offset anchor targets so sticky navbar doesn't obscure them */
section[id],
footer[id] {
  scroll-margin-top: 64px;
}


/* ─────────────────────────────────────────────────────────────
   5. NAVBAR
───────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(191, 192, 192, 0.3); /* #BFC0C0 @ 30% */
}

.nav-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.nav-brand {
  font-family: var(--font-heading);
  font-weight: 5000;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-asterisk {
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  margin-left: 5px;
  font-family: var(--font-body);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

/* Underline pseudo-element */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Open state */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ─────────────────────────────────────────────────────────────
   6. HERO / ABOUT
───────────────────────────────────────────────────────────── */

/* Two-column grid */
.hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Profile Card ── */
.profile-card {
  background: var(--light-bg);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 40px 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* Grey circle placeholder — swap <img> in when ready */
.profile-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #D6D7D9;
  flex-shrink: 0;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%; /* makes it circular */
  object-fit: cover;   /* ensures it fills the circle nicely */
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
}

.profile-tagline {
  font-size: 12px;
  line-height: 1.5;
  margin-block: 8px;
}

.tagline--main,
.tagline--secondary,
.tagline--tertiary {
  color: var(--text);
  font-weight: 400;
}

/* ── Bio / Right column ── */
.hero-bio {
  padding-top: 8px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text {
  font-size: 16px;
  color: var(--text);
  max-width: 540px;
  margin-bottom: 28px;
}

.explore-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}

/* Pill buttons */
.pill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.pill-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}

.pill-btn:hover {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  transform: translateY(-2px);
}

/* Social icon circles */
.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 16px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.social-icon:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────────
   7. SECTION HEADINGS (shared)
───────────────────────────────────────────────────────────── */
.section-heading-wrap {
  text-align: center;
  margin-bottom: 0; /* spacing handled by .section-divider */
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────────────────────
   8. PROJECTS
───────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.project-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(45, 49, 66, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(45, 49, 66, 0.13);
}

/* Coloured accent bar at top — colour via CSS var */
.card-accent-bar {
  height: 4px;
  background: var(--accent, var(--orange));
  transition: height var(--transition);
  flex-shrink: 0;
}

.project-card:hover .card-accent-bar {
  height: 6px;
}

.card-body {
  padding: 24px 24px 16px;
  flex: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.card-title-link {
  color: var(--blue);
  transition: color var(--transition);
}

.card-title-link:hover { color: var(--orange); }

.card-desc {
  font-size: 14px;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1.65;
}

/* Tech-stack tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--grey);
  border-radius: 50px;
  font-size: 12px;
  color: var(--text);
  background: var(--white);
  letter-spacing: 0.02em;
  transition: border-color var(--transition), color var(--transition);
}

.tag:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Card footer */
.card-footer {
  padding: 12px 24px 20px;
  text-align: right;
}

/* Works whether the element is <a> or <button> */
.card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.04em;
  transition: color var(--transition), letter-spacing var(--transition);
  /* Button reset */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.card-link:hover {
  color: var(--blue);
  letter-spacing: 0.08em;
}


/* ─────────────────────────────────────────────────────────────
   9. SKILLS
───────────────────────────────────────────────────────────── */
.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin-inline: auto;
}

.skill-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Skill pill — lozenges */
.skill-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--grey);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  cursor: default;
  transition: border-color var(--transition), color var(--transition);
}

.skill-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
}


/* ─────────────────────────────────────────────────────────────
   10. RESUME
───────────────────────────────────────────────────────────── */
.resume-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.resume-cta {
  padding-top: 8px;
}

.resume-text {
  font-size: 15px;
  color: var(--text);
  opacity: 0.8;
  max-width: 380px;
  margin-bottom: 28px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--text);
  color: var(--white);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition);
}

.download-btn:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

/* Timeline */
.resume-timeline {
  position: relative;
  padding-left: 32px;
}

/* Vertical blue line */
.resume-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: var(--blue);
  opacity: 0.3;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Dot on the line */
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--blue);
}

.timeline-date {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-sub {
  font-size: 13px;
  color: var(--grey);
  display: flex;          /* align children in a row */
  align-items: center;    /* vertically center logo and text */
}

/* Small inline logo */
.timeline-logo {
  width: 16px;           /* or adjust size */
  height: 16px;
  vertical-align: middle; /* aligns with text */
  margin-right: 6px;      /* spacing between logo and company name */
  border-radius: 2px;     /* optional rounded corners */
  object-fit: contain; 
}


/* ─────────────────────────────────────────────────────────────
   11. BLOG — CAROUSEL
───────────────────────────────────────────────────────────── */

/* Outer row: [arrow] [viewport] [arrow] */
.blog-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Clips the sliding track — shows 3 cards at a time */
.blog-carousel-viewport {
  overflow: hidden;
  width: 888px; /* 3 × 280px cards + 2 × 24px gaps */
  border-radius: 8px;
}

/* Sliding track — cards sit side-by-side with a gap */
.blog-grid {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

/* Portrait card */
.blog-card {
  flex: 0 0 280px;
  width: 280px;
  background: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45, 49, 66, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}

.blog-card:hover {
  box-shadow: 0 10px 28px rgba(45, 49, 66, 0.13);
}

/* Thumbnail area at the top of each card */
.blog-card-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--grey);
  flex-shrink: 0;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder when no image is set */
.blog-card-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 32px;
  opacity: 0.45;
}

/* Text content below the thumbnail */
.blog-card-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

/* Arrow buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--grey);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.carousel-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: scale(1.08);
}

.blog-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.blog-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text);
  opacity: 0.75;
  flex: 1;
}

.blog-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  align-self: flex-start;
  letter-spacing: 0.04em;
  transition: color var(--transition), letter-spacing var(--transition);
}

.blog-link:hover {
  color: var(--orange);
  letter-spacing: 0.08em;
}


/* ─────────────────────────────────────────────────────────────
   12. FOOTER / CONTACT
───────────────────────────────────────────────────────────── */
.footer {
  background: var(--white);
  padding-block: 80px 48px;
  border-top: 1px solid rgba(191, 192, 192, 0.25);
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 0.03em;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--grey);
  opacity: 0.35;
  margin-bottom: 48px;
}

/* Icon row */
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.contact-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  transition: color var(--transition), transform var(--transition);
}

.contact-icon-wrap:hover {
  color: var(--orange);
  transform: translateY(-3px);
}

.contact-icon {
  font-size: 32px;
}

.contact-label {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Copyright */
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────────────────────────
   13. FADE-IN SCROLL ANIMATION
───────────────────────────────────────────────────────────── */

/* Initial hidden state — applied by JS class */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────────────────────────
   14. RESPONSIVE — 768 px BREAKPOINT
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  :root {
    --section-pad-v: 60px;
  }

  /* Navbar: show hamburger, hide desktop links */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(191, 192, 192, 0.4);
    padding-block: 8px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(45, 49, 66, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 24px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .nav-link::after { display: none; }

  /* Hero: stack vertically */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-card {
    max-width: 320px;
    margin-inline: auto;
  }

  /* Projects: 1 column on mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Blog carousel: 2 cards at a time on tablet */
  .blog-carousel-viewport {
    width: 584px; /* 2 × 280px cards + 24px gap */
  }

  .blog-card {
    flex: 0 0 280px;
    width: 280px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Resume: stack */
  .resume-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Footer icons closer together */
  .contact-icons {
    gap: 28px;
  }

  .section-heading {
    font-size: 28px;
  }

  .hero-heading {
    font-size: 36px;
  }
}

/* ── Extra small screens: 1 card ─────────────────────────── */
@media (max-width: 480px) {
  .blog-carousel-viewport {
    width: 280px; /* exactly 1 card */
  }
}

/* Slightly widen projects grid at 1024px for 2-col */
@media (max-width: 1024px) and (min-width: 769px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ─────────────────────────────────────────────────────────────
   15. PROJECT MODAL
   Triggered by "View Project" button on each card.
   Overlay dims the page; modal card slides/scales in.
───────────────────────────────────────────────────────────── */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 49, 66, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  /* Hidden by default — JS adds .open */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Card panel */
.modal-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(45, 49, 66, 0.18);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  /* Starts slightly down + scaled — animates to natural position */
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

/* Coloured bar at top of modal (matches card accent) */
.modal-accent-top {
  height: 4px;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--grey);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: border-color var(--transition), color var(--transition);
}

.modal-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Image area */
.modal-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: var(--light-bg);
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder shown when no image is set */
.modal-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-placeholder i {
  font-size: 40px;
  color: var(--grey);
  opacity: 0.45;
}

/* Body content */
.modal-body {
  padding: 28px 32px 32px;
}

.modal-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
  padding-right: 32px; /* prevent overlap with close button */
}

.modal-divider {
  width: 40px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 18px;
}

.modal-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
}

.modal-desc p {
  margin-bottom: 1em;
}

.modal-desc p:last-child {
  margin-bottom: 0;
}

.modal-tags-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* Action buttons row */
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.modal-btn--primary {
  background: var(--text);
  color: var(--white);
  border: 2px solid var(--text);
}

.modal-btn--primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.modal-btn--secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--grey);
}

.modal-btn--secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* Mobile modal */
@media (max-width: 768px) {
  .modal-body {
    padding: 20px 20px 28px;
  }
  .modal-title {
    font-size: 20px;
  }
  .modal-overlay {
    padding: 16px;
    align-items: flex-end; /* sheet-style on small screens */
  }
  .modal-card {
    border-radius: 12px 12px 0 0;
    max-height: 85vh;
  }
}


/* ─────────────────────────────────────────────────────────────
   16. BLOG POST PAGES  (blog/*.html)
   These pages link to this stylesheet via ../style.css.
───────────────────────────────────────────────────────────── */

.post-wrap {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 72px 96px;
}

/* "← Back to Blog" link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 48px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--blue);
}

/* Post header */
.post-header {
  margin-bottom: 36px;
}

.post-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.post-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Hero image */
.post-hero {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-bg);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-hero-placeholder {
  color: var(--grey);
  opacity: 0.35;
  font-size: 40px;
}

/* Post body typography */
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 24px;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-top: 48px;
  margin-bottom: 14px;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 10px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content strong {
  font-weight: 600;
}

/* Inline code */
.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: var(--light-bg);
  border: 1px solid rgba(191, 192, 192, 0.5);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--blue);
}

/* Code block */
.post-content pre {
  background: var(--light-bg);
  border: 1px solid rgba(191, 192, 192, 0.4);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin-block: 24px;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--text);
}

/* Full-width divider inside posts */
.post-divider {
  width: 100%;
  height: 1px;
  background: var(--grey);
  opacity: 0.3;
  margin-block: 48px;
  border: none;
}

.post-footer-brand {
  margin-top: 48px;
  text-align: center;
}
