/* FONTS */
@import url(../css/clash-display.css);

/* VARIABLES */
:root {
    --c-dark: #212529;
    --c-brand: #4e57d4;
    --c-brand-light: #6970dd;
    --c-brand-rgb: 78, 87, 212;
    --c-body: #727272;
    --font-base: "ClashDisplay", sans-serif;
    --box-shadow: 0px 15px 25px rgba(0,0,0,0.08);
    --transition: all 0.5s ease;
    --orange-color: #fa8a1ad9;
    --white-color: #fff;
    --nav-shadow: 0 4px 16px rgba(0,0,0,.3);
    --font-color-primary: #fff;
}

/* RESET & HELPERS */
body {
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--c-body);
}

/* h1, h2, h3,h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    color: var(--c-dark);
} */

a {
    text-decoration: none;
    color: var(--c-brand);
    transition: var(--transition);
}

a:hover {
    color: var(--c-brand-light);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding-top: 140px;
    padding-bottom: 140px;
}

.theme-shadow {
    box-shadow: var(--box-shadow);
}

/* IMAGE ZOOM */
.image-zoom {
    position: relative;
    /* overflow: hidden; */
}

.image-zoom-wrapper {
    overflow: hidden;
    position: relative;
}

.image-zoom-wrapper img{
     transition: var(--transition);
}

.image-zoom:hover .image-zoom-wrapper img {
    transform: scale(1.1);
}


/* NAVBAR */
.nav {
  height: var(--header-height);
  background-color: var(--orange-color);
  padding: 0.5rem 1.5rem;
  border-radius: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--nav-shadow);
}

/* LOGO */
.nav__logo {
  width: 50px;
  height: 50px;
  background-color: var(--white-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.nav__logo img {
  width: 70%;
  transition: transform .6s;
}

.nav__logo:hover img {
  transform: rotateY(360deg);
}

/* Pastikan navbar punya transisi agar gerakannya mulus */
.navbar {
    position: fixed; /* atau sticky-top */
    top: 0;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

/* Class yang akan dipicu oleh JavaScript */
.navbar.hide {
    transform: translateY(-100%);
}

/* MENU DESKTOP CENTER */
@media screen and (min-width: 1150px) {
  .nav__menu {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* MENU LIST */
.nav__list {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.nav__link span {
  transition: .4s;
}

.nav__link span:nth-child(2) {
  position: absolute;
  transform: translateY(150%);
}

.nav__link:hover span:nth-child(1) {
  transform: translateY(-150%);
}

.nav__link:hover span:nth-child(2) {
  transform: translateY(0);
}

/* TOGGLE BUTTON */
.nav__toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: var(--white-color);
  font-size: 1.6rem;
  cursor: pointer;
  position: relative;
}

/* Hide toggle on desktop */
@media screen and (min-width: 1150px) {
  .nav__toggle {
    display: none;
  }
}

.nav__burger,
.nav__close {
  position: absolute;
  transition: .3s;
}

.nav__close {
  opacity: 0;
}

/* MOBILE MENU */
@media screen and (max-width: 1149px) {

  .nav__menu {
    position: fixed;
    top: 6rem;
    left: 0;
    right: 0;
    background: #f47830e0;
    margin: 0 2rem;
    padding: 3rem 0;
    border-radius: 2rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: .4s;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }

  .show-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Toggle animation */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/* BTN */
.btn {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0;
    padding: 10px 24px;
}

.btn-brand {
    background-color: var(--c-brand);
    border-color: var(--c-brand);
    color: white;
}

.btn-brand:hover {
    background-color: var(--c-brand-light);
    border-color: var(--c-brand-light);
    color: white;
}


/* HERO */
/* ================= HERO / VIDEO SLIDER ================= */

.show-video {
  position: relative;
  width: 100%;
  height: 100vh;   
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--bg-primary);
  overflow: hidden;
}


.show-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 96, 261, 0.3);
  z-index: 100;
}

/*=============== HOME SLIDER ===============*/
.video-slider {
  margin-top: 8rem;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__content {
  position: absolute;
  left: 4rem;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 300px;
}

.slide__content h2 {
  font-size: 2rem;
}

.slide__content p {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.85;
}

.slide__icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: #fff;
  opacity: 0.9;
}

/* ================= CONTENT hero ================= */
.content {
  z-index: 200;
  color: var(--font-color-primary);
  width: min(70%, 700px);
  margin-top: 90px;
  display: none;
}

.content.active {
  display: block;
}

.content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1.1;
  margin-bottom: 40px;
}

.content h1 span {
  font-size: 1.2em;
  font-weight: 600;
}

.content p {
  margin-bottom: 65px;
  line-height: 1.6;
}


/* ================= VIDEO SLIDE ================= */
.video-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(0% at 0 50%);
  z-index: 0;
}

.video-slide.active {
  clip-path: circle(150% at 0 50%);
  transition: clip-path 2s ease;
}

/* ================= NAVIGATION DOTS ================= */
.slider-navigation {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  gap: 20px;
}

.nav-btn {
  width: 12px;
  height: 12px;
  background: var(--font-color-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px var(--orange-color);
  transition: 0.3s ease;
}

.nav-btn.active {
  background: var(--orange-color);
}

.nav-btn:hover {
  transform: scale(1.2);
}

/* ================= FIXED HOME PAGE SLIDER ================= */
.video-slider {
  margin-top: var(--nav-height);
  width: 100%;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__content {
  position: absolute;
  left: 4rem;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 300px;
}

.slide__content h2 {
  font-size: 2rem;
}

.slide__content p {
  margin-top: .5rem;
  font-size: 1rem;
  opacity: .85;
}

.slide__icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: #fff;
  opacity: .9;
}

/* ================= UTIL ================= */
.section-padding {
  padding: 140px 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 767px) {
  .content {
    margin-top: 40px;
    width: 90%;
  }

  .content h1 {
    font-size: 2.5em;
    line-height: 45px;
  }

  .content p {
    margin-bottom: 40px;
  }

  .media-icons {
    right: 15px;
  }

  .slide__content {
    left: 1.5rem;
  }
}



/* SECTION TITLE */
.section-title {
    margin-bottom: 60px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--c-brand);
    margin: 16px auto 24px auto;
}

.section-title p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ================= BUTTON ================= */
.btn_about {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(45deg, rgb(221, 166, 64), red);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s ease;
}

.btn_about:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* ICONBOX */
.iconbox {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--c-brand-rgb), 0.1);
    color: var(--c-brand);
    font-size: 34px;
    flex: none;
}



