/* ========================================
   RESET & BASE
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: monospace;
  background: #1a160a;
  background-image: 
    radial-gradient(ellipse at 20% 50%, #1a1a3e 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, #1a1a3e 0%, transparent 60%),
    radial-gradient(#48484a 5%, transparent 50%);
  background-size: 100% 100%, 100% 100%, 5px 5px;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ========================================
   EFEK SALJU
   ======================================== */
.snow-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: #ffffff;
  font-size: 14px;
  opacity: 0.8;
  animation: fall linear infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Animasi Jatuh Salju */
@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
    opacity: 0.9;
  }
  25% {
    transform: translateY(25vh) rotate(90deg) translateX(15px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(-10px);
    opacity: 0.7;
  }
  75% {
    transform: translateY(75vh) rotate(270deg) translateX(20px);
    opacity: 0.6;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(-5px);
    opacity: 0.2;
  }
}

/* Variasi Ukuran & Kecepatan Salju */
.snowflake:nth-child(1)  { left: 5%;  font-size: 10px; animation-duration: 8s;   animation-delay: 0s;   }
.snowflake:nth-child(2)  { left: 12%; font-size: 16px; animation-duration: 11s;  animation-delay: 1s;   }
.snowflake:nth-child(3)  { left: 20%; font-size: 8px;  animation-duration: 7s;   animation-delay: 2s;   }
.snowflake:nth-child(4)  { left: 28%; font-size: 20px; animation-duration: 13s;  animation-delay: 0.5s; }
.snowflake:nth-child(5)  { left: 35%; font-size: 12px; animation-duration: 9s;   animation-delay: 3s;   }
.snowflake:nth-child(6)  { left: 42%; font-size: 18px; animation-duration: 10s;  animation-delay: 1.5s; }
.snowflake:nth-child(7)  { left: 50%; font-size: 7px;  animation-duration: 6s;   animation-delay: 2.5s; }
.snowflake:nth-child(8)  { left: 58%; font-size: 22px; animation-duration: 14s;  animation-delay: 0.8s; }
.snowflake:nth-child(9)  { left: 65%; font-size: 11px; animation-duration: 9.5s; animation-delay: 1.2s; }
.snowflake:nth-child(10) { left: 72%; font-size: 15px; animation-duration: 12s;  animation-delay: 3.5s; }
.snowflake:nth-child(11) { left: 80%; font-size: 9px;  animation-duration: 7.5s; animation-delay: 0.3s; }
.snowflake:nth-child(12) { left: 88%; font-size: 19px; animation-duration: 10.5s; animation-delay: 2.2s; }
.snowflake:nth-child(13) { left: 95%; font-size: 13px; animation-duration: 8.5s; animation-delay: 1.8s; }
.snowflake:nth-child(14) { left: 15%; font-size: 6px;  animation-duration: 5.5s; animation-delay: 4s;   }
.snowflake:nth-child(15) { left: 45%; font-size: 17px; animation-duration: 11.5s; animation-delay: 0.1s; }
.snowflake:nth-child(16) { left: 75%; font-size: 14px; animation-duration: 9.8s; animation-delay: 2.8s; }
.snowflake:nth-child(17) { left: 32%; font-size: 21px; animation-duration: 12.5s; animation-delay: 1.3s; }
.snowflake:nth-child(18) { left: 55%; font-size: 8px;  animation-duration: 6.8s; animation-delay: 3.2s; }
.snowflake:nth-child(19) { left: 68%; font-size: 16px; animation-duration: 10.2s; animation-delay: 0.7s; }
.snowflake:nth-child(20) { left: 92%; font-size: 12px; animation-duration: 9.3s; animation-delay: 2s;   }

/* ========================================
   CONTAINER UTAMA
   ======================================== */
.container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ========================================
   LOGO
   ======================================== */
.logo {
  margin-bottom: 10px;
}

/* ========================================
   WELCOME TEXT
   ======================================== */
.welcome {
  max-width: 350px;
  width: 100%;
  margin: 0 auto 15px;
}

.welcome h3 {
  font-size: 12px;
  color: #ffffff;
  overflow: hidden;
  border-right: 0.15em solid #fbf4a0;
  white-space: nowrap;
  letter-spacing: 0.09em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  text-shadow: 0 0 20px rgba(251, 244, 160, 0.3);
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #fbf4a0; }
}

/* ========================================
   BANNER
   ======================================== */
.banner {
  border-radius: 10px;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 0 40px rgba(0, 132, 255, 0.15);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: block;
  width: 100%;
  max-width: 350px;
  padding: 15px;
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  outline: none;
  border-radius: 10px;
  color: #ffffff;
  background: #111111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

/* Efek Glow Border */
.btn:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient(88deg, #0084ff, #eaff2b, #faf9f9, #eaff2b, #0084ff, #eaff2b, #0084ff, #eaff2b);
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  border-radius: 10px;
  opacity: 1;
  animation: glowing 20s linear infinite;
}

/* Background Button */
.btn:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111111;
  left: 0;
  top: 0;
  border-radius: 10px;
  z-index: -1;
}

@keyframes glowing {
  0%   { background-position: 0 0; }
  50%  { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0, 132, 255, 0.3);
}

.btn:active {
  transform: scale(0.97);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  margin-top: 25px;
  text-align: center;
  color: #ffffff60;
  font-size: 12px;
  letter-spacing: 1px;
}

.footer a {
  color: #ffffff90;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 420px) {
  .container {
    padding: 15px 10px;
  }
  
  .btn {
    font-size: 18px;
    padding: 13px;
  }
  
  .welcome h3 {
    font-size: 10px;
  }
  
  .snowflake {
    font-size: 10px !important;
  }
}