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

:root {
  /* Color Scheme - Dark fantasy theme */
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --accent-red: #cc0000;
  --accent-gold: #ffd700;
  --text-light: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border-color: #333333;
  --shadow-color: rgba(204, 0, 0, 0.3);
  --gradient-primary: linear-gradient(135deg, #cc0000, #990000);
  --gradient-secondary: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--primary-dark);
  overflow-x: hidden;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  text-shadow: 0 0 10px var(--shadow-color);
}

h3 {
  font-size: 1.8rem;
  color: var(--text-light);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary-dark);
  border-top: 2px solid var(--accent-red);
  padding: 15px 20px;
  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;
}

.cookie-content p {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--accent-gold);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-img {
  height: 80px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-gold);
}

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

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-bg-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);

  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  z-index: 2;
  text-align: center;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.cta-button {
  display: inline-block;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

.play-badge {
  width: 200px;
  height: auto;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Concept Section */
.concept-section {
  background: var(--secondary-dark);
}

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

.concept-item {
  text-align: center;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.5);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

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

/* Gameplay Section */
.gameplay-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.gameplay-image img {
  width: 100%;
  border-radius: 10px;
}

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

.feature-card {
  background: rgba(26, 26, 26, 0.8);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
}

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

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

.screenshot-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.screenshot-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.screenshot-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  color: white;
}

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

.review-card {
  background: rgba(26, 26, 26, 0.8);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.review-rating {
  color: var(--accent-gold);
}

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

.faq-item {
  margin-bottom: 1rem;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

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

.faq-question:hover {
  background-color: rgba(26, 26, 26, 0.9);
}

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

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
  border-top: 1px solid var(--border-color);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: rgba(26, 26, 26, 0.8);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

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

.form-group input {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-dark);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-light);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-red);
}

.form-message {
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  display: none;
}

.form-message.success {
  background-color: rgba(0, 128, 0, 0.2);
  color: #4caf50;
  border: 1px solid #4caf50;
}

.form-message.error {
  background-color: rgba(204, 0, 0, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

/* Privacy Checkbox Styles */
.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.privacy-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  position: relative;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  background-color: var(--primary-dark);
  border: 2px solid var(--border-color);
  border-radius: 3px;
  transition: all 0.3s ease;
  margin-top: 2px;
}

.privacy-checkbox input:checked + .checkmark {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.privacy-checkbox input:checked + .checkmark::after {
  opacity: 1;
}

.checkbox-text a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.checkbox-text a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.privacy-checkbox:hover .checkmark {
  border-color: var(--accent-red);
}

/* Modal Styles */
.form-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: var(--secondary-dark);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  color: var(--accent-gold);
  margin: 0;
  font-size: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.modal-footer {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: right;
}

.modal-footer button {
  min-width: 100px;
}

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

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

/* Policy Pages Styles */
.policy-navigation {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .policy-navigation {
    flex-direction: column;
    align-items: center;
  }

  .policy-navigation .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled:hover {
  transform: none;
  box-shadow: none;
}

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

.btn-secondary:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Footer */
.footer {
  background: var(--secondary-dark);
  border-top: 2px solid var(--accent-red);
  padding: 3rem 0 1rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 60px;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

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

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

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

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

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

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-red);
  transform: translateY(-2px);
}

.footer-play-badge {
  width: 150px;
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0 0.3rem;
    gap: 1rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    padding: 1rem 1.25rem 2rem;
    text-align: left;
    gap: 1rem;
    z-index: 120;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
  }

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

  .mobile-menu-toggle {
    display: flex;
  }

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

  .hero-content {
    padding: 0 20px;
  }

  .hero-stats {
    justify-content: center;
  }

  .gameplay-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .privacy-checkbox {
    font-size: 0.85rem;
  }

  .checkbox-text {
    line-height: 1.3;
  }

  .form-modal .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem 1.25rem;
  }
}

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

  .section {
    padding: 60px 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .concept-grid,
  .features-grid,
  .screenshots-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

/* Lock scroll and show overlay when mobile menu open */
body.menu-open {
  overflow: hidden;
}

body.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 80;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #990000;
}
