/* Base styles */
:root {
  --primary-color: #d4af37;
  --secondary-color: #8b4513;
  --background-color: #1a1a1a;
  --text-color: #f5f5f5;
  --accent-color: #ff6b6b;
  --card-background: #2d2d2d;
  --border-color: #444;
  --shadow-color: rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  background-image: url('../images/thals.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

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

/* Header */
header {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

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

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

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  background-color: rgba(212, 175, 55, 0.1);
}

.nav-links a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher #lang-switcher-btn {
  min-width: 44px;
  text-align: center;
}

.lang-switcher #lang-switcher-menu {
  animation: fadeIn 0.2s ease-out;
}

.lang-option.active {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--primary-color);
  font-weight: 600;
}

/* Hero section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.6) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px var(--shadow-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--background-color);
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-color: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
  background-color: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* Game features section */
.features {
  padding: 100px 0;
  background-color: rgba(26, 26, 26, 0.9);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-title p {
  font-size: 1.1rem;
  color: #b0b0b0;
  max-width: 700px;
  margin: 0 auto;
}

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

.feature-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
  border-color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-card p {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.feature-card img {
  width: 100%;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Screenshots section */
.screenshots {
  padding: 100px 0;
  background-color: rgba(45, 45, 45, 0.9);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.screenshot-card {
  background-color: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.screenshot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
  border-color: var(--primary-color);
}

.screenshot-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.screenshot-card p {
  padding: 20px;
  text-align: center;
  color: var(--primary-color);
  font-weight: 500;
}

/* Download section */
.download {
  padding: 100px 0;
  background-color: rgba(26, 26, 26, 0.9);
  text-align: center;
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
}

.download h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.download p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.platform-badge {
  display: inline-block;
  background-color: #000;
  border-radius: 12px;
  padding: 15px 30px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.platform-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.platform-badge i {
  font-size: 2rem;
  margin-right: 15px;
  color: #1da1f2;
}

.platform-badge span {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Support section */
.support {
  padding: 100px 0;
  background-color: rgba(45, 45, 45, 0.9);
}

.support-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.support-content h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

.support-content h3 {
  font-size: 1.5rem;
  margin: 25px 0 15px;
  color: var(--primary-color);
}

.support-content p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.support-content ul {
  margin: 15px 0 25px 30px;
  color: #e0e0e0;
}

.support-content li {
  margin-bottom: 10px;
}

.contact-info {
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  border-left: 4px solid var(--primary-color);
}

.contact-info p {
  margin-bottom: 10px;
  font-weight: 500;
}

/* Privacy policy section */
.privacy {
  padding: 100px 0;
  background-color: rgba(26, 26, 26, 0.9);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.privacy-content h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

.privacy-content h3 {
  font-size: 1.5rem;
  margin: 25px 0 15px;
  color: var(--primary-color);
}

.privacy-content p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.privacy-content ul {
  margin: 15px 0 25px 30px;
  color: #e0e0e0;
}

.privacy-content li {
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: rgba(17, 17, 17, 0.95);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-logo p {
  color: #b0b0b0;
  margin-bottom: 20px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: #888;
  font-size: 0.9rem;
}

/* Lazy loading */
.lazy {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lazy.loaded {
  opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .features-grid, .screenshots-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--background-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #b8860b;
  transform: translateY(-3px);
}