/* Reset & Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  animation: slideDown 1s ease forwards;
}

header .logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffb347;
}

header nav a,
header nav button {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

header nav a:hover,
header nav button:hover {
  color: #ffb347;
}

header nav button {
  background: linear-gradient(45deg, #ff6b6b, #ffb347);
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255,107,107,0.5);
  transition: 0.4s;
}

header nav button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 20px rgba(255,107,107,0.8);
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 50px;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 600px;
  animation: fadeInLeft 1.5s ease forwards;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInText 2s ease forwards;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInText 2.2s ease forwards;
}

.btn {
  background: linear-gradient(45deg, #ff6b6b, #ffb347);
  padding: 12px 30px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.4s;
  box-shadow: 0 0 10px rgba(255,107,107,0.5);
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255,107,107,0.8);
}

.hero-image img {
  max-width: 500px;
  border-radius: 12px;
  animation: fadeInRight 1.5s ease forwards;
}

/* Featured Games */
.featured-games {
  text-align: center;
  padding: 80px 50px;
}

.featured-games h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease forwards;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: fadeInUp 1s ease forwards;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.4s;
}

.card:hover img {
  transform: scale(1.1) rotate(1deg);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #ffb347;
  transition: 0.4s;
}

.card .quote {
  font-size: 0.95rem;
  font-style: italic;
  color: #eee;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.5s ease;
}

.card:hover .quote {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  background: rgba(255,107,107,0.2);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 20px rgba(255,107,107,0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 50px;
  background: rgba(0,0,0,0.7);
  animation: fadeInUp 1.2s ease forwards;
}

footer a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  color: #ffb347;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1b1b1b;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  animation: scaleIn 0.5s ease forwards;
}

.modal-content input {
  width: 80%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: none;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
}

/* Form Toggle Buttons */
.form-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.form-toggle button {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 25px;
  cursor: pointer;
  transition: 0.3s;
}

.form-toggle button.active {
  border-bottom: 2px solid #ff6b6b;
}

.form {
  display: none;
  flex-direction: column;
}

.form.active {
  display: flex;
}

.form input {
  width: 80%;
  padding: 10px;
  margin: 10px auto;
  border-radius: 6px;
  border: none;
}

.form .btn {
  width: 85%;
  margin-top: 15px;
}

/* Animations */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInText {
  from { opacity: 0; }
  to { opacity: 1; }
}
