/* ==========================================================
   IPDAY 2026
   FILE : assets/css/hero.css
   HERO SECTION
========================================================== */

/* ==========================================================
   1. HERO WRAPPER
========================================================== */

.ipday-hero {
  position: relative;

  width: 100%;

  min-height: 100vh;
  min-height: 100svh;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  isolation: isolate;

  background-color: #174538;
}

/* ==========================================================
   2. BACKGROUND IMAGE
========================================================== */

.ipday-hero-bg {
  position: absolute;

  inset: 0;

  z-index: -3;

  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  /*
   * Nilai ini mempertahankan gunung dan memperlihatkan
   * rombongan setengah badan pada layar desktop.
   */
  object-position: center 44%;

  pointer-events: none;

  user-select: none;

  filter: brightness(1.12) saturate(1.08) contrast(1.02);
}

/* ==========================================================
   3. OVERLAY
========================================================== */

.ipday-hero-overlay {
  position: absolute;

  inset: 0;

  z-index: -2;

  background: linear-gradient(
    180deg,
    rgba(2, 25, 35, 0.08) 0%,
    rgba(3, 38, 42, 0.15) 40%,
    rgba(3, 41, 37, 0.25) 70%,
    rgba(2, 27, 24, 0.45) 100%
  );
}

/* Bayangan lembut agar teks tetap terbaca */

.ipday-hero::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: -1;

  pointer-events: none;

  background: radial-gradient(
    circle at 50% 40%,
    transparent 0%,
    rgba(0, 0, 0, 0.02) 55%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

/* ==========================================================
   4. CONTAINER
========================================================== */

.ipday-hero-container {
  position: relative;

  z-index: 2;

  width: 100%;

  padding-top: 120px;

  padding-bottom: 30px;
}

.ipday-hero-content {
  width: 100%;

  max-width: 1160px;

  margin: 0 auto;
}

/* ==========================================================
   5. KICKER
========================================================== */

.ipday-hero-kicker {
  width: fit-content;

  max-width: 100%;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 9px;

  margin: 0 auto 17px;

  padding: 9px 20px;

  border: 1px solid rgba(255, 255, 255, 0.26);

  border-radius: 999px;

  color: #17251f;

  background: rgba(255, 200, 37, 0.94);

  font-family: "Poppins", sans-serif;

  font-size: 15px;

  font-weight: 600;

  line-height: 1.3;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);

  backdrop-filter: blur(5px);

  -webkit-backdrop-filter: blur(5px);
}

.ipday-hero-kicker i {
  font-size: 14px;
}

.ipday-kicker-separator {
  margin: 0 2px;
}

/* ==========================================================
   6. MAIN TITLE
========================================================== */

.ipday-hero-title {
  max-width: 1080px;

  margin: 0 auto 13px;

  color: #ffffff;

  font-family: "Montserrat", sans-serif;

  font-size: clamp(42px, 4.25vw, 66px);

  font-weight: 750;

  line-height: 1.07;

  letter-spacing: -1.5px;

  text-wrap: balance;

  text-shadow:
    0 3px 7px rgba(0, 0, 0, 0.52),
    0 10px 25px rgba(0, 0, 0, 0.18);
}

/* ==========================================================
   7. TYPED TEXT
========================================================== */

.ipday-typed-wrap {
  min-height: 47px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 18px;

  padding: 0 12px;
}

.ipday-typed-line {
  display: inline;

  color: #ffd44b;

  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;

  font-size: clamp(18px, 1.65vw, 24px);

  font-weight: 600;

  font-style: italic;

  line-height: 1.5;

  text-align: center;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.82),
    0 0 15px rgba(0, 0, 0, 0.38);
}

#typed {
  color: inherit;
}

/* Cursor bawaan Typed.js disembunyikan */

.ipday-typed-wrap .typed-cursor {
  display: none;
}

/* Ikon pena berada setelah huruf terakhir */

.ipday-pen-icon {
  display: inline-block;

  margin-left: 7px;

  color: #ffd44b;

  font-size: 0.8em;

  vertical-align: baseline;

  transform-origin: 20% 80%;

  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));

  animation: ipdayPenWriting 0.72s ease-in-out infinite alternate;
}

