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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #333;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-play,
.btn-submit {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #ff6b35;
  color: white;
}

.btn-primary:hover {
  background-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #ff6b35;
  border: 2px solid #ff6b35;
}

.btn-secondary:hover {
  background-color: #ff6b35;
  color: white;
  transform: translateY(-2px);
}

.btn-play {
  background-color: #4cb9e7;
  color: white;
}

.btn-play:hover {
  background-color: #3a9bc1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(76, 185, 231, 0.3);
}

.btn-submit {
  background-color: #ff6b35;
  color: white;
  width: 100%;
}

.btn-submit:hover {
  background-color: #e55a2b;
  transform: translateY(-2px);
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.underline {
  width: 80px;
  height: 4px;
  background-color: #ff6b35;
  margin: 0 auto;
  border-radius: 2px;
}

/* Navigation */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-link {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #ff6b35;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff6b35;
  transition: width 0.3s ease;
}

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

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

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: #333;
}

/* Hero Section */
.hero {
  background-image: url(./assets/images/bg.png);
  padding: 200px 0 50px;
  margin-top: 70px;
  background-repeat: no-repeat;
  background-position: center;
  background-size:cover;
  background-color: rgba(0, 0, 0, 0.2);
  background-blend-mode: darken;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  text-align: center;
  margin-bottom: 30px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
  max-width: 600px;
}

.hero-content button {
  margin: 0 10px;
}

.hero-image {
  width: 100%;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: white;
}

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

.about-image {
  width: 100%;
  margin-bottom: 30px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  width: 100%;
  max-width: 600px;
}

.about-text h3 {
  color: #ff6b35;
  margin-bottom: 15px;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 10px;
}

.feature-item i {
  color: #4cb9e7;
  margin-right: 10px;
  font-size: 18px;
}

/* Games Section */
.games {
  padding: 80px 0;
  background-color: #fff8f3;
}

.games-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.game-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

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

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

.game-info {
  padding: 20px;
}

.game-info h3 {
  color: #ff6b35;
  margin-bottom: 10px;
}

.game-info p {
  margin-bottom: 20px;
  color: #666;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.features-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.feature-card {
  background-color: #fff8f3;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
  font-size: 2rem;
  color: #4cb9e7;
}

.feature-card h3 {
  color: #ff6b35;
  margin-bottom: 15px;
}

/* Reviews Section */
.reviews {
  padding: 80px 0;
  background-color: #fff8f3;
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.review-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.reviewer-info {
  display: flex;
  align-items: center;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-details h4 {
  margin-bottom: 5px;
}

.review-rating i {
  color: #ffd700;
}

.review-content p {
  font-style: italic;
  color: #666;
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background-color: white;
}

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

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff8f3;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #ffe8d9;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
}

.faq-toggle {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.faq-toggle i {
  color: #ff6b35;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  background-color: white;
}

.faq-answer p {
  margin: 0;
  padding: 20px 0;
  color: #666;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: #fff8f3;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  color: #ff6b35;
  margin-bottom: 15px;
}

.contact-details {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-item i {
  color: #4cb9e7;
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

.contact-form {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4cb9e7;
}

.error-message {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  display: none;
  text-align: center;
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 30px;
  margin-right: 10px;
}

.footer-logo span {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  margin: 0 10px;
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff6b35;
}

.footer-bottom {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-content {
    text-align: left;
    flex: 1;
    margin-right: 30px;
  }

  .hero-image {
    flex: 1;
  }

  .about-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .about-image {
    margin-bottom: 0;
    margin-right: 30px;
  }

  .games-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .game-card {
    width: calc(33.333% - 20px);
  }

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

  .reviews-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .review-card {
    width: calc(33.333% - 20px);
  }

  .contact-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-info,
  .contact-form {
    width: calc(50% - 15px);
  }
}

@media (min-width: 992px) {
  .features-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 20px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content button {
    margin: 10px 0;
    width: 100%;
  }

  .game-card,
  .review-card {
    width: 100%;
  }
  .hero {
    background-image: url(./assets/images/bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
}
