/* ============================================
   Poly Kingdom: Siege - Official Website
   Color scheme inspired by the game's medieval
   low-poly aesthetic with parchment UI elements
   ============================================ */

:root {
  --color-bg-dark: #0e1a0e;
  --color-bg-section: #142014;
  --color-bg-card: #1c2e1c;
  --color-parchment: #d4a76a;
  --color-parchment-light: #e8d5b0;
  --color-parchment-dark: #b8864a;
  --color-gold: #c9952d;
  --color-gold-bright: #e6b94f;
  --color-brown: #5c3d2e;
  --color-brown-dark: #3a2518;
  --color-green-deep: #2d4a2d;
  --color-green-forest: #3d6b3d;
  --color-green-light: #5a8f5a;
  --color-text-light: #f0e6d3;
  --color-text-muted: #a89880;
  --color-accent-red: #8b3a3a;
  --color-accent-blue: #4a6a8b;
  --font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Segoe UI', Tahoma, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 26, 14, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-green-deep);
  padding: 0 2rem;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 2px;
  font-weight: 700;
}

.nav-logo span {
  color: var(--color-parchment-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-hamburger span {
  width: 25px;
  height: 2px;
  background: var(--color-parchment);
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 26, 14, 0.3) 0%,
    rgba(14, 26, 14, 0.6) 60%,
    rgba(14, 26, 14, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--color-gold-bright);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--color-parchment-light);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 2.8rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-parchment-dark));
  color: var(--color-brown-dark);
  box-shadow: 0 4px 15px rgba(201, 149, 45, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 149, 45, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-parchment-light);
  border: 2px solid var(--color-green-forest);
}

.btn-secondary:hover {
  background: var(--color-green-deep);
  border-color: var(--color-green-light);
  transform: translateY(-2px);
}

/* --- Section Shared Styles --- */
.section {
  padding: 6rem 2rem;
}

.section-alt {
  background: var(--color-bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--color-gold);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.15rem;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 1rem auto 0;
}

/* --- About / Overview Section --- */
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-green-deep);
}

.about-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-parchment);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--color-green-deep);
  color: var(--color-green-light);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  border: 1px solid var(--color-green-forest);
}

/* --- Features Section --- */
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-green-deep);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--color-green-deep);
}

.feature-card-body {
  padding: 1.5rem;
}

.feature-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-parchment);
  margin-bottom: 0.75rem;
}

.feature-card-body p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* --- Screenshots Gallery --- */
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--color-green-deep);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border-color: var(--color-gold);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--color-parchment);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--color-gold);
}

/* --- News Section --- */
.news-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-green-deep);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: border-color 0.3s ease;
}

.news-card:hover {
  border-color: var(--color-gold);
}

.news-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-green-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.news-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-parchment);
  margin-bottom: 0.5rem;
}

.news-card-content .news-date {
  font-size: 0.95rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.news-card-content p {
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.news-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-brown-dark);
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --- Contact Section --- */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-green-deep);
  border-radius: 8px;
  padding: 3rem;
}

.contact-card p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-gold-bright);
  font-size: 1.3rem;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 2px solid var(--color-green-deep);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.contact-email:hover {
  border-color: var(--color-gold);
  background: var(--color-green-deep);
}

.contact-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-gold);
}

/* --- Footer --- */
.footer {
  background: var(--color-brown-dark);
  border-top: 2px solid var(--color-green-deep);
  padding: 2rem;
  text-align: center;
}

.footer p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.footer a {
  color: var(--color-gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-card {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(14, 26, 14, 0.98);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 2px solid var(--color-green-deep);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 1rem;
  }
}
