/* ========== HEADER.CSS (FULLY RESPONSIVE - FIXED TOGGLE) ========== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: #111;
}

/* ----- TOP NAVBAR (mobile-first) ----- */
.topbar {
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 68px;
  position: relative;
  z-index: 100;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 60px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* desktop navigation (horizontal) */
.menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
  margin-left: 22px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar for cleaner look (optional) */
.menu::-webkit-scrollbar {
  height: 3px;
}

.menu::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.menu::-webkit-scrollbar-thumb {
  background: #ffde17;
  border-radius: 4px;
}

.menu li {
  color: #f1f1f1;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 6px 0;
  font-weight: 500;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.menu li:hover {
  color: #ffde17;
}

.menu li.active {
  color: #ffde17;
  font-weight: 700;
  border-bottom: 2px solid #ffde17;
}

.menu li.yellow {
  color: #ffde17;
  font-weight: 700;
}

/* ----- HAMBURGER (mobile only) - FIXED ----- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 101;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffde17;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* mobile slide menu - FIXED POSITIONING */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #0f0f0f;
  z-index: 999;
  transition: left 0.3s ease-in-out;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
  padding: 80px 24px 30px 24px;
  overflow-y: auto;
}

.mobile-menu-overlay.open {
  left: 0;
}

.mobile-menu-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu-overlay li {
  color: #f1f1f1;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid #2c2c2c;
  cursor: pointer;
  transition: 0.2s;
}

.mobile-menu-overlay li.active {
  color: #ffde17;
  font-weight: 700;
}

.mobile-menu-overlay li.yellow {
  color: #ffde17;
  font-weight: 700;
}

.mobile-menu-overlay li:hover {
  color: #ffde17;
  padding-left: 6px;
}

/* close button inside mobile menu */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #ffde17;
  font-size: 32px;
  cursor: pointer;
  font-weight: bold;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* overlay background (dim) - FIXED */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.menu-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ----- MARQUEE (responsive) ----- */
.marquee-wrapper {
  width: 100%;
  background: #ffcc00;
  overflow: hidden;
  border-top: 1px solid #e4c600;
  border-bottom: 1px solid #e4c600;
  height: auto;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.marquee {
  display: flex;
  width: max-content;
  animation: scrollText 22s linear infinite;
  will-change: transform;
}

.marquee span {
  font-size: 15px;
  color: #111;
  font-weight: 600;
  padding-right: 60px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* slower animation on mobile for readability */
@keyframes scrollText {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media screen and (max-width: 1024px) {
  .menu {
    gap: 20px;
    margin-left: 16px;
  }
  .menu li {
    font-size: 13px;
  }
  .logo img {
    width: 50px;
  }
}

@media screen and (max-width: 880px) {
  /* hide horizontal menu, show hamburger */
  .menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .topbar {
    padding: 0 16px;
  }
  .logo img {
    width: 50x;
  }
}

@media screen and (max-width: 550px) {
  .topbar {
    height: 60px;
    padding: 0 12px;
  }
  .logo img {
    width: 50px;
  }
  .marquee span {
    font-size: 12px;
    padding-right: 40px;
    white-space: nowrap;
  }
  .marquee {
    animation-duration: 18s;
  }
  .marquee-wrapper {
    min-height: 34px;
  }
}

/* extra small devices */
@media screen and (max-width: 480px) {
  .marquee span {
    font-size: 11px;
    padding-right: 30px;
  }
  .mobile-menu-overlay li {
    font-size: 16px;
    gap: 18px;
  }
}

/* prevent body scroll when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* Animation for hamburger to X (optional) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== CRITICAL CSS (Above The Fold) ==================== */
/* This CSS is critical for initial render - keep in head */

#header-container {
  background: linear-gradient(90deg, red, goldenrod);
}

.hero-banner {
  background: #000;
  color: #fff;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #1f2937;
}

/* ==================== IMAGE OPTIMIZATION ==================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent layout shift - reserve space for images */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* Lazy loading fade-in */
img.loaded {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* ==================== GAME CARDS (Optimized) ==================== */
.game-card {
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-card:hover .top-ribbon {
  animation: bounce 0.5s ease;
}

.game-image {
  transition: transform 0.3s ease;
  overflow: hidden;
}

.game-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(-5deg) scale(1);
  }
  50% {
    transform: rotate(5deg) scale(1.1);
  }
}

/* ==================== CASINO CARDS ==================== */
.casino-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.casino-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ==================== PAYMENT ICONS & TOOLTIPS ==================== */
.payment-icon {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.payment-icon:hover {
  transform: scale(1.1);
}

.tooltip {
  visibility: hidden;
  width: 120px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  font-size: 12px;
}

.payment-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* ==================== WHATSAPP BUTTON ==================== */


/* ==================== SCROLL TEXT ==================== */
@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.scroll-text {
  animation: scroll 15s linear infinite;
  white-space: nowrap;
}

/* ==================== GLOW MOVE ==================== */
@keyframes glowMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.animate-glow {
  animation: glowMove 6s linear infinite;
  background-size: 200% auto;
}

/* ==================== PROMO CARD ==================== */
.promo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
}

/* ==================== NUMBER CIRCLE ==================== */
.number-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e20613 0%, #ffb400 100%);
  color: white;
  font-weight: bold;
  margin-right: 16px;
  flex-shrink: 0;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #e20613, #ffb400);
  border-radius: 3px;
}

/* ==================== SHINE EFFECT ==================== */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.3) 50%, 
    rgba(255,255,255,0) 100%);
  transform: rotate(45deg);
  animation: shine 3s infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes shine {
  0% {
    opacity: 0;
    left: -50%;
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    left: 50%;
  }
}

