/* Synergent AI — Professional Website Styles
   Deep navy foundation, stronger purple accents, cyan pop colour.
   Drop this file in: assets/css/styles.css
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

:root {
  /* Brand palette */
  --color-bg-1: #08111f;
  --color-bg-2: #101a34;
  --color-bg-3: #24124a;
  --color-surface: rgba(10, 18, 34, 0.76);
  --color-surface-strong: rgba(13, 22, 42, 0.92);
  --color-surface-hover: rgba(17, 28, 54, 0.96);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(139, 92, 246, 0.58);

  --color-white: #ffffff;
  --color-gray-100: #f8fafc;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;

  --color-purple: #8b5cf6;
  --color-purple-strong: #7c3aed;
  --color-cyan: #22d3ee;
  --color-cyan-soft: rgba(34, 211, 238, 0.12);

  /* Existing variable names kept for compatibility with current HTML */
  --color-bright-blue: var(--color-cyan);
  --color-electric-blue: var(--color-purple);
  --body-color1: rgba(8, 17, 31, 0.92);
  --body-bg1: linear-gradient(135deg, var(--color-bg-1) 0%, var(--color-bg-2) 46%, var(--color-bg-3) 100%);
  --body-bg2: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(34, 211, 238, 0.08));
  --bg-color2: rgba(255, 255, 255, 0.045);
  --bg-color3: rgba(255, 255, 255, 0.085);
  --glass-bg: var(--color-surface);
  --glass-border: var(--color-border);
  --overlay-dark: rgba(3, 7, 18, 0.42);
  --blue-glow-bg: var(--color-cyan-soft);
  --gradient-blue: var(--body-bg2);
  --shadow-glass: 0 16px 44px rgba(0, 0, 0, 0.28);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --border-radius-sm: 0.5rem;
  --border-radius: 1rem;
  --font-body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Optional page theme classes. Kept simple so pages stay consistent. */
body.theme-ally,
body.theme-mint,
body.theme-violet {
  --color-bright-blue: var(--color-cyan);
  --color-electric-blue: var(--color-purple);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--color-white);
  background: var(--body-bg1);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.12), transparent 30%),
    radial-gradient(circle at 85% 16%, rgba(139, 92, 246, 0.20), transparent 34%);
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* Layout */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.d-in-block { display: inline-block; }
.row { display: flex; gap: var(--space-xl); }
.col8 { width: 80%; }
.col4 { width: 20%; }

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-white);
  font-weight: 750;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 span,
.logo-highlight,
.cyan-punch {
  color: var(--color-cyan) !important;
}

p {
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--color-gray-300);
  margin-bottom: 1.5rem;
}

.text-large {
  font-size: clamp(1.35rem, 3vw, 1.875rem);
  line-height: 1.55;
}

strong {
  color: var(--color-white);
  font-weight: 700;
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--body-color1);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.22s ease;
}

.nav.sticky .nav-container {
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbeafe;
  font-size: 0.94rem;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-cyan) !important;
}

.nav-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-white);
  border-radius: 999px;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.18s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2),
.nav-toggle span:nth-child(3) { top: 10px; }
.nav-toggle span:nth-child(4) { top: 20px; }
.nav-toggle.active span { background: var(--color-cyan); }
.nav-toggle.active span:nth-child(1),
.nav-toggle.active span:nth-child(4) { opacity: 0; }
.nav-toggle.active span:nth-child(2) { transform: rotate(45deg); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--color-purple);
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.26);
}

.btn-primary:hover {
  background: var(--color-cyan);
  color: #06111f !important;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.20);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-cyan) !important;
  border-color: rgba(34, 211, 238, 0.38);
}

.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.10);
  border-color: var(--color-cyan);
  color: var(--color-cyan) !important;
}

