:root {
  --color-primary: #4A90E2;
  --color-secondary: #7B68EE;
  --color-accent: #50E3C2;
  --color-background: #FAFBFC;
  --color-surface: #FFFFFF;
  --color-mgm-red: #E74C3C;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --border-radius-soft: 20px;
  --border-radius-medium: 16px;
  --border-radius-small: 12px;
  
  --shadow-soft: 0 8px 32px rgba(74, 144, 226, 0.12);
  --shadow-medium: 0 16px 48px rgba(74, 144, 226, 0.16);
  --shadow-strong: 0 24px 64px rgba(74, 144, 226, 0.20);
  
  --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #7B68EE 100%);
  --gradient-accent: linear-gradient(135deg, #50E3C2 0%, #4A90E2 100%);
  --gradient-red: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--color-background);
  font-family: var(--font-body);
  line-height: 1.6;
  color: #2C3E50;
}

.container, .container-sm, .container-md, .container-lg, .container-xl, .container-2xl {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 2.2rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #34495E;
}

.hero-section {
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #FAFBFC 0%, #F0F4F8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(123, 104, 238, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.mgm-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-mgm-red);
  margin-bottom: 3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #34495E;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

.cta-primary {
  background: var(--gradient-red);
  border: none;
  border-radius: var(--border-radius-soft);
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s ease-out 0.6s both;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.cta-primary:hover::before {
  left: 100%;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-soft);
  padding: 2.5rem;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.3), transparent);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--border-radius-soft);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  border: 1px solid rgba(74, 144, 226, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-medium);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-secondary {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-medium);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.decorative-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.decorative-shape.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.decorative-shape.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 15%;
  animation-delay: 2s;
}

.decorative-shape.shape-3 {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 30%;
  animation-delay: 4s;
}

.games-showcase {
  background: linear-gradient(135deg, #FAFBFC 0%, #F0F4F8 100%);
  padding: 6rem 0;
  position: relative;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.game-card {
  background: var(--color-surface);
  border-radius: var(--border-radius-soft);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  border: 1px solid rgba(123, 104, 238, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary, linear-gradient(135deg, #7B68EE 0%, #50E3C2 100%));
}

.game-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: var(--shadow-strong);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-medium);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.game-description {
  font-size: 0.95rem;
  color: #7F8C8D;
  line-height: 1.6;
}

.mega-container {
  max-width: 100vw !important;
  width: 100vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.stats-section {
  background: var(--color-surface);
  padding: 4rem 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  position: relative;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #7F8C8D;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.floating-element {
  animation: float 8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .glass-card, .feature-card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.glow-effect {
  box-shadow: 0 0 30px rgba(74, 144, 226, 0.3);
}

.animated-gradient {
  background: linear-gradient(-45deg, #4A90E2, #7B68EE, #50E3C2, #4A90E2);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.pulse-border {
  position: relative;
}

.pulse-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pulse-border:hover::before {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.05);
    opacity: 0;
  }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}