:root {
  --primary-color: #1a2c5b;
  --secondary-color: #3366cc;
  --accent-color: #70e000;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #161c2d;
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Source Sans Pro', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f5f7fa;
}

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

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.logo h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: white;
  font-weight: 600;
}

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

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

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav ul li a:hover {
  color: var(--accent-color);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a2c5b 0%, #3366cc 100%);
  color: white;
  padding: 100px 0 80px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-image {
  text-align: center;
}

.hero-image svg {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: #63c400;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Market Overview */
.market-overview {
  padding: 80px 0;
}

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

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.stock-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 25px;
}

.stock-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.stock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.stock-name {
  font-weight: 600;
  color: var(--primary-color);
}

.stock-symbol {
  font-weight: 700;
  color: var(--secondary-color);
}

.stock-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stock-change {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.stock-change.positive {
  color: #22c55e;
}

.stock-change.negative {
  color: #ef4444;
}

.stock-chart {
  margin-top: 15px;
  height: 80px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: #f0f4f8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 100%;
  height: 120px;
  background-color: var(--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2.5rem;
}

.feature-content {
  padding: 25px;
}

.feature-content h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
}

/* Market Insights */
.market-insights {
  padding: 80px 0;
}

.insights-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.main-article {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.main-article h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.main-article p {
  margin-bottom: 20px;
}

.article-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.article-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.article-meta i {
  margin-right: 5px;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.recent-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-card h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.news-meta {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* Games Section */
.games {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
}

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

.games-content p {
  max-width: 700px;
  margin: 0 auto 30px;
}

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

.game-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

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

.game-card a {
  display: block;
  padding: 25px;
  text-decoration: none;
  color: var(--text-color);
  height: 100%;
}

.game-card h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.game-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Newsletter */
.newsletter {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 15px;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font-primary);
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: var(--accent-color);
  border: none;
  border-radius: 0 4px 4px 0;
  color: var(--dark-color);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #63c400;
}

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

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.footer-nav h3 {
  font-family: var(--font-heading);
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

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

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

.footer-nav ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    grid-row: 1;
    margin-bottom: 30px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .insights-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    order: 3;
  }
  
  nav.active {
    max-height: 300px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px 0;
  }
  
  nav ul li {
    margin-left: 0;
    margin-bottom: 15px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

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

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}
