/* 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: #ffffff;
}

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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px;
  margin-top: 120px;
  /* Jarak agar tidak tertutup navbar */
  animation: fadeIn 1s ease;
}

.hero-left {
  flex: 1;
}

.hero-left h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-left p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-outline {
  padding: 12px 24px;
  border: 2px solid #000;
  background: transparent;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #2f6df6;
  color: #fff;
  border-color: #2f6df6;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(47, 109, 246, 0.4);
}

.btn-primary {
  padding: 12px 24px;
  border: none;
  background: #2f6df6;
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
}

.hero-right {
  flex: 1;
  position: relative;
}

.hero-video {
  width: 100%;
  border-radius: 12px;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: block;
}

.play-overlay.show {
  display: block;
}

/* Fade effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== features ===== */

.features {
  padding: 80px;
}

.features-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(18px, 3vw, 26px);
  padding: 0 10px;
}

/* ===== Grid Layout ===== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* ===== Card ===== */

.card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* overlay glass */

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: all 0.3s ease;
}

/* title */

.card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 600;
  z-index: 2;
  opacity: 0.9;
  line-height: 1.3;
}

/* ===== Hover Effect ===== */

.card:hover img {
  transform: scale(1.1);
}

.card:hover::after {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}

/* ===== Tablet ===== */

@media (max-width:1024px) {

  .features {
    padding: 60px 30px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ===== Mobile ===== */

@media (max-width:600px) {

  .features {
    padding: 40px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

}

/* ===== SECTION COURSE BACKGROUND ===== */

.course-section {
  text-align: center;
  padding: 120px 20px;

  background: linear-gradient(to bottom,
      #ffffff 0%,
      #f478308b 40%,
      #F47930 100%);
}

/* ===== TITLE ===== */

.course-section h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.course-subtitle {
  font-size: 14px;
  margin-bottom: 40px;
  color: #333;
}

/* ===== CARD ===== */

.course-card {
  max-width: 1000px;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.course-card img {
  width: 100%;
  display: block;
}

/* hover sedikit floating */

.course-card:hover {
  transform: translateY(-8px);
}

/* ===== Scroll Fade Animation ===== */

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* 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;
  padding: 0;
}

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. Navbar padding fix */
  .nav {
    padding: 0.5rem 1rem !important;
  }

  .nav__logo {
    width: 40px !important;
    height: 40px !important;
  }

  /* 2. Hero Section (Video di Atas) */
  .hero {
    flex-direction: column-reverse !important;
    /* Memaksa panel Kanan (Video) ke Atas */
    padding: 30px 15px !important;
    margin-top: 100px !important;
    /* Jarak ekstra untuk mode HP */
    text-align: center;
  }

  .hero-left h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
  }

  .hero-left p {
    font-size: 15px !important;
    margin-bottom: 25px !important;
  }

  .hero-buttons {
    justify-content: center !important;
  }

  .hero-video {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  /* 3. Footer Fix */
  footer {
    margin-top: 60px !important;
    padding: 40px 10px 20px 10px !important;
    min-height: auto !important;
  }

  footer p {
    font-size: 13px !important;
  }
}