:root {
  --primary: #ff5500;
  --primary-dark: #e04e00;
  --dark: #222;
  --light: #f8f8f8;
  --gray: #777;
  --card-bg: #fafafa;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ Header & Navigation ============ */
header {
  background-color: rgba(0, 0, 0, 0.95);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  padding: 0 2rem 0 2rem;
}

header.scrolled {
  padding: 0.5rem 2rem 0.5rem 2rem;
  background-color: rgba(0, 0, 0, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 50px;
  transition: var(--transition);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  width: 100%;
}

/* ============ Hero Section ============ */
.hero {
  background: linear-gradient(135deg, #F93801 0%, #FE7C0E 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(255,255,255,0.05)" width="50" height="50"/><rect fill="rgba(255,255,255,0.05)" x="50" y="50" width="50" height="50"/></svg>');
  background-size: 30px 30px;
  opacity: 0.5;
}

.hero-content {
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease;
}

.hero-btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  animation: fadeInUp 1.4s ease;
}

.hero-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: #f0f0f0;
}

/* ============ About Section ============ */
.about {
  padding: 5rem 0;
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
}

.simplified-about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-logo {
  flex: 0 1 300px;
  text-align: center;
}

.about-logo img {
  max-width: 100%;
  height: auto;
}

.about-description {
  flex: 1 1 300px;
}

.about-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
}

/* ============ Stats Section ============ */
.stats {
  background: linear-gradient(135deg, #F93801 0%, #FE7C0E 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.stats h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  font-weight: 800;
}

.counter {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.counter-text {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ============ Games Section ============ */
.games {
  padding: 5rem 0;
  background-color: var(--light);
}

.games-category {
  margin-bottom: 5rem;
}

.games-category:last-child {
  margin-bottom: 0;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -75px;
}

.next-btn {
  right: -75px;
}

/* Games Carousel */
.games-carousel {
  overflow: hidden;
  width: 100%;
}

.games-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2.5rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #e0e0e0;
}

.games-grid::-webkit-scrollbar {
  height: 8px;
}

.games-grid::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.games-grid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.games-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Game Card */
.game-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 300px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.game-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.game-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.game-description {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.game-platforms {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.platform {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.game-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.game-btn {
  flex: 1;
  min-width: 120px;
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.game-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
}

.game-btn.coming-soon {
  background: #ddd;
  color: var(--dark);
  border-color: #ddd;
  cursor: not-allowed;
}

.game-btn.coming-soon:hover {
  background: #ddd;
  border-color: #ddd;
  transform: translateY(0);
}

/* ============ Contact Section ============ */
.contact {
  padding: 6rem 0;
  background: linear-gradient(135deg, #222 0%, #333 100%);
  color: white;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(255,255,255,0.03)" width="50" height="50"/><rect fill="rgba(255,255,255,0.03)" x="50" y="50" width="50" height="50"/></svg>');
  background-size: 20px 20px;
}

.contact-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.contact-subtitle {
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  gap: 1rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
  background: white;
}

.form-btn {
  background: var(--primary);
  border: none;
  padding: 1rem;
  color: white;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.form-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============ Footer ============ */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 85, 0, 0.2);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.newsletter-btn:hover {
  background: var(--primary-dark);
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.copyright a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.copyright a:hover {
  text-decoration: underline;
}

/* ============ Animations ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============ Responsive Design ============ */
@media (max-width: 1024px) {
  .prev-btn {
    left: -60px;
  }

  .next-btn {
    right: -60px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.show {
    max-height: 300px;
  }

  .main-nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero {
    padding-top: 80px;
    min-height: 90vh;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .about, .games, .contact {
    padding: 3rem 0;
  }

  .stats {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .carousel-wrapper {
    gap: 0;
    padding: 0 50px;
  }

  .games-grid {
    padding: 2rem 1rem;
  }

  .game-card {
    flex: 0 0 calc(70% - 0.75rem);
    min-width: 280px;
  }

  .form-group {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .simplified-about {
    flex-direction: column;
    gap: 2rem;
  }

  .about-logo {
    flex-basis: 100%;
  }

  .about-description {
    flex-basis: 100%;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .logo {
    height: 40px;
  }

  .game-card {
    flex: 0 0 calc(100% - 0rem);
    min-width: 100%;
  }

  .carousel-btn {
    display: none;
  }

  .games-grid {
    scroll-snap-type: x mandatory;
  }

  .game-card {
    scroll-snap-align: start;
  }

  .hero {
    min-height: 80vh;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
  }

  .contact-form {
    gap: 1rem;
  }

  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* ============ Utilities ============ */
@supports (scroll-snap-type: x mandatory) {
  .games-grid {
    scroll-snap-type: x mandatory;
  }

  .game-card {
    scroll-snap-align: center;
  }
}

