/* Modern Layout Styles for StellarEMS */
:root {
  --sb-primary: #3D88D3;
  --sb-primary-dark: #245a9a;
  --sb-light-bg: #f8fafc;
  --sb-text: #1e293b;
  --sb-text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

body {
  font-family: 'Open Sans', 'Roboto', 'Poppins', sans-serif;
  color: var(--sb-text);
  background-color: var(--sb-light-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Glassmorphism Header */
.glass-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.glass-header .logo img {
  height: 18px;
}

.glass-header .nav-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.glass-header .nav-links a {
  color: var(--sb-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.glass-header .nav-links a:hover {
  color: var(--sb-primary);
}

.glass-header .btn-primary-pill {
  background: var(--sb-primary);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.glass-header .btn-primary-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(61, 136, 211, 0.3);
  color: white;
}

/* Premium Global Buttons */
.btn-premium-primary {
  background: linear-gradient(135deg, var(--sb-primary) 0%, var(--sb-primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(61, 136, 211, 0.25);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-premium-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(61, 136, 211, 0.4);
  color: #fff;
}

.btn-premium-outline {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--sb-text);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-premium-outline:hover {
  background: #fff;
  border-color: rgba(61, 136, 211, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  color: var(--sb-primary);
}

/* Light Hero Section */
.hero-section {
  position: relative;
  padding: 12rem 2rem 8rem;
  background: linear-gradient(135deg, #e6f0fa 0%, #ffffff 100%);
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Container for tsParticles */
#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}



.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(61, 136, 211, 0.1);
  color: var(--sb-primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(61, 136, 211, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--sb-text);
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--sb-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--sb-text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Overlaid Stats Cards */
.stats-overlay {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
  padding: 0 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.stat-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem 1.5rem;
  text-align: left;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sb-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--sb-text-muted);
  font-weight: 500;
}

/* Infinite Scrolling Marquee */
.marquee-wrapper {
  background: white;
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  padding: 0 1.5rem;
  align-items: center;
}

.marquee-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.marquee-badge {
  background: rgba(61, 136, 211, 0.1);
  color: var(--sb-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Spacing & Headings */
.section-padding {
  padding: 6rem 0;
}
.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sb-text);
  margin-bottom: 1rem;
}
.section-subheading {
  font-size: 1.1rem;
  color: var(--sb-text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Grid */
.feature-card {
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 2rem;
  color: var(--sb-primary);
  margin-bottom: 1.25rem;
  display: inline-block;
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--sb-text);
}

/* Editorial Process Steps */
.step-editorial {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2rem;
  border-left: 2px solid rgba(61, 136, 211, 0.15);
  transition: all 0.4s ease;
  background: transparent;
}
.step-editorial:hover {
  background: rgba(61, 136, 211, 0.03);
  border-left-color: var(--sb-primary);
}
.step-bg-number {
  position: absolute;
  top: -1rem;
  right: -1rem;
  font-size: 9rem;
  font-weight: 800;
  color: rgba(61, 136, 211, 0.06);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  /* Fast transition for smooth JS parallax following */
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}
.step-content {
  position: relative;
  z-index: 1;
}

/* Custom Accordion for FAQ */
.faq-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem !important;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--sb-text);
  padding: 1.25rem 1.5rem;
  background: white;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--sb-primary);
  background: #f8fafc;
}
.faq-accordion .accordion-body {
  padding: 1.5rem;
  color: var(--sb-text-muted);
  line-height: 1.6;
  background: white;
}

/* Projects Table */
.projects-table th {
  font-weight: 600;
  color: var(--sb-text-muted);
  background-color: #f1f5f9;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 1rem;
}
.projects-table td {
  padding: 1rem;
  vertical-align: middle;
  color: var(--sb-text);
  font-weight: 500;
}

/* Protocol Badges */
.protocol-badge {
  padding: 0.75rem 1.75rem;
  background: white;
  color: var(--sb-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 1px solid rgba(61, 136, 211, 0.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  cursor: default;
}
.protocol-badge:hover {
  border-color: var(--sb-primary);
  color: var(--sb-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(61, 136, 211, 0.1);
}



/* Responsive */
@media (max-width: 768px) {
  .glass-header {
    border-radius: 0;
    width: 100%;
    top: 0;
  }
  .glass-header .nav-links {
    display: none;
  }
  .hero-section {
    padding-top: 8rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .process-timeline::before {
    left: 1.125rem;
  }
  .process-number {
    left: 0;
  }
  .process-step {
    padding-left: 3.5rem;
  }
}

/* Dashboard Metrics Card */
.metrics-card-wrapper {
  margin-top: 4rem;
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

.metrics-card {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.metrics-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.metrics-value {
  font-size: 3rem;
  font-weight: 300;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metrics-filters {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.2rem;
}

.filter-btn {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
  font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
  color: #111;
}

.metrics-chart-area {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.metrics-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metrics-footer strong {
  color: #111;
  font-weight: 500;
}

/* SVG Chart styling */
.dot-chart circle {
  fill: #e5e7eb;
  transition: all 0.3s ease;
}
.dot-chart circle.active-col {
  fill: #6b7280;
}
.dot-chart circle:hover {
  fill: var(--sb-primary);
  r: 4;
}
