/* Main Styles */
:root {
  /* Primary Colors */
  --primary: #00b3ff;
  --primary-light: #4dc9ff;
  --primary-dark: #0080b3;
  
  /* Secondary Colors */
  --secondary: #8a2be2;
  --secondary-light: #a15ee8;
  --secondary-dark: #6a1cb0;
  
  /* Accent Colors */
  --accent: #ff3860;
  --accent-light: #ff6b88;
  --accent-dark: #d81a42;
  
  /* Success, Warning, Error */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Neutrals */
  --black: #121212;
  --dark-gray: #1f1f1f;
  --mid-gray: #333333;
  --light-gray: #9ca3af;
  --off-white: #e5e7eb;
  --white: #ffffff;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 179, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 179, 255, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

.btn-play {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-play:hover {
  background: var(--accent-light);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.logo img {
  height: 50px;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: var(--space-md);
}

.nav-menu a {
  color: var(--white);
  font-weight: 600;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/191919.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

.hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 179, 255, 0.2), rgba(138, 43, 226, 0.2));
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--white);
  text-shadow: 0 0 10px rgba(0, 179, 255, 0.8);
  animation: glow 2s infinite alternate;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
}

/* Games Section */
.games-section {
  padding: var(--space-xxl) 0;
  background-color: var(--black);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 179, 255, 0.4);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  color: var(--light-gray);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.game-card {
  background-color: var(--dark-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 179, 255, 0.5);
}

.game-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-card h3 {
  padding: var(--space-sm) var(--space-md);
  font-size: 1.3rem;
  color: var(--primary);
}

.game-card p {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--off-white);
  font-size: 0.9rem;
}

/* About Section */
.about-section {
  padding: var(--space-xxl) 0;
  background-color: var(--dark-gray);
}

.about-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 179, 255, 0.4);
  margin-bottom: var(--space-md);
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--off-white);
}

.about-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(138, 43, 226, 0.5);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Features Section */
.features-section {
  padding: var(--space-xxl) 0;
  background-color: var(--black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-card {
  background-color: var(--dark-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 179, 255, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  text-shadow: 0 0 10px rgba(0, 179, 255, 0.6);
}

.feature-card h3 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--light-gray);
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  padding-top: var(--space-xl);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  height: 40px;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--mid-gray);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 179, 255, 0.4);
}

.footer-middle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--mid-gray);
  padding-bottom: var(--space-lg);
}

.footer-nav h4 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.footer-nav ul li {
  margin-bottom: var(--space-xs);
}

.footer-nav ul li a {
  color: var(--light-gray);
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--primary);
}

.age-disclaimer {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.age-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--error);
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
}

.age-disclaimer p {
  font-size: 0.9rem;
  color: var(--light-gray);
}

.footer-bottom {
  text-align: center;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--mid-gray);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 8px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }
  
  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-menu li {
    margin: var(--space-sm) 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .games-grid, 
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-middle {
    grid-template-columns: 1fr;
  }
  
  .age-disclaimer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .games-grid, 
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    gap: var(--space-md);
  }
}


.game-iframe-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 60px 0;
  min-height: 70vh;
  background: #181c2f;
}

.game-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #000a;
}

.iframe-wrapper {
  width: 100%;
  max-width: 900px;
  min-height: 600px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.35);
  border-radius: 18px;
  overflow: hidden;
  background: #22243a;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 12px;
  background: #111;
  transition: box-shadow 0.3s;
}

@media (max-width: 1000px) {
  .iframe-wrapper, .iframe-wrapper iframe {
    max-width: 100vw;
    height: 400px;
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  .game-title {
    font-size: 1.5rem;
  }
  .iframe-wrapper, .iframe-wrapper iframe {
    height: 250px;
    min-height: 250px;
  }
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}