/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF3E3E;
    --secondary-color: #1E1E1E;
    --background-dark: #0A0A0A;
    --text-color: #FFFFFF;
    --text-secondary: #CCCCCC;
    --border-color: #333333;
    --success-color: #4CAF50;
    --overlay-color: rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-dark);
}

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

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: #cc2e2e;
    color: white;
}


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

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

.btn-login {
    background-color: transparent;
    border: 1px solid white;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* Header Styles */
.header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;

} 

nav {
    display: block;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin: 0 30px;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
}

/* Games Section */
.games-section {
    padding: 80px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: start;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.game-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

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

.btn-play {
  display: block;
  margin-top: 15px;
  padding: 12px 0;
  width: 100%;
  max-width: 220px;
  text-align: center;
  font-weight: bold;
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-play:hover {
  background-color: #cc2e2e;
  border-color: #cc2e2e;
}

.game-card .btn {
    display: block;
    margin: 15px;

    
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #2A2A2A;
    color: var(--text-color);
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    margin-top: 10px;
    width: 100%;
    padding: 15px;
}

/* Footer Styles */
.footer {
    background-color: var(--secondary-color);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }


}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        text-align: center;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    .auth-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 10px;
        margin-top: 10px;

    }


    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .game-card {
        max-width: 100%;
    }

    .btn-play {
        max-width: 100%;
    }
    .game-img {
        height: auto;
    }


    .btn {
        width: 80%;
    }
}






@media (max-width: 520px) {
    .section-title {
        font-size: 22px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero-text {
        font-size: 16px;
    }

    .btn, .btn-secondary {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }

    .footer-content {
        font-size: 14px;
    }
    nav {
        display: block;
    }
    .nav-list {
        align-items: center;
    }
      .games-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .game-card {
    max-width: 100%;
  }

  .btn-play {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
    .nav-list {
        padding-left: 0;
    }

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

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

      .game-card {
    max-width: 100%;
  }

  .btn-play {
    max-width: 100%;
  }
   .game-img {
        height: auto;
    }

}

/* Additional Enhancements */
.header-container .logo {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

nav {
    display: none;
}


.auth-buttons a {
    width: auto;
    min-width: 140px;
    justify-content: center;

}

.hero img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}