/* COUNTER */
#counter {
    background: linear-gradient(rgba(var(--c-brand-rgb), 0.8), rgba(var(--c-brand-rgb), 0.8)), url(../images/counter.png);
    background-position: center;
    background-size: cover;
    padding-bottom: 120px;
    position: relative;
}

.sponsor-section {
  background: #eee;
  padding: 80px 0;
  padding-bottom: 150px;
  text-align: center;
}

.sponsor-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  flex-wrap: wrap;
}

.sponsor-container img {
  max-height: 70px;
  opacity: 0.7;
  transition: 0.3s ease;
}

.sponsor-container img:hover {
  opacity: 1;
  transform: scale(1.05);
}


/* FOOTER */
footer {
    position: relative;
    width: 100%;
    background: #F47930;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px 0;
    margin-top: 100px;
}

footer .social_icons, footer .menu {
    list-style: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

footer .social_icons li a {
    font-size: 2em;
    color: #fff;
    margin: 0 10px;
    transition: .5s;
    display: inline-block;
}

footer .social_icons li a:hover {
    transform: translateY(-10px);
}

footer .menu li a {
    font-size: 1.2em;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    text-decoration: none;
    opacity: .75;
}

footer .menu li a:hover {
    opacity: 1;
}

footer p {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.1em;
    text-align: center;
}

footer .wave {
    position: absolute;
    top: -90px;
    left: 0;
    height: 100px;
    width: 100%;
    background: url('../images/wave.png');
    background-size: 1000px 100px;
}

footer .wave#wave1 {
    z-index: 1000;
    opacity: 1;
    bottom: 0;
    animation: animateWave 4s linear infinite;
}

footer .wave#wave2 {
    z-index: 999;
    opacity: .5;
    bottom: 10px;
    animation: animateWave_02 4s linear infinite;
}

footer .wave#wave3 {
    z-index: 1000;
    opacity: .2;
    bottom: 15px;
    animation: animateWave 3s linear infinite;
}

footer .wave#wave4 {
    z-index: 999;
    opacity: .7;
    bottom: 20px;
    animation: animateWave_02 3s linear infinite;
}

@keyframes animateWave {
    0% {
        background-position-x: 1000px;
    }

    100% {
        background-position-x: 0px;
    }
}

@keyframes animateWave_02 {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: 1000px;
    }
}

/* ================= GLOBAL MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {
    /* 1. Kecilkan jarak padding raksasa antar section */
    .section-padding {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* 2. Rapikan teks pada video Home agar tidak tumpang tindih */
    .content {
        margin-top: 80px !important;
    }
    .content h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        letter-spacing: 2px !important;
    }
    .content p {
        font-size: 14px !important;
        margin-bottom: 30px !important;
        line-height: 1.5 !important;
    }

    /* 3. Perbaiki jarak kolom sponsor yang terlalu lebar */
    .sponsor-section {
        padding: 50px 0 !important;
    }
    .sponsor-container {
        gap: 30px !important;
        padding: 10px !important;
    }
    .sponsor-container img {
        max-height: 50px !important;
    }

    /* 4. Rapikan gambar dan judul pada halaman About */
    #about img {
        margin-bottom: 30px !important;
        margin-top: 20px !important;
    }
    .section-title {
        margin-bottom: 30px !important;
    }
    .section-title p {
        font-size: 14px !important;
    }

    /* 5. Susutkan tinggi Footer agar proporsional di HP */
    footer {
        margin-top: 60px !important;
        padding: 40px 10px 20px 10px !important;
        min-height: auto !important;
    }
    footer p {
        font-size: 13px !important;
    }

    /* 6. Perbaiki tombol Navbar */
    .nav {
        padding: 0.5rem 1rem !important;
    }
    .nav__logo {
        width: 40px !important;
        height: 40px !important;
    }
}