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

:root {
  --primary-color: #F7D932;
  --secondary-color: #1a1a1a;
  --text-color: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-section: #111111;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.back-btn {
  color: #ffffff;
  text-decoration: none;
  display: none;
  margin-right: 1rem;
  transition: opacity 0.3s;
  width: 32px;
  height: 32px;
}

.back-btn img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.back-btn:hover {
  opacity: 0.7;
}

.policy-page .back-btn {
  display: inline-block;
}

.policy-page .logo {
  margin-right: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo img {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.playstore-logo {
  height: 55px;
  width: auto;
  transition: transform 0.3s;
}

.playstore-logo:hover {
  transform: scale(1.1);
}

.playstore-logo img {
  height: 55px;
  width: auto;
  display: block;
}

.privacy-btn {
  padding: 0;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  height: 55px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.privacy-btn:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-section) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(247, 217, 50, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.game-logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 30px rgba(247, 217, 50, 0.3));
}

.hero-image {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
  width: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
}

.hero-screenshots {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-screenshots .screenshots-wrapper {
  position: relative;
  width: 100%;
  height: 650px;
}

.hero-screenshots .screenshot-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: slideShow 35s infinite;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.hero-screenshots .screenshot-item:nth-child(1) {
  animation-delay: 0s;
}

.hero-screenshots .screenshot-item:nth-child(2) {
  animation-delay: 5s;
}

.hero-screenshots .screenshot-item:nth-child(3) {
  animation-delay: 10s;
}

.hero-screenshots .screenshot-item:nth-child(4) {
  animation-delay: 15s;
}

.hero-screenshots .screenshot-item:nth-child(5) {
  animation-delay: 20s;
}

.hero-screenshots .screenshot-item:nth-child(6) {
  animation-delay: 25s;
}

.hero-screenshots .screenshot-item:nth-child(7) {
  animation-delay: 30s;
}

.hero-screenshots .screenshot-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.hero-screenshots .screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Screenshots Section */
.screenshots-section {
  padding: 6rem 2rem;
  background: var(--bg-section);
}

.screenshots-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.screenshots-section .screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  mask-image: none;
  -webkit-mask-image: none;
  overflow: visible;
}

.screenshots-section .screenshot-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshots-section .screenshot-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(247, 217, 50, 0.3);
}

.screenshots-section .screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(247, 217, 50, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 217, 50, 0.6);
}

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

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

.download-badge {
  display: inline-block;
  width: 180px;
  height: auto;
  margin-top: 1rem;
  transition: transform 0.3s;
}

.download-badge:hover {
  transform: scale(1.05);
}

/* Screenshots Section */
.screenshots {
  padding: 6rem 2rem;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(247, 217, 50, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}

.screenshots-grid {
  display: flex;
  gap: 2rem;
  margin-top: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.screenshots-wrapper {
  display: flex;
  gap: 2rem;
  animation: slide 25s linear infinite;
  will-change: transform;
}

.screenshots-wrapper:hover {
  animation-play-state: paused;
}

.screenshot-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-dark);
  flex: 0 0 320px;
  min-width: 320px;
  cursor: pointer;
}

.screenshot-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}

.screenshot-item:hover {
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 20px 50px rgba(247, 217, 50, 0.3), 0 0 0 2px rgba(247, 217, 50, 0.5);
  z-index: 10;
}

.screenshot-item:hover::before {
  opacity: 1;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  max-height: 550px;
  object-fit: contain;
  background: var(--bg-dark);
  transition: transform 0.4s;
}

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

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-320px * 7 - 2rem * 7));
  }
}

@keyframes slideShow {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  7% {
    opacity: 1;
    transform: scale(1);
  }

  14.28% {
    opacity: 1;
    transform: scale(1);
  }

  21.28% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Download Section */
.download {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-dark) 100%);
  text-align: center;
}

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

.download-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--bg-dark);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.footer-logo img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

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

.footer-email a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-separator {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 2rem auto;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 1rem;
  user-select: none;
  transition: color 0.3s;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--primary-color);
}

.lightbox-caption {
  display: none;
}

.screenshots-section .screenshot-item {
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .screenshots-grid {
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .screenshot-item {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .screenshot-item img {
    max-height: 450px;
  }

  @keyframes slide {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-280px * 7 - 1.5rem * 7));
    }
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-screenshots {
    max-width: 400px;
    min-height: 550px;
  }

  .hero-screenshots .screenshots-wrapper {
    height: 550px;
  }

  .header-actions {
    gap: 1rem;
  }

  .playstore-logo {
    height: 60px;
  }

  .privacy-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

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

  .screenshots {
    padding: 4rem 1.5rem;
  }

  .screenshots-grid {
    gap: 1.2rem;
    padding: 1.5rem 0;
  }

  .screenshot-item {
    flex: 0 0 240px;
    min-width: 240px;
  }

  .screenshot-item img {
    max-height: 350px;
  }

  @keyframes slide {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-240px * 6 - 1.2rem * 6));
    }
  }

}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-screenshots {
    max-width: 320px;
    min-height: 500px;
  }

  .hero-screenshots .screenshots-wrapper {
    height: 500px;
  }

  .screenshots-grid {
    gap: 1rem;
    padding: 1rem 0;
  }

  .screenshot-item {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .screenshot-item img {
    max-height: 300px;
  }

  .screenshots {
    padding: 3rem 1rem;
  }

  @keyframes slide {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-200px * 7 - 1rem * 7));
    }
  }
}

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

/* Policy Page Styles */
body.policy-page {
  padding-top: 100px;
  line-height: 1.8;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.policy-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.policy-container h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.policy-container p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.policy-container ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.policy-container li {
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

@media (max-width: 768px) {
  .policy-container h1 {
    font-size: 2rem;
  }

  .policy-container h2 {
    font-size: 1.5rem;
  }
}