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

/* Ensure all images are always visible */
img {
  opacity: 1 !important;
  transition: none !important;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Color Variables */
:root {
  --primary-color: #8b4513;
  --secondary-color: #daa520;
  --accent-color: #dc143c;
  --dark-color: #2c1810;
  --light-color: #f5f5dc;
  --white: #ffffff;
  --gray: #666666;
  --light-gray: #f8f9fa;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-color);
  color: var(--white);
  padding: 15px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Header */
.header {
  background: var(--dark-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.navbar {
  padding: 1rem 0;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 40px;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--dark-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 10000;
  }

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

  .nav-menu li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-menu.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-menu.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-menu.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-menu.active li:nth-child(5) {
    transition-delay: 0.5s;
  }

  .nav-menu a {
    font-size: 1.5rem;
    padding: 1rem;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    transition: background-color 0.3s ease;
  }

  .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
  }

  /* Ensure hamburger is visible */
  .hamburger {
    background: rgba(44, 24, 16, 0.8);
    border-radius: 5px;
    margin-left: 10px;
    min-width: 45px;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .hamburger:hover {
    background: rgba(44, 24, 16, 0.9);
  }

  /* Prevent background scroll when mobile menu is open */
  .nav-menu.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 10001;
  padding: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background: #6b3410;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--dark-color);
}

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

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

.btn-white:hover {
  background: var(--light-color);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.bg-dark {
  background: var(--dark-color);
  color: var(--white);
}

.bg-dark h2 {
  color: var(--white);
}

.bg-light {
  background: var(--light-color);
}

.bg-primary {
  background: var(--primary-color);
  color: var(--white);
}

.bg-primary h2 {
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 0 80px;
  margin-top: 70px;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 24, 16, 0.6);
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--light-color);
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.feature-icon {
  font-size: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

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

/* Game Overview */
.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.overview-text h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.overview-text ul {
  list-style: none;
  padding-left: 0;
}

.overview-text li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.overview-text li:last-child {
  border-bottom: none;
}

.overview-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.bg-dark .feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.bg-dark .feature-card h3 {
  color: var(--secondary-color);
}

/* Heroes Section */
.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.hero-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-10px);
}

.hero-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
}

.hero-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.stat {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Game Modes */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mode-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mode-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.mode-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.mode-card li {
  padding: 0.3rem 0;
  color: var(--gray);
}

.mode-card li:before {
  content: "✓ ";
  color: var(--accent-color);
  font-weight: bold;
}

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.screenshot {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.screenshot:hover {
  transform: scale(1.05);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.review-stars {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.reviewer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.reviewer strong {
  color: var(--secondary-color);
}

.reviewer span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

.review-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

/* Target Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.audience-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.audience-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.faq-item {
  background: var(--white);
  margin-bottom: 1rem;
  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: 1.5rem;
  cursor: pointer;
  background: var(--white);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--light-color);
}

.faq-question h3 {
  color: var(--primary-color);
  margin: 0;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

/* CTA Section */
.cta-content {
  text-align: center;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.newsletter-signup {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 15px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 2px;
  flex: none;
}

.checkbox-container label {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.4;
  cursor: pointer;
}

.newsletter-note {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand .logo {
  height: 40px;
  width: auto;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
    order: 3;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-menu.active {
    display: flex !important;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }

  .review-stats {
    gap: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hamburger {
    display: flex !important;
    order: 3;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-menu.active {
    display: flex !important;
  }

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

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .heroes-grid {
    grid-template-columns: 1fr;
  }

  .review-stats {
    flex-direction: column;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--white);
  border-radius: 15px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 15px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border-radius: 15px 15px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
  color: var(--white);
}

.modal-close:hover {
  transform: scale(1.1);
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.modal-body p {
  font-size: 1.1rem;
  color: var(--dark-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

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

.modal-details small {
  color: var(--gray);
  font-style: italic;
}

.modal-footer {
  padding: 20px 30px 30px;
  border-top: 1px solid #eee;
  text-align: center;
  background: #f8f9fa;
  border-radius: 0 0 15px 15px;
}

.modal-btn {
  min-width: 120px;
  padding: 12px 30px;
  font-weight: 600;
}

.modal-btn:hover {
  transform: translateY(-2px);
}

/* Form loading state */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Modal Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Error Modal Styles */
.error-modal .modal-header {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.error-modal .modal-icon {
  color: #dc3545;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 20px 25px 12px;
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 25px 20px;
  }

  .modal-icon {
    font-size: 3rem;
  }

  .modal-footer {
    padding: 15px 20px 25px;
  }
}
