/* ============================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   All colors, spacing, and transitions defined here for easy theming.
   Change one value in :root and it propagates everywhere.
   ============================================================ */
:root {
  /* Colors */
  --bg-primary: #171717;
  --bg-watermark: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #f6f6f6;
  --text-muted: #a3a3a3;
  --card-bg: #232526;
  --card-overlay-top: rgba(65, 67, 69, 0.2);
  --card-overlay-bottom: rgba(8, 8, 8, 0.9);
  --accent-start: #f2709c;
  --accent-end: #ff9472;
  --nav-bg: rgba(23, 23, 23, 0.95);
  --footer-bg: #111111;

  /* Spacing */
  --section-padding-block: min(12vh, 4rem);
  --section-width: calc(min(90rem, 90%));
  --card-tab-size: 5rem;
  --card-tab-height: 6.25rem;
  --card-tab-offset: 0.375rem;
  --cards-gap: 1.5rem;
  --cards-gap-desktop: 0;

  /* Typography */
  --font-family: "Poppins", sans-serif;
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 1.15rem);
  --font-size-sm: clamp(0.8rem, 0.75rem + 0.3vw, 1.2rem);
  --font-size-md: clamp(0.9rem, 0.85rem + 0.25vw, 1.25rem);
  --font-size-lg: clamp(2rem, 1.5rem + 1.5vw, 5rem);
  --font-size-watermark: clamp(4rem, 1rem + 12vw, 14rem);

  /* Transitions */
  --transition-fast: 0.3s ease-in-out;
  --transition-medium: 0.5s ease;
  --transition-scale: 1.03;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;800&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  background: var(--bg-primary);
  min-height: 100vh;
  font-family: var(--font-family);
  font-weight: 300;
}

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

ul {
  list-style-type: none;
}

/* ============================================================
   NAVIGATION — Mobile First (Hamburger on mobile, full nav at 768px+)
   ============================================================ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(0.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}

/* Overlay behind the slide-in panel */
.nav-panel::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 18rem;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform var(--transition-fast);
  padding-top: 4rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  visibility: hidden;
}

.nav-panel ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.nav-panel a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  padding: 1rem 2rem;
  transition: color var(--transition-fast), background var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-panel a:hover {
  color: var(--accent-start);
  background: rgba(255, 255, 255, 0.03);
}

/* Hamburger animation + panel open when checked */
.nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:checked ~ .nav-panel {
  transform: translateX(0);
  visibility: visible;
}

.nav-toggle:checked ~ .nav-panel::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   NAVIGATION — Desktop (768px+)
   Hamburger hidden, full horizontal nav
   ============================================================ */
@media (min-width: 768px) {
  .main-nav {
    justify-content: center;
    padding: 0.75rem 0;
  }

  .hamburger {
    display: none;
  }

  .nav-panel {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    border-left: none;
    transform: none;
    padding-top: 0;
    visibility: visible;
  }

  .nav-panel::before {
    display: none;
  }

  .nav-panel ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    max-width: var(--section-width);
    margin-inline: auto;
  }

  .nav-panel a {
    font-size: 0.8rem;
    padding: 0;
    border-bottom: none;
    white-space: nowrap;
  }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
section {
  font-family: var(--font-family);
  font-weight: 300;
  padding-block: var(--section-padding-block);
  text-align: center;
  width: var(--section-width);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}

section span,
section p,
section h2,
section h3 {
  letter-spacing: 0.035rem;
}

.section-label {
  text-transform: uppercase;
  display: block;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.2rem);
  color: var(--text-muted);
}

section h2 {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-top: -0.625rem;
  color: var(--text-primary);
}

section p {
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 50rem;
  margin: 0 auto;
  font-size: var(--font-size-sm);
}

section p code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: var(--accent-end);
}

/* ============================================================
   BACKGROUND WATERMARK
   Completely removed from document flow — no layout impact.
   ============================================================ */
.bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-watermark);
  font-size: var(--font-size-watermark);
  font-weight: 800;
  z-index: -1;
  user-select: none;
  letter-spacing: 0.5rem;
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   CARDS GRID — Mobile First
   ============================================================ */
.cards {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cards-gap);
}

@media (min-width: 425px) {
  .cards {
    margin-top: 5rem;
  }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 6rem;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cards-gap-desktop);
    padding-bottom: 2.5rem;
    margin-top: 7rem;
  }
}

@media (min-width: 1440px) {
  .cards {
    max-width: 70rem;
    margin-inline: auto;
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  position: relative;
  cursor: pointer;
}

.card h3,
.card p {
  text-transform: capitalize;
}

.card h3 {
  font-size: var(--font-size-md);
  font-weight: 400;
  color: var(--text-secondary);
}

.card p {
  font-size: var(--font-size-xs);
  letter-spacing: 0.12rem;
  font-weight: 300;
  max-width: 100%;
  color: var(--text-muted);
}

/* ::before = gradient corner tab */
.card::before {
  position: absolute;
  content: "";
  width: var(--card-tab-size);
  height: var(--card-tab-height);
  z-index: 0;
  transition: var(--transition-fast);
  background: linear-gradient(to left, var(--accent-end), var(--accent-start));
  top: calc(-1 * var(--card-tab-offset));
  left: calc(-1 * var(--card-tab-offset));
  pointer-events: none;
}

/* ::after = dark gradient overlay on the image */
.card::after {
  position: absolute;
  inset: 0;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--card-overlay-top),
    var(--card-overlay-bottom)
  );
  pointer-events: none;
}

