/* ========================================================
   Hero Section - Katalog Pasokan Mangga
   Procurement & Commodity Discovery Layout
   ======================================================== */

.hero-catalog {
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 4.5rem;
  overflow: hidden;
  position: relative;
}

/* Subtle background accent glow */
.hero-catalog::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-catalog-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

/* --- Left Column: Catalog Title & Quick Procurement Info --- */
.hero-catalog-content {
  text-align: left;
}

.hero-catalog-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-catalog-title {
    font-size: 3.25rem;
  }
}

.hero-catalog-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

/* Quick Features Row */
.hero-catalog-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.feature-pill svg {
  color: var(--primary);
}

/* --- Right Column: Perspective Crate Showcase --- */
.hero-catalog-visual {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

@media (min-width: 640px) {
  .hero-catalog-visual {
    min-height: 420px;
  }
}

.showcase-cards {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-card {
  position: absolute;
  width: 240px;
  height: 290px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.16);
  border: 4px solid var(--white);
  background-color: var(--white);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Left angled card (Crate of Mangoes) */
.card-left {
  left: 20px;
  transform: perspective(800px) rotateY(12deg) rotateZ(-3deg) scale(0.96);
  z-index: 2;
}

.card-left:hover {
  transform: perspective(800px) rotateY(6deg) rotateZ(-1deg) scale(1);
  z-index: 5;
}

/* Right angled card (Box Packaging) */
.card-right {
  right: 20px;
  transform: perspective(800px) rotateY(-12deg) rotateZ(3deg) scale(0.96);
  z-index: 3;
}

.card-right:hover {
  transform: perspective(800px) rotateY(-6deg) rotateZ(1deg) scale(1);
  z-index: 5;
}

/* Overlaid Live Stock Ticker Badge */
.showcase-ticker {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
  z-index: 10;
}

.pulse-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.ticker-text {
  display: flex;
  flex-direction: column;
}

.ticker-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.ticker-sub {
  font-size: 0.6875rem;
  color: var(--green-700);
  font-weight: 600;
  margin-top: 2px;
}

/* Decorative backdrop element */
.showcase-backdrop {
  position: absolute;
  width: 320px;
  height: 250px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(234, 179, 8, 0.08));
  border-radius: 2rem;
  transform: rotate(-4deg);
  z-index: 1;
}

@media (max-width: 639px) {
  .hero-catalog {
    padding: 3rem 0 3.5rem;
  }
  .hero-catalog-title {
    font-size: 2.25rem;
  }
  .showcase-cards {
    height: 310px;
  }
  .showcase-card {
    width: 180px;
    height: 240px;
  }
  .card-left {
    left: 10px;
  }
  .card-right {
    right: 10px;
  }
}
