/* --- CSS STYLES --- */
/* Mobile menu debug fix - Version: 2024-12-19 23:45 */

/* 1. Global Styles & Variables */
:root {
  --primary-color: #e74c3c; /* Professional red - confidence and energy */
  --secondary-color: #f39c12; /* Warm orange - enthusiasm and warmth */
  --accent-color: #d35400; /* Deep orange - professional depth */
  --dark-color: #2c3e50; /* Professional dark blue-gray */
  --light-color: #fff5f2; /* Warm light background */
  --text-color: #2c3e50;
  --whatsapp-green: #25d366;
  --border-color: #faddd7;
  --font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.7;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: var(--dark-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.2rem;
  text-align: center;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

section {
  padding: 80px 0;
}

.section-light {
  background: linear-gradient(135deg, var(--light-color) 0%, #fff 100%);
}

/* 2. Buttons & CTA */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #3a7bc8;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #fff;
  padding: 15px 35px;
  font-size: 1.1rem;
}
.btn-whatsapp:hover {
  background-color: #1ebe58;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* 3. Navigation Bar - Scroll-Aware Header with Glassmorphism */
.header-full-width {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  will-change: transform, background-color, backdrop-filter;
}

/* Header states */
.header-full-width.header-hidden {
  transform: translateY(-100%);
}

.header-full-width.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-full-width.header-transparent {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  width: 100%;
  padding: 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  flex-shrink: 0;
}

/* Navigation links removed - only logo and WhatsApp button remain */

/* WhatsApp Button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--whatsapp-green);
  color: white;
  padding: 10px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background-color: #1ebe58;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-btn i {
  font-size: 1.1rem;
}

/* Mobile menu removed - no longer needed */

/* Mobile menu animations and styles removed */

/* 4. Hero & Calculator Section */
#hero {
  text-align: center;
  padding: 120px 0 80px 0; /* Added top padding for fixed header */
  background-image: linear-gradient(
      135deg,
      rgba(231, 76, 60, 0.9),
      rgba(243, 156, 18, 0.8),
      rgba(211, 84, 0, 0.85)
    ),
    url("https://mydatemy.info/malay-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

#hero h1 {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
}

#hero p {
  max-width: 600px;
  margin: 0 auto 20px auto;
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}

#hero .earning-cta {
  max-width: 650px;
  margin: 40px auto 20px auto;
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  background: rgba(243, 156, 18, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Hero Action Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px auto 30px auto;
  max-width: 600px;
}

.hero-btn {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.hero-btn i {
  font-size: 1.2rem;
}

.calculator-wrapper {
  max-width: 700px;
  margin: 30px auto 0 auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

#earnings-calculator h2 {
  font-size: 1.8rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 5px;
  margin-bottom: 20px;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  transition: width 0.4s ease;
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.options-grid.single-column {
  grid-template-columns: 1fr;
}

.options-grid input[type="radio"] {
  display: none;
}

.options-grid .option-label {
  display: block;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.options-grid .option-label:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.options-grid input[type="radio"]:checked + .option-label {
  background: rgba(231, 76, 60, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff;
  border-color: rgba(231, 76, 60, 0.9);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.6);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* When Previous button is hidden (first step), align Next button to the right */
.form-navigation #prevBtn[style*="display: none"] ~ #nextBtn {
  margin-left: auto;
}

.btn-form {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-form.active {
  background: rgba(231, 76, 60, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff;
  border: 1px solid rgba(231, 76, 60, 0.9);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 5. Results Section */
#results {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.analysis-animation {
  margin-bottom: 30px;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.result-content h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.result-content .earning-display {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
}

.result-content .personalized-message {
  max-width: 500px;
  margin: 20px auto 30px auto;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px;
  border-radius: 8px;
  border-left: 5px solid rgba(231, 76, 60, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* WhatsApp instruction text */
.whatsapp-instruction {
  margin-top: 20px !important;
  font-size: 1rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  text-align: center;
  font-weight: 500;
  background: rgba(243, 156, 18, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 6. General Section Styling */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.card {
  background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.1);
}

.card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Partners Section - Infinite Scroll */
#partners {
  padding: 30px 0; /* More balanced vertical spacing */
  display: flex;
  align-items: center;
}

#partners .container {
  width: 100%;
}

#partners .logos-scroll-container {
  overflow: hidden;
  margin: 0; /* Remove margin to center properly */
  position: relative;
  padding: 15px 0; /* Balanced padding */
}

/* Fade effect on edges */
#partners .logos-scroll-container::before,
#partners .logos-scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

#partners .logos-scroll-container::before {
  left: 0;
  background: linear-gradient(to right, var(--light-color), transparent);
}

#partners .logos-scroll-container::after {
  right: 0;
  background: linear-gradient(to left, var(--light-color), transparent);
}

#partners .logos-scroll {
  display: flex;
  align-items: center;
  animation: scroll-logos 60s linear infinite;
  width: fit-content;
}

#partners .logo-item {
  flex: 0 0 auto;
  margin: 0 25px; /* Reduced from 40px */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px; /* Reduced from 120px */
}

#partners .logo-item img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 1;
  transition: all 0.3s ease;
}

#partners .logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Pause animation on hover */
#partners .logos-scroll-container:hover .logos-scroll {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Limited Time Tasks Section */
#limited-tasks {
  background: linear-gradient(135deg, #e74c3c 0%, #f39c12 50%, #d35400 100%);
  color: #fff;
  text-align: center;
}

#limited-tasks h2,
#limited-tasks h3 {
  color: #fff;
  text-align: center;
}

#limited-tasks p {
  text-align: center;
}

.wheel-game-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
  align-items: start;
}

