/* ================= VARIABLES ================= */
:root {
  --bg: #000000;
  --bg-gradient: linear-gradient(135deg, #000000ff 0%, #000000 50%, #000033 100%);
  --gold: #feee01;
  --gold-gradient: linear-gradient(135deg, #feee01 0%, #ffd700 100%);
  --text: #ffffff;
  --muted: #c9c9c9;
  --dark: #0a0a0a;
  --slide-duration: 12s;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --glow-shadow: 0 0 20px rgba(254, 238, 1, 0.3);
}

/* ================= RESET ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', system-ui, sans-serif; background: var(--bg-gradient); color: var(--text); scroll-behavior: smooth; }

/* ================= CONTAINER ================= */
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 20px; }

/* ================= HEADER ================= */
.header { position: sticky; top: 0; z-index: 1000; background: rgb(0,0,0); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(254,238,1,0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; width: auto; }
.logo-img { height: 80px; width: auto; object-fit: contain; }
.logo-text { color: var(--gold); font-weight: 700; font-size: 1.5rem; text-shadow: 0 0 10px rgba(254,238,1,0.5); }

.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { text-decoration: none; color: var(--text); transition: all 0.3s ease; font-weight: 500; font-size: 1.5rem; padding: 10px 18px; border-radius: 25px; position: relative; }
.desktop-nav a:hover { color: var(--gold); background: rgba(254,238,1,0.1); box-shadow: var(--glow-shadow); }
.desktop-nav .download-btn { background: var(--gold-gradient); color: #000; font-weight: 700; font-size: 1rem; padding: 8px 20px; border-radius: 25px; border: 2px solid transparent; transition: all 0.3s ease; }
.desktop-nav .download-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(254,238,1,0.4); border: 2px solid var(--gold); }
.menu-toggle { display: none; font-size: 30px; background: none; border: none; color: var(--text); cursor: pointer; }

/* ================= HERO SLIDER ================= */
.hero { position: relative; width: 100%; height: 86vh; overflow: hidden; margin-top: 2px; }
.slides-container { display: flex; width: 100%; height: 100%; animation: slideLeft var(--slide-duration) linear infinite; }
.slide { width: 100%; height: 100%; flex: 0 0 100%; background-size: cover; background-repeat: no-repeat; background-position: center; }
.slide:nth-child(1) { background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%); }
.slide:nth-child(2) { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.slide:nth-child(3) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%); z-index: 2; }
.hero-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 3; max-width: 800px; width: 90%; padding: 20px; }
.hero-title { font-size: clamp(32px, 5vw, 64px); font-weight: 800; margin-top: 180px; margin-left: 0px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); white-space: nowrap; }
.hero-title .accent { color: var(--gold); text-shadow: 0 0 20px rgba(254,238,1,0.8); }
.hero-sub { margin-top: 12px; color: rgb(1,3,3); font-size: clamp(16px,2vw,22px); margin-bottom: 30px; }
.btn.primary { display: inline-block; background: var(--gold-gradient); color: #000; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 18px; transition: all 0.3s ease; box-shadow: var(--card-shadow); border: 2px solid transparent; }
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(254,238,1,0.4); border: 2px solid var(--gold); }

@keyframes slideLeft { 0%,30%{transform:translateX(0);} 33%,63%{transform:translateX(-100%);} 66%,96%{transform:translateX(-200%);} 100%{transform:translateX(0);} }