/* ==================== FAQ SECTION ==================== */
.faq-pattern {
  background: linear-gradient(135deg, 
    rgba(196,30,58,0.05) 0%, 
    rgba(255,215,0,0.05) 100%);
}

.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-toggle {
  transition: transform 0.2s ease;
}

/* ==================== SPORT ICON ==================== */
.sport-icon {
  transition: transform 0.2s ease;
}

.sport-icon:hover {
  transform: scale(1.05);
}

/* ==================== FEATURE SECTION ==================== */
.header-line {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, #d32f2f, #ff5252);
  margin: 0 auto;
  border-radius: 2px;
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
  background: white;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  will-change: transform;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(211, 47, 47, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(211, 47, 47, 0.3);
}

.feature-icon {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.feature-icon::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 200%;
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  transform: rotate(30deg);
  top: -50%;
  left: -100%;
  transition: left 0.4s ease;
  pointer-events: none;
}

.feature-card:hover .feature-icon::after {
  left: 150%;
}

/* ==================== FLOATING SHAPES ==================== */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #d32f2f, #ff5252);
  top: -150px;
  right: -150px;
  animation: float 15s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  bottom: -100px;
  left: -100px;
  animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* ==================== PULSE DOT ==================== */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #d32f2f;
  border-radius: 50%;
  position: absolute;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
  }
  100% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
  }
}

/* ==================== GRADIENT TEXT ==================== */
.gradient-text {
  background: linear-gradient(90deg, #d32f2f, #ff5252);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==================== COUNTER ==================== */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ==================== CTA BUTTON ==================== */
.cta-button {
  background: linear-gradient(90deg, #d32f2f, #ff5252);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

/* ==================== SLIDER OPTIMIZATION ==================== */
.slide {
  transition: opacity 0.3s ease;
  will-change: opacity;
}

/* ==================== FADE-IN ANIMATION ==================== */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== MOBILE OPTIMIZATIONS ==================== */
@media (max-width: 768px) {
  /* Increase touch targets */
  button,
  .payment-icon,
  .game-card,
  a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Disable heavy animations on mobile */
  .game-card:hover .game-image {
    transform: none;
  }
  
  .feature-card:hover {
    transform: none;
  }
  
  /* Simplify shadows on mobile */
  .shadow-lg,
  .shadow-xl {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Hide tooltips on mobile */
  .tooltip {
    display: none;
  }
  
  /* Disable shine effect on mobile */
  .shine-effect::after {
    display: none;
  }
  
  /* Simplify animations for users who prefer reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .whatsapp-btn,
  .animate-glow,
  .shine-effect::after {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
  text-align: center;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */
/* Use will-change sparingly - only on elements that animate */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Reduce repaints */
.backface-visibility {
  backface-visibility: hidden;
}

/* Hardware acceleration for animations */
.transform-gpu {
  transform: translateZ(0);
}


/* Temporary fix for testing */
body, main, section {
    background-color: white !important;
    color: black !important;
}

/* Red-Golden Gradient for Signup Section */
[style*="radial-gradient"] {
    background: linear-gradient(135deg, #b00000 0%, #8b0000 30%, #D4AF37 70%, #b00000 100%) !important;
}

[style*="radial-gradient"] * {
    color: white !important;
}

         /*whatsaap*/
 .float {
    position: fixed;
    width: 50px;
    height: 50px;
    /* bottom: 20px; */
    right: 35px;
    background: linear-gradient(
      90deg,
      rgb(55, 223, 97) 0%,
      rgb(9, 187, 3) 100%
    );    
    color: #fff !important;
    bottom: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    /* box-shadow: 2px 2px 3px #999; */
    z-index: 100;
  }
  .bb{
    color: #fff;
  }
  .my-float {
    margin-bottom: 8px;
    margin-top: 1px;
    margin-left: 1px;
    font-size: 30px;
  }
  /*whatsaap end*/