* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #232946;
  background: linear-gradient(135deg, #232946 0%, #b8c1ec 100%);
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 32px rgba(35, 41, 70, 0.08);
  border-bottom: 1.5px solid #eebbc3;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: #eebbc3;
  letter-spacing: 1px;
}

.nav-logo i {
  margin-right: 12px;
  font-size: 2.2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  text-decoration: none;
  color: #232946;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.25s;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #eebbc3;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #eebbc3, #b8c1ec);
  border-radius: 2px;
  transition: width 0.25s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 28px;
  height: 3px;
  background: #232946;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  margin-top: 72px;
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  min-height: 80vh;
  gap: 48px;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  color: #eebbc3;
  margin-bottom: 24px;
  text-shadow: 2px 2px 12px rgba(35, 41, 70, 0.18);
  letter-spacing: 1.5px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #f6f6f6;
  margin-bottom: 36px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(35, 41, 70, 0.08);
}

.cta-button {
  background: linear-gradient(90deg, #eebbc3 0%, #b8c1ec 100%);
  color: #232946;
  border: none;
  padding: 18px 38px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(238, 187, 195, 0.25);
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(238, 187, 195, 0.35);
  background: linear-gradient(90deg, #b8c1ec 0%, #eebbc3 100%);
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 95%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(35, 41, 70, 0.22);
  border: 4px solid #eebbc3;
}

/* Featured Games Section */
.featured-games {
  background: linear-gradient(135deg, #f6f6f6 60%, #b8c1ec 100%);
  padding: 110px 0 90px;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 64px;
  color: #232946;
  position: relative;
  font-weight: 800;
  letter-spacing: 1px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  background: linear-gradient(90deg, #eebbc3, #b8c1ec);
  border-radius: 3px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

.game-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(35, 41, 70, 0.1);
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid #eebbc3;
}

.game-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 24px 48px rgba(35, 41, 70, 0.18);
  border-color: #b8c1ec;
}

.game-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 2px solid #eebbc3;
}

.game-info {
  padding: 28px;
}

.game-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #232946;
  letter-spacing: 0.5px;
}

.game-description {
  color: #555;
  margin-bottom: 18px;
  line-height: 1.6;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 1rem;
  color: #b8c1ec;
}

.download-btn {
  width: 100%;
  background: linear-gradient(90deg, #eebbc3, #b8c1ec);
  color: #232946;
  border: none;
  padding: 14px 0;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.08rem;
  transition: all 0.25s;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(238, 187, 195, 0.18);
}

.download-btn:hover {
  background: linear-gradient(90deg, #b8c1ec, #eebbc3);
  transform: translateY(-2px) scale(1.03);
}

/* Categories Section */
.categories {
  background: linear-gradient(135deg, #eebbc3 0%, #b8c1ec 100%);
  padding: 110px 0 90px;
  color: #232946;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}

.category-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  padding: 44px 32px;
  border-radius: 18px;
  text-align: center;
  transition: all 0.25s;
  border: 2px solid #b8c1ec;
  box-shadow: 0 8px 24px rgba(35, 41, 70, 0.1);
}

.category-card:hover {
  transform: translateY(-12px) scale(1.04);
  background: rgba(255, 255, 255, 0.38);
  border-color: #eebbc3;
}

.category-card i {
  font-size: 3.2rem;
  margin-bottom: 22px;
  color: #eebbc3;
}

.category-card h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.category-card p {
  opacity: 0.93;
  line-height: 1.6;
}

/* Stats Section */
.stats {
  background: #232946;
  padding: 90px 0 70px;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.2rem;
  font-weight: bold;
  color: #eebbc3;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.stat-item p {
  font-size: 1.15rem;
  opacity: 0.92;
}

/* Footer */
.footer {
  background: #121629;
  color: #fff;
  padding: 70px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  margin-bottom: 44px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 22px;
  color: #eebbc3;
}

.footer-logo i {
  margin-right: 12px;
  font-size: 2rem;
}

.footer-section h3 {
  margin-bottom: 22px;
  color: #b8c1ec;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #b8c1ec;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-section ul li a:hover {
  color: #eebbc3;
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #232946;
  color: #eebbc3;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(35, 41, 70, 0.1);
}

.social-links a:hover {
  background: #eebbc3;
  color: #232946;
  transform: translateY(-3px) scale(1.08);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1.5px solid #232946;
  color: #b8c1ec;
  font-size: 1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 41, 70, 0.55);
  backdrop-filter: blur(7px);
}

.modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 0;
  border-radius: 18px;
  width: 92%;
  max-width: 520px;
  box-shadow: 0 24px 48px rgba(35, 41, 70, 0.22);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(90deg, #eebbc3, #b8c1ec);
  color: #232946;
  padding: 24px;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.modal-header i {
  font-size: 1.7rem;
}

.modal-body {
  padding: 36px;
}

.close {
  color: #232946;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close:hover {
  color: #eebbc3;
  opacity: 0.8;
}

.download-progress {
  background: #f0f0f0;
  border-radius: 12px;
  height: 22px;
  margin: 24px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #eebbc3, #b8c1ec);
  width: 0%;
  transition: width 0.3s;
  border-radius: 12px;
}

.download-info {
  margin-top: 24px;
  padding: 22px;
  background: #f6f6f6;
  border-radius: 12px;
}

.download-info p {
  margin-bottom: 12px;
}

/* Responsive Design */
@media screen and (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 16px 40px;
    gap: 32px;
  }
  .hero-image img {
    max-width: 100%;
  }
  .games-grid,
  .categories-grid,
  .footer-content {
    gap: 24px;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 72px;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(35, 41, 70, 0.08);
    padding: 24px 0;
    z-index: 1100;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 18px 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 16px 40px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-content {
    margin-bottom: 36px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item h3 {
    font-size: 2rem;
  }
  .modal-body {
    padding: 18px;
  }
}
