/* ==========================================
   HIGHLIGHT SECTION
========================================== */

.highlight-section {
  position: relative;

  min-height: 100vh;

  margin-top: -1px;

  padding: 120px 80px 140px;

  overflow: hidden;

  background: #122222;
  color: #ffffff;
}

/* ==========================================
   UNDERGROUND BACKGROUND
========================================== */

.underground-background {
  position: absolute;
  inset: 0;

  overflow: hidden;

  z-index: 1;
  pointer-events: none;
}

/*
Layer dibuat sedikit lebih besar agar tidak
muncul area kosong ketika bergerak.
*/
.parallax-layer {
  position: absolute;
  inset: -25px;

  pointer-events: none;

  transform: translate3d(0, 0, 0);

  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);

  will-change: transform;
}

.underground-background.is-parallax-active .parallax-layer {
  transition:
    transform 0.18s ease-out;
}

.parallax-light,
.parallax-gravel,
.parallax-stones,
.parallax-mushrooms {
  position: absolute;
  inset: -25px;
}

/* Pastikan konten Highlight selalu di depan */
.highlight-container {
  position: relative;
  z-index: 10;
}

/* ==========================================
   STONE BASE
========================================== */

.stone {
  position: absolute;

  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.09),
      transparent 28%
    ),
    linear-gradient(145deg, #40504d 0%, #2b3937 45%, #182725 100%);

  box-shadow:
    inset -8px -10px 18px rgba(0, 0, 0, 0.22),
    inset 7px 7px 12px rgba(255, 255, 255, 0.025),
    0 18px 28px rgba(0, 0, 0, 0.22);

  opacity: 0.58;

  filter: saturate(0.78);

  transform-origin: center;

  animation: stoneFloat 9s ease-in-out infinite;
}

/* Bentuk setiap batu dibuat berbeda */
.stone-1 {
  width: 76px;
  height: 48px;

  top: 14%;
  left: 5%;

  border-radius: 58% 42% 54% 46% / 45% 58% 42% 55%;

  transform: rotate(-12deg);
}

.stone-2 {
  width: 48px;
  height: 34px;

  top: 28%;
  right: 8%;

  border-radius: 44% 56% 63% 37% / 55% 39% 61% 45%;

  transform: rotate(16deg);

  animation-delay: -2s;
}

.stone-3 {
  width: 64px;
  height: 42px;

  top: 48%;
  left: 2%;

  border-radius: 66% 34% 48% 52% / 41% 59% 47% 53%;

  transform: rotate(9deg);

  animation-delay: -5s;
}

.stone-4 {
  width: 38px;
  height: 27px;

  top: 63%;
  right: 16%;

  border-radius: 52% 48% 60% 40% / 44% 61% 39% 56%;

  transform: rotate(-18deg);

  animation-delay: -3s;
}

.stone-5 {
  width: 88px;
  height: 52px;

  bottom: 8%;
  left: 8%;

  border-radius: 61% 39% 53% 47% / 48% 57% 43% 52%;

  transform: rotate(-6deg);

  animation-delay: -6s;
}

.stone-6 {
  width: 58px;
  height: 38px;

  bottom: 5%;
  right: 5%;

  border-radius: 47% 53% 58% 42% / 59% 41% 54% 46%;

  transform: rotate(14deg);

  animation-delay: -1s;
}

.stone-7 {
  width: 34px;
  height: 24px;

  top: 18%;
  left: 28%;

  border-radius: 57% 43% 45% 55% / 43% 62% 38% 57%;

  transform: rotate(22deg);

  opacity: 0.38;

  animation-delay: -4s;
}

.stone-8 {
  width: 44px;
  height: 31px;

  bottom: 22%;
  right: 30%;

  border-radius: 43% 57% 65% 35% / 58% 38% 62% 42%;

  transform: rotate(-11deg);

  opacity: 0.42;

  animation-delay: -7s;
}

.volcanic-gravel-pattern {
  position: absolute;
  inset: 0;

  background-image: url("../assets/highlight/gravel-pattern.svg");

  background-repeat: repeat;
  background-size: 240px 180px;

  opacity: 0.48;

  z-index: 1;
  pointer-events: none;

  animation: gravelPatternMove 24s ease-in-out infinite alternate;
}

