* {
  margin: 0px;
  padding: 0;
  box-sizing: border-box;
  font-family: Oswald, arial;
}

/* Page Transition Overlay */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #060c2d, #384ba9);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden; /* Hanya hide horizontal scroll */
  overflow-y: auto; /* Allow vertical scroll */
}

#judul {
  color: #fff;
  border: none;
  padding: 25px 10px;
  text-align: center;
  box-shadow: 3px 3px 6px rgb(10, 5, 69), -3px -3px 6px rgb(7, 96, 165);
  font-family: Oswald, arial;
  background: linear-gradient(90deg, #060c2d, #384ba9);
  text-shadow: 3px 2px 6px rgb(41, 165, 193), -3px -2px 6px rgb(9, 34, 124);
  animation: slideDown 0.7s ease 0.3s backwards;
  position: relative;
  z-index: 10;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#judul h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0;
  flex-wrap: wrap;
}

.logo-img {
  vertical-align: middle;
  animation: logoRotate 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s
    backwards;
}

@keyframes logoRotate {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.slogan {
  font-weight: 300;
  font-size: 16px;
  opacity: 0.9;
  margin-top: 10px;
  animation: fadeIn 0.8s ease 0.8s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}

.bg-circle {
  position: fixed; /* UBAH dari absolute ke fixed */
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  filter: blur(40px);
  top: 10%;
  left: 10%;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
  pointer-events: none; /* TAMBAHKAN */
}

.bg-circle2 {
  position: fixed; /* UBAH dari absolute ke fixed */
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  filter: blur(35px);
  bottom: 10%;
  right: 5%;
  z-index: 0;
  animation: float 8s ease-in-out infinite reverse;
  pointer-events: none; /* TAMBAHKAN */
}

#badan {
  flex: 1;
  background-image: url(voting-e1711380786234.jpeg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px; /* TAMBAH padding atas dan bawah */
  min-height: calc(100vh - 150px); /* TAMBAHKAN min-height */
  position: relative;
}

.card {
  background: #ffffffcc;
  backdrop-filter: blur(5px);
  padding: 50px 60px;
  width: 550px;
  max-width: 90%;
  border: solid 4px;
  border-radius: 20px;
  box-shadow: 3px 3px 6px rgb(21, 28, 66), -3px -3px 6px rgb(9, 31, 106);
  margin: 0;
  position: relative;
  z-index: 1;
  animation: cardZoomIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s
    backwards;
}

@keyframes cardZoomIn {
  from {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.wrap:first-child {
  margin-top: 0;
  animation: slideInLeft 0.7s ease 0.9s backwards;
}

.wrap:last-child {
  margin-bottom: 0;
  animation: slideInRight 0.7s ease 1.1s backwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wrap a {
  width: 100%;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

#button1,
#button2 {
  width: 100%;
  padding: 22px 40px;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 12px;
  font-family: Oswald, arial;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: all 0.3s ease;
}

.icon-button {
  font-size: 28px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.text-button {
  flex: 1;
  text-align: center;
}

.arrow-button {
  font-size: 26px;
  transition: transform 0.3s ease;
}

.tombol:hover .icon-button {
  transform: scale(1.3) rotate(360deg);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.tombol:hover .arrow-button {
  transform: translateX(10px);
}

.tombol::after {
  content: "";
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsl(234, 81%, 55%);
  left: 0;
  top: 0;
  border-radius: 12px;
}

.tombol::before {
  content: "";
  background: linear-gradient(
    45deg,
    rgb(22, 180, 237),
    rgb(59, 16, 214),
    rgb(72, 185, 205),
    rgb(75, 47, 233),
    rgb(79, 45, 189),
    rgb(74, 182, 209),
    rgb(93, 28, 130),
    rgb(22, 180, 237)
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 600%;
  z-index: -1;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  filter: blur(8px);
  animation: glowing 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 12px;
  opacity: 0.7;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.tombol:hover::before {
  opacity: 1;
}

.tombol:hover::after {
  background: transparent;
}

.tombol:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 16, 214, 0.5);
}

.tombol:active {
  font-weight: bold;
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .card {
    width: 95%;
    padding: 30px 20px;
  }

  #judul h1 {
    font-size: 20px;
  }

  .logo-img {
    height: 60px;
  }

  .slogan {
    font-size: 14px;
  }

  #button1,
  #button2 {
    padding: 18px 30px;
    font-size: 16px;
  }

  .icon-button {
    font-size: 24px;
  }

  .arrow-button {
    font-size: 22px;
  }

  #badan {
    padding: 40px 20px;
  }
}

.particle {
  position: fixed; /* UBAH dari absolute ke fixed */
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none; /* TAMBAHKAN */
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-15px);
    opacity: 1;
  }
}

.p1 {
  top: 20%;
  left: 15%;
  animation-duration: 4s;
  animation-delay: 0s;
}
.p2 {
  top: 60%;
  left: 25%;
  animation-duration: 5s;
  animation-delay: 0.5s;
}
.p3 {
  top: 40%;
  left: 80%;
  animation-duration: 3.5s;
  animation-delay: 1s;
}
.p4 {
  top: 75%;
  left: 60%;
  animation-duration: 6s;
  animation-delay: 1.5s;
}

#kaki {
  background: linear-gradient(90deg, #060c2d, #384ba9);
  color: #fff;
  padding: 25px 20px;
  text-align: center;
  margin-top: 0;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.8s ease 1.3s backwards;
  position: relative;
  z-index: 10;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#kaki p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}
