* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.4s;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #a01111;
  color: white;
  padding: 15px 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(216, 122, 122, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
  max-width: 200px;
}

.teenpatti-mobile {
  display: none;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 5px 0;
}

.download-btn {
  background: rgba(34, 2, 9, 0.938);
  padding: 8px 16px;
  border-radius: 5px;
}

.download-btn:hover {
  background-color: rgb(8, 37, 65);
}

/* Home Section */
#home {
  position: relative;
  margin-top: 110px;
}

.slideshow-container {
  width: 100%;
  position: relative;
  margin: auto;
  height: 480px;
  overflow: hidden;
}

.slide {
  display: none;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text {
  position: absolute;
  bottom: 50px;
  left: 30px;
  font-size: 32px;
  color: white;
  font-weight: bold;
  background-color: rgba(0,0,0,0.4);
  padding: 10px 20px;
  border-radius: 8px;
}

/* Section styling */
.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  color: #222;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: #a01111;
}

/* Games Section */
#games {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.games-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.game-card {
  width: 300px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-description {
  padding: 20px;
  text-align: center;
}

.game-description h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #222;
}

.game-description p {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* Teen Patti Section */
#contact {
  padding: 60px 20px;
  background-color: #f4f4f4;
}

.teenpatti-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.teenpatti-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teenpatti-content {
  max-width: 500px;
  padding: 0 15px;
}

.teenpatti-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.teenpatti-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.play-btn {
  display: inline-block;
  background-color: crimson;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s ease;
}

.play-btn:hover {
  background-color: darkred;
}

/* Hero Button */
.hero-button-container {
  text-align: center;
  background-color: #9c1212;
  padding: 5px 0;
}

.hero-button {
  display: inline-block;
  background-color: #ff5e00;
  color: #fff;
  padding: 14px 28px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #192ee6;
}

/* Teen Patti Button */
.teenpatti {
  background-color: #ff7a22;
  color: #fff;
  padding: 10px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.teenpatti:hover {
  background-color: #192ee6;
  transform: scale(1.05);
}

/* Footer */
footer {
  background: #a01111;
  color: white;
  text-align: center;
  padding: 20px 0;
}

.contact-email {
  font-size: 18px;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .game-card {
    width: 280px;
  }
  
  .teenpatti-image img {
    max-width: 500px;
  }
}

@media screen and (max-width: 900px) {
  .nav ul li {
    margin: 0 10px;
  }
  
  .slideshow-container {
    height: 400px;
  }
  
  .text {
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {
  header {
    padding: 10px 0;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .logo img {
    height: 60px;
  }
  
  .nav {
    justify-content: space-between;
  }
  
  nav {
    width: 100%;
    position: relative;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: #a01111;
    width: 100%;
    text-align: center;
    transform: translateY(-200%);
    transition: transform 0.4s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    padding: 10px 0;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .download-btn {
    margin: 10px auto;
    display: inline-block;
  }
  
  .teenpatti-mobile {
    display: block;
  }
  
  .teenpatti-nav {
    display: none;
  }
  
  #home {
    margin-top: 90px;
  }
  
  .slideshow-container {
    height: 350px;
  }
  
  .text {
    font-size: 24px;
    bottom: 30px;
    left: 20px;
    padding: 8px 16px;
  }
  
  .teenpatti-container {
    flex-direction: column;
  }
  
  .teenpatti-content {
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  .game-card {
    width: 100%;
    max-width: 320px;
  }
  
  .slideshow-container {
    height: 280px;
  }
  
  .text {
    font-size: 20px;
    bottom: 20px;
    left: 15px;
  }
  
  .hero-button {
    padding: 10px 20px;
    font-size: 16px;
  }
  
  .teenpatti-content h2 {
    font-size: 28px;
  }
  
  .teenpatti-content p {
    font-size: 16px;
  }
  
  .contact-email {
    font-size: 16px;
  }
}

@media screen and (max-width: 400px) {
  .logo img {
    height: 50px;
  }
  
  .slideshow-container {
    height: 220px;
  }
  
  .text {
    font-size: 18px;
    bottom: 15px;
    left: 10px;
  }
  
  .section-title h2 {
    font-size: 26px;
  }
}

/* Animation for the slideshow */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}