/* =============================
   BASE
============================= */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: none;
}
/* =============================
   BACKGROUND SCENE (FIX CLICK ISSUE)
============================= */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none; /* 🔥 IMPORTANT */
}

.background {
  position: absolute;
  inset: 0;
  background: url("../assets_log/images/bg_img2.jpeg") no-repeat center center;
  background-size: cover;
  z-index: 1;
}

/* SKY COLOR OVERLAY */
.sky {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: background 2s linear;
}

/* STARS */
.stars {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 70% 40%, white, transparent),
    radial-gradient(1.5px 1.5px at 50% 70%, white, transparent);
  animation: twinkle 3s infinite alternate;
  transition: opacity 1s ease;
}

@keyframes twinkle {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

/* SUN */
.sun {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff176, #fbc02d);
  box-shadow: 0 0 80px rgba(255, 193, 7, 0.8);
  top: 15%;
  left: 0%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 0;
  transition: opacity 1s ease;
}

/* MOON */
.moon {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 60%;
  background: radial-gradient(circle, #fff, #cfd8dc);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.6);
  top: 15%;
  left: 0%;
  transform: translateX(-50%);
  z-index: 7;
  opacity: 0;
  transition: opacity 1s ease;
}

/* CLOUD BASE */
.cloud {
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.8) 8%,
      transparent 40%
    ),
    radial-gradient(
      circle at 60% 20%,
      rgba(255, 255, 255, 0.7) 10%,
      transparent 45%
    );
}

/* Cloud layers */
.cloud1 {
  z-index: 5;
  animation: cloudMove1 120s linear infinite;
}

.cloud2 {
  z-index: 6;
  opacity: 0.6;
  animation: cloudMove2 70s linear infinite;
}

@keyframes cloudMove1 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes cloudMove2 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-40%);
  }
}

/* =============================
   CARD (MAIN UI)
============================= */
.card {
  position: relative;
  z-index: 10; /* 🔥 ensure above background */
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 20px;
  border: none;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* HEADER */
.card-header {
  background: linear-gradient(135deg, #2b3cbf, #4c6ef5);
  color: white;
  font-weight: 600;
  text-align: center;
  font-size: 18px;
  padding: 25px;
  letter-spacing: 1px;
}

/* BODY */
.card-body {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
}

/* =============================
   MENU CARD
============================= */
.menu-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px 15px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ICON */
.menu-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
}

/* ICON COLORS */
.custom-card .icon.bg-danger {
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
}

.custom-card .icon.bg-primary {
  background: linear-gradient(135deg, #4c6ef5, #748ffc);
}

.menu-card.semakan .icon {
  background: linear-gradient(135deg, #20c997, #38d9a9);
}

/* TEXT */
.menu-card h6 {
  letter-spacing: 0.5px;
}

.menu-card p {
  font-size: 13px;
  color: #555;
}

/* BUTTON */
.menu-card .btn {
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.menu-card .btn:hover {
  background: #4c6ef5;
  color: white;
}

/* =============================
   SEMAKAN CARD
============================= */
.menu-card.semakan {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-card.semakan:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

/* =============================
   BUTTON CUSTOM
============================= */

.btn-custom {
  background: linear-gradient(135deg, #ff512f, #dd2476);
  border: none;
  color: #fff;
  border-radius: 14px;
  font-weight: 600;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(221, 36, 118, 0.4);
  transition: all 0.2s ease;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(221, 36, 118, 0.6);
}

.btn-custom:active {
  transform: translateY(1px);
}
.btn-custom2 {
  background: linear-gradient(135deg, #2196f3, #1565c0);
  border: none;
  color: #fff;
  border-radius: 14px;
  font-weight: 600;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(21, 101, 192, 0.4);
}

.btn-custom2:hover {
  transform: translateY(-3px);
}

/* CSS for Zoom-in Animation */
@keyframes zoomIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-in {
  animation: zoomIn 0.5s ease-in-out forwards;
  /* Optional: Set initial state */
  transform: scale(0.7);
  opacity: 0;
}

/* =============================
   MOBILE
============================= */
@media (max-width: 768px) {
  .custom-card {
    padding: 20px 10px;
  }

  .menu-card.semakan {
    margin-top: 10px;
  }
}
