:root {
  --primary: #198ad0;
  --bg: #111f3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: #ffff;
  /* min-height: 3000px; */
}

/* NavBar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 6%;
  background-color: rgba(1, 1, 1, 0.8);
  border-bottom: 2.5px solid #198ad0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #ffff;
  font-style: italic;
}

.navbar .navbar-logo span {
  color: var(--primary);
}

.navbar .navbar-nav a {
  color: #ffff;
  display: inline-block;
  font-size: 1rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.3rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: #fff;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#menu {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("img/bg3.JPG");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 25%;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(1, 1, 3, 1) 3%,
    rgba(225, 225, 225, 0) 25%
  );
}

.hero .content {
  padding: 1.3rem 6%;
  max-width: 60rem;
}

.hero .content h1 {
  font-size: 5.8rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  line-height: 1.2;
}

.hero .content h1 span {
  color: #fce23f;
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  /* mix-blend-mode: difference; */
  font-weight: 350;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  background: linear-gradient(135deg, #fce23f, #f9c600);
  color: #000;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.hero .content .cta:hover,
.btn-detail:hover,
.btn-daftar:hover,
.kontak .row form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Preview Kategori */
.kategori-preview {
  padding: 8rem 5% 5rem;
  text-align: center;
}

.kategori-preview h2 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.kategori-preview h2 span {
  color: #fce23f;
}

.kategori-preview .sub-title {
  max-width: 35rem;
  margin: 0 auto 4rem;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
}

.kategori-preview .row {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.kategori-preview .kategori-card {
  background: #ffffff;
  padding: 0.6rem;
  width: 280px;
  border-radius: 1rem;
  transition: 0.3s;
}

.kategori-preview .kategori-card:hover {
  transform: translateY(-5px);
}

.kategori-preview .kategori-card img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.1rem;
}

.kategori-preview .kategori-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.kategori-preview .kategori-card p {
  font-size: 1.3rem;
  font-weight: 350;
  margin-bottom: 0.5rem;
}

.kategori-preview .kategori-card .btn {
  display: inline-block;
  padding: 0.5rem 5rem;
  background: #f9c600;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ===============================
   DETAIL LOMBA – SPLIT LAYOUT
================================ */

.detail-lomba {
  padding: 7rem 0 3rem;
}

/* WRAPPER FULL LAYAR */
.detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 7rem);
}

/* KIRI: POSTER */
.detail-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.detail-left img {
  width: 100%;
  max-width: 420px;
  border-radius: 1.2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* KANAN: KONTEN */
.detail-right {
  padding: 4rem 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-right h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.detail-biaya,
.detail-tanggal {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.detail-deskripsi {
  margin: 2rem 0;
  line-height: 1.9;
  color: #ddd;
}

/* BUTTON */
.detail-right .btn-daftar {
  align-self: flex-start;
  padding: 1rem 3rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0.8rem;
  font-size: 1.5rem;
}

/* ===============================
   RESPONSIVE (HP)
================================ */
@media (max-width: 768px) {
  .detail-wrapper {
    grid-template-columns: 1fr;
  }

  .detail-left {
    padding: 2rem;
  }

  .detail-right {
    padding: 3rem 5%;
  }

  .detail-right h2 {
    font-size: 2.4rem;
  }
}

/* Judul Halaman */
.tentang,
.kategori,
.timeline,
.daftar,
.peserta,
.panitia,
.kontak {
  padding: 8rem 5% 1.3rem;
}

.tentang h2,
.kategori h2,
.timeline h2,
.daftar h2,
.peserta h2,
.panitia h2,
.kontak h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.tentang h2 span,
.kategori h2 span,
.timeline h2 span,
.daftar h2 span,
.peserta h2 span,
.panitia h2 span,
.kontak h2 span {
  color: #fce23f;
}

/* Tentang Section */
.tentang {
  background-color: #111f3a;
}

.tentang .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
  padding: 0;
  margin-bottom: 5rem;
}

.tentang .row .tentang-img {
  flex: 1 1 5%;
  display: flex;
  justify-content: center;
}

.tentang .row .tentang-img img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}

.tentang .row .content {
  flex: 1 1 50%;
  padding: 0 1rem;
  font-size: 1.3rem;
  margin-top: 1rem;
  line-height: 1.4;
}

.tentang .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.tentang .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 350;
  line-height: 1.7;
  text-align: justify;
  color: #eee;
}

/* ===============================
   KATEGORI LOMBA
================================ */

.kategori {
  padding: 8rem 5% 5rem;
  text-align: center;
}

.kategori h2 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.kategori h2 span {
  color: var(--primary);
}

.kategori .sub-title {
  max-width: 35rem;
  margin: 0 auto 4rem;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
}

/* GRID 5 KOLOM */
.kategori .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
}

/* CARD */
.kategori-card {
  background: #ffffffea;
  padding: 0.8rem;
  border-radius: 1rem;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.kategori-card:hover {
  transform: translateY(-5px);
}

/* POSTER (TIDAK KE-CROP) */
.kategori-card img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  margin-bottom: 0.6rem;
  display: block;
}

/* JUDUL */
.kategori-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.3rem 0 0.3rem;
  color: #198ad0;
}

/* BUTTON */
.kategori-btn {
  display: flex;
  gap: 0.6rem;
}

.kategori-btn a {
  flex: 1;
  padding: 0.6rem 0;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.btn-daftar,
.btn-detail {
  margin-top: 0.3rem;
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #fce23f, #f9c600);
  color: #000;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

/* ===========================
   TIMELINE LOMBA
=========================== */

.timeline {
  padding: 8rem 5% 5rem;
  text-align: center;
}

.timeline h2 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.timeline h2 span {
  color: #fce23f;
}

.timeline .subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  color: #ddd;
  margin-bottom: 5rem;
}

/* CONTAINER */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding-left: 2rem;
}

