/* Reset and Base Styles */
:root {
  --primary-color: #8a2be2;
  --secondary-color: #ff5733;
  --accent-color: #4caf50;
  --dark-color: #333;
  --light-color: #f9f9f9;
  --text-color: #444;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: var(--dark-color);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

ul {
  list-style-type: none;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-secondary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo a {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.logo svg {
  margin-right: 10px;
}

nav ul {
  display: flex;
}

nav li {
  margin-left: 1.5rem;
}

nav a {
  font-weight: 500;
  padding: 0.5rem;
  color: var(--dark-color);
}

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

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

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 8rem 1rem 5rem;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://source.unsplash.com/random/1600x900/?technology') no-repeat center center/cover;
  color: white;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1,
.hero p {
  color: white;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

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

/* Sections General */
section {
  padding: 5rem 1rem;
}

section:nth-child(even) {
  background-color: white;
}

/* Solutions Section */
.solutions-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.solution-card,
.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.solution-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon {
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-color);
  padding: 6rem 1rem;
}

.testimonial-slider {
  display: flex;
  overflow: hidden;
  position: relative;
  margin: 3rem 0;
}

.testimonial {
  min-width: 100%;
  opacity: 0;
  transition: all 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.testimonial.active {
  opacity: 1;
  position: relative;
}

.testimonial-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  margin-bottom: 2rem;
}

.testimonial-content:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 45px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid white;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.testimonial-content p:before,
.testimonial-content p:after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 3px solid white;
  box-shadow: var(--shadow);
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  color: var(--dark-color);
  opacity: 0.8;
  margin-bottom: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

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

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

/* Games Section */
.games {
  background: linear-gradient(to right, #654ea3, #eaafc8);
  color: white;
}

.games h2,
.games p {
  color: white;
}

.game-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.game-link {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.game-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-link a {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.game-link p {
  color: var(--text-color);
  margin-top: 0.5rem;
}

.news-links {
  margin-top: 3rem;
}

.news-links a {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  margin-right: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* FAQ Section */
.faq {
  background-color: var(--light-color);
  padding: 6rem 1rem;
}

.faq-container {
  max-width: 900px;
  margin: 3rem auto 0;
}

.faq-item {
  background-color: white;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  padding-right: 2rem;
  transition: color 0.3s ease;
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-icon:before,
.faq-icon:after {
  content: '';
  position: absolute;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-icon:before {
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
}

.faq-icon:after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 100%;
}

.faq-item.active .faq-icon:after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: all 0.5s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-item.active {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-question h3 {
  color: var(--primary-color);
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: white;
  padding: 6rem 1rem;
}

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

.benefit-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.benefit-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.benefit-icon {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.benefit-card p {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Section */
.about {
  background-color: var(--light-color);
}

.stats-counter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  text-align: center;
}

.counter-item {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.counter-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.counter-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.counter-item:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.counter-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-suffix {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 0.2rem;
}

.counter-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-color);
}

@media screen and (max-width: 768px) {
  .stats-counter {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .stats-counter {
    grid-template-columns: 1fr;
  }
}

.about p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  padding: 2rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
}

.social-links a {
  margin-right: 1rem;
  display: inline-block;
  transition: var(--transition);
}

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

.contact-form {
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  resize: none;
}

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

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

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

.cta-banner h2 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

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

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-banner .btn-secondary {
  background-color: white;
  color: var(--primary-color);
}

.cta-banner .btn-secondary:hover {
  background-color: #f0f0f0;
  color: var(--secondary-color);
}

@media screen and (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-banner .btn-primary,
  .cta-banner .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  padding: 4rem 0 2rem;
}

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

.footer-logo svg {
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-newsletter h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h3:after,
.footer-newsletter h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

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

.footer-links a {
  color: #ddd;
}

.footer-links a:hover {
  color: white;
}

.footer-newsletter form {
  display: flex;
  margin-top: 1.5rem;
}

.footer-newsletter input {
  flex-grow: 1;
  padding: 0.8rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.footer-newsletter button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal a {
  color: #ddd;
  margin-left: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-logo {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    transition: var(--transition);
    z-index: 1001;
    box-shadow: var(--shadow);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 2rem;
  }
  
  nav li {
    margin: 1rem 0;
  }
  
  .hamburger {
    display: flex;
    z-index: 1002;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links h3:after,
  .footer-newsletter h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter input,
  .footer-newsletter button {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
  }
  
  .footer-legal {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 576px) {
  section {
    padding: 3rem 1rem;
  }
  
  .hero {
    padding: 7rem 1rem 3rem;
  }
}
