:root {
  --primary: #d4af37;
  --primary-dark: #b8860b;
  --secondary: #e84c3d;
  --accent: #20b2aa;
  --dark-bg: #0f1419;
  --card-bg: #1a1f2e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border: #2a3142;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

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

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 20, 25, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

/* Fix navbar container structure to match HTML */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

/* Style logo properly */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-symbol {
  font-size: 32px;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Fix navigation menu styling */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-size: 15px;
}

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

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

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

/* Style login button in navbar */
.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark-bg);
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(212, 175, 55, 0.3);
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

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

.logo h1 {
  font-size: 28px;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
  min-height: 80vh;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

/* Enhanced hero title with gradient, glow animation, and better visual appeal */
.hero-title {
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #d4af37 0%, #20b2aa 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: titleGlow 4s ease-in-out infinite, titleShimmer 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
  position: relative;
  word-spacing: 10px;
}

/* Added shimmer effect for dynamic visual interest */
@keyframes titleShimmer {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)) drop-shadow(0 0 40px rgba(32, 178, 170, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(32, 178, 170, 0.6)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.3));
  }
}

/* Added scale and rotation for enhanced glow effect */
@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 0 20px rgba(32, 178, 170, 0.3);
  }
  50% {
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 50px rgba(32, 178, 170, 0.5);
  }
}

.hero-subtitle {
  font-size: 24px;
  color: #20b2aa;
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 500px;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark-bg);
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease;
}

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

/* Section Title */
.section-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Featured Games */
.featured-games {
  padding: 80px 20px;
  background-color: var(--dark-bg);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.game-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.game-info {
  padding: 20px;
}

.game-info h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 18px;
}

.game-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 14px;
}

.rating {
  color: #ffd700;
}

.players {
  color: var(--accent);
}

.game-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Tournaments */
.tournaments {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tournament-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.tournament-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 15px 35px rgba(232, 76, 61, 0.2);
}

.tournament-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tournament-info {
  padding: 20px;
}

.tournament-info h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 18px;
}

.tournament-details {
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tournament-details p {
  margin-bottom: 8px;
}

.status-live {
  color: #ff4444;
  font-weight: bold;
}

.status-upcoming {
  color: #ffb800;
  font-weight: bold;
}

.join-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--secondary), #d63a28);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(232, 76, 61, 0.3);
}

/* Leaderboard */
.leaderboard {
  padding: 80px 20px;
  background-color: var(--dark-bg);
}

.leaderboard-table {
  overflow-x: auto;
  border-radius: 15px;
  border: 2px solid var(--border);
  background: var(--card-bg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--dark-bg);
}

table th {
  padding: 20px;
  text-align: left;
  font-weight: bold;
}

table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

table tbody tr {
  transition: all 0.3s ease;
}

table tbody tr:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

.rank-1 {
  background: rgba(212, 175, 55, 0.2);
}

.rank-2 {
  background: rgba(192, 192, 192, 0.1);
}

.rank-3 {
  background: rgba(205, 127, 50, 0.1);
}

/* Community Stats */
.community {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stat-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.stat-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 18px;
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  text-align: center;
  color: var(--dark-bg);
}

.cta-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button-large {
  background: var(--dark-bg);
  color: var(--primary);
  border: 3px solid var(--dark-bg);
  padding: 18px 50px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
  padding: 80px 20px;
  background-color: var(--dark-bg);
}

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

.contact-form input,
.contact-form textarea {
  padding: 15px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark-bg);
  border: none;
  padding: 15px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Footer */
.footer {
  background: rgba(15, 20, 25, 0.98);
  border-top: 2px solid var(--primary);
  padding: 50px 20px 20px;
  margin-top: 50px;
}

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

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

.footer-section p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

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

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

.social-links {
  display: flex;
  gap: 15px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-secondary);
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 20px;
  }

  /* Responsive hero title size for mobile */
  .hero-title {
    font-size: 42px;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.98);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 400px;
  }

  .nav-links li {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
  }

  .games-grid,
  .tournaments-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  table {
    font-size: 14px;
  }

  table th,
  table td {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 28px;
  }

  .logo h1 {
    font-size: 20px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 30px;
  }
}