@keyframes gravelPatternMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 18px -10px;
  }
}

/* Gerak sangat tipis agar background terasa hidup */
@keyframes stoneFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

.underground-background {
  position: absolute;
  inset: 0;

  z-index: 1;

  overflow: hidden;

  pointer-events: none;
}

.highlight-container {
  position: relative;
  z-index: 5;
}

.highlight-section::after {
  content: "";

  position: absolute;
  top: -80px;
  left: 0;
  right: 0;

  height: 140px;

  background: linear-gradient(
    to bottom,
    rgba(18, 34, 34, 0) 0%,
    rgba(18, 34, 34, 0.45) 45%,
    #122222 100%
  );

  pointer-events: none;
  z-index: 1;
}

.highlight-container {
  position: relative;
  z-index: 2;

  width: min(1200px, 100%);
  margin: 0 auto;
}

/* ==========================================
   HEADER
========================================== */

.highlight-header {
  max-width: 760px;

  margin: 0 auto 70px;

  text-align: center;
}

.highlight-subtitle {
  display: inline-block;

  margin-bottom: 20px;
  padding: 8px 18px;

  border: 1px solid rgba(238, 159, 96, 0.28);
  border-radius: 999px;

  color: #ee9f60;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
}

.highlight-header h2 {
  margin-bottom: 22px;

  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  font-weight: 900;

  color: #fff8ef;
}

.highlight-header p {
  max-width: 650px;
  margin: 0 auto;

  color: rgba(255, 255, 255, 0.68);

  font-size: 17px;
  line-height: 1.9;
}

/* ==========================================
   GRID
========================================== */

.highlight-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: repeat(2, 310px);

  gap: 24px;
}

/* ==========================================
   CARD
========================================== */

.highlight-card {
  position: relative;
  overflow: hidden;

  border-radius: 24px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: #172624;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);

  transform: translateY(0) scale(1);

  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;

  isolation: isolate;
  cursor: pointer;
}

.highlight-card-main {
  grid-row: 1 / 3;
}

.highlight-card-content {
  position: absolute;
  inset: auto 0 0;

  z-index: 3;

  display: flex;
  align-items: flex-end;
  gap: 20px;

  padding: 28px;

  transform: translateY(0);

  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 46px;
  height: 46px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.16);

  background: rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;

  transform: translateY(0) scale(1);

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease;
}

.highlight-category {
  display: inline-block;

  margin-bottom: 8px;

  color: rgba(231, 201, 134, 0.76);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;

  transform: translateY(0);

  transition:
    color 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-card h3 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.15;

  transform: translateY(0);

  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-card-content p {
  margin: 12px 0 0;

  max-width: 520px;

  color: rgba(255, 255, 255, 0.72);

  line-height: 1.7;

  opacity: 0.82;

  transform: translateY(0);

  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .highlight-card:hover {
    transform: translateY(-12px) scale(1.015);

    border-color: rgba(229, 192, 112, 0.38);

    box-shadow:
      0 32px 70px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(229, 192, 112, 0.08);
  }

  .highlight-card:hover .highlight-image {
    transform: scale(1.09);

    filter: brightness(0.76) saturate(1.08);
  }

  .highlight-card:hover .highlight-card-overlay {
    background: linear-gradient(
      to top,
      rgba(7, 15, 14, 0.98) 0%,
      rgba(7, 15, 14, 0.78) 42%,
      rgba(7, 15, 14, 0.26) 72%,
      rgba(7, 15, 14, 0.04) 100%
    );
  }

  .highlight-card:hover .highlight-card-content {
    transform: translateY(-8px);
  }

  .highlight-card:hover .highlight-number {
    transform: translateY(-4px) scale(1.08);

    background: rgba(218, 179, 95, 0.16);

    border-color: rgba(229, 192, 112, 0.46);

    color: #f5db9c;
  }

  .highlight-card:hover .highlight-category {
    color: #f0d28e;

    transform: translateY(-2px);
  }

  .highlight-card:hover h3 {
    transform: translateY(-3px);
  }

  .highlight-card:hover .highlight-card-content p {
    opacity: 1;

    transform: translateY(-2px);
  }
}

.highlight-card::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 2;

  border-radius: inherit;

  pointer-events: none;

  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.13) 45%,
    transparent 68%
  );

  transform: translateX(-130%);

  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .highlight-card:hover::after {
    transform: translateX(130%);
  }

  .highlight-card-main:hover {
    transform: translateY(-14px) scale(1.012);
  }
}

