/* ========================
   RESET & BASE
======================== */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f0f8ff;
  overflow-x: hidden;
  line-height: 1.5;
}
a {
  text-decoration: none;
}
h2, h3, p {
  margin: 0 0 10px 0;
}

/* ========================
   HEADER
======================== */
header {
  width: 100%;
  background: linear-gradient(135deg, #66b3ff, #0066cc);
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.left-header {
  display: flex;
  align-items: center;
  gap: 15px;
}
.left-header a {
  transition: opacity 0.3s ease;
}
.left-header a:hover {
  opacity: 0.9;
}
.left-header img {
  height: 80px;
  border-radius: 50%;
  background: transparent;
}
.title-container {
  display: flex;
  flex-direction: column;
}
.title-main {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.title-tagline {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.2;
}
.header-right {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
}
.nav-links li {
  display: inline-block;
  position: relative;
}
.header-right a {
  color: white;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}
.header-right a:hover {
  color: #ffcc00;
  transform: translateY(-2px);
}
.header-right a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffcc00;
  transition: width 0.3s ease;
}
.header-right a:hover::after {
  width: 100%;
}
.header-right a.active {
  color: #ffcc00;
  font-weight: 700;
}
.header-right a.active::after {
  width: 100%;
}
.header-right .cta-header {
  background: linear-gradient(90deg, #ffcc00, #ffb300);
  color: #003366;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}
.header-right .cta-header:hover {
  background: linear-gradient(90deg, #ffb300, #ff9900);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.hamburger {
  display: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

/* ========================
   MAIN & BACKGROUND
======================== */
main {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('mountain.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.5;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,153,255,0.15), rgba(0,102,204,0.15));
  z-index: 1;
}
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ========================
   INTRO
======================== */
.intro-text {
  font-size: 16px;
  max-width: 900px;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #3399ff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.9));
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
  color: #333;
  text-align: left;
  margin-bottom: 30px;
  margin-top: 15px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.8s ease forwards;
  transition: box-shadow 0.3s ease;
}
.intro-text:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.intro-text h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0059b3;
}
.intro-text p {
  font-weight: 400;
}

/* ========================
   NEWS BOX
======================== */
.news-box {
  max-width: 650px;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #ff6600;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,250,255,0.95));
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
  color: #333;
  text-align: left;
  margin: 20px 0 40px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}
.news-box h2 {
  font-size: 24px;
  font-weight: 700;
  color: #cc3300;
  margin-bottom: 8px;
}
.news-box .date {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  font-style: italic;
}
.news-box img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}
.news-box p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* ========================
   FEATURES / CARDS
======================== */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}
.card {
  background: white;
  padding: 18px;
  border-radius: 14px;
  width: 260px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  border: 2px solid rgba(0,0,0,0.05);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}
.card:hover {
  background-color: #e6f2ff;
  box-shadow: 0 0 20px rgba(0,153,255,0.5);
  border-color: #3399ff;
}
.card h3 {
  color: #0059b3;
  margin-bottom: 10px;
}
.card .date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ========================
   STATS
======================== */
.stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  text-align: center;
}
.stat-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 180px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(0.2s * var(--index));
}
.stat-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.stat {
  font-size: 2rem;
  font-weight: 700;
  color: #0059b3;
}
.stat-label {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 5px;
  color: #333;
}

/* ========================
   CTA BUTTON
======================== */
.cta {
  margin-top: 30px;
  text-align: center;
  z-index: 2;
}
.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #3399ff, #66ccff);
  background-size: 200% 200%;
  animation: gradientBG 8s ease infinite;
  color: white;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,102,204,0.3);
}
.cta-button:hover {
  background: linear-gradient(90deg, #66ccff, #3399ff);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,102,204,0.5);
}

/* ========================
   FOOTER
======================== */
footer {
  margin-top: 0;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  width: 100%;
  background: linear-gradient(135deg, #99ccff, #3399ff);
}
footer a {
  color: white;
  margin: 0 10px;
}
footer a:hover {
  text-decoration: underline;
}

/* ========================
   RESPONSIVE
======================== */
@media(max-width:768px) {
  .features, .stats {
    flex-direction: column;
    align-items: center;
  }
  header {
    flex-direction: column;
    text-align: center;
    padding: 10px 15px;
  }
  .left-header {
    justify-content: center;
    margin-bottom: 8px;
  }
  .title-main {
    font-size: 20px;
  }
  .title-tagline {
    font-size: 10px;
  }
  .left-header img {
    height: 64px;
  }
  .intro-text {
    font-size: 14px;
    padding: 15px;
    margin-top: 10px;
  }
  .intro-text h1 {
    font-size: 28px;
  }
  .news-box {
    font-size: 14px;
    padding: 15px;
  }
  .news-box h2 {
    font-size: 20px;
  }
  .cta {
    margin-top: 25px;
  }
  .stat-box {
    width: 160px;
  }
  .card {
    width: 90%;
    max-width: 320px;
  }
  .card img {
    height: 160px;
  }
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #66b3ff, #0066cc);
    padding: 15px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 8px 0;
  }
  .header-right a {
    font-size: 14px;
  }
  .header-right .cta-header {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* ========================
   ANIMATIONS
======================== */
@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ========================
   GAMES UNDER DEVELOPMENT
======================== */
.games-dev-section {
  text-align: center;
  margin: 50px 0 30px;
  position: relative;
  z-index: 2;
}

.games-dev-title {
  font-size: 42px;           /* BESAR */
  font-weight: 800;          /* TEBAL */
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0059b3;
  margin-bottom: 18px;
  text-shadow: 0 4px 15px rgba(0,102,204,0.35);
}

.games-dev-button {
  display: inline-block;
  padding: 14px 34px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 14px;
  color: #0059b3;
  background: rgba(255,255,255,0.95);
  border: 2px solid #3399ff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,102,204,0.25);
}

.games-dev-button:hover {
  background: #3399ff;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(0,102,204,0.5);
}

/* ========================
   POPUP STYLES (LOGIN & SIGNUP)
======================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ff0000;
}

.popup-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
  color: #0066cc;
  font-size: 24px;
}

.popup-field {
  margin-bottom: 15px;
  text-align: left;
}

.popup-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.popup-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.popup-field input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.popup-login-btn {
  width: 100%;
  padding: 12px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.popup-login-btn:hover {
  background: #0055aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.popup-footer {
  margin-top: 15px;
  font-size: 13px;
}

.popup-footer a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.popup-footer a:hover {
  text-decoration: underline;
  color: #0044aa;
}

/* Popup Sign Up Button (Green) */
.popup-login-btn.signup-btn {
  background: #28a745;
}

.popup-login-btn.signup-btn:hover {
  background: #208636;
}