/* ================= ABOUT SECTION ================= */
.about-section { padding: 100px 0; background: linear-gradient(135deg, var(--bg) 0%, #000000 50%, #080803 100%); position: relative; overflow: hidden; }
.about-section::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: radial-gradient(circle at 20% 30%, rgba(254,238,1,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(8,0,255,0.2) 0%, transparent 50%); pointer-events: none; }
.about-container { max-width: 1400px; margin: 0 auto; padding: 0 10px; position: relative; z-index: 2; }
.about-header { text-align: center; margin-bottom: 80px; }
.section-title { font-size: clamp(28px,4vw,48px); color: var(--gold); margin-bottom: 20px; font-weight: 800; text-shadow: 0 0 20px rgba(254,238,1,0.5); position: relative; }
.section-title::after { content: ''; position: absolute; bottom:-10px; left:50%; transform: translateX(-50%); width: 100px; height:3px; background: var(--gold-gradient); border-radius: 2px; }
.section-subtitle { font-size: clamp(16px,2vw,20px); color: var(--muted); max-width: 800px; margin:30px auto 0; line-height: 1.6; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 80px; }
.about-card { background: linear-gradient(135deg, rgba(8,0,255,0.3) 0%, rgba(26,0,102,0.2) 100%); backdrop-filter: blur(10px); border-radius: 20px; padding: 30px 20px; text-align: center; border:1px solid rgba(254,238,1,0.2); transition: all 0.3s ease; box-shadow: var(--card-shadow); }
.about-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(254,238,1,0.2); border-color: var(--gold); }
.card-icon, .card-icon-img { margin-bottom: 20px; color: var(--gold); text-shadow: 0 0 20px rgba(254,238,1,0.5); }
.card-icon { font-size: 48px; }
.card-icon-img { width: 40px; height: 40px; filter: drop-shadow(0 0 20px rgba(254,238,1,0.5)); }
.card-title { font-size: 24px; color: var(--text); margin-bottom: 15px; font-weight: 700; }
.card-description { color: var(--muted); line-height: 1.6; font-size: 16px; }

/* ================= STATISTICS ================= */
.stats-section { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 20px; margin-top: 60px; }
.stat-item { text-align: center; padding: 25px 15px; background: rgba(254,238,1,0.1); border-radius: 15px; border:1px solid rgba(254,238,1,0.3); transition: all 0.3s ease; }
.stat-item:hover { transform: scale(1.05); box-shadow: var(--glow-shadow); }
.stat-number { font-size: clamp(28px,4vw,48px); font-weight: 800; color: var(--gold); display: block; text-shadow: 0 0 15px rgba(254,238,1,0.6); }
.stat-label { color: var(--text); font-size: 16px; margin-top:10px; font-weight:500; }

/* ================= SERVICES ================= */
.services-section { padding: 100px 0; background: var(--dark); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 30px; margin-top: 60px; }
.service-card { background: linear-gradient(135deg, rgba(8,0,255,0.3) 0%, rgba(26,0,102,0.2) 100%); border-radius: 15px; padding: 30px 20px; text-align: center; border:1px solid rgba(254,238,1,0.2); transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle, rgba(254,238,1,0.1) 0%, transparent 70%); opacity:0; transition: opacity 0.3s ease; }
.service-card:hover::before { opacity:1; }
.service-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--glow-shadow); }
.service-icon-img { width: 48px; height: 48px; margin-bottom: 20px; filter: drop-shadow(0 0 20px rgba(254,238,1,0.5)); }

/* ================= FOOTER ================= */
.footer { padding: 60px 20px 30px; background: linear-gradient(135deg, #000033 0%, #0a0a0a 100%); color: var(--muted); border-top:1px solid rgba(254,238,1,0.2); }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
}

.footer-section p,
.footer-section a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--gold);
}

/* ---- Social Links ---- */
.social-links {
  display: flex;
  flex-wrap: wrap;            /* allow wrapping on small screens */
  justify-content: center;    /* center horizontally */
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.social-links a img {
  width: 36px;    /* responsive base size */
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.15);
}

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
  .social-links {
    gap: 12px;
  }
  .social-links a img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .social-links {
    flex-direction: row;   /* stay in row but wrap if needed */
    gap: 10px;
  }
  .social-links a img {
    width: 28px;
    height: 28px;
  }
}

.footer-nav { display:flex; flex-direction: column; gap:12px; }
.footer-brand { display:flex; align-items:center; gap:15px; margin-bottom:20px; }
.footer-brand span { color: var(--gold); font-size:24px; font-weight:700; }
.footer-bottom { text-align:center; padding-top:30px; border-top:1px solid rgba(254,238,1,0.1); color: var(--muted); }
.social-links { display:flex; gap:15px; margin-top:10px; }
.social-icon img { width:40px; height:40px; filter: drop-shadow(0 0 10px rgba(254,238,1,0.5)); transition: transform 0.3s ease, filter 0.3s ease; }
.social-icon img:hover { transform: scale(1.2); filter: drop-shadow(0 0 15px rgba(254,238,1,0.8)); }

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp { from{opacity:0; transform:translateY(30px);} to{opacity:1; transform:translateY(0);} }
.fade-in-up { animation: fadeInUp 0.8s ease forwards; }

/* ================= UTILITY ================= */
.text-center { text-align:center; }
.mb-20 { margin-bottom:20px; }
.mt-20 { margin-top:20px; }
.hidden { display:none; }

/* ================= GAME RESULT TABLE ================= */
.game-result-section {
  margin: auto;
  text-align: center;
  margin-bottom: 40px;
  
}

/* Responsive wrapper */
.table-responsive {
  width: 100%;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* Table styling */
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
  min-width: 700px; /* Important: ensures wide table scrolls instead of cutting */
}

.result-table th,
.result-table td {
  border: 2px solid yellow;
  padding: 15px 20px;
  text-align: center;
}

.result-table th {
  background: linear-gradient(135deg, rgba(8,0,255,0.3) 0%, rgba(26,0,102,0.2) 100%);
  color: white;
}

.result-table td {
  background-color: black;
  color: white;
}