.card img {
  filter: grayscale(100%);
  transition: var(--transition-medium);
}

.card-content {
  position: absolute;
  bottom: 0;
  z-index: 99;
  left: 0;
  color: var(--text-primary);
  width: 100%;
  padding: 1.5rem 1rem;
  text-align: center;
}

.card-content ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.card-content ul i {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.card-content ul a:hover i {
  color: var(--accent-start);
}

/* Hover: reveal color + scale the tab */
.card:hover img {
  filter: grayscale(0%);
}

.card:hover::before {
  transform: scale(var(--transition-scale));
}

/* Card 1 & 3: tab at top-left */
.card:nth-child(1)::before,
.card:nth-child(3)::before {
  top: calc(-1 * var(--card-tab-offset));
  left: calc(-1 * var(--card-tab-offset));
}

/* Card 2: tab at bottom-left + offset on wider screens */
@media (min-width: 51rem) {
  .card:nth-child(2) {
    transform: translateY(15%);
  }
}

.card:nth-child(2)::before {
  bottom: calc(-1 * var(--card-tab-offset));
  left: calc(-1 * var(--card-tab-offset));
  top: auto;
}

/* ============================================================
   COLOR SWATCHES — Mobile First
   ============================================================ */
.color-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  max-width: 20rem;
  margin-inline: auto;
}

@media (min-width: 425px) {
  .color-swatches {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 30rem;
  }
}

@media (min-width: 768px) {
  .color-swatches {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 40rem;
  }
}

@media (min-width: 1024px) {
  .color-swatches {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 1.5rem;
    max-width: 50rem;
    margin-top: 4rem;
  }
}

@media (min-width: 1440px) {
  .color-swatches {
    max-width: 60rem;
  }
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.swatch-color {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .swatch-color {
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 1440px) {
  .swatch-color {
    width: 5rem;
    height: 5rem;
  }
}

.swatch code {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .swatch code {
    font-size: 0.75rem;
  }
}

.swatch span:last-child {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
}

@media (min-width: 768px) {
  .swatch span:last-child {
    font-size: 0.7rem;
  }
}

/* ============================================================
   CONTAINER QUERIES DEMO — Mobile First
   ============================================================ */
.container-query-demo {
  container-type: inline-size;
  container-name: cq-demo;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cards-gap);
  margin-top: 3rem;
}

@media (min-width: 425px) {
  .container-query-demo {
    margin-top: 3.5rem;
  }
}

@media (min-width: 768px) {
  .container-query-demo {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 4rem;
  }
}

@media (min-width: 1024px) {
  .container-query-demo {
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  }
}

.cq-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--card-bg);
}

.cq-card img {
  width: 100%;
  height: auto;
  transition: var(--transition-medium);
}

.cq-card-content {
  padding: 1rem;
  text-align: center;
}

.cq-card-content h3 {
  font-size: var(--font-size-md);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.cq-card-content p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  letter-spacing: 0.12rem;
}

/* Container query: horizontal layout when container is wide enough */
@container cq-demo (min-width: 40rem) {
  .container-query-demo {
    grid-template-columns: 1fr;
  }

  .cq-card {
    display: grid;
    grid-template-columns: 8rem 1fr;
    text-align: left;
  }

  .cq-card img {
    height: 100%;
    object-fit: cover;
  }

  .cq-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
  }
}

/* ============================================================
   HERO SECTION — Mobile First
   ============================================================ */
.hero-section {
  position: relative;
  background-image: url("https://picsum.photos/seed/hero/1920/1080");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: calc(var(--section-padding-block) * 1.5);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.75);
  z-index: 0;
}

/* Elevate content above overlay, but NOT the watermark */
.hero-section > *:not(.bg-watermark) {
  position: relative;
  z-index: 1;
}

.hero-section h2 {
  font-size: var(--font-size-lg);
  margin-top: 0.5rem;
  line-height: 1.1;
}

.hero-section p {
  font-size: var(--font-size-sm);
  max-width: 30rem;
  margin: 0.5rem auto 0;
}

.hero-section .cards {
  margin-top: 3rem;
}

@media (min-width: 425px) {
  .hero-section .cards {
    margin-top: 3.5rem;
  }
}

@media (min-width: 768px) {
  .hero-section .cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-section .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cards-gap-desktop);
    padding-bottom: 2.5rem;
    margin-top: 7rem;
  }
}

@media (min-width: 1440px) {
  .hero-section .cards {
    max-width: 70rem;
    margin-inline: auto;
  }
}

/* ============================================================
   FOOTER — Mobile First
   ============================================================ */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--footer-bg);
  margin-top: 3rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
}

