:root {
  --primary-color: #FF6B6B;
  --secondary-color: #4ECDC4;
  --accent-color: #FFE66D;
  --dark-color: #292F36;
  --light-color: #F7FFF7;
}

body {
  font-family: 'Comic Neue', cursive;
  background-color: #F9F7F7;
  color: var(--dark-color);
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4rem;
  /* spacing bawah antar section */
}

#hero {
  background: linear-gradient(135deg, #ffffff 0%, #00ffae 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-main,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-main {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
  position: relative;
}

.hero-img {
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

.habits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.habit-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.habit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.habit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Section video */
.video-section {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 2rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 2rem auto 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.video-thumbnails {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.thumbnail {
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

/* Floating Animations */
.floating-animals {
  position: fixed;
  bottom: 0;
  right: 0;
  pointer-events: none;
  z-index: 100;
}

.animal {
  position: absolute;
  font-size: 2rem;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.animal1 {
  bottom: 20px;
  right: 20px;
  animation-delay: 0s;
}

.animal2 {
  bottom: 80px;
  right: 100px;
  animation-delay: 1s;
}

.animal3 {
  bottom: 40px;
  right: 200px;
  animation-delay: 2s;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-star {
  position: absolute;
  font-size: 1.5rem;
  animation: float 4s ease-in-out infinite;
}

.star1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.star2 {
  top: 30%;
  right: 15%;
  animation-delay: 1s;
}

.star3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 1.5s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Login Button */
.btn-login {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: scale(1.05);
  background-color: #FF5252;
}

/* ===================== */
/* RESPONSIVE MOBILE FIX */
/* ===================== */

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-img {
    max-width: 300px;
  }

  .habits-grid {
    grid-template-columns: 1fr;
  }

  .video-wrapper {
    padding-bottom: 75%;
    margin-bottom: 4rem;
  }

  .container {
    padding-bottom: 6rem;
    /* tambah ruang di bawah setiap section */
  }

  #belajar {
    margin-bottom: 4rem;
  }

  #video {
    margin-top: 2rem;
  }

  .video-section {
    position: relative;
    /* Set position for video section */
    /* Additional styles can be added here */
    /* e.g., padding, margin, etc. */


    padding: 20px;
    margin: 10px 0;

  }
}