.result-table tr:hover td {
  background-color: black;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .result-table {
    font-size: 14px;
    min-width: 600px;
  }
  .result-table th, .result-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .result-table {
    font-size: 13px;
    min-width: 500px;
  }
  .result-table th, .result-table td {
    padding: 8px 10px;
  }
}


/* ================= RESPONSIVE ================= */
@media (max-width:1200px){
  .hero { height:75vh; }
  .hero-title { font-size: clamp(28px, 6vw, 56px); }
}
@media (max-width:992px){
  .about-grid, .services-grid { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:25px; }
  .stats-section { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap:20px; }
}
@media (max-width:768px){
  .desktop-nav { display:none; }
  .menu-toggle { display:inline-block; }
  .hero { height:65vh; }
  .hero-title { font-size: clamp(24px,5vw,48px); }
  .hero-sub { font-size: clamp(14px,3vw,18px); }
  .about-section, .services-section { padding:60px 20px; }
}
@media (max-width:576px){
  .hero { height:55vh; }
  .hero-title { font-size: clamp(20px,6vw,40px); }
  .btn.primary { padding:12px 25px; font-size:16px; }
  .about-grid, .services-grid { grid-template-columns:1fr; gap:20px; }
  .stats-section { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr; text-align:center; gap:20px; }
}

/* ================= BUTTON STYLE ================= */
.btn a {
  display: inline-block;
  background: linear-gradient(135deg, #feee01 0%, #ffd700 100%); /* golden */
  color: #000;                          /* black text */
  padding: 14px 32px;                   /* spacing */
  border-radius: 50px;                  /* pill shape */
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;                /* remove underline */
  transition: all 0.3s ease;            /* smooth hover */
  box-shadow: 0 6px 18px rgba(254, 238, 1, 0.3);
  border: 2px solid transparent;
  text-align: center;
}

/* Hover Effect */
.btn a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(254, 238, 1, 0.5);
  border: 2px solid #feee01;
  background: linear-gradient(135deg, #ffd700 0%, #feee01 100%);
}

/* ================= 2 COLUMN TABLE SECTION ================= */
.two-column-section {
  margin: 50px 0;
  text-align: center;
  padding: 20px;
}

.two-column-table {
  width: 50%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.two-column-table th, 
.two-column-table td {
  border: 2px solid yellow;
  padding: 12px 20px;
  text-align: center;
}

.two-column-table th {
  background: linear-gradient(135deg, rgba(8,0,255,0.3) 0%, rgba(26,0,102,0.2) 100%);
  color: white;
}

.two-column-table td {
  background-color: black;
  color: white;
}

.two-column-table tr:hover td {
  background-color: #111;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .two-column-table {
    width: 80%; /* Tablet */
  }
}

@media (max-width: 768px) {
  .two-column-table {
    width: 100%; /* Mobile full width */
    font-size: 14px;
  }

  .two-column-table th, 
  .two-column-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .two-column-table {
    font-size: 13px;
  }

  .two-column-table th, 
  .two-column-table td {
    padding: 8px 10px;
  }
}
/* Container center align */
.download-btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Normal button styles */
.download-btn {
  display: inline-block;
  background: linear-gradient(135deg,#feee01 0%,#ffd700 100%);
  color: #000;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(254,238,1,0.3);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect */
.download-btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, #feee01 100%);
  color: #000;
  transform: translateY(-3px) scale(1.05);
  border: 2px solid #feee01;
  animation: borderBlink 1s infinite;
  box-shadow: 0 0 20px rgba(254,238,1,0.6);
}

/* Border blink animation */
@keyframes borderBlink {
  0%   { border-color: #feee01; }
  50%  { border-color: #ffd700; }
  100% { border-color: #feee01; }
}

/* ---- Responsive menu toggle CSS ---- */
.menu-toggle {
  display: none; /* hidden on desktop */
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #ffd700;
  padding: 8px 12px;
}

/* Desktop nav default - horizontal */
.desktop-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Mobile styles */
@media (max-width: 900px) {
  .desktop-nav {
    display: none; /* hide default nav on small screens */
  }

  .menu-toggle {
    display: inline-flex; /* show toggle button */
    align-items: center;
    justify-content: center;
  }

  /* The mobile nav panel when .open is added by JS */
  .desktop-nav.open {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 64px;               /* adjust depending on header height */
    right: 20px;
    background: rgba(6,16,54,0.98); /* dark panel */
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 9999;
    min-width: 200px;
  }

  /* Mobile nav link style */
  .desktop-nav.open a,
  .desktop-nav.open .btn {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
  }

  /* Optional: make download button stand out in mobile panel */
  .desktop-nav.open .download-btn,
  .desktop-nav.open .btn.primary {
    background: linear-gradient(135deg,#feee01 0%,#ffd700 100%);
    color: #000;
    font-weight: 700;
  }
}