.wheel-section {
  order: 1;
}

.task-highlights {
  order: 2;
}

/* Email Form Styles */
.email-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  text-align: center;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-color);
}

.email-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Prize Grid Game Styles */
.prize-grid-container {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 420px;
  margin: 0 auto 30px auto;
  position: relative;
}

.prize-box {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prize-box.disabled {
  opacity: 0.6;
}

/* Center Start Button Styles */
.prize-box.start-button {
  background: linear-gradient(135deg, #feca57 0%, #ff6b6b 100%);
  border: 3px solid #fff;
  cursor: pointer;
  transform: scale(1);
  animation: startButtonPulse 2s ease-in-out infinite;
}

.prize-box.start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(254, 202, 87, 0.8);
}

.prize-box.start-button.disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  animation: none;
  opacity: 0.6;
}

.prize-box.start-button .box-content {
  flex-direction: column;
  gap: 8px;
}

.prize-box.start-button .box-content i {
  font-size: 1.5rem;
  color: #fff;
}

.prize-box.start-button .prize-text {
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
}

@keyframes startButtonPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(254, 202, 87, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(254, 202, 87, 0.9);
  }
}

/* Shake animation for disabled button */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-3px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(3px);
  }
}

.prize-box.start-button.shake {
  animation: shake 0.6s ease-in-out;
}

/* Email input highlight animation */
@keyframes highlightInput {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(254, 202, 87, 0.3);
    border-color: rgba(254, 202, 87, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(254, 202, 87, 0.8);
    border-color: #feca57;
  }
}

.email-form input[type="email"].highlight {
  animation: highlightInput 1.5s ease-in-out 3;
  border-color: #feca57 !important;
}

/* Custom toast notification */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: slideInDown 0.3s ease-out;
  max-width: 90%;
  text-align: center;
}

.toast-notification.hide {
  animation: slideOutUp 0.3s ease-in forwards;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
}

/* Mobile toast animations */
@media (max-width: 768px) {
  @keyframes slideInDown {
    from {
      opacity: 0;
      transform: translateY(-100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideOutUp {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-100%);
    }
  }
}

.box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  font-weight: 600;
  padding: 10px;
}

.prize-text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* Grid Highlight - Moving selector */
.grid-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: calc((100% - 30px) / 3); /* Account for gap */
  height: calc((100% - 30px) / 3); /* Account for gap */
  background: linear-gradient(135deg, #feca57 0%, #ff6b6b 100%);
  border: 3px solid #fff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(254, 202, 87, 0.6);
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.grid-highlight.active {
  opacity: 1;
  animation: highlightPulse 0.5s ease infinite alternate;
}

.grid-highlight.final {
  animation: finalSelection 0.8s ease;
  box-shadow: 0 0 30px rgba(254, 202, 87, 0.9);
}

@keyframes highlightPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(254, 202, 87, 0.6);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(254, 202, 87, 0.8);
  }
}

