@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css');

:root {
  --primary-color: #0061E5;
  --secondary-color: #1a1a1a;
  --third-color: #2a2a2a;
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8B8;
  --accent-primary: #0785F6;
  --accent-secondary: #00D4FF;
  --bg-dark: #0f0f0f;
  --bg-card: rgba(26, 26, 26, 0.95);
  --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
}

img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.navbar .logo img,
.footer-logo img {
  width: auto;
  height: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Navbar */
.navbar {
  background-color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  border-bottom: 1px solid var(--border-color);
}

.navbar .logo img {
  height: 50px;
}

.navbar-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.navbar-menu li a {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar-menu li a:hover {
  color: var(--accent-primary);
  background: rgba(7, 133, 246, 0.1);
}

.navbar .auth-buttons {
  display: flex;
  gap: 10px;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  z-index: 1001;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu - Hidden on Desktop */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--secondary-color);
  border-left: 1px solid var(--border-color);
  padding: 80px 20px 20px;
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-navbar-menu {
  list-style: none;
  margin-bottom: 30px;
}

.mobile-navbar-menu li {
  margin-bottom: 10px;
}

.mobile-navbar-menu li a {
  display: block;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-navbar-menu li a:hover {
  background: rgba(7, 133, 246, 0.1);
  color: var(--accent-primary);
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-auth-buttons .btn {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-login {
  background-color: var(--text-primary);
  color: var(--secondary-color);
  border: 2px solid var(--text-primary);
}

.btn-register {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-login:hover {
  background-color: transparent;
  color: var(--text-primary);
}

.btn-register:hover {
  background-color: var(--text-primary);
  color: var(--secondary-color);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  padding: 60px 40px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-image {
  margin: 30px 0 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  min-height: 400px;
  display: block;
  object-fit: cover;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
}

.hero-subtext {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  text-align: justify;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--accent-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(7, 133, 246, 0.4);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  padding: 16px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-intro {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
}

/* Game Categories Section */
.game-categories {
  margin: 80px 0;
  padding: 60px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(7, 133, 246, 0.25);
}

.category-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.category-content {
  padding: 32px;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.category-icon i {
  filter: drop-shadow(0 4px 8px rgba(7, 133, 246, 0.3));
}

.category-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.category-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 20px;
}

.category-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.category-features li i {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

/* Featured Games Section */
.featured-games {
  margin: 80px 0;
  padding: 60px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(7, 133, 246, 0.25);
}

.featured-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.featured-content {
  padding: 24px;
}

.featured-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.featured-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 16px;
}

.game-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(7, 133, 246, 0.15);
  border: 1px solid rgba(7, 133, 246, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

.info-badge i {
  font-size: 0.9rem;
}

/* Game Providers Section */
.game-providers {
  margin: 80px 0;
  padding: 60px 0;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.provider-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.provider-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(7, 133, 246, 0.25);
}

.provider-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.provider-icon i {
  filter: drop-shadow(0 4px 8px rgba(7, 133, 246, 0.3));
}

.provider-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.provider-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: justify;
}

/* How to Play Section */
.how-to-play {
  margin: 80px 0;
  padding: 60px 0;
}

.play-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: translateX(8px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px rgba(7, 133, 246, 0.15);
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(7, 133, 246, 0.4);
}

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: justify;
}

/* Game Features Section */
.game-features {
  margin: 80px 0;
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(7, 133, 246, 0.25);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.feature-icon i {
  filter: drop-shadow(0 4px 8px rgba(7, 133, 246, 0.3));
}

.feature-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: justify;
}

/* FAQ Section */
.faq {
  margin: 80px 0;
  padding: 60px 0;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.faq-item:hover {
  border-color: var(--accent-primary);
  background: rgba(7, 133, 246, 0.05);
}

.faq-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  padding-right: 30px;
}

.faq-item h4::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.faq-item.active h4::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
  opacity: 0;
  margin-top: 0;
  text-align: justify;
}

.faq-item.active p {
  max-height: 1000px;
  opacity: 1;
  margin-top: 12px;
}

/* CTA Section */
.cta-section {
  margin: 80px 0;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cta-content p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  padding: 60px 80px 30px;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-column h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-copy {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-copy p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar {
    padding: 20px 40px;
    flex-wrap: wrap;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .providers-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
    padding: 15px 20px;
  }

  /* Hide desktop menu and auth buttons on mobile */
  .navbar-menu,
  .navbar .auth-buttons {
    display: none;
  }

  /* Show hamburger menu on mobile */
  .hamburger-menu {
    display: flex;
  }

  /* Show mobile menu overlay */
  .mobile-menu-overlay {
    display: block;
  }

  /* Ensure mobile menu is visible on small screens */
  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 40px 20px;
    margin: 20px 0;
  }

  .game-categories,
  .featured-games,
  .game-providers,
  .how-to-play,
  .game-features,
  .faq {
    margin: 50px 0;
    padding: 40px 20px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .providers-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }

  .footer {
    padding: 40px 20px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

