/* Reset and Base Styles */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --border-radius: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: #0056b3;
}

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

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

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

h1 {
  font-size: 2.8rem;
}

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

h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.8rem auto 0;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.primary:hover {
  background-color: #0056b3;
  color: white;
}

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

.secondary:hover {
  background-color: #5a6268;
  color: white;
}

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

.header-scrolled {
  padding: 12px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

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

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

.logo img {
  max-height: 60px;
}

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

.main-nav ul li {
  margin-left: 25px;
}

.main-nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

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

.main-nav ul li a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  width: 30px;
  height: 20px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark-color);
  position: absolute;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  top: 18px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: linear-gradient(135deg, #0047ab 0%, #00008B 100%);
  color: white;
  overflow: hidden;
}

.hero:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  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 width="100" height="100" fill="none"/><path d="M0,0L100,100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') repeat;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Features Section */
.features {
  background-color: white;
  padding: 60px 0;
  margin-top: -60px;
  position: relative;
  z-index: 3;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.features .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature-box {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  margin: 0 15px 30px;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.feature-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* About Section */
.about {
  background-color: #f9f9f9;
}

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

.about-text {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Services Section */
.services {
  background-color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  background-color: white;
  border-bottom: 3px solid var(--primary-color);
}

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

.service-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Brokers Section */
.brokers {
  background-color: #f9f9f9;
}

.broker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.broker-card {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.broker-card h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

.broker-card p {
  color: var(--primary-color);
  font-weight: 600;
}

/* Games Section */
.games {
  background-color: white;
  position: relative;
}

.games:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="20" height="20" fill="none"/><circle cx="10" cy="10" r="1" fill="rgba(0,123,255,0.05)"/></svg>') repeat;
  z-index: 0;
}

.games .container {
  position: relative;
  z-index: 1;
}

.game-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.game-link-item {
  background-color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--accent-color);
  transition: var(--transition);
}

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

.game-link-item p {
  margin-bottom: 0;
}

.game-link-item a {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.game-link-item a:hover {
  color: #0056b3;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--primary-color);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonials:before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  top: -100px;
  right: -100px;
}

.testimonials h2 {
  color: white;
}

.testimonials h2:after {
  background-color: white;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

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

.testimonial-slide p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-slide h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.testimonial-slide span {
  opacity: 0.8;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  color: white;
  margin-bottom: 15px;
}

.cta h2:after {
  display: none;
}

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

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

.cta .btn:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

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

.contact-form {
  flex: 1;
  min-width: 300px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

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

.footer-logo img {
  margin-bottom: 15px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-links h4,
.footer-social h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4:after,
.footer-social h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

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

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-social {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

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

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

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    transition: var(--transition);
    z-index: 99;
    overflow-y: auto;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 20px;
  }

  .main-nav ul li {
    margin: 0 0 20px;
  }

  .main-nav ul li:last-child {
    margin-bottom: 0;
  }

  .main-nav ul li a {
    display: block;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .contact-container {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    height: auto;
    min-height: 450px;
    padding: 120px 0 60px;
  }
}

/* Icons */
.icon-money:before {
  content: '💰';
  font-size: 2rem;
}

.icon-clock:before {
  content: '⏱️';
  font-size: 2rem;
}

.icon-shield:before {
  content: '🔒';
  font-size: 2rem;
}

.icon-email:before {
  content: '✉️';
  font-size: 1.5rem;
}

.icon-phone:before {
  content: '📞';
  font-size: 1.5rem;
}

.icon-location:before {
  content: '📍';
  font-size: 1.5rem;
}

.icon-facebook:before {
  content: 'f';
  font-weight: bold;
}

.icon-twitter:before {
  content: 't';
  font-weight: bold;
}

.icon-instagram:before {
  content: 'i';
  font-weight: bold;
}

.icon-linkedin:before {
  content: 'l';
  font-weight: bold;
}
