/* ========================================
   AlgoFusion – Clean Professional Theme
   Light, trustworthy, no dark neon
   ======================================== */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-muted: #5c6570;
  --primary: #1e4d8c;
  --primary-hover: #163a6b;
  --accent: #2a6f97;
  --border: #e2e6ec;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(26, 29, 35, 0.06);
  --shadow-hover: 0 8px 28px rgba(26, 29, 35, 0.1);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  color: var(--text);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.text-muted { color: var(--text-muted) !important; }

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text) !important;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.45rem 0.9rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--text);
  border-radius: 8px;
  font-weight: 500;
}

.btn-outline-secondary:hover {
  background: var(--bg);
  border-color: #c5cbd3;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero .lead { font-size: 1.12rem; }

.hero-image-placeholder,
.product-image,
.feature-image-placeholder,
.infra-image-placeholder {
  background: #f0f2f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder { min-height: 320px; box-shadow: var(--shadow); }

.placeholder-box {
  width: 100%;
  min-height: 200px;
  background: #f0f2f5;
  border: 2px dashed #c5cbd3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem;
  font-size: 0.92rem;
}

.placeholder-box.dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}

/* Cards */
.product-card, .option-card, .pricing-card, .feature-card {
  position: relative; /* required for stretched-link hit area to stay inside the card */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden; /* clip stretched-link overlay */
}

.product-card:hover, .pricing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-body, .option-body { padding: 1.4rem; }

.badge-product {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #e8f0f8;
  color: var(--primary);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

/* Accordion for A/B/C options */
.accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface);
}

.accordion-button:not(.collapsed) {
  background: #eef4fb;
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.15);
}

.accordion-item {
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  border-radius: var(--radius) !important;
  overflow: hidden;
}

.accordion-body {
  background: #fafbfc;
  font-size: 0.95rem;
}

/* Pricing */
.pricing-card {
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-card .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.pricing-features li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.92rem;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Infra box */
.infra-box {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e4d8c 100%);
  border-radius: 16px;
  padding: 2.75rem;
  color: white;
}

.stat-item {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.1rem;
}

.stat-value { font-size: 1.6rem; font-weight: 700; color: white; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* Security box */
.security-box {
  background: #f0f5fa;
  border: 1px solid #d4e0ed;
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* Contact */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.15);
}

/* Footer */
.footer {
  background: #1a1d23;
  color: #a0a8b4;
  padding: 3.25rem 0 1.75rem;
}

.footer-brand { color: white; font-size: 1.2rem; font-weight: 700; }
.footer-heading {
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a {
  color: #a0a8b4;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.35rem;
}
.footer-links a:hover { color: white; }

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 1.75rem 0 1.25rem;
}

/* Utilities */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.65rem;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.benefit-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #e8f0f8;
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .hero { padding: 3rem 0 2.5rem; }
  .infra-box { padding: 1.75rem; }
}
@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.8rem; }
  .contact-card { padding: 1.5rem; }
}

/* ========================================
   Auto-rotating Image Slideshow
   ======================================== */

.image-slideshow {
  position: relative;
  background: #f0f2f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--shadow);
}

.image-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-slideshow .slide.active {
  opacity: 1;
  z-index: 1;
}

.image-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-slideshow .slide.has-placeholder img {
  display: none;
}

.slide-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #f0f2f5;
  border: 2px dashed #c5cbd3;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem;
}

.image-slideshow .slide.has-placeholder .slide-placeholder {
  display: flex;
}

.slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 77, 140, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.2s ease;
}

.slideshow-dots .dot.active {
  background: var(--primary);
  transform: scale(1.15);
}

.slideshow-dots .dot:hover {
  background: var(--primary);
}

/* Video slide support */
.image-slideshow .slide-video {
  background: #0f1218;
}

.image-slideshow .slide-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Show placeholder only when video has no source / fails */
.image-slideshow .slide-video:not(.has-video) .slide-placeholder {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.image-slideshow .slide-video.has-video .slide-placeholder {
  display: none;
}


/* Keep hero CTAs clickable above any stretched-link overlays */
.hero {
  position: relative;
  z-index: 2;
}
.hero .btn {
  position: relative;
  z-index: 3;
}
.section {
  position: relative;
  z-index: 1;
}

/* ========================================
   Image zoom on hover
   ======================================== */

.product-image img,
.hero-image-placeholder img,
.feature-image-placeholder img,
.infra-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  transform-origin: center center;
}

.product-image:hover img,
.hero-image-placeholder:hover img,
.feature-image-placeholder:hover img,
.infra-image-placeholder:hover img {
  transform: scale(1.08);
}

/* Slideshow: zoom active slide image on hover */
.image-slideshow .slide img {
  transition: transform 0.45s ease, opacity 0.6s ease;
  transform-origin: center center;
}

.image-slideshow:hover .slide.active img {
  transform: scale(1.06);
}

/* Slightly stronger zoom inside product cards */
.product-card:hover .product-image img {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .product-image img,
  .hero-image-placeholder img,
  .feature-image-placeholder img,
  .infra-image-placeholder img,
  .image-slideshow .slide img {
    transition: none;
  }
  .product-image:hover img,
  .hero-image-placeholder:hover img,
  .feature-image-placeholder:hover img,
  .infra-image-placeholder:hover img,
  .image-slideshow:hover .slide.active img,
  .product-card:hover .product-image img {
    transform: none;
  }
}