@media (min-width: 768px) {
  footer {
    padding: 3rem 1rem;
    margin-top: 4rem;
  }

  footer p {
    font-size: 0.85rem;
  }
}

@media (min-width: 1440px) {
  footer {
    padding: 4rem 1rem;
  }

  footer p {
    font-size: 1rem;
  }
}

/* ============================================================
   MODAL — Pure CSS Checkbox Hack
   ============================================================ */
.modal-toggle {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(0.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-toggle:checked ~ .modal-overlay {
  opacity: 1;
  visibility: visible;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.75rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-start);
}

@media (min-width: 768px) {
  .modal-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
  }

  .modal-overlay {
    padding: 2rem;
  }
}

.modal-content {
  width: 100%;
  max-width: 55rem;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

@media (min-width: 768px) {
  .modal-content {
    max-height: 90vh;
  }
}

@media (min-width: 1440px) {
  .modal-content {
    max-width: 65rem;
  }
}

/* ============================================================
   TABLOID LAYOUT (inside modal) — Mobile First
   ============================================================ */
.tabloid {
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: relative;
}

.tabloid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background: linear-gradient(to right, var(--accent-start), var(--accent-end));
  border-radius: 0.5rem 0.5rem 0 0;
}

.tabloid-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, var(--font-size-lg));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.tabloid-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 0.15rem;
  background: linear-gradient(to right, var(--accent-start), var(--accent-end));
  margin: 0.5rem auto 0;
}

.tabloid-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  text-align: center;
}

@media (min-width: 425px) {
  .tabloid {
    padding: 2rem;
  }

  .tabloid-title {
    letter-spacing: 0.25rem;
    margin-bottom: 1.75rem;
  }

  .tabloid-title::after {
    width: 3.5rem;
  }

  .tabloid-body {
    gap: 1.75rem;
  }
}

@media (min-width: 768px) {
  .tabloid {
    padding: 2.25rem;
  }

  .tabloid-body {
    grid-template-columns: 10rem 1fr;
    gap: 2rem;
    text-align: left;
  }

  .tabloid-title {
    letter-spacing: 0.3rem;
    margin-bottom: 2rem;
  }

  .tabloid-title::after {
    width: 4rem;
  }
}

@media (min-width: 1024px) {
  .tabloid {
    padding: 2.5rem;
  }

  .tabloid-body {
    grid-template-columns: 14rem 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1440px) {
  .tabloid {
    padding: 3rem;
  }

  .tabloid-body {
    gap: 3rem;
  }
}

.tabloid-photo {
  max-width: 10rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .tabloid-photo {
    max-width: none;
    margin-inline: 0;
  }
}

.tabloid-photo img {
  width: 100%;
  border-radius: 0.5rem;
  filter: grayscale(30%);
  transition: filter var(--transition-medium);
}

.tabloid-photo img:hover {
  filter: grayscale(0%);
}

.tabloid-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tabloid-info {
    gap: 2rem;
  }
}

@media (min-width: 1440px) {
  .tabloid-info {
    gap: 2.5rem;
  }
}

.tabloid-section h2 {
  font-size: var(--font-size-md);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--accent-end);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.tabloid-section h2::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 100%;
  height: 0.1rem;
  background: rgba(255, 255, 255, 0.1);
}

.tabloid-section p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: var(--font-size-sm);
  text-align: left;
}

@media (min-width: 768px) {
  .tabloid-section h2 {
    letter-spacing: 0.1rem;
    margin-bottom: 0.75rem;
  }
}

/* Skill tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .skill-tags {
    gap: 0.5rem;
    justify-content: flex-start;
  }
}

.skill-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.05rem;
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .skill-tag {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 1440px) {
  .skill-tag {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

.skill-tag:hover {
  background: linear-gradient(to right, var(--accent-start), var(--accent-end));
  border-color: transparent;
  color: var(--text-primary);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 1.25rem;
}

@media (min-width: 768px) {
  .timeline {
    gap: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 1440px) {
  .timeline {
    gap: 2rem;
  }
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.1rem;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 0.25rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-start);
  border: 2px solid var(--bg-primary);
}

@media (min-width: 768px) {
  .timeline-item::before {
    left: -1.55rem;
    top: 0.35rem;
    width: 0.5rem;
    height: 0.5rem;
  }
}

.timeline-item h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

@media (min-width: 768px) {
  .timeline-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }
}

.timeline-item .timeline-date {
  font-size: 0.7rem;
  color: var(--accent-end);
  letter-spacing: 0.05rem;
  display: block;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .timeline-item .timeline-date {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
  }
}

.timeline-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .timeline-item p {
    font-size: 0.85rem;
  }
}

@media (min-width: 1440px) {
  .timeline-item p {
    font-size: 0.9rem;
  }
}

.card-label {
  cursor: pointer;
  display: block;
  position: relative;
  z-index: 1;
}

.card-label img {
  transition: var(--transition-medium);
}

.card-label:hover img {
  filter: grayscale(0%) brightness(1.1);
}

/* Back to Home link */
.back-to-home {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  background: rgba(23, 23, 23, 0.8);
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
}

.back-to-home:hover {
  color: #f2709c;
}