@keyframes finalSelection {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Running Light Lottery styles */
.prize-box.running-light {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
  border: 3px solid #ff4757 !important;
  box-shadow: 0 0 25px #ff4757, inset 0 0 15px rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05) !important;
  animation: running-pulse 0.3s ease-in-out !important;
}

@keyframes running-pulse {
  0% {
    box-shadow: 0 0 25px #ff4757, inset 0 0 15px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 35px #ff4757, inset 0 0 25px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 25px #ff4757, inset 0 0 15px rgba(255, 255, 255, 0.3);
  }
}

/* Final result styles */
.prize-box.final-winner {
  background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
  border: 3px solid #ffd700 !important;
  box-shadow: 0 0 30px #ffd700, inset 0 0 20px rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.15) !important;
  animation: winner-glow 1s ease-in-out infinite alternate !important;
  z-index: 5;
}

.prize-box.final-thanks {
  background: linear-gradient(135deg, #e74c3c 0%, #d35400 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes winner-glow {
  0% {
    box-shadow: 0 0 30px #ffd700, inset 0 0 20px rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 50px #ffd700, inset 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

@keyframes winningPulse {
  0% {
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.5);
  }
  100% {
    box-shadow: 0 0 30px rgba(240, 147, 251, 0.8);
  }
}

.game-controls {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  margin-top: 40px;
}

.chances-left {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #feca57;
}

.game-instruction {
  margin: 0 0 25px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Result Modal */
.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  color: var(--dark-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: auto;
}

.modal-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Task Highlights */
.task-highlights h3 {
  text-align: center;
  margin-bottom: 30px;
}

.task-examples {
  display: grid;
  gap: 20px;
}

.task-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: transform 0.3s ease;
}

.task-card:hover {
  transform: translateY(-5px);
}

.task-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #ff6b6b;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.task-card h4 {
  color: #fff;
  margin-bottom: 10px;
}

.task-pay {
  font-size: 1.5rem;
  font-weight: 700;
  color: #feca57;
  margin: 10px 0;
}

.task-time {
  color: #4ecdc4;
  font-weight: 600;
  margin-bottom: 10px;
}

.task-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Hot Tasks Section */
#hot-tasks .grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#hot-tasks .card {
  text-align: left;
}

#hot-tasks .card h3 {
  margin-top: 15px;
}

/* Testimonials Section */
#testimonials .card {
  text-align: left;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  object-position: center;
}

.testimonial-author strong {
  display: block;
  color: var(--dark-color);
}

.testimonial-author span {
  font-size: 0.9rem;
}

.stars {
  color: #f7b731;
}

/* Stats Section */
#stats {
  background: linear-gradient(rgba(231, 76, 60, 0.85), rgba(243, 156, 18, 0.8)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop")
      center/cover no-repeat;
  color: #fff;
}

#stats h2 {
  color: #fff;
}

#stats .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

#stats .stat-item .stat-number {
  font-size: 3rem;
  font-weight: 700;
}

/* About Us Section */
#about-us .about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* FAQs Section */
#faqs .faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "\f078"; /* Font Awesome down arrow */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(-180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-answer p {
  padding: 0 10px 20px 10px;
}

/* Final CTA & Footer */
#final-cta {
  text-align: center;
}

footer {
  background-color: var(--dark-color);
  color: #ccc;
  padding: 40px 0;
  text-align: center;
}

footer .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 15px;
  display: inline-block;
}

footer .footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #fff;
}

