/*
 * Stylesheet for Faysal Games Studio website
 * Designed for desktop first with mobile friendly responsiveness
 */

:root {
  --primary-color: #9e5cff;
  --secondary-color: #341f97;
  --light-color: #f5f5f5;
  --dark-color: #0a0a23;
  --text-color: #e0e0e0;
  --accent-color: #ff8c00;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--dark-color), #1f1142);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 35, 0.8);
  backdrop-filter: blur(8px);
  width: 100%;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
.logo span {
  color: var(--accent-color);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1rem;
  transition: var(--transition);
}
.nav-list li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-list li a:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  padding: 4rem 0;
  background: radial-gradient(circle at top left, var(--secondary-color), var(--dark-color));
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 50%;
  padding-right: 2rem;
}
.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.btn:hover {
  transform: translateY(-3px);
  background: var(--accent-color);
}

.hero-image {
  flex: 1 1 45%;
  text-align: center;
}
.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: #fff;
}

/* Games Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  backdrop-filter: blur(4px);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  padding: 0 1rem;
}
.card p {
  font-size: 0.9rem;
  padding: 0 1rem 1rem;
  flex-grow: 1;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* About */
.about-container {
  max-width: 800px;
  margin: 0 auto;
}
.about-content p {
  font-size: 1rem;
  text-align: center;
  line-height: 1.7;
  color: #d0d0e2;
}

/* Contact */
.contact-container {
  text-align: center;
}
.contact-email {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
}
.contact-email:hover {
  color: var(--accent-color);
}

/* Footer */
.footer {
  background: #0a0a23;
  padding: 2rem 0;
  color: #999;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.footer-links li a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links li a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }
  .hero-text {
    padding-right: 0;
    text-align: center;
  }
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0a0a23;
    flex-direction: column;
    width: 200px;
    padding: 1rem 0;
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
  }
  .nav-list li {
    margin: 0.5rem 0;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
