/* ===== BASE STYLES & VARIABLES ===== */
:root {
  /* Color Palette */
  --primary-color: #6c5ce7;
  --primary-dark: #5649c0;
  --secondary-color: #00cec9;
  --accent-color: #fd79a8;
  --dark-color: #2d3436;
  --light-color: #f5f6fa;
  --text-color: #2d3436;
  --text-light: #636e72;
  --text-header-color: #dfe6e9;
  --text-header-light: #b2bec3;
  
  /* Spacing & Effects */
  --border-radius: 8px;
  --box-shadow: 0 4px 6px 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;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.section-spacing {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 60px 0;
  }
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
}

.primary-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.secondary-button {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.secondary-button:hover {
  background-color: #00b5ad;
}

/* ===== HEADER ===== */
.main-header {
  background-color: var(--dark-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* position: sticky; */
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 40px;
  width: auto;
}

.title-wrapper h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-header-color);
  margin: 0;
  line-height: 1.2;
}

.title-wrapper .tagline {
  font-size: 0.75rem;
  color: var(--text-header-light);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  color: var(--text-header-color);
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.main-nav a:hover {
  color: var(--text-header-light);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-header-color);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-header-color);
  cursor: pointer;
  padding: 5px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, rgba(11, 11, 12, 0.9), rgba(32, 45, 45, 0.9));
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('game-pattern.png') center/cover;
  opacity: 0.7;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 600px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== GAMES SECTION ===== */
.games-section {
  padding: 30px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  position: relative;
  color: var(--dark-color);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.game-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.game-card-image {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.play-button {
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
}

.play-button:hover {
  background-color: #e84393;
}

.game-card-info {
  padding: 20px;
}

.game-card-info h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

.game-card-info p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.game-category {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.game-rating {
  color: var(--warning-color);
}

.coming-soon .game-card-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

.coming-soon-badge {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== NEWS SECTION ===== */
.news-section {
  padding: 5px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.news-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
}

.news-card:nth-child(1) { animation-delay: 0.3s; }
.news-card:nth-child(2) { animation-delay: 0.4s; }
.news-card:nth-child(3) { animation-delay: 0.5s; }

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  position: relative;
  overflow: hidden;
  height: 180px;
  flex-shrink: 0;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.news-card:hover .news-card-overlay {
  opacity: 1;
}

.read-more-button {
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.read-more-button:hover {
  background-color: #e84393;
  color: white;
}

.news-card-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-info h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
  font-size: 1.1rem;
  line-height: 1.3;
}

.news-card-info h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card-info h3 a:hover {
  color: var(--primary-color);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.news-card-info p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .news-card-info {
    padding: 15px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 250px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: white;
}

.footer-brand p {
  color: #b2bec3;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b2bec3;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #b2bec3;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--secondary-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT PAGE STYLES ===== */
.about-hero {
  background: linear-gradient(135deg, rgba(24, 24, 26, 0.9), rgba(79, 82, 82, 0.9));
  color: white !important;
  padding: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('game-pattern.png') center/cover;
  opacity: 0.7;
  z-index: 0;
}

.about-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white !important;
}

.about-hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.about-content {
  padding: 60px 0;
}

.about-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.about-icon {
  font-size: 3rem;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.about-card h3 {
  margin-bottom: 20px;
  color: var(--dark-color);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.feature i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature h4 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

.about-team {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-team h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-team p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about-hero {
    padding: 30px 0;
  }
  
  .about-card {
    padding: 30px 20px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ===== PRIVACY POLICY STYLES ===== */
.privacy-hero {
  background: linear-gradient(135deg, rgba(24, 24, 26, 0.9), rgba(79, 82, 82, 0.9));
  color: white !important;
  padding: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.privacy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('game-pattern.png') center/cover;
  opacity: 0.7;
  z-index: 0;
}

.privacy-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white !important;
}

.privacy-hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.privacy-content {
  padding: 60px 0;
}

.privacy-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-card h3 {
  color: var(--primary-color);
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-card h3:first-child {
  margin-top: 0;
}

.privacy-card h4 {
  color: var(--dark-color);
  margin: 25px 0 10px;
  font-size: 1.1rem;
}

.privacy-card ul {
  margin: 15px 0;
  padding-left: 20px;
}

.privacy-card li {
  margin-bottom: 8px;
}

.privacy-summary {
  background: rgba(108, 92, 231, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin-top: 30px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.privacy-summary i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 3px;
}

.privacy-summary p {
  margin: 0;
}

@media (max-width: 768px) {
  .privacy-hero {
    padding: 60px 0;
  }
  
  .privacy-card {
    padding: 30px 20px;
  }
  
  .privacy-card h3 {
    font-size: 1.3rem;
  }
}
/* ===== TERMS OF SERVICE STYLES ===== */
.terms-hero {
  background: linear-gradient(135deg, rgba(24, 24, 26, 0.9), rgba(79, 82, 82, 0.9));
  color: white !important;
  padding: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('game-pattern.png') center/cover;
  opacity: 0.7;
  z-index: 0;
}

.terms-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white !important;
}

.terms-hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.terms-content {
  padding: 60px 0;
}

.terms-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.terms-intro {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.terms-intro i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 3px;
}

.terms-card h3 {
  color: var(--primary-color);
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terms-card h3:first-child {
  margin-top: 0;
}

.terms-card ul {
  margin: 15px 0;
  padding-left: 20px;
}

.terms-card li {
  margin-bottom: 8px;
}

.terms-contact {
  background: rgba(108, 92, 231, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 60px 0;
  }
  
  .terms-card {
    padding: 30px 20px;
  }
  
  .terms-card h3 {
    font-size: 1.3rem;
  }
  
  .terms-intro {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--dark-color) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-150%);
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 999;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav a {
    color: var(--text-header-color) !important; /* Force white text color */
    padding: 10px 0; /* Added some vertical padding */
    display: block; /* Make links full width */
  }
  
  .main-nav a:hover {
    color: var(--secondary-color) !important; /* Use secondary color for hover */
  }
  
  .mobile-menu-button {
    display: block;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-header-color);
    cursor: pointer;
    padding: 5px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 20px 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .button {
    width: 100%;
    max-width: 250px;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 20px;
    transform: translateY(-150%);
    transition: var(--transition);
    opacity: 0;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 20px 20px;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .title-wrapper h1 {
    font-size: 1.3rem;
  }
  
  .tagline {
    display: none;
  }
  
  .logo {
    height: 35px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}