footer .copyright {
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Scroll Animation Utility */
.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(20px);
  transition: all 1s;
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .grid-3,
  #stats .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Medium screen logo adjustments */
  #partners .logo-item {
    margin: 0 30px;
    min-width: 100px;
  }

  #partners .logo-item img {
    height: 35px;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  /* Mobile font size optimizations - FORCED */
  h1 {
    font-size: 2rem !important; /* Reduced from 2.5rem for mobile */
  }
  h2 {
    font-size: 1.6rem !important; /* Reduced from 2rem for mobile */
  }
  h3 {
    font-size: 1.3rem !important; /* Reduced from 1.5rem for mobile */
  }

  /* Body text optimization */
  body {
    font-size: 0.95rem !important; /* Slightly smaller base font size for mobile */
  }

  /* Hero section mobile optimization */
  #hero {
    padding: 100px 0 60px 0 !important; /* Adjusted for mobile fixed header */
    background-attachment: scroll !important; /* Fix background-attachment for mobile */
  }

  /* Header optimizations for mobile */
  .header-full-width.header-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .header-full-width.header-transparent {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #hero h1 {
    font-size: 2rem !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5) !important;
  }

  #hero p {
    font-size: 1rem !important; /* Reduced from 1.1rem for mobile */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6) !important;
  }

  /* Calculator form heading */
  #earnings-calculator h2 {
    font-size: 1.4rem !important; /* Reduced from 1.8rem for mobile */
  }

  /* Form labels */
  .form-group label {
    font-size: 1rem !important; /* Ensure readability on mobile */
  }

  /* Hero buttons mobile */
  .hero-buttons {
    gap: 15px;
    margin: 25px auto 20px auto;
    max-width: 400px;
  }

  .hero-btn {
    padding: 14px 20px;
    font-size: 1rem;
    min-width: 160px;
  }

  /* Navigation logo */
  .navbar .logo {
    font-size: 1.5rem !important; /* Reduced from 1.8rem for mobile */
  }

  /* Large display elements optimization */
  .result-content .earning-display {
    font-size: 2.2rem !important; /* Reduced from 3rem for mobile */
  }

  .card i {
    font-size: 2.2rem !important; /* Reduced from 3rem for mobile */
  }

  #stats .stat-item .stat-number {
    font-size: 2.2rem !important; /* Reduced from 3rem for mobile */
  }

  /* Task pay display */
  .task-pay {
    font-size: 1.2rem !important; /* Reduced from 1.5rem for mobile */
  }

  /* FAQ questions */
  .faq-question {
    font-size: 1rem !important; /* Reduced from 1.1rem for mobile */
  }

  /* Footer logo */
  footer .logo {
    font-size: 1.4rem !important; /* Reduced from 1.8rem for mobile */
  }

  /* Mobile Navigation Styles */
  .navbar-container {
    padding: 12px 15px;
  }

  /* Navigation menu styles removed */

  /* WhatsApp button mobile styles */
  .whatsapp-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  .whatsapp-text {
    display: inline; /* Keep text visible on mobile */
  }

  .whatsapp-btn i {
    font-size: 1.2rem;
  }

  .grid-3,
  #stats .grid-4 {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  #stats .grid-4 {
    gap: 50px;
  }

  /* Partners logos responsive */
  #partners {
    padding: 20px 0; /* Reduced for mobile but balanced */
  }

  #partners .logo-item {
    margin: 0 15px; /* Reduced from 20px */
    min-width: 70px; /* Reduced from 80px */
  }

  #partners .logo-item img {
    height: 30px;
    max-width: 80px;
  }

  /* Faster scroll on mobile */
  #partners .logos-scroll {
    animation-duration: 40s;
  }

  /* Limited Tasks responsive */
  .wheel-game-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* On mobile, show Premium Task Examples first, then Lucky Draw Grid */
  .wheel-section {
    order: 2;
  }

  .task-highlights {
    order: 1;
  }

  .prize-grid {
    max-width: 320px;
    gap: 12px;
  }

  .prize-text {
    font-size: 0.85rem;
  }

  .prize-box.start-button .box-content i {
    font-size: 1.2rem;
  }

  .prize-box.start-button .prize-text {
    font-size: 0.8rem;
  }

  .grid-highlight {
    width: calc((100% - 24px) / 3); /* Account for smaller gap */
    height: calc((100% - 24px) / 3);
  }

  /* Mobile Modal Fixes - Ultra Simplified */
  .result-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  .modal-content {
    background: white !important;
    border-radius: 15px !important;
    padding: 20px !important;
    max-width: 90vw !important;
    max-height: 80vh !important;
    width: 100% !important;
    overflow-y: auto !important;
    position: relative !important;
    z-index: 1000000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  }

  .modal-content h3 {
    margin-top: 0 !important;
    text-align: center !important;
    color: #333 !important;
  }

  .modal-content p {
    text-align: center !important;
    margin: 15px 0 !important;
    color: #666 !important;
  }

  .modal-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .modal-actions .btn {
    width: 100% !important;
    margin: 5px 0 !important;
  }

  /* Mobile toast adjustments */
  .toast-notification {
    top: 15px !important;
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
    padding: 15px 20px !important;
    font-size: 0.95rem !important;
    max-width: none !important;
    width: calc(100% - 20px) !important;
    border-radius: 12px !important;
    line-height: 1.4 !important;
  }
}

