/* Base Styles & Reset */
:root {
  --primary-color: #4a2fbf;
  --secondary-color: #ff7e5f;
  --accent-color: #00c9a7;
  --text-color: #333;
  --text-light: #666;
  --text-white: #fff;
  --background-light: #f9f9f9;
  --background-dark: #1a1a2e;
  --border-radius: 8px;
  --transition: all 0.3s ease-in-out;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary-color), #2575fc);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--text-white);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(74, 47, 191, 0.3);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-size: 0.9rem;
  padding: 8px 20px;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

.btn-cta {
  background: var(--secondary-color);
  color: var(--text-white);
  padding: 15px 40px;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background: #ff6347;
  box-shadow: 0 8px 20px rgba(255, 126, 95, 0.3);
  transform: translateY(-2px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
}

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

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

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 10px;
  color: var(--primary-color);
}

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  color: var(--text-color);
  font-weight: 500;
}

.menu a:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: var(--gradient);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L60,122.7C120,149,240,203,360,224C480,245,600,235,720,202.7C840,171,960,117,1080,117.3C1200,117,1320,171,1380,197.3L1440,224L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg>');
  background-size: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: #fff;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-features i {
  color: var(--primary-color);
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  flex: 1;
  min-width: 300px;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
  background: #f5f5f5;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
}

/* Games Section */
.games {
  padding: 100px 0;
  background-color: var(--background-light);
}

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

.game-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

/* We're using CSS gradients for game images since we're not using actual images */
.game-image-1 { background: linear-gradient(45deg, #ff9a9e, #fad0c4); }
.game-image-2 { background: linear-gradient(45deg, #a6c0fe, #f68084); }
.game-image-3 { background: linear-gradient(45deg, #fbc2eb, #a6c1ee); }
.game-image-4 { background: linear-gradient(45deg, #84fab0, #8fd3f4); }

.game-info {
  padding: 20px;
  text-align: center;
}

.game-info h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.game-info p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* Partners Section */
.partners {
  padding: 100px 0;
  background-color: #fff;
}

.partners-content p {
  text-align: center;
  margin-bottom: 40px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.partner-item {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.partner-item:hover {
  box-shadow: var(--box-shadow);
}

.partner-item h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.partner-item p {
  text-align: left;
  margin-bottom: 0;
}

.partner-item a {
  color: var(--secondary-color);
  font-weight: 500;
}

.partner-item a:hover {
  text-decoration: underline;
}

.news-reference {
  margin-top: 40px;
  text-align: center;
}

.news-reference p {
  font-style: italic;
}

.news-reference a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--background-light);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial {
  padding: 20px;
  text-align: center;
}

.testimonial-content {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  position: relative;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: #fff;
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.05);
  transform: translateX(-50%) rotate(45deg);
}

.testimonial-content p {
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

/* Using gradients for author avatars */
.author-1 { background: linear-gradient(45deg, #8BC6EC, #9599E2); }
.author-2 { background: linear-gradient(45deg, #FFDEE9, #B5FFFC); }
.author-3 { background: linear-gradient(45deg, #FBAB7E, #F7CE68); }

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

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

/* CTA Section */
.cta {
  padding: 80px 0;
  background: var(--gradient);
  color: var(--text-white);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: #fff;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-item h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-item p {
  color: var(--text-light);
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: var(--text-white);
  padding: 80px 0 30px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin: 15px 0 10px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-links-column {
  flex: 1;
  min-width: 150px;
}

.footer-links-column h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

.footer-links-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links-column a:hover {
  color: var(--text-white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.social-links a {
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.9rem;
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background-color: #3a24a0;
  transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header .container {
    height: 70px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--text-white);
    flex-direction: column;
    padding: 100px 30px;
    gap: 20px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .menu.active {
    right: 0;
  }
  
  .hero {
    padding: 130px 0 80px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .testimonial-content {
    padding: 20px;
  }
  
  .contact-wrapper {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .footer-top,
  .footer-links {
    gap: 30px;
  }
}