/* GARIS TENGAH */
.timeline-container::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #fce23f, #198ad0);
}

/* ITEM */
.timeline-item {
  position: relative;
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
}

/* ICON */
.timeline-icon {
  min-width: 45px;
  height: 45px;
  background: #111;
  border: 3px solid #fce23f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 2;
}

/* CARD */
.timeline-content {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: translateY(-4px);
}

.timeline-content h3 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: #fce23f;
}

.timeline-content .tanggal {
  display: inline-block;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #198ad0;
  font-weight: 500;
}

.timeline-content p {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.7;
  color: #ddd;
}

/* STATUS WARNA */
.timeline-item.active .timeline-icon {
  border-color: #fce23f;
}

.timeline-item.progress .timeline-icon {
  border-color: #198ad0;
}

.timeline-item.finish .timeline-icon {
  border-color: #00ffb3;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .timeline-container {
    padding-left: 0;
  }

  .timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-content {
    text-align: center;
  }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .kategori .row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .kategori .row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .kategori .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .kategori .row {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   FORM PENDAFTARAN
=========================== */

.daftar-desc {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
  font-size: 1.4rem;
  font-weight: 300;
  color: #ddd;
}

.daftar-box {
  max-width: 480px;
  margin: auto;
  background: #111;
  padding: 3rem;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.form-daftar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: #fce23f;
}

.form-group input,
.form-group select {
  padding: 1.4rem;
  font-size: 1.4rem;
  border-radius: 8px;
  background-color: var(--bg);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.541);
  transition:
    border 0.3s,
    box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #f9c600;
  box-shadow: 0 0 0 2px rgba(196, 208, 25, 0.3);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 480px) {
  .daftar-box {
    padding: 2rem;
  }
}

/* ===========================
   PESERTA TABLE
=========================== */

.peserta p {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
  font-size: 1.4rem;
  font-weight: 300;
  color: #ddd;
}

.peserta-table-wrapper {
  overflow-x: auto;
  padding-bottom: 2rem;
}

.peserta-table {
  width: 90%;
  margin: auto;
  border-collapse: collapse;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.peserta-table thead {
  background: linear-gradient(135deg, #198ad0, #0f5f99);
}

.peserta-table th {
  padding: 1.5rem 1rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
}

.peserta-table td {
  padding: 1.3rem 1rem;
  font-size: 1.4rem;
  color: #eee;
  text-align: center;
}

.peserta-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background 0.3s,
    transform 0.2s;
}

.peserta-table tbody tr:hover {
  background-color: rgba(25, 138, 208, 0.15);
  transform: scale(1.01);
}

.peserta-table tbody tr:last-child {
  border-bottom: none;
}

/* Badge efek untuk lomba */
.peserta-table td:nth-child(4) {
  font-weight: 600;
  color: #fce23f;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .peserta-table {
    width: 100%;
  }

  .peserta-table th,
  .peserta-table td {
    font-size: 1.2rem;
    padding: 1rem;
  }
}

/* Kontak Section */
.kontak .row {
  display: flex;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background-color: #111;
  flex-wrap: wrap;
}

.kontak .row .map {
  flex: 1 1 45rem;
  width: 100%;
  object-fit: cover;
}

.kontak .row form {
  flex: 1 1 45rem;
  padding: 5rem 2rem;
  text-align: center;
}

.kontak .row form .input-grup {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  background-color: var(--bg);
  border: 1px solid #eee;
  padding-left: 2rem;
}

.kontak .row form .input-grup input {
  width: 100%;
  padding: 2rem;
  font-size: 1.7rem;
  background: none;
  color: #fff;
}

.kontak .row form .btn {
  margin: 3rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.7rem;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 1px 1px 3px rgba(192, 184, 76, 0.5);
  background: linear-gradient(135deg, #fce23f, #f9c600);
  color: #000;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

/* Footer */
footer {
  background-color: var(--primary);
  text-align: center;
  padding: 1rem 0;
  margin-top: 0.3rem;
}

footer .sosial {
  padding: 1rem 0;
  display: inline-block;
  margin: 0 0.25rem;
}

footer .sosial a {
  color: #fff;
  margin: 1rem;
}

footer .sosial a:hover,
footer .links a:hover {
  color: var(--bg);
}

footer .links {
  margin-bottom: 1rem;
}

footer .links a {
  color: #fff;
  padding: 0.7rem 1rem;
}

footer .credit a {
  color: var(--bg);
  font-weight: 600;
}

/* Media Queris */

/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* Tablet */
@media (max-width: 920px) {
  html {
    font-size: 62%;
  }

  #menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.27);
  }

  .tentang .row {
    padding: 2rem -2% 1.3rem;
    flex-wrap: wrap;
    flex-direction: column; /* Susun vertikal */
    text-align: justify; /* Biar teks lebih rapi */
    gap: 2rem;
  }

  .tentang .row .content {
    flex: none;
    width: 100%;
    order: 1; /* Paragraf di atas */
  }

  .tentang .row .tentang-img {
    flex: none;
    width: 30%;
    order: 2; /* Gambar di bawah */
  }

  .kontak .row {
    flex-wrap: wrap;
  }

  .kontak .row map {
    height: 30rem;
  }

  .kontak .row form {
    padding-top: 0;
  }
}

/* Hand Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}