@keyframes ipdayPenWriting {
  from {
    transform: translate(0, 2px) rotate(-16deg);
  }

  to {
    transform: translate(3px, -1px) rotate(-7deg);
  }
}

/* ==========================================================
   8. HERO BUTTONS
========================================================== */

.ipday-hero-buttons {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 14px;

  margin: 0 auto 25px;
}

/* ==========================================================
   BUTTON BASE
========================================================== */

.ipday-hero-buttons .btn {
  min-width: 205px;

  min-height: 55px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  padding: 12px 25px;

  border: 1px solid transparent;

  border-radius: 999px;

  font-family: "Poppins", sans-serif;

  font-size: 17px;

  font-weight: 600;

  line-height: 1.2;

  text-decoration: none;

  white-space: nowrap;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.ipday-hero-buttons .btn i {
  font-size: 17px;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.ipday-hero-buttons .btn:hover,
.ipday-hero-buttons .btn:focus {
  transform: translateY(-3px);
}

.ipday-hero-buttons .btn:focus-visible {
  outline: 3px solid rgba(255, 213, 74, 0.55);

  outline-offset: 4px;
}

/* ==========================================================
   PROGRAMME BUTTON
========================================================== */

.ipday-btn-programme {
  border-color: #ffc928;

  color: #17251f;

  background-color: #ffc928;

  box-shadow: 0 10px 28px rgba(255, 193, 7, 0.29);
}

.ipday-btn-programme:hover,
.ipday-btn-programme:focus {
  border-color: #ffda67;

  color: #13231d;

  background-color: #ffda67;

  box-shadow: 0 15px 34px rgba(255, 193, 7, 0.35);
}

.ipday-btn-programme:hover i,
.ipday-btn-programme:focus i {
  transform: scale(1.08);
}

/* ==========================================================
   EVENT GUIDE BUTTON
========================================================== */

.ipday-btn-guide {
  border-color: rgba(255, 255, 255, 0.8);

  color: #ffffff;

  background: rgba(3, 43, 38, 0.38);

  backdrop-filter: blur(7px);

  -webkit-backdrop-filter: blur(7px);

  box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
}

.ipday-btn-guide:hover,
.ipday-btn-guide:focus {
  border-color: #ffffff;

  color: #173a30;

  background-color: #ffffff;

  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.24);
}

.ipday-btn-guide:hover i,
.ipday-btn-guide:focus i {
  color: #173a30;

  transform: scale(1.08);
}

/* ==========================================================
   8. HERO BUTTONS
========================================================== */

.ipday-hero-buttons {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 14px;

  margin: 0 auto 25px;
}

/* ==========================================================
   BUTTON BASE
========================================================== */

.ipday-hero-buttons .btn {
  min-width: 205px;

  min-height: 55px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  padding: 12px 25px;

  border: 1px solid transparent;

  border-radius: 999px;

  font-family: "Poppins", sans-serif;

  font-size: 17px;

  font-weight: 600;

  line-height: 1.2;

  text-decoration: none;

  white-space: nowrap;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.ipday-hero-buttons .btn i {
  font-size: 17px;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.ipday-hero-buttons .btn:hover,
.ipday-hero-buttons .btn:focus {
  text-decoration: none;

  transform: translateY(-3px);
}

.ipday-hero-buttons .btn:focus-visible {
  outline: 3px solid rgba(255, 213, 74, 0.6);

  outline-offset: 4px;
}

/* ==========================================================
   PROGRAMME
========================================================== */
.ipday-btn-primary {
  border-color: #ffc928;

  color: #17251f;

  background-color: #ffc928;

  box-shadow: 0 10px 28px rgba(255, 193, 7, 0.29);
}

.ipday-btn-primary i {
  color: #17251f;
}

.ipday-btn-primary:hover,
.ipday-btn-primary:focus {
  border-color: #ffda67;

  color: #13231d;

  background-color: #ffda67;

  box-shadow: 0 15px 34px rgba(255, 193, 7, 0.35);
}

.ipday-btn-primary:hover i,
.ipday-btn-primary:focus i {
  color: #13231d;

  transform: scale(1.08);
}

/* ==========================================================
   EVENT GUIDE
========================================================== */
.ipday-btn-outline {
  border-color: rgba(255, 255, 255, 0.8);

  color: #ffffff;

  background: rgba(3, 43, 38, 0.38);

  backdrop-filter: blur(7px);

  -webkit-backdrop-filter: blur(7px);

  box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
}

.ipday-btn-outline i {
  color: #ffffff;
}

.ipday-btn-outline:hover,
.ipday-btn-outline:focus {
  border-color: #ffffff;

  color: #173a30;

  background-color: #ffffff;

  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.24);
}

.ipday-btn-outline:hover i,
.ipday-btn-outline:focus i {
  color: #173a30;

  transform: scale(1.08);
}

/* ==========================================================
   EXPLORE IICA
========================================================== */

.ipday-btn-iica {
  border-color: #ffd54a;

  color: #ffffff;

  background: linear-gradient(
    135deg,
    rgba(14, 90, 70, 0.96),
    rgba(22, 59, 46, 0.96)
  );

  backdrop-filter: blur(7px);

  -webkit-backdrop-filter: blur(7px);

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 213, 74, 0.08);
}

.ipday-btn-iica i {
  color: #ffd54a;
}

.ipday-btn-iica:hover,
.ipday-btn-iica:focus {
  border-color: #ffe17a;

  color: #173a30;

  background: linear-gradient(135deg, #ffe17a, #ffc928);

  box-shadow:
    0 16px 36px rgba(255, 193, 7, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ipday-btn-iica:hover i,
.ipday-btn-iica:focus i {
  color: #173a30;

  transform: rotate(12deg) scale(1.08);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {
  .ipday-hero-buttons {
    gap: 12px;
  }

  .ipday-hero-buttons .btn {
    min-width: 195px;

    min-height: 54px;

    padding: 11px 21px;

    font-size: 16px;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {
  .ipday-hero-buttons {
    width: 100%;

    max-width: 360px;

    flex-direction: column;

    gap: 10px;

    margin-bottom: 22px;
  }

  .ipday-hero-buttons .btn {
    width: 100%;

    min-width: 0;

    min-height: 52px;

    padding: 11px 20px;

    font-size: 16px;
  }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {
  .ipday-hero-buttons {
    max-width: 310px;
  }

  .ipday-hero-buttons .btn {
    min-height: 50px;

    padding: 10px 18px;

    font-size: 15px;
  }

  .ipday-hero-buttons .btn i {
    font-size: 16px;
  }
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {
  .ipday-hero-buttons {
    gap: 12px;
  }

  .ipday-hero-buttons .btn {
    min-width: 195px;

    padding: 12px 21px;

    font-size: 16px;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {
  .ipday-hero-buttons {
    width: 100%;

    max-width: 360px;

    gap: 11px;

    margin-bottom: 22px;
  }

  .ipday-hero-buttons .btn {
    width: 100%;

    min-width: 0;

    min-height: 52px;

    padding: 11px 20px;

    font-size: 16px;
  }
}

/* ==========================================================
   9. COUNTDOWN
========================================================== */

.ipday-countdown {
  width: 100%;

  max-width: 890px;

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin: 0 auto;
}

.ipday-count-item {
  position: relative;

  min-height: 92px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 13px 10px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 16px;

  color: #ffffff;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.17),
    rgba(255, 255, 255, 0.08)
  );

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 10px 27px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.19);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.ipday-count-item::before {
  content: "";

  position: absolute;

  top: 0;

  left: 20%;

  width: 60%;

  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 211, 65, 0.92),
    transparent
  );
}

.ipday-count-item:hover {
  border-color: rgba(255, 210, 55, 0.57);

  transform: translateY(-3px);
}

.ipday-count-number {
  display: block;

  margin-bottom: 4px;

  color: #ffd143;

  font-family: "Montserrat", sans-serif;

  font-size: clamp(30px, 3vw, 43px);

  font-weight: 800;

  line-height: 1;

  text-shadow:
    0 3px 7px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(255, 193, 7, 0.13);
}

.ipday-count-label {
  color: rgba(255, 255, 255, 0.97);

  font-family: "Poppins", sans-serif;

  font-size: 12px;

  font-weight: 500;

  line-height: 1.1;

  letter-spacing: 1.2px;

  text-transform: uppercase;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

/* ==========================================================
   10. SCROLL DOWN
========================================================== */

.ipday-scroll-down {
  display: flex;

  justify-content: center;

  margin-top: 19px;
}

.ipday-scroll-down a {
  width: 40px;

  height: 40px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.55);

  border-radius: 50%;

  color: #ffffff;

  background: rgba(3, 45, 39, 0.36);

  text-decoration: none;

  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);

  animation: ipdayScrollBounce 1.8s infinite;
}

.ipday-scroll-down a:hover {
  border-color: #ffd143;

  color: #18352c;

  background-color: #ffd143;
}

@keyframes ipdayScrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(7px);
  }

  60% {
    transform: translateY(4px);
  }
}

/* ==========================================================
   11. LAPTOP DENGAN LAYAR PENDEK
========================================================== */

@media (min-width: 992px) and (max-height: 820px) {
  .ipday-hero-container {
    padding-top: 118px;

    padding-bottom: 25px;
  }

  .ipday-hero-title {
    font-size: clamp(40px, 4.25vw, 62px);

    margin-bottom: 8px;
  }

  .ipday-hero-kicker {
    margin-bottom: 12px;
  }

  .ipday-typed-wrap {
    min-height: 40px;

    margin-bottom: 13px;
  }

  .ipday-hero-buttons {
    margin-bottom: 18px;
  }

  .ipday-count-item {
    min-height: 78px;
  }

  .ipday-count-number {
    font-size: 31px;
  }

  .ipday-scroll-down {
    margin-top: 12px;
  }
}

/* ==========================================================
   12. TABLET
========================================================== */

@media (max-width: 991.98px) {
  .ipday-hero {
    min-height: auto;
  }

  .ipday-hero-bg {
    object-position: center center;
  }

  .ipday-hero-container {
    padding-top: 125px;

    padding-bottom: 45px;
  }

  .ipday-hero-title {
    font-size: clamp(38px, 6.2vw, 57px);

    letter-spacing: -1px;
  }

  .ipday-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    max-width: 660px;
  }
}

/* ==========================================================
   13. MOBILE
========================================================== */

@media (max-width: 767.98px) {
  .ipday-hero-bg {
    /*
     * Pada HP, orang-orang di bagian bawah tetap terlihat.
     */
    object-position: center 53%;
  }

  .ipday-hero-container {
    padding-top: 110px;

    padding-bottom: 38px;
  }

  .ipday-hero-kicker {
    gap: 6px;

    margin-bottom: 14px;

    padding: 8px 14px;

    font-size: 13px;
  }

  .ipday-kicker-separator {
    display: none;
  }

  .ipday-hero-title {
    margin-bottom: 10px;

    font-size: clamp(31px, 9vw, 43px);

    line-height: 1.1;

    letter-spacing: -0.7px;
  }

  .ipday-typed-wrap {
    min-height: 57px;

    margin-bottom: 16px;

    padding: 0;
  }

  .ipday-typed-line {
    font-size: 17px;

    line-height: 1.42;
  }

  .ipday-hero-buttons {
    flex-direction: column;

    gap: 10px;

    margin-bottom: 22px;
  }

  .ipday-hero-buttons .btn {
    width: min(100%, 285px);

    min-height: 51px;

    font-size: 16px;
  }

  .ipday-countdown {
    gap: 9px;
  }

  .ipday-count-item {
    min-height: 82px;

    border-radius: 14px;
  }

  .ipday-count-number {
    font-size: 29px;
  }

  .ipday-count-label {
    font-size: 10px;

    letter-spacing: 0.9px;
  }
}

/* ==========================================================
   14. SMALL MOBILE
========================================================== */

@media (max-width: 479.98px) {
  .ipday-hero-container {
    padding-top: 100px;

    padding-left: 13px;

    padding-right: 13px;
  }

  .ipday-hero-kicker {
    max-width: 310px;

    border-radius: 18px;

    line-height: 1.45;
  }

  .ipday-hero-title {
    font-size: clamp(28px, 9.2vw, 38px);
  }

  .ipday-typed-wrap {
    min-height: 65px;
  }

  .ipday-count-item {
    min-height: 78px;

    padding: 10px 7px;
  }

  .ipday-count-number {
    font-size: 27px;
  }
}

/* ==========================================================
   15. ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {
  .ipday-pen-icon,
  .ipday-scroll-down a {
    animation: none;
  }

  .ipday-count-item,
  .ipday-hero-buttons .btn {
    transition: none;
  }
}

