/* Variables */
:root {
  --font-heading: 'Poppins', sans-serif;
  --white-primary: #f8fafc;
  --secondary-bg: #4f46e5;
  --dark-purple: #1e293b;
  --shadow-dark: rgba(15, 23, 42, 0.6);
}

/* Apply Poppins globally */
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400; /* default weight */
}
html { scroll-behavior: smooth; }
/* For headings: use bolder weights */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}
/* Make buttons a bit bolder */
button, .cta-button, .bg-gradient-to-r {
  font-weight: 600;
}

/* Logo breathing animation */
@keyframes logoBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.logo {
  animation: logoBreath 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

/* Hero Section and Gradient main title with glow & slide in */
@keyframes titleGlow {
  0%,100% { text-shadow: 0 0 10px #10b981; }
  50% { text-shadow: 0 0 20px #10b981; }
}
@keyframes titleSlideIn {
  0% { transform: translateY(30px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.title-gradient {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  background: linear-gradient(90deg, #059669 28.5%, #3b82f6 50.5%, #1d4ed8 76.5%, #10b981 91.5%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: titleGlow 4s ease-in-out infinite, titleSlideIn 1.2s ease 0.5s both;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: #0f172a; /* fallback background */
}

#diceCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-section > div {
  position: relative;
  z-index: 10;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-float-reverse {
  animation: float-reverse 3s ease-in-out infinite;
}

@keyframes casinoPatternFloat {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

.badge-glow {
  text-shadow:
          0 0 4px rgba(248, 250, 252, 0.4),
          0 0 8px rgba(16, 185, 129, 0.7),
          0 0 12px rgba(59, 130, 246, 0.7);
  box-shadow:
          0 0 5px rgba(16, 185, 129, 0.4),
          0 0 10px rgba(59, 130, 246, 0.4);
}
@keyframes floatY {
  0%, 100% { transform: translate(-50%, -60%); }
  50% { transform: translate(-50%, -40%); }
}

.animate-float {
  animation: floatY 3s ease-in-out infinite;
}

.border-gradient {
  border-left: 2px solid;
  border-image: linear-gradient(to bottom, #059669, #3b82f6, #10b981) 1;
}

.border-gradient-to-r {
  border-image: linear-gradient(to right, #059669, #3b82f6) 1;
}

/* Nav link + active gradient underline */
.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
  font-weight: 500; /
}
.nav-link:hover {
  color: #059669; /* hover color */
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #059669, #3b82f6, #1d4ed8, #10b981);
  border-radius: 2px;
}
.navbar-gradient-border::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #059669, #6366f1, #3b82f6);
}

#ageModal .text-2xl {
  background: linear-gradient(90deg, #059669, #3b82f6, #1d4ed8, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGlow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
.animate-pulse-slow {
  animation: pulse-slow 8s infinite;
}

/* Testimonial Section */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.7); }
  50% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.9); }
}
.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
.animate-fade-in-left {
  animation: fadeInLeft 1s ease forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}
.animate-pulse-slow {
  animation: pulseSlow 6s ease-in-out infinite;
}
/* Highlight selected user */
.active-user {
  background: linear-gradient(to right, rgba(5, 150, 105, 0.2), rgba(59, 130, 246, 0.2));
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.4);
}
.user-card.active-user {
  background: linear-gradient(to right, #10b981cc, #3b82f6cc);
  border-color: #10b981;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(16,185,129,0.4);
}

/* Games Page */
.filter-btn.active {
  background: linear-gradient(to right, #059669, #3b82f6);
  color: #f8fafc;
  border: none !important;
}


/* Responsible Gaming */

.glass-bg {
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(248, 250, 252, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(15,23,42,0.4);
}

#mobile-menu {
  transition: all 0.3s ease;
}

/* Live gradient animation for heading */
.animated-gradient-text {
  background: linear-gradient(-45deg, #059669, #3b82f6, #fbbf24, #6366f1);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

canvas#diceCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.25;
}

/* Popup styling */
.popup {
  left: 20px;
  bottom: 20px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 1px solid #0f172a;
  border-radius: 12px;
  padding: 1.5rem;
  z-index: 3000;
  max-width: 380px;
  box-shadow: 0 10px 40px rgba(15,23,42,0.6);
  transform: translateY(200%);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: bannerSlideIn 0.5s ease, bannerFloat 4s ease-in-out infinite 2s;
  color: #f8fafc;
}

/* Popup subtle float */
@keyframes bannerFloat {
  0%, 100% { transform: translateY(200%) translateY(-2px); }
  50% { transform: translateY(200%) translateY(2px); }
}

@media (max-width: 1024px) {
  .spinfam-logo {
    margin-left: 20px;
  }
  .mobile-menuicon{
    margin-right: 20px;
  }
  .mobile-txt{
    padding: 0 !important;
    line-height: 1.4 !important;
  }
}