/* Base Styles */
:root {
  --primary-color: #8B0000; /* Deep red */
  --primary-light: #a32929;
  --secondary-color: #2a0000; /* Darker red */
  --accent-color: #ffcb8c; /* Golden accent */
  --text-color: #333333;
  --text-light: #666666;
  --background-light: #f9f5f0;
  --background-dark: #1a1a1a;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --feature-1: #ffd700;
  --feature-2: #9932cc;
  --feature-3: #20b2aa;
  --feature-4: #ff6b6b;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem 0;
  box-shadow: 0 2px 10px var(--shadow-color);
  position: relative;
  z-index: 100;
}

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

.logo h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background-color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
  height: calc(100vh - 80px);
  min-height: 500px;
  background-image: url('https://i.pinimg.com/736x/90/25/e7/9025e7a42d14c7b3cfbe5018651e46d0.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(139, 0, 0, 0.7));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #ff0000;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background-color: transparent;
  border-color: white;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: white;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.05) 0%, rgba(255, 203, 140, 0.1) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(139, 0, 0, 0.2), transparent);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fff 0%, var(--background-light) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem;
  border-radius: 20px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: -1;
  transition: opacity var(--transition-speed) ease;
}

.feature-card:nth-child(1)::before {
  background-color: var(--feature-1);
}

.feature-card:nth-child(2)::before {
  background-color: var(--feature-2);
}

.feature-card:nth-child(3)::before {
  background-color: var(--feature-3);
}

.feature-card:nth-child(4)::before {
  background-color: var(--feature-4);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.feature-card:hover::before {
  opacity: 0.15;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:nth-child(1) .feature-icon {
  color: var(--feature-1);
}

.feature-card:nth-child(2) .feature-icon {
  color: var(--feature-2);
}

.feature-card:nth-child(3) .feature-icon {
  color: var(--feature-3);
}

.feature-card:nth-child(4) .feature-icon {
  color: var(--feature-4);
}

.feature-card h3 {
  margin: 1rem 0;
  color: var(--primary-color);
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Games Section */
.games {
  padding: 5rem 0;
  background-color: var(--background-light);
  background-image: linear-gradient(to bottom, #ffffff, #f9f5f0);
}

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

.game-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.game-image {
  height: 250px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-speed) ease;
}

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

.game-info {
  padding: 1.5rem;
  text-align: center;
}

.game-info h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.play-button {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border-radius: 50px;
  transition: all var(--transition-speed) ease;
}

.play-button:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

/* Disclaimer Section */
.disclaimer {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.disclaimer-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

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

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover {
  color: white;
}

.contact-button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.contact-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Game Page Styles */
.game-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.game-frame {
  width: 100%;
  height: 700px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  margin-top: 2rem;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.back-link:hover {
  color: var(--primary-light);
}

.back-link::before {
  content: '←';
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Contact Page Styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease;
}

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

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.submit-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-bottom: 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

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

  .hero-content p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    transform: none;
    order: -1;
  }

  .feature-card {
    padding: 2rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Privacy Policy & Terms Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.legal-content p,
.legal-content ul li {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.legal-content ul {
  padding-left: 2rem;
}

.page-header {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
}

/* Animation for game cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.game-card:nth-child(2) {
  animation-delay: 0.1s;
}

.game-card:nth-child(3) {
  animation-delay: 0.2s;
}

.game-card:nth-child(4) {
  animation-delay: 0.3s;
}

.game-card:nth-child(5) {
  animation-delay: 0.4s;
}

.game-card:nth-child(6) {
  animation-delay: 0.5s;
}

/* Animation for feature cards */
.feature-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* Additional animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.cta-button {
  animation: pulse 2s infinite;
}

.cta-button:hover {
  animation: none;
}