/* Base Styles */
:root {
  --primary-color: #0C3A23;
  --secondary-color: #2B2C30;
  --accent-color: #BFC1B9;
  --light-bg: #F2F2F1;
  --text-dark: #2B2C30;
  --text-light: #FFFCFA;
  --white: #FFFFFF;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Tenon', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'IvyPresto Headline', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.75rem;
}

h3 {
  font-size: 2rem;
}

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

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'IvyPresto Headline', serif;
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger Animation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  background: url('images/hero.png') center/cover no-repeat, var(--light-bg);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  animation: heroAnimation 20s ease-in-out infinite alternate;
  min-height: 500px;
  display: flex;
  align-items: center;
}

@keyframes heroAnimation {
  0% {
    background-position: center center;
    background-size: 100% auto;
  }
  100% {
    background-position: center center;
    background-size: 110% auto;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-dark);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-dark);
}

/* About Section */
.about-section {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-text {
  flex: 1;
}

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

/* Games Section */
.games-section {
  padding: 5rem 0;
  background: url('images/game-fon.png') center/cover no-repeat, var(--light-bg);
  position: relative;
  animation: gamesBackgroundAnimation 15s ease-in-out infinite alternate;
}

@keyframes gamesBackgroundAnimation {
  0% {
    background-position: center center;
    background-size: 100% auto;
  }
  100% {
    background-position: center center;
    background-size: 105% auto;
  }
}

.games-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.games-section > .container {
  position: relative;
  z-index: 2;
}

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

.game-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(12, 58, 35, 0.1);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.game-image {
  height: 300px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.game-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.game-content p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  text-align: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

/* Why Us Section */
.why-us-section {
  padding: 5rem 0;
}

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

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(12, 58, 35, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.feature-icon img {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
  transform: scale(1.1) rotate(5deg);
}

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

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 2rem 0;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

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

/* 18+ Disclaimer */
.disclaimer-18 {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.disclaimer-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  border: 2px solid rgba(180, 180, 200, 0.5); /* Semi-transparent accent color */
  border-radius: 8px;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.disclaimer-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.disclaimer-text p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

/* Game Pages */
.game-page {
  padding: 5rem 0;
}

.game-header {
  text-align: center;
  margin-bottom: 3rem;
}

.game-image-large {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: block;
  position: relative;
  overflow: hidden;
}

.game-image-large::before {
  content: '';
  display: block;
  padding-top: 75%; /* 4:3 aspect ratio */
}

.game-image-large img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
  transition: transform 0.3s ease;
}

.game-image-large img:hover {
  transform: scale(1.02);
}

.game-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Privacy Policy & Terms */
.policy-section {
  padding: 5rem 0;
}

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

.policy-content h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.policy-content h2 {
  margin-top: 2rem;
  color: var(--primary-color);
}

.policy-content p {
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .nav-links {
    margin-top: 0;
  }
  
  .nav-links li {
    margin: 0 1rem;
  }
  
  .hero {
    padding: 5rem 0;
    min-height: 400px;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links li {
    margin: 0.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero {
    min-height: 350px;
  }
}