/* ============================================================
   SHOWCASE – ATMOSPHERIC BLUE (CFA INSPIRED)
   Cinematic Dark Theme with Architectural Dual-Tone Cards
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --showcase-navy: #020617;
  --showcase-blue: #0b5e92;
  --showcase-dark-blue: #05386b;
  --showcase-accent: #f5c400;
  --showcase-glass: rgba(255, 255, 255, 0.03);
  --showcase-glass-border: rgba(255, 255, 255, 0.1);
  --showcase-text-white: #ffffff;
  --showcase-text-muted: rgba(255, 255, 255, 0.7);
  --showcase-radius: 32px;
  --showcase-spacing: 120px;
}

/* --- HERO --- */
.showcase-hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  padding: 0 20px;
}

.showcase-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  background: linear-gradient(to bottom, #fff 40%, var(--showcase-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.showcase-hero p {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--showcase-text-muted);
  max-width: 650px;
  margin: 30px auto 0;
  line-height: 1.5;
}

/* --- HEADERS --- */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-header .label {
  font-size: 12px;
  font-weight: 800;
  color: var(--showcase-accent);
  /* Gold Kicker per request */
  text-transform: uppercase;
  letter-spacing: 3px;
}

.category-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -1px;
}

/* --- CAROUSEL NAV --- */
.carousel-nav {
  display: flex;
  gap: 12px;
  padding-bottom: 5px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- TRACK --- */
.showcase-carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0 40px;
  scrollbar-width: none;
}

.showcase-carousel-container::-webkit-scrollbar {
  display: none;
}

.showcase-carousel-track {
  display: flex;
  gap: 40px;
  width: max-content;
  align-items: stretch;
  /* Forces all slides to same height */
}

.carousel-slide {
  width: 1200px;
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  /* Allow card to fill height */
}

/* --- CARDS --- */
.showcase-container {
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.showcase-section {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

.showcase-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.showcase-card {
  display: flex;
  width: 100%;
  /* Ensure it fills slide width */
  background: #ffffff;
  border-radius: var(--showcase-radius);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.3),
    0 40px 100px -20px rgba(0, 0, 0, 0.5);
  height: 540px;
  /* Base height */
  position: relative;
  transform: translateZ(0);
}

.showcase-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.3),
    0 60px 140px -30px rgba(0, 0, 0, 0.6);
}

.showcase-content {
  flex: 1;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #0f172a;
  position: relative;
}

.showcase-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--showcase-blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-badge::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--showcase-accent);
}

.showcase-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 0.95;
  letter-spacing: -3px;
  color: #0f172a;
}

.showcase-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 40px;
  max-width: 450px;
}

/* META GRID */
.showcase-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  padding: 30px 0;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 30px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.meta-icon {
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--showcase-blue);
  font-size: 14px;
  border: 1px solid #f1f5f9;
}

.meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 8px;
  font-weight: 800;
  color: var(--showcase-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
}

.meta-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* THE BUTTON - PREMIUISED BUT FOLLOWING OLD STRUCTURE */
.showcase-cta {
  align-self: flex-start;
  padding: 14px 32px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--showcase-blue);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 20px rgba(11, 94, 146, 0.2);
  text-decoration: none;
}

.showcase-cta::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  transition: transform 0.3s;
}

.showcase-card:hover .showcase-cta {
  background: var(--showcase-dark-blue);
  padding-right: 40px;
}

.showcase-card:hover .showcase-cta::after {
  transform: translateX(5px);
}

/* VISUAL */
.showcase-visual {
  flex: 1.3;
  background: #020617;
  position: relative;
  overflow: hidden;
}

.showcase-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-visual img {
  transform: scale(1.1);
}

.showcase-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(2, 6, 23, 0.2), transparent);
}

/* LAYOUT */
.showcase-section:nth-child(even) .showcase-card {
  flex-direction: row-reverse;
}

.showcase-content {
  text-align: left !important;
  align-items: flex-start !important;
}

.showcase-meta {
  justify-content: flex-start !important;
}

