/* ============================================================
   MOBILE DESIGNS SECTION — 2×3 grid with spray-in animation
   Hover to enlarge, lightbox for fullscreen view
   ============================================================ */

/* ─── SECTION WRAPPER ────────────────────────────── */
.mobile-section {
  background-color: var(--color-bg-primary);  /* #0d2e29 dark teal */
  padding: var(--space-14) var(--space-8) var(--space-16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);  /* tighter: heading sits close to cards */
}

/* ─── HEADING ────────────────────────────────────── */
.mobile-section-header {
  text-align: center;
}

.mobile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  background: rgba(232, 197, 71, 0.1);
  border: 1px solid rgba(232, 197, 71, 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin: 0 0 var(--space-4);
}

.mobile-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: normal;
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-2);
  text-align: center;
}

.mobile-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--font-regular);
  color: var(--color-text-secondary);
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .mobile-heading {
    font-size: var(--text-2xl);
  }
}

/* ─── GRID CONTAINER ─────────────────────────────── */
/* 3 columns × 200px + 2 × 48px col-gap = 696px */
.mobile-grid {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  grid-template-rows: repeat(2, 373px);
  column-gap: 48px;
  row-gap: 28px;
  width: fit-content;
  margin: 0 auto;
}

/* ─── INDIVIDUAL CARD ────────────────────────────── */
/* Base size: 300×560px, scaled to 200×373px (66.7%) */
/* transform + transition are set as inline styles by JS (FLIP technique) */
.mobile-card {
  position: relative;
  width: 200px;
  height: 373px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

/* Lift on hover — only after sprayed */
.mobile-card.is-sprayed:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px) !important;
}

.mobile-card img {
  width: 200px;
  height: 373px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ─── ENLARGE BUTTON ─────────────────────────────── */
.mobile-enlarge-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--color-bg-primary);
  z-index: 2;
}

.mobile-card:hover .mobile-enlarge-btn {
  opacity: 1;
  transform: scale(1);
}

.mobile-enlarge-btn:hover {
  background: rgba(255, 255, 255, 1);
}

/* ─── LIGHTBOX OVERLAY ───────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay:not([hidden]) {
  opacity: 1;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-img {
  max-height: 85vh;
  max-width: min(420px, 90vw);
  width: auto;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  font-family: var(--font-body);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-section {
    padding: var(--space-16) var(--space-5);
    gap: var(--space-8);
  }

  /* Switch to 2-column grid on mobile, smaller cards */
  .mobile-grid {
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: repeat(3, 280px);
    column-gap: 16px;
    row-gap: 20px;
  }

  .mobile-card {
    width: 150px;
    height: 280px;
  }

  .mobile-card img {
    width: 150px;
    height: 280px;
  }

  /* Enlarge buttons always visible on mobile (no hover required) */
  .mobile-enlarge-btn {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .mobile-grid {
    grid-template-columns: repeat(2, 140px);
    grid-template-rows: repeat(3, 261px);
    column-gap: 12px;
    row-gap: 16px;
  }

  .mobile-card {
    width: 140px;
    height: 261px;
  }

  .mobile-card img {
    width: 140px;
    height: 261px;
  }
}

/* ─── REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mobile-card {
    transition: none !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   ABOUT ME SECTION
════════════════════════════════════════════════════ */
.about-me-section {
  background-color: var(--color-bg-primary);
  padding: var(--space-20) var(--space-8);
}

/* ─── SECTION HEADING ────────────────────────────── */
.about-me-heading {
  font-family: tiemposText, serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 38.4px;
  color: var(--color-cs-page-bg);
  text-align: center;
  margin: 0 auto var(--space-12);
}

/* ─── 4-COLUMN BLOCKS ROW ────────────────────────── */
.about-me-blocks {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--space-8);
  align-items: flex-start;
}

/* ─── INDIVIDUAL BLOCK ───────────────────────────── */
.about-me-block {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ─── MEDIA (image or video) ─────────────────────── */
.about-me-block-media {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.about-me-block-video {
  height: 180px;
}

/* ─── BLOCK TITLE ────────────────────────────────── */
.about-me-block-title {
  font-family: tiemposText, serif;
  font-size: 21.2px;
  font-weight: 400;
  line-height: 31.8px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* ─── BODY TEXT ──────────────────────────────────── */
.about-me-body {
  font-family: var(--font-cs-body);
  font-size: var(--text-cs-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-cs-sm);
  margin: 0;
}

.about-me-body em {
  font-style: italic;
}

.about-me-link {
  color: var(--color-cs-ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.about-me-link:hover {
  opacity: 0.75;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .about-me-blocks {
    flex-wrap: wrap;
  }
  .about-me-block {
    flex: 1 1 calc(50% - var(--space-4));
  }
}

@media (max-width: 640px) {
  .about-me-block {
    flex: 1 1 100%;
  }
  .about-me-heading {
    font-size: 26px;
  }
}
