@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Orbitron:wght@500;600;700&display=swap');

:root {
  --primary-color: #2563EB;
  --primary-dark: #1E40AF;
  --secondary-color: #7C3AED;
  --accent-color: #06B6D4;
  --highlight-color: #3B82F6;
  --text-color: #1F2937;
  --text-muted: #6B7280;
  --ink-color: #ffffff;
  --bg-color: #ffffff;
  --bg-panel: #F9FAFB;
  --bg-bright: rgba(0, 0, 0, 0.05);
  --glass-border: 1px solid rgba(0, 0, 0, 0.08);
  --border-strong: 1px solid rgba(37, 99, 235, 0.3);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-bright: 0 4px 20px rgba(37, 99, 235, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --cursor-x: 50%;
  --cursor-y: 50%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

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

section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 2;
}

.content-width,
.nav-container,
.footer-content,
.stats-container,
.hero-content,
.pricing-container,
.addons-grid,
.contact-container,
.locations-grid,
.values-grid,
.team-grid,
.timeline,
.cert-grid,
.partners-grid,
.newsletter-content,
.data-platforms,
.api-features,
.security-services,
.tech-capabilities,
.tools-section,
.process-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* Floating blobs for visual interest */
.floating-bg {
  position: absolute;
  inset: -20% auto auto -20%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.1), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(124, 58, 237, 0.1), transparent 60%);
  filter: blur(60px);
  opacity: 0.7;
  z-index: -1;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--bg-panel);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

.nav-logo span {
  color: var(--secondary-color);
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link-cta {
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-weight: 600;
}

.nav-link-cta:hover {
  background: var(--primary-color);
  color: #ffffff;
}

@keyframes flowGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-link-flow, .btn-flow {
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff !important;
  background: linear-gradient(270deg, #2563EB, #7C3AED, #2563EB);
  background-size: 200% 200%;
  animation: flowGradient 3s ease infinite;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  border: none;
}

.nav-link-flow:hover, .btn-flow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  color: #ffffff;
}

.hero {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff, #f0f4ff);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text-color);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-align: center; /* Added centering */
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-bright);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--bg-panel);
  padding: 1rem;
  border-radius: 12px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  gap: 0.8rem;
}

.stats {
  background: var(--bg-panel);
  padding: 4rem 2rem;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  padding: 7rem 2rem;
  margin-top: 4rem;
}

.section-cta h2 {
  font-size: 3rem; /* Increased font size for CTA heading */
  margin-bottom: 2.5rem; /* Increased margin */
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta-content p {
  font-size: 1.2rem;
  max-width: 600px; /* Constrain width for better readability */
  margin: 0 auto 3.5rem; /* Center the block horizontally and maintain bottom margin */
  opacity: 0.9;
}

.cta-content .btn-flow {
  display: block;
  width: fit-content; /* Ensure it only takes up needed width */
  margin: 0 auto; /* Center the block-level element */
}

.cta-content .btn-primary {
  background: #ffffff;
  color: var(--primary-dark);
}

.footer {
  background: #f9fafb;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: auto; /* Push footer to bottom */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Reduced min-width to keep in one row */
  gap: 3rem;
}

.footer h3 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.8rem;
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-muted);
}

/* Page Specific Styles - Adapting to Light Theme */

.page-header {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: var(--bg-panel);
  text-align: center;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.platform-card, .service-card, .value-card, .pricing-card, .location-card, .addon-item, .feature-item, .step, .capability-item, .tool-item, .team-member, .cert-badge {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  border-radius: 16px;
  transition: var(--transition);
  text-align: center;
}

.platform-card:hover, .service-card:hover, .value-card:hover, .location-card:hover, .addon-item:hover, .feature-item:hover, .step:hover, .capability-item:hover, .tool-item:hover, .team-member:hover, .cert-badge:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-bright);
}

.platforms-grid, .api-features .features-list, .services-grid, .process-steps, .capabilities-grid, .tools-grid, .pricing-container, .addons-grid, .values-grid, .team-grid, .cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item, .step {
  display: flex;
  flex-direction: row; /* Changed from column to row */
  align-items: flex-start; /* Changed from center to flex-start */
  gap: 1rem;
  text-align: left; /* Added to align text within the item */
}

.feature-number, .step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  opacity: 0.3;
  font-family: 'Orbitron', sans-serif;
  margin-right: 1rem; /* Added space between number and details */
  flex-shrink: 0; /* Prevent number from shrinking */
}

.feature-details h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.feature-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.code-section {
  background: #f3f4f6;
  padding: 4rem 2rem;
  margin-top: 4rem;
  border-radius: 24px;
}

.code-example {
  background: #1f2937;
  border-radius: 16px;
  padding: 2rem;
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
  border: 1px solid #374151;
  text-align: left;
}

.code-example pre {
  margin: 0;
}

.code-example code {
  font-family: 'Source Code Pro', monospace;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.platform-features, .service-features {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem; /* Increased margin for better separation */
  text-align: center;
}

.platform-features li, .service-features li {
  display: inline-block;
  background: var(--bg-panel);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25rem;
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}

.pricing-card .features-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

.pricing-card .features-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  text-indent: -1.5rem; /* Hanging indent for checkmarks */
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
  outline: none;
  list-style: none; /* Hide default triangle */
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-color);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Page Styles */
.header-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.header-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.mission-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .mission-content {
    flex-direction: row;
    align-items: flex-start;
  }
  .mission-text {
    flex: 1;
  }
  .mission-stats {
    flex: 1;
  }
}

.mission-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.stat {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.member-avatar, .cert-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--bg-panel);
  padding: 1rem;
  border-radius: 50%;
  line-height: 1;
}

/* Contact Page Styles */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-container {
    flex-direction: row;
    align-items: flex-start;
  }
  .contact-form-container {
    flex: 2;
  }
  .contact-form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  #submitBtn {
    display: flex;
    margin: 2rem auto 0; /* Center button horizontally */
    min-width: 200px;
  }
  
  .form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
  }
  
  .form-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
  }
  
  .form-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
  }
  
  .contact-info-container {
    flex: 1;
    background: #ffffff;    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
  }
}

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 1.5rem;
  background: var(--bg-panel);
  padding: 0.8rem;
  border-radius: 12px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

.info-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer Refinement */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.footer-logo .logo-text {
  color: var(--primary-dark);
}

.footer-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.social-links-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links-row a {
  color: var(--primary-color);
  font-weight: 500;
}

.social-links-row .separator {
  opacity: 0.5;
}

.footer-section h4 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.price {
  font-size: 3rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin: 1rem 0;
}

.contact-form-container {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: var(--text-color);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Admin Panel Styles (Dark Mode Preserved for Admin or simplified?)
   Let's keep Admin clean light mode too for consistency. */

#admin-app {
  min-height: 100vh;
  background: #f3f4f6;
  padding: 2rem;
}

.admin-login-box, .admin-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.admin-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.message-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.message-row:hover {
  background: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    display: none; /* Simplify for now, or adding a hamburger would be better but keeping it simple as per request */
  }
  
  .stats-container {
    grid-template-columns: 1fr 1fr;
  }
}