@media (max-width: 768px) {
  .highlight-card {
    border-radius: 18px;
  }

  .highlight-card-content {
    padding: 20px;
    gap: 14px;
  }

  .highlight-number {
    min-width: 38px;
    height: 38px;
  }

  .highlight-card:active {
    transform: scale(0.985);
  }
}

.highlight-image {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  transform: scale(1.01);

  filter: brightness(0.88) saturate(0.92);

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}

.highlight-card-overlay {
  position: absolute;
  inset: 0;

  z-index: 1;

  background: linear-gradient(
    to top,
    rgba(7, 15, 14, 0.96) 0%,
    rgba(7, 15, 14, 0.68) 38%,
    rgba(7, 15, 14, 0.18) 70%,
    rgba(7, 15, 14, 0.05) 100%
  );

  transition:
    background 0.55s ease,
    opacity 0.55s ease;
}

/* ==========================================
   SMALL MUSHROOMS
========================================== */

.mushroom {
  position: absolute;
  width: 34px;
  height: 42px;

  z-index: 4;
  opacity: 0.65;

  transform-origin: bottom center;

  animation: mushroomSway 7s ease-in-out infinite;
}

.mushroom-cap {
  position: absolute;
  top: 0;
  left: 50%;

  width: 30px;
  height: 16px;

  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(255, 255, 255, 0.16),
      transparent 25%
    ),
    linear-gradient(145deg, #9a6e52, #684638 65%, #3a2924);

  border-radius: 55% 45% 48% 52% / 70% 70% 30% 30%;

  transform: translateX(-50%);
}

.mushroom-stem {
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 9px;
  height: 29px;

  background: linear-gradient(90deg, #9d8a73, #65584b);

  border-radius: 60% 40% 45% 55%;

  transform: translateX(-50%);
}

.mushroom-1 {
  left: 12%;
  bottom: 16%;
}

.mushroom-2 {
  right: 13%;
  top: 16%;

  scale: 0.78;

  animation-delay: -3s;
}

.mushroom-3 {
  right: 24%;
  bottom: 6%;

  scale: 0.58;
  opacity: 0.45;

  animation-delay: -5s;
}

@keyframes mushroomSway {
  0%,
  100% {
    rotate: -1deg;
  }

  50% {
    rotate: 2deg;
  }
}

.highlight-card-content {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 3;

  display: flex;
  align-items: flex-end;
  gap: 24px;

  padding: 34px;
}

.highlight-number {
  flex-shrink: 0;

  color: rgba(255, 255, 255, 0.36);

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.highlight-category {
  display: block;

  margin-bottom: 9px;

  color: #ee9f60;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.highlight-card h3 {
  color: #ffffff;

  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.12;
  font-weight: 800;
}

.highlight-card p {
  max-width: 540px;

  margin-top: 12px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================
   HOVER
========================================== */

.highlight-card::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 3;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;

  pointer-events: none;

  transition: border-color 0.4s ease;
}

.highlight-card:hover .highlight-image {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.highlight-card:hover::after {
  border-color: rgba(238, 159, 96, 0.42);
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {
  .highlight-section {
    padding: 100px 40px 120px;
  }

  .highlight-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 460px 300px;
  }

  .highlight-card-main {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
  .highlight-section {
    padding: 90px 20px 100px;
  }

  .highlight-header {
    margin-bottom: 48px;
  }

  .highlight-header h2 {
    font-size: 42px;
  }

  .highlight-header p {
    font-size: 15px;
  }

  .highlight-grid {
    display: flex;
    flex-direction: column;

    gap: 18px;
  }

  .highlight-card,
  .highlight-card-main {
    min-height: 420px;
  }

  .highlight-card:not(.highlight-card-main) {
    min-height: 310px;
  }

  .highlight-card-content {
    gap: 16px;
    padding: 24px;
  }

  .highlight-card h3 {
    font-size: 26px;
  }

  .highlight-card p {
    font-size: 14px;
  }

  .stone {
    scale: 0.72;
    opacity: 0.38;
  }

  .stone-7,
  .stone-8 {
    display: none;
  }
}
