/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 2.5s ease-in-out, color 2.5s;
}

/* Body Default (Light Mode) */
.light-mode {
  background: #f7f7f7;
  color: #020617;
}

/* Background Effects Light Mode */
.light-mode .gradient-bg {
  background: linear-gradient(to bottom right, #c7c7c8, #ffffff);
}

.light-mode .blob-1 {
  background: linear-gradient(
    to bottom right,
    rgba(100, 149, 237, 0.2),
    rgba(173, 216, 230, 0.4)
  );
}

.light-mode .blob-2 {
  background: linear-gradient(
    to top right,
    rgba(255, 160, 122, 0.2),
    rgba(255, 255, 0, 0.2) /* Yellow */
  );
}

/* Glass Card Light Mode */
.light-mode .glass-card,
.light-mode .glass-card-bot {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #020617;
}

/* Typography Light Mode */
.light-mode h1,
.light-mode h3,
.light-mode h4 {
  color: #020617 !important; /* Teks Judul Hitam */
}

.light-mode .text-slate-300,
.light-mode .text-slate-400,
.light-mode .text-slate-500 {
  color: #475569 !important;
}

.light-mode .text-white {
  color: #020617 !important;
}

.dark-mode {
  background: #020617;
  color: #fff;
}

.dark-mode .gradient-bg {
  background: linear-gradient(to bottom right, #00082c, #0f172a, #020617);
}

.dark-mode .glass-card,
.dark-mode .glass-card-bot,
.dark-mode .glass-card-sm {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Typography Dark Mode */
.dark-mode h1,
.dark-mode h3,
.dark-mode h4 {
  color: #fff !important;
}

.dark-mode .text-slate-300 {
  color: #cbd5e1 !important;
}
.dark-mode .text-slate-400 {
  color: #94a3b8 !important;
}
.dark-mode .text-slate-500 {
  color: #64748b !important;
}
.dark-mode .text-white {
  color: #fff !important;
}

/* --- SVG Toggle Styling --- */

#mode-toggle-wrapper {
  position: relative;
  width: 64px;
  height: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;

  border-radius: 20px;
  transition: background-color 0.5s, border-color 0.5s;
}

.light-mode #mode-toggle-wrapper {
  background-color: #9cd6ef;
  border: 2px solid #65c0e7;
}

.dark-mode #mode-toggle-wrapper {
  background-color: #224f6d;
  border: 2px solid #cad4d8;
}

#darkmode {
  width: 170%;
  height: 100%;

  pointer-events: none;
  position: absolute;
  top: 0;
  left: -32%;
  z-index: 10;
}

#night-control {
  cursor: pointer;
  pointer-events: all;
}

#moon-group,
.star {
  opacity: 0;
}

/* Background Effects */
.gradient-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom right, #00082c, #0f172a, #020617);
  z-index: -2;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
}

.blob-1 {
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: linear-gradient(
    to bottom right,
    rgba(59, 130, 246, 0.1),
    rgba(168, 85, 247, 0.1)
  );
}

.blob-2 {
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: linear-gradient(
    to top right,
    rgba(239, 68, 68, 0.1),
    rgba(251, 146, 60, 0.1)
  );
}

/* Glass Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 24px;
}

.glass-card-bot {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.glass-card-sm {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* Header */
.header-logo {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* Deny Message*/
.denny-message {
  flex-direction: column;
}

/* Lock Illustration */
.lock-illustration {
  position: relative;
  width: 40%;
  height: auto;
  /* margin: 0 auto 2rem; */
}

.lock-illustration img {
  width: 100%;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.25;
  }
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

.text-slate-400 {
  color: #94a3b8;
  width: max-content;
}

.text-white {
  width: max-content;
}

/* Legal Cards */
.legal-card {
  /* background: rgba(255, 255, 255, 0.05); */
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  border-radius: 16px;
  padding: 1.25rem;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-blue {
  background: #0d47a1;
}

.icon-box-orange {
  background: #f9a825;
}

/* Ad Sidebar */
.ad-container {
  width: 300px;
  height: 640px;
  position: relative;
}

.ad-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 0px 0px 16px 16px;
  overflow: hidden;
  background: #10325f;
}

.ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Styling untuk Mobile */
#ad-modal-content {
  border: none !important;
  padding: 0;
  transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

.ad-container-modal {
  width: 100%; /* Agar mengisi lebar modal */
  max-width: 300px; /* Batasi lebar agar tidak terlalu besar di mobile */
  margin: auto;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out 0.3s backwards;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 991.98px) {
  .ad-container {
    display: none;
  }

  .lock-illustration img {
    width: 110%;
  }
  /* Glass Effects */
  .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .glass-card-bot {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .glass-card-sm {
    margin-bottom: 32px;
  }

  .col-md-4 {
    flex: 0 0 auto;
    width: 50%;
  }

  .ad-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }

  .text-left {
    margin-bottom: 8px !important;
  }

  .lock-illustration {
    width: 150px;
    height: 150px;
  }

  .glass-card {
    padding: 24px !important;
  }

  .glass-card-sm {
    margin-bottom: 32px;
  }

  .need-help.row.g-5.mb-4 {
    display: flex;
    flex-direction: column;
  }

  .ad-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* Utilities */
.text-slate-300 {
  color: #cbd5e1;
}
.text-slate-400 {
  color: #94a3b8;
}
.text-slate-500 {
  color: #64748b;
}
.text-blue-400 {
  color: #60a5fa;
}
.text-purple-400 {
  color: #c084fc;
}
.text-orange-400 {
  color: #c17900;
  font-size: 1em;
}
.text-orange-300 {
  color: #fdba74;
}