/* FOOTER */
.showcase-footer-spacer {
  height: 200px;
}

/* RESPONSIVE & MOBILE OPTIMIZATIONS */
@media (max-width: 1200px) {
  .carousel-slide {
    width: 95vw;
  }

  .showcase-content {
    padding: 40px;
  }

  .showcase-content h3 {
    font-size: 2.2rem;
    letter-spacing: -1.5px;
  }
}

@media (max-width: 1024px) {
  .showcase-card {
    height: auto;
    flex-direction: column !important;
  }

  .showcase-visual {
    height: 380px;
    order: -1;
  }

  .showcase-content {
    padding: 40px 30px;
  }

  .showcase-meta {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .showcase-hero {
    height: auto;
    min-height: 450px;
    padding: 140px 24px 60px;
  }

  .showcase-hero h1 {
    font-size: clamp(36px, 8vw, 80px);
  }

  .showcase-hero p {
    font-size: 1.1rem;
    margin: 20px auto 0;
    line-height: 1.6;
  }

  .showcase-container {
    gap: 80px;
    padding-bottom: 80px;
  }

  .category-header h2 {
    font-size: 1.6rem;
  }

  .showcase-carousel-track {
    gap: 24px;
  }

  .showcase-visual {
    height: 280px;
  }

  .showcase-content {
    padding: 30px 24px;
  }

  .showcase-content h3 {
    font-size: 1.8rem;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .showcase-content p {
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .showcase-meta {
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 24px;
  }

  .showcase-cta {
    padding: 12px 28px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .showcase-hero {
    padding: 120px 16px 40px;
    min-height: 380px;
  }

  .showcase-hero h1 {
    font-size: 2.5rem;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
  }

  .carousel-nav {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .showcase-visual {
    height: 200px;
  }

  .showcase-content {
    padding: 24px 16px;
  }

  .showcase-content h3 {
    font-size: 1.5rem;
  }

  .showcase-meta {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }

  .meta-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .meta-value {
    font-size: 13px;
  }
}

/* --- MONUMENTAL LEGACY SECTION (ATMOSPHERIC BLEND) --- */
.showcase-legacy-section {
  padding: 160px 24px;
  /* Seamless transition from previous Navy sections */
  background: linear-gradient(to bottom,
      var(--showcase-navy) 0%,
      var(--showcase-navy) 40%,
      #05386b 85%,
      #0b5e92 100%
      /* Merges perfectly into the top of the footer */
    );
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@keyframes gridScan {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 50px 50px;
  }
}

.legacy-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(10rem, 28vw, 40rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.01);
  letter-spacing: -20px;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  user-select: none;
}

.legacy-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legacy-kicker {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  /* High-Contrast White for clarity */
  text-transform: uppercase;
  letter-spacing: 10px;
  /* Increased for technical air */
  margin-bottom: 30px;
  opacity: 0.9;
}

.legacy-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.15;
  /* Spaced for clarity */
  letter-spacing: -2px;
  /* Less tight for readability */
  color: #ffffff;
  margin-bottom: 45px;
}

.legacy-title span {
  display: block;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  /* Soft Grey secondary text */
  font-size: 0.4em;
  letter-spacing: 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.legacy-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  /* Technical Grey description */
  margin-bottom: 60px;
  line-height: 1.8;
  max-width: 750px;
}

.legacy-btn {
  padding: 24px 70px;
  background: #ffffff;
  color: var(--showcase-navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-radius: 100px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: buttonBreathe 4s infinite ease-in-out;
  /* Lighthouse Pulse */
}

@keyframes buttonBreathe {

  0%,
  100% {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 30px 60px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
  }
}

.legacy-btn:hover {
  transform: translateY(-10px);
  background: var(--showcase-blue);
  color: #ffffff;
  box-shadow: 0 30px 60px rgba(11, 94, 146, 0.4);
  animation: none;
}

/* SEO Helper - Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- FOOTER SEPARATOR --- */
.showcase-footer-spacer {
  height: 0;
}