/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --primary-gold: #FFD700;
  --secondary-gold: #FFC107;
  --deep-red: #DC143C;
  --emerald-green: #50C878;
  --dark-green: #228B22;
  --casino-black: #1a1a1a;
  --casino-dark: #2d2d2d;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --text-light: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.15);
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
  --red-gradient: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
  --green-gradient: linear-gradient(135deg, #50C878 0%, #228B22 100%);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Running Ticker */
.ticker-container {
  background: var(--gold-gradient);
  color: var(--casino-black);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-weight: 600;
  position: relative;
  z-index: 100;
}

.ticker-content {
  display: inline-block;
  animation: scroll-left 60s linear infinite;
  padding-left: 100%;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.auth-buttons a {
  background: var(--gold-gradient);
  color: var(--casino-black);
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 1rem;
  border: none;
  outline: none;
}

.auth-buttons a:hover,
.auth-buttons a:focus {
  background: var(--red-gradient);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px var(--shadow);
}

/* Responsive: Hide auth-buttons on small screens (show in mobile menu) */
@media (max-width: 768px) {
  .auth-buttons {
    display: none;
  }
}


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

/* Header */
.header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-gold);
  position: sticky;
  top: 0;
  z-index: 99;
  transition: all 0.3s ease;
}

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

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
	display: flex;
	align-items: center;
	gap: 10px;
  font-weight: 800;
  color: var(--primary-gold);
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.logo img {
	width: 60px;
	height: 60px;
	border-radius: 30px;
	object-fit: cover;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px var(--primary-gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--gold-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 140px);
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(220, 20, 60, 0.1) 100%);
  border-radius: 20px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 215, 0, 0.02) 2px,
    rgba(255, 215, 0, 0.02) 4px
  );
  animation: shimmer 20s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px var(--primary-gold)); }
  to { filter: drop-shadow(0 0 20px var(--primary-gold)); }
}

.hero h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 30px;
  color: var(--emerald-green);
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  margin: 10px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--casino-black);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: var(--red-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.btn-success {
  background: var(--green-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(80, 200, 120, 0.4);
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 98;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.floating-btn:hover {
  transform: scale(1.1);
  animation: none;
}

.floating-btn.register {
  background: var(--gold-gradient);
  color: var(--casino-black);
}

.floating-btn.login {
  background: var(--red-gradient);
  color: var(--white);
}

.floating-btn.play {
  background: var(--green-gradient);
  color: var(--white);
}

/* Cards */
.card {
  background: linear-gradient(145deg, rgba(45, 45, 45, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.card:hover::before {
  left: 100%;
}

.card h3 {
  color: var(--primary-gold);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.game-card {
  background: linear-gradient(145deg, var(--casino-dark) 0%, var(--casino-black) 100%);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
}

.game-image {
  height: 200px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--casino-black);
  position: relative;
  overflow: hidden;
}

.game-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.game-image img, .crash-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-card:hover .game-image::after {
  width: 100px;
  height: 100px;
}

.game-info {
  padding: 20px;
}

.game-title {
  color: var(--primary-gold);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.game-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.stat {
  text-align: center;
}

.stat-value {
  color: var(--emerald-green);
  font-weight: 600;
  display: block;
}

.stat-label {
  color: #888;
  font-size: 0.8rem;
}

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: rgba(45, 45, 45, 0.5);
  border-radius: 10px;
  border-left: 4px solid var(--primary-gold);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(45, 45, 45, 0.8);
  transform: translateX(10px);
}

.feature-icon {
  color: var(--primary-gold);
  font-size: 1.5rem;
  margin-top: 5px;
}

.feature-text {
  color: var(--text-light);
  line-height: 1.6;
}

/* Table Styling */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: rgba(45, 45, 45, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.comparison-table th {
  background: var(--gold-gradient);
  color: var(--casino-black);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison-table td {
  color: var(--text-light);
}

.comparison-table tr:hover {
  background: rgba(255, 215, 0, 0.1);
}

.winner-badge {
  background: var(--green-gradient);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.testimonial {
  background: rgba(45, 45, 45, 0.8);
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid var(--emerald-green);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(80, 200, 120, 0.2);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-gold);
  opacity: 0.3;
}

.testimonial-text {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  color: var(--primary-gold);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--casino-black);
  border-top: 2px solid var(--primary-gold);
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: var(--primary-gold);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
  color: var(--text-light);
  margin-bottom: 8px;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  padding-top: 20px;
  color: #888;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bounce-in {
  animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.slide-in-left {
  transform: translateX(-100px);
  opacity: 0;
  animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  transform: translateX(100px);
  opacity: 0;
  animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 20px;
  }
  
  .floating-actions {
    right: 15px;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--casino-black);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .floating-actions {
    bottom: 20px;
    right: 20px;
    top: auto;
    transform: none;
    flex-direction: row;
  }
  
  .game-grid {
    grid-template-columns: 1fr;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 40px 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .floating-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-gold);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}