/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  color: #1a365d;
}

h2 {
  font-size: 2rem;
  color: #2d4a6b;
  border-bottom: 3px solid #4a90e2;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: #3182ce;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.3rem;
  color: #4a5568;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Header and Navigation */
header {
  background: linear-gradient(135deg, #1a365d 0%, #2d4a6b 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4a90e2;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a365d;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: white;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu a:hover {
  background-color: #4a90e2;
  color: white;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(45, 74, 107, 0.8)), url('images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-page {
  height: 50vh;
}

.hero-content h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.secondary-button {
  display: inline-block;
  background: transparent;
  color: #4a90e2;
  border: 2px solid #4a90e2;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: #4a90e2;
  color: white;
}

/* Container and Content Areas */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-content {
  background: #fff;
  padding: 2rem 0;
}

.article-content .container {
  max-width: 1000px;
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Key Features Grid */
.key-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #4a90e2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature h3 {
  color: #2d4a6b;
  margin-bottom: 1rem;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.news-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.news-item time {
  color: #4a90e2;
  font-weight: 600;
  font-size: 0.9rem;
}

.news-item h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem 0;
  color: #2d4a6b;
}

/* Indicator Sections */
.indicator-section {
  background: white;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.indicator-section h3 {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.indicator-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.indicator-section li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.indicator-section strong {
  color: #2d4a6b;
}

/* Market Stats */
.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat h3 {
  font-size: 2.5rem;
  color: #4a90e2;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #4a5568;
  font-size: 1rem;
}

/* Technology Timeline */
.tech-timeline {
  margin: 2rem 0;
}

.timeline-item {
  background: white;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 10px;
  border-left: 4px solid #4a90e2;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.timeline-item h4 {
  color: #4a90e2;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

/* Page Grid */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.page-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-card h3 a {
  color: #2d4a6b;
  text-decoration: none;
  font-size: 1.3rem;
}

.page-card h3 a:hover {
  color: #4a90e2;
}

.page-card p {
  color: #4a5568;
  margin-top: 1rem;
}

/* AI Capabilities */
.ai-capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.capability {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.capability::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #4a90e2, #357abd);
}

.capability h3 {
  color: #2d4a6b;
  margin-bottom: 1rem;
}

/* Ensemble Methods */
.ensemble-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.method {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.method h4 {
  color: #4a90e2;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-family: 'Courier New', monospace;
  background: #f7fafc;
  padding: 0.5rem;
  border-radius: 5px;
}

/* Related Links */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.related-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
  border-color: #4a90e2;
}

.related-card h3 {
  color: #2d4a6b;
  margin-bottom: 1rem;
}

.related-card p {
  color: #4a5568;
}

/* View All Pages */
.view-all-pages {
  text-align: center;
  margin: 3rem 0;
}

/* Footer */
footer {
  background: #1a365d;
  color: white;
  padding: 3rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: #4a90e2;
  margin-bottom: 1rem;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #4a90e2;
}

footer p {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #2d4a6b;
  color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a365d;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 0.5rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .article-content .container {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .key-features,
  .news-grid,
  .page-grid,
  .ai-capabilities,
  .ensemble-methods,
  .related-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .market-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .container {
    padding: 1.5rem 0.75rem;
  }

  .article-content .container {
    padding: 1rem 0.75rem;
  }
  
  .feature,
  .news-item,
  .capability,
  .method,
  .related-card {
    padding: 1.5rem;
  }
  
  .stat h3 {
    font-size: 2rem;
  }
}

/* Animation for scroll effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* Links and Buttons */
a {
  color: #4a90e2;
  transition: color 0.3s ease;
}

a:hover {
  color: #357abd;
}

ul li {
  margin-bottom: 0.5rem;
}

strong {
  color: #2d4a6b;
  font-weight: 600;
}