.nav-links .btn {
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Cards and containers */
.card,
.comparison-col,
.timeline-content,
form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card {
  height: 100%;
  padding: 30px;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.comparison-col:hover,
.timeline-content:hover {
  background: var(--color-surface-hover);
  border-color: rgba(34, 211, 238, 0.30);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.card h3,
.comparison-col h4,
.timeline-content h4 {
  color: var(--color-cyan) !important;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.comparison-col {
  height: 100%;
  padding: 30px;
}

.comparison-col.highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(34, 211, 238, 0.08));
  border: 2px solid var(--color-purple);
}

.comparison-col ul {
  padding-left: 1.15rem;
}

.comparison-col li {
  padding: 0.5rem 0;
  color: var(--color-gray-200);
  line-height: 1.55;
}

.img-block1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.img-block1 img {
  display: block;
  filter: drop-shadow(0 8px 22px rgba(34, 211, 238, 0.12));
}

/* Timeline */
.timeline,
.timeline-section {
  margin-top: 10px;
}

.timeline-section {
  padding-top: 20px !important;
  padding-bottom: var(--space-3xl);
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 36px;
}

.timeline-number,
.timeline-item .img-block1 {
  align-self: start;
}

.timeline-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, var(--color-purple), #111827);
  color: var(--color-white);
  font-size: 2.25rem;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.30);
}

.timeline-content {
  padding: 24px;
}

/* Forms */
.form-area {
  position: relative;
}

.parallax {
  position: relative;
  overflow: hidden;
}

.parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(3, 7, 18, 0.68);
  backdrop-filter: blur(6px);
}

.parallax > .container {
  position: relative;
  z-index: 2;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--color-white);
  background: rgba(8, 17, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(8, 17, 31, 0.94);
}

::placeholder {
  color: var(--color-gray-400);
}

/* Footer */
.footer {
  margin-top: 60px;
  padding: 60px 40px;
  background: rgba(8, 17, 31, 0.88);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 7fr;
  align-items: center;
  gap: 40px;
}

.footer-content p,
.footer-bottom p {
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-gray-300);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

.footer-nav a:hover,
.footer-nav a.active,
.footer-bottom a {
  color: var(--color-cyan) !important;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-gray-400);
}

/* Back to top */
#backToTopBtn {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background-color: var(--color-purple);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  color: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 0-45.3 0s-12.5-32.8 0-45.3l192-192z'/%3E%3C/svg%3E");
}

#backToTopBtn:hover {
  background-color: var(--color-cyan);
  border-color: var(--color-cyan);
}

/* Material icons */
.material-symbols-rounded {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

.list-check,
.list-x {
  font-variation-settings: 'FILL' 1, 'wght' 650, 'GRAD' 0, 'opsz' 24;
}

.list-check { color: var(--color-cyan); }
.list-x { color: #ff6b6b; }

/* Scroll animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease-out both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

[class*='fade-'],
.zoom-in,
.zoom-in2 {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.fade-up { transform: translateY(40px); }
.fade-down { transform: translateY(-40px); }
.fade-left { transform: translateX(40px); }
.fade-right { transform: translateX(-40px); }
.zoom-in { transform: scale(0.92); }
.zoom-in2 { transform: scale(0.86); }
.animate { opacity: 1; transform: translate(0, 0) scale(1); }

.d100 { transition-delay: 0.1s; }
.d200 { transition-delay: 0.2s; }
.d300 { transition-delay: 0.3s; }
.d400 { transition-delay: 0.4s; }
.d500 { transition-delay: 0.5s; }
.d600 { transition-delay: 0.6s; }
.d700 { transition-delay: 0.7s; }
.d800 { transition-delay: 0.8s; }
.d900 { transition-delay: 0.9s; }
.d1000 { transition-delay: 1s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [class*='fade-'],
  .zoom-in,
  .zoom-in2 {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .nav-container { padding: 15px 20px !important; }
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 24px;
    background: rgba(8, 17, 31, 0.98);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(16px);
    transform: translateY(-112%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.18s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li,
  .nav-links a,
  .nav-links .btn {
    width: 100%;
  }

  .nav-links a {
    justify-content: flex-start;
    padding: 14px 4px;
  }

  .nav-links .btn {
    justify-content: center;
    margin-top: 8px;
  }

  .section { padding: 110px 20px 44px; }
  .container { padding: 0 20px; }
  .card-grid, .comparison { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: 20px; }
  .timeline-number { width: 60px; height: 60px; font-size: 1.6rem; }

  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}

@media (max-width: 520px) {
  :root { --space-2xl: 2rem; --space-3xl: 3.5rem; }
  .section { padding-left: 18px; padding-right: 18px; }
  .container { padding: 0 18px; }
  .card, .comparison-col, .timeline-content { padding: 22px; }
  .timeline-item { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  .col8, .col4 { width: 100%; }
  .col4 { order: 1; }
  .col8 { order: 2; }
}
