/* Base Styles */
body {
  font-family: 'Quicksand', sans-serif;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Utility Classes */
.gradient-bg {
  /* background: linear-gradient(135deg, #2563eb, #6d28d9); */
  background: linear-gradient(135deg, #005cc3, #006cc4);
}

.hover-scale:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-in-out;
}

/* Updated Section Divider - Replace in styles.css */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 3rem auto; /* Changed from '3rem 0' to '3rem auto' */
  display: block; /* Ensure it's a block element */
}

/* For the hero section with white divider */
.section-divider-white {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  margin: 2rem auto;
  display: block;
}

/* Badge Styles */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.policy-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.module-badge {
  display: inline-block;
  background: #4f46e5;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.25rem;
}

.alert-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0.25rem;
}

.alert-green {
  background-color: #10b981;
  color: white;
}

.alert-amber {
  background-color: #f59e0b;
  color: white;
}

.alert-red {
  background-color: #ef4444;
  color: white;
}

/* Card Styles */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #4f46e5;
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.module-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 6px solid #4f46e5;
  height: 100%;
}

.module-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.challenge-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #ef4444;
}

.solution-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #10b981;
}

.step-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #4f46e5;
  margin-bottom: 1.5rem;
}

.step-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.problem-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Process & Architecture Styles */
.process-step {
  position: relative;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #4f46e5;
}

.process-step:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.architecture-step {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.architecture-step:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.approach-step {
  position: relative;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.approach-step:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.approach-number {
  position: absolute;
  top: -1.5rem;
  left: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 4px solid white;
}

/* Benefit Styles */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #4f46e5;
  height: 100%;
}

.benefit-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #2563eb, #6d28d9);
  transition: width 0.3s ease;
}

.benefit-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.key-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-left: 4px solid #4f46e5;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Capability & Service Items */
.capability-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.capability-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4f46e5;
  font-weight: bold;
  font-size: 1.5rem;
}

.service-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid #4f46e5;
}

.service-item:hover {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateX(8px);
}

/* Box Styles */
.highlight-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left: 4px solid #667eea;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* FAQ Styles */
.faq-item {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1f2937;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.open {
  transform: rotate(180deg);
}

/* Query & Comparison Styles */
.query-example {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  border-left: 4px solid #4f46e5;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.query-example:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.challenge {
  color: #dc2626;
  font-weight: 600;
}

.solution {
  color: #059669;
  font-weight: 600;
}

/* Mega Menu Styles */
.mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mega-menu-trigger:hover .mega-menu,
.mega-menu-trigger .mega-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu-content {
  background: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

/* Mobile Menu Styles */
#mobile-menu {
  max-height: 100vh;
  overflow-y: auto;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-submenu.open {
  max-height: 400px;
  overflow-y: auto;
  transition: max-height 0.5s ease-in;
}

.mobile-submenu-content {
  background-color: #f9fafb;
  padding: 0.75rem 1.5rem;
}

.mobile-submenu::-webkit-scrollbar {
  width: 6px;
}

.mobile-submenu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.mobile-submenu::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.mobile-submenu::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.mobile-submenu-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-submenu-item:last-child {
  border-bottom: none;
}

.mobile-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
}

.mobile-submenu-toggle svg {
  transition: transform 0.3s ease;
}

.mobile-submenu-toggle.open svg {
  transform: rotate(180deg);
}