/* Base Styles */
:root {
  --primary-color: #1E88E5;
  --secondary-color: #00E676;
  --tertiary-color: #FF9E80;
  --background-color: #FAFAFA;
  --dark-bg: #212121;
  --text-color: #333333;
  --light-text: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-hover: #F5F5F5;
  --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

/* Header Styles */
.header {
  background: var(--dark-bg);
  padding: 1.2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

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

.nav ul li {
  margin-left: 1.5rem;
}

.nav a {
  color: var(--light-text);
  font-weight: 600;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #000000 100%);
  padding: 12rem 0 8rem;
  text-align: left;
  position: relative;
  color: var(--light-text);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

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

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--light-text);
  position: relative;
  line-height: 1.2;
}

.hero h2 span {
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--dark-bg);
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
  text-decoration: none;
  color: var(--light-text);
}

/* Features Section */
.features {
  padding: 8rem 0;
  background-color: var(--background-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
  position: relative;
  margin-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: left;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  border-bottom: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background-color: #EFEFEF;
}

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

.contact-form {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

/* Games Section */
.games {
  padding: 8rem 0;
  background-color: #F0F5FF;
  position: relative;
  overflow: hidden;
}

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

.game-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.game-image {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  position: relative;
  overflow: hidden;
}

.game-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="50" height="50" fill="%23ffffff" fill-opacity="0.1"/><rect x="50" y="50" width="50" height="50" fill="%23ffffff" fill-opacity="0.1"/></svg>');
  opacity: 0.1;
}

.game-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.game-content p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.game-links {
  margin-top: auto;
}

.game-link {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.game-link:hover {
  background: var(--accent-color);
  color: white;
  text-decoration: none;
}

/* About Section */
.about {
  padding: 8rem 0;
  background-color: var(--dark-bg);
  color: var(--light-text);
  position: relative;
}

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

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.about-text h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

/* Social Media Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .nav {
    display: none;
    width: 100%;
  }
  
  .nav.active {
    display: block;
  }
  
  .nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .nav ul li {
    margin: 1rem 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .feature-card,
  .game-card {
    padding: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.fade-in-delay-1 {
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.2s;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.4s;
}

.fade-in-delay-3 {
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.6s;
}
