/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c5aa0;
  --secondary-color: #f4a261;
  --accent-color: #e76f51;
  --gold-color: #d4af37;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #3d6cb9 100%);
  --gradient-secondary: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
}

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  direction: rtl;
  text-align: right;
}

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

/* Header Styles */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: "Amiri", serif;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-family: "Amiri", serif;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cairo", sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(44, 90, 160, 0.4);
}

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

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
  border: 8px solid var(--bg-white);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Games Section */
.games-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-family: "Amiri", serif;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 4rem;
}

.game-card {
  background: var(--bg-white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 4rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.game-card.featured {
  border: 3px solid var(--gold-color);
  position: relative;
}

.game-card.featured::before {
  content: "⭐ متاح الآن";
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gradient-gold);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
}

.game-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  align-items: center;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.game-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.game-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-family: "Amiri", serif;
}

.game-status {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.game-status.available {
  background: #d4edda;
  color: #155724;
}

.game-status.coming {
  background: #fff3cd;
  color: #856404;
}

.game-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.game-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-dark);
}

.feature i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 20px;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.download-btn.android {
  background: #34a853;
  color: white;
}

.download-btn.android:hover {
  background: #2d8f47;
  transform: translateY(-2px);
}

.download-btn.ios {
  background: #007aff;
  color: white;
}

.download-btn.ios:hover {
  background: #0056cc;
  transform: translateY(-2px);
}

.download-btn i {
  font-size: 1.5rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

.btn-store {
  font-size: 1rem;
  font-weight: 700;
}

.notify-section {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  margin-top: 1rem;
}

.notify-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.btn-notify {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-notify:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.3);
}

/* Screenshots */
.game-screenshots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.screenshot-carousel {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screenshot.active {
  opacity: 1;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--secondary-color);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: "Cairo", sans-serif;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-logo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
  border: 6px solid var(--bg-white);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Amiri", serif;
}

.footer-description {
  color: #adb5bd;
  font-size: 1.1rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

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

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

.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    right: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--bg-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

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

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-logo {
    width: 250px;
    height: 250px;
  }

  .game-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .screenshot-carousel {
    max-width: 250px;
    height: 400px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .game-title {
    font-size: 1.8rem;
  }

  .game-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .download-buttons {
    flex-direction: column;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .game-content {
    padding: 1.5rem;
  }

  .screenshot-carousel {
    max-width: 200px;
    height: 350px;
  }
}
