:root {
  --merah: #d2232a;
  --merah-deep: #a81b21;
  --putih: #fffdf9;
  --oranye: #ff9800;
  --oranye-deep: #ff6f00;
  --ink: #1f2937;
  --paper: #fff6ea;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  min-height: 90px;
  background: var(--merah);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.logo img {
  height: 55px;
}

.back-btn {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: 0.3s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--merah) 0%, var(--merah-deep) 45%, #201414 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 152, 0, 0.55), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.15), transparent 50%);
  z-index: 0;
}

.hero-number {
  position: absolute;
  right: -3vw;
  bottom: -8vw;
  font-size: 55vw;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Bunting: string of small waving pennant flags across the top of hero */
.bunting {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  display: flex;
  justify-content: space-evenly;
  z-index: 2;
}

.bunting span {
  display: inline-block;
  width: 26px;
  height: 34px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: sway 2.6s ease-in-out infinite;
}

.bunting span:nth-child(3n) {
  background: var(--putih);
  animation-delay: 0.1s;
}
.bunting span:nth-child(3n + 1) {
  background: var(--oranye);
  animation-delay: 0.35s;
}
.bunting span:nth-child(3n + 2) {
  background: var(--merah);
  border: 2px solid var(--putih);
  animation-delay: 0.6s;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bunting span {
    animation: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  width: 100%;
  color: white;
  padding: 40px 20px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 380px;
  max-width: 620px;
  text-align: left;
}

.badge {
  display: inline-block;
  background: var(--oranye);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: break-word;
  margin-bottom: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(115deg, #fff 0%, #fff 55%, var(--oranye) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 span {
  color: var(--oranye);
  -webkit-text-fill-color: var(--oranye);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background: var(--oranye);
  color: white;
}

.btn-primary:hover {
  background: var(--oranye-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 152, 0, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== HERO POSTER ===== */
.hero-poster {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.poster-card {
  background: var(--putih);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
  max-width: 300px;
  width: 100%;
}

.poster-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.poster-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
}

/* ===== ABOUT ===== */
.about {
  padding: clamp(60px, 10vw, 100px) 8%;
  text-align: center;
  background: var(--putih);
}

.about .text {
  max-width: 720px;
  margin: 0 auto 50px;
}

.about h2 {
  color: var(--merah);
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  position: relative;
  padding-bottom: 18px;
}

.about h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--oranye);
  border-radius: 999px;
}

.about p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.about-stat {
  background: var(--paper);
  flex: 1;
  min-width: 140px;
  padding: 28px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  border-top: 4px solid var(--merah);
}

.about-stat:hover {
  transform: translateY(-6px);
}

.about-stat h3 {
  color: var(--merah);
  font-size: 2rem;
  font-weight: 800;
}

.about-stat p {
  color: #666;
  margin-top: 4px;
  font-size: 0.9rem;
}

/* ===== LOMBA ===== */
.lomba {
  padding: clamp(60px, 10vw, 100px) 8%;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(35px, 6vw, 60px);
}

.section-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--ink);
}

.section-header p {
  color: #666;
  margin-top: 10px;
}

.lomba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.lomba-card {
  background: white;
  padding: 36px 25px;
  border-radius: 22px;
  text-align: center;
  transition: 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateY(30px);
}

.lomba-card.show {
  opacity: 1;
  transform: translateY(0);
}

.lomba-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--merah), var(--oranye));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.lomba-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(210, 35, 42, 0.15);
}

.lomba-card:hover::before {
  transform: scaleX(1);
}

.lomba-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--paper);
  font-size: 2.1rem;
  transition: 0.35s ease;
}

.lomba-card:hover .icon {
  background: var(--oranye);
  transform: scale(1.08);
}

.lomba-card h3 {
  font-size: 1.05rem;
  margin-top: 18px;
  margin-bottom: 8px;
  color: #222;
}

.lomba-card p {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===== JADWAL / TIMELINE ===== */
.jadwal {
  padding: clamp(60px, 10vw, 100px) 8%;
  background: var(--putih);
}

.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #ffe0b2;
}

.event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 35px;

  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.event.show {
  opacity: 1;
  transform: translateY(0);
}

.event:last-child {
  margin-bottom: 0;
}

.event-marker {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--merah);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(210, 35, 42, 0.35);
}

.event-content {
  background: var(--paper);
  border-radius: 16px;
  padding: 20px 25px;
  flex: 1;
  transition: 0.3s;
}

.event:hover .event-content {
  background: #fff0da;
  transform: translateX(5px);
}

.event-time {
  color: var(--oranye-deep);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-content h3 {
  margin-top: 6px;
  margin-bottom: 6px;
  color: #333;
  font-size: 1.05rem;
  font-weight: 600;
}

.event-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(120deg, var(--merah), var(--oranye));
  color: white;
  text-align: center;
  padding: clamp(60px, 10vw, 100px) 8%;
}

.cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.cta p {
  margin-top: 12px;
  opacity: 0.95;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  border: none;
  background: white;
  color: var(--merah);
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.3s;
}

.cta-btn:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: white;
  text-align: center;
  padding: 45px 20px;
}

.site-footer img {
  width: 55px;
  margin-bottom: 12px;
}

.site-footer p {
  opacity: 0.75;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.site-footer a {
  color: #ffb84d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  nav {
    padding: 0 30px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 35px;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-date {
    margin: 0 auto;
  }

  .about,
  .lomba,
  .jadwal,
  .cta {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 18px;
    min-height: 70px;
  }

  .logo img {
    height: 42px;
  }

  .back-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 78vh;
  }

  .poster-card {
    max-width: 220px;
  }

  .bunting span {
    width: 18px;
    height: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-stats {
    gap: 10px;
  }

  .about-stat {
    min-width: 0;
    padding: 16px 8px;
    border-radius: 14px;
  }

  .about-stat h3 {
    font-size: 1.3rem;
  }

  .about-stat p {
    font-size: 0.7rem;
  }

  .lomba-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .lomba-card {
    padding: 24px 14px;
  }

  .lomba-card .icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .timeline::before {
    left: 19px;
  }

  .event {
    gap: 16px;
  }

  .event-marker {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .event-content {
    padding: 16px 18px;
  }
}

@media (max-width: 380px) {
  .lomba-grid {
    grid-template-columns: 1fr;
  }
}