/* Extra small mobile devices (iPhone SE, etc.) */
@media (max-width: 480px) {
  /* Further reduce font sizes for very small screens - FORCED */
  h1 {
    font-size: 1.7rem !important;
  }
  h2 {
    font-size: 1.4rem !important;
  }
  h3 {
    font-size: 1.2rem !important;
  }

  /* Adjust body text */
  body {
    font-size: 0.9rem !important;
  }

  /* Hero section - extra small screens */
  #hero {
    padding: 90px 0 50px 0 !important; /* Adjusted for mobile fixed header */
  }

  #hero h1 {
    font-size: 1.7rem !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6) !important;
  }

  #hero p {
    font-size: 0.95rem !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7) !important;
  }

  #hero .earning-cta {
    font-size: 1rem !important;
    padding: 12px 20px !important;
    margin: 30px auto 15px auto !important;
  }

  /* Hero buttons mobile */
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    margin: 25px auto 20px auto !important;
    max-width: 300px;
  }

  .hero-btn {
    max-width: none;
    min-width: auto;
    padding: 14px 20px;
    font-size: 1rem;
  }

  /* Calculator form */
  #earnings-calculator h2 {
    font-size: 1.2rem !important;
  }

  .calculator-wrapper {
    padding: 25px 20px; /* Reduce padding for small screens */
  }

  /* Form labels and options */
  .form-group label {
    font-size: 0.95rem !important;
  }

  .options-grid .option-label {
    font-size: 0.9rem !important;
    padding: 12px 16px; /* Slightly smaller padding */
  }

  /* Navigation */
  .navbar .logo {
    font-size: 1.3rem !important;
  }

  /* Navigation links removed */

  /* Extra small mobile navigation */
  .navbar-container {
    padding: 10px 12px;
  }

  .whatsapp-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .whatsapp-btn i {
    font-size: 1.1rem;
  }

  /* Large display elements for very small screens */
  .result-content .earning-display {
    font-size: 1.8rem !important; /* Further reduced for very small screens */
  }

  .card i {
    font-size: 1.8rem !important; /* Further reduced for very small screens */
  }

  #stats .stat-item .stat-number {
    font-size: 1.8rem !important; /* Further reduced for very small screens */
  }

  /* Task pay display */
  .task-pay {
    font-size: 1.1rem !important; /* Further reduced for very small screens */
  }

  /* FAQ questions */
  .faq-question {
    font-size: 0.95rem !important; /* Further reduced for very small screens */
  }

  /* Footer logo */
  footer .logo {
    font-size: 1.2rem !important; /* Further reduced for very small screens */
  }

  /* Container padding */
  .container {
    padding: 0 15px; /* Reduce side padding */
  }

  /* Section padding */
  section {
    padding: 60px 0; /* Reduce top/bottom padding */
  }

  /* Toast notification for extra small screens */
  .toast-notification {
    top: 10px !important;
    left: 8px !important;
    right: 8px !important;
    width: calc(100% - 16px) !important;
    padding: 16px 18px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
  }

  /* WhatsApp instruction mobile */
  .whatsapp-instruction {
    margin-top: 15px !important;
    font-size: 0.9rem !important;
    padding: 10px 16px !important;
  }
}

/* Simple Game Result Display */
.game-result {
  margin-top: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  animation: slideIn 0.4s ease-out;
}

.game-result .result-content h4 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.game-result .result-content p {
  margin: 0 0 15px 0;
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.4;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-actions .btn {
  width: 100%;
  padding: 10px 16px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.result-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .game-result {
    margin: 20px 0;
    padding: 25px 20px;
    /* Add scroll margin to ensure better visibility when scrolled into view */
    scroll-margin-top: 20px;
    scroll-margin-bottom: 20px;
  }

  .game-result .result-content h4 {
    font-size: 1.3rem;
  }

  .game-result .result-content p {
    font-size: 1rem;
  }

  .result-actions .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Ensure game controls are visible when scrolled to */
  .game-controls {
    scroll-margin-top: 20px;
    scroll-margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .game-result {
    margin: 15px 0;
    padding: 20px 15px;
    /* Enhanced scroll margins for very small screens */
    scroll-margin-top: 30px;
    scroll-margin-bottom: 30px;
  }

  .game-result .result-content h4 {
    font-size: 1.2rem;
  }
}
