/* Bootstrap Crafted — custom styling layer */
:root {
  --bc-bg: #0b1020;
  --bc-surface: rgba(255, 255, 255, 0.1);
  --bc-surface2: rgba(255, 255, 255, 0.14);
  --bc-border: rgba(255, 255, 255, 0.18);
  --bc-text: rgba(255, 255, 255, 0.96);
  --bc-muted: rgba(255, 255, 255, 0.78);
  --bc-accent: #7c5cff;
  --bc-accent2: #00d4ff;
  --bc-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --bc-radius: 1.25rem;

  /* REMARK: Global font stack for the entire site (incl. Bootstrap components) */
  --bc-font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --bs-font-sans-serif: var(--bc-font-sans);
  --bs-body-font-family: var(--bc-font-sans);
}

html {
  scroll-behavior: smooth;
  /* REMARK: Ensure base typography uses the global sans stack */
  font-family: var(--bc-font-sans);
}
body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(124, 92, 255, 0.35), transparent 55%), radial-gradient(900px 500px at 90% 10%, rgba(0, 212, 255, 0.25), transparent 55%),
    radial-gradient(700px 400px at 70% 110%, rgba(124, 92, 255, 0.22), transparent 55%), var(--bc-bg);
  color: var(--bc-text);
  font-family: var(--bc-font-sans);

  /* REMARK: Bootstrap colors/fonts inherit site variables */
  --bs-body-color: var(--bc-text);
  --bs-body-bg: var(--bc-bg);
}

/* Headings */

h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

/* REMARK: Form controls/buttons inherit the global font stack */
button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}
.card {
  color: var(--bc-text);
}
.text-muted,
.text-secondary,
.text-body-secondary {
  color: var(--bc-muted) !important;
}
.text-dark,
.text-black {
  color: var(--bc-text) !important;
}
.form-label {
  color: rgba(255, 255, 255, 0.86);
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

.container-narrow {
  max-width: 980px;
}

.navbar {
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 28, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}
.nav-pill {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}
.nav-pill.active {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: radial-gradient(14px 14px at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, var(--bc-accent), var(--bc-accent2));
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.25);
}

.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}
.hero .hero-card {
  border-radius: calc(var(--bc-radius) + 0.5rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(7, 231, 243, 0.3);
  box-shadow: var(--bc-shadow);
}
.hero .hero-glow {
  position: absolute;
  inset: -200px;
  background:
    radial-gradient(600px 300px at 25% 35%, rgba(124, 92, 255, 0.35), transparent 60%), radial-gradient(550px 320px at 75% 25%, rgba(0, 212, 255, 0.25), transparent 60%),
    radial-gradient(480px 260px at 55% 70%, rgba(124, 92, 255, 0.18), transparent 60%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite;
}
@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.02);
  }
}

.kicker {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bc-accent2);
  box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.12);
}

.display-hero {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lead {
  color: rgba(255, 255, 255, 0.9);
}

.btn-glow {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(124, 92, 255, 0.18);
}
.btn-primary.btn-glow {
  background: linear-gradient(135deg, var(--bc-accent), var(--bc-accent2));
  border: none;
}
.btn-outline-light.btn-glow {
  background: rgba(255, 255, 255, 0.05);
}

.card-glass {
  border-radius: var(--bc-radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(7, 231, 243, 0.3);
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.35);
}
.card-glass:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease;
}
.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.section {
  padding: 5.25rem 0;
}
.section-title {
  font-weight: 800;
  letter-spacing: -0.015em;
}
.section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.hr-soft {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
}

.badge-soft {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

.parallax {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(11, 16, 32, 0.65), rgba(11, 16, 32, 0.7)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'%3E%3Cdefs%3E%3CradialGradient id='g1' cx='30%25' cy='35%25' r='60%25'%3E%3Cstop offset='0' stop-color='%237c5cff' stop-opacity='.65'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='g2' cx='75%25' cy='25%25' r='55%25'%3E%3Cstop offset='0' stop-color='%2300d4ff' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='g3' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0' stop-color='%230b1020'/%3E%3Cstop offset='1' stop-color='%23060a14'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g3)'/%3E%3Ccircle cx='520' cy='320' r='520' fill='url(%23g1)'/%3E%3Ccircle cx='1150' cy='260' r='520' fill='url(%23g2)'/%3E%3Cpath d='M0 670 C 260 620, 420 760, 700 700 S 1150 680, 1600 720 L 1600 900 L 0 900 Z' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.parallax .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 500px at 20% 40%, rgba(255, 255, 255, 0.07), transparent 60%), radial-gradient(700px 420px at 80% 20%, rgba(255, 255, 255, 0.06), transparent 62%);
  pointer-events: none;
}

.pricing-card {
  position: relative;
  overflow: hidden;
}
.pricing-card.featured {
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 30px 90px rgba(0, 212, 255, 0.14);
}
.pricing-card .ribbon {
  position: absolute;
  top: 18px;
  right: -48px;
  transform: rotate(35deg);
  padding: 0.35rem 3rem;
  font-weight: 800;
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--bc-accent), var(--bc-accent2));
  color: #07101f;
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

/* Footer menu (match scottdoucet.com style: inline links + social) */
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.footer-menu a {
  font-weight: 600;
  letter-spacing: 0.1px;
}
.footer-social {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer {
  padding: 0.5rem 0 0.2rem;
  border-top: 1px solid rgba(83, 83, 83, 0.9);
  background: rgba(10, 14, 28, 0.45);
}
.footer a {
  color: rgba(255, 255, 255, 0.75);
}
.footer a:hover {
  color: rgba(255, 255, 255, 0.95);
}
.footer .small {
  color: rgba(255, 255, 255, 0.6);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1030;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--bc-accent), var(--bc-accent2));
  z-index: 2000;
}

/* Blog */
.blog-hero {
  padding: 6rem 0 2.5rem;
}
.code-pill {
  /* REMARK: Uses the global sans stack; kept explicit for consistency */
  font-family: var(--bc-font-sans);
  /* font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; */
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero .hero-glow {
    animation: none !important;
  }
  .card-glass:hover {
    transform: none;
  }
}

/* Mobile parallax fallback (background-attachment fixed is unreliable on iOS) */
@media (max-width: 991.98px) {
  .parallax {
    background-attachment: scroll;
  }
}

/* STICKY FOOTER (scoped): keeps footer flush on short pages without affecting hero layout */
body.sticky-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.sticky-footer main {
  flex: 1 0 auto;
}
body.sticky-footer footer {
  flex-shrink: 0;
}

.footer a.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
  text-decoration: none;
}
.footer a.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05rem;
  width: 100%;
  height: 3px;
  background: #f7c600; /* yellow band */
  border-radius: 999px;
  transform: translateX(-110%);
  opacity: 0.95;
  transition: transform 0.22s ease;
}
.footer a.footer-link:hover::after,
.footer a.footer-link:focus-visible::after {
  transform: translateX(0);
}
.footer a.footer-link:focus-visible {
  outline: none;
}
/* keep icons unaffected */
.footer a[aria-label]::after {
  display: none !important;
}

/* FOOTER MENU: yellow underline appears ONLY on hover/focus (animates left->right under text) */
.footer .d-grid.gap-1 {
  justify-items: start; /* prevents grid items stretching full width */
}

.footer a.footer-link {
  position: relative;
  display: inline-flex;
  width: max-content;
  padding-bottom: 0.35rem;
  text-decoration: none;
}

.footer a.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08rem;
  height: 3px;
  width: 100%;
  background: #f7c600;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition:
    transform 0.22s ease,
    opacity 0.12s ease;
  pointer-events: none;
}

.footer a.footer-link:hover::after,
.footer a.footer-link:focus-visible::after {
  transform: scaleX(1);
  opacity: 0.95;
}

.footer a.footer-link:focus-visible {
  outline: none;
}

/* Social icon links should not get the underline */
.footer a[aria-label]::after {
  display: none !important;
}

.form-control.is-invalid {
  border-color: rgba(220, 53, 69, 0.8);
}

/* BC TOAST (light blue background + dark text) */
:root {
  --bc-yellow: #f7c600;
  --bc-toast-bg: rgba(120, 190, 255, 0.92);
  --bc-toast-text: #071423;
  --bc-toast-border: rgba(255, 255, 255, 0.18);
}

.bc-toast {
  background: var(--bc-toast-bg) !important;
  color: var(--bc-toast-text) !important;
  border: 1px solid var(--bc-toast-border) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bc-toast .toast-header {
  background: transparent !important;
  color: var(--bc-toast-text) !important;
  border-bottom: 1px solid rgba(7, 20, 35, 0.12) !important;
}
.bc-toast .toast-body {
  color: var(--bc-toast-text) !important;
}
.bc-toast .btn-close {
  filter: none; /* dark text close */
  opacity: 0.65;
}
.bc-toast .btn-close:hover {
  opacity: 0.9;
}

/* Buttons: on hover/focus text becomes bright yellow */
.btn:hover,
.btn:focus-visible {
  color: var(--bc-yellow) !important;
}

/* Footer v2 (balanced layout) */
.footer.footer-v2 .footer-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.footer.footer-v2 .footer-desc {
  max-width: 36ch;
}
.footer.footer-v2 .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.25rem;
  margin: 0 auto;
  max-width: 680px;
}
.footer.footer-v2 .footer-social a {
  opacity: 0.9;
  transform: translateY(0);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.footer.footer-v2 .footer-social a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
@media (max-width: 575.98px) {
  .footer.footer-v2 .footer-nav {
    gap: 0.75rem 1.25rem;
  }
}

/* Footer home layout */
.footer.footer-v2.footer-home .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer.footer-v2.footer-home .footer-nav {
  margin-left: auto;
  margin-right: 0;
  max-width: none;
}

.footer.footer-v2.footer-home .footer-email {
  max-width: 310px;
  width: 310px;
}

@media (max-width: 991.98px) {
  .footer.footer-v2.footer-home .footer-right {
    align-items: flex-start;
  }
  .footer.footer-v2.footer-home .footer-title,
  .footer.footer-v2.footer-home .footer-updates .footer-title {
    text-align: left !important;
  }
  .footer.footer-v2.footer-home .footer-nav {
    justify-content: flex-start !important;
  }
  .footer.footer-v2.footer-home .footer-updates form {
    justify-content: flex-start !important;
  }
  .footer.footer-v2.footer-home .footer-email {
    max-width: 310px;
    width: 310px;
  }
}

/* Footer home layout (v2 tweaks) */
.footer.footer-v2 .footer-title {
  font-weight: 800;
  opacity: 0.95;
}

.footer.footer-v2.footer-home .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Keep the whole menu/update block right-aligned, but title left-aligned over the links */
.footer.footer-v2.footer-home .footer-menu-block {
  width: max-content;
  text-align: left;
  align-self: flex-end;
}

.footer.footer-v2.footer-home .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.25rem 2.5rem;
  margin: 0;
  max-width: none;
}

.footer.footer-v2.footer-home .footer-updates {
  width: max-content;
  align-self: flex-end;
  text-align: left;
}

.footer.footer-v2.footer-home .footer-email {
  max-width: 310px;
  width: 310px;
}

/* Center bottom row already handled by markup */
@media (max-width: 991.98px) {
  .footer.footer-v2.footer-home .footer-right {
    align-items: flex-start;
  }
  .footer.footer-v2.footer-home .footer-menu-block,
  .footer.footer-v2.footer-home .footer-updates {
    width: 100%;
    align-self: auto;
  }
  .footer.footer-v2.footer-home .footer-nav {
    justify-content: flex-start;
  }
  .footer.footer-v2.footer-home .footer-updates form {
    justify-content: flex-start !important;
  }
  .footer.footer-v2.footer-home .footer-email {
    max-width: 310px;
    width: 310px;
  }
}

/* contact menu fix */
#contact.section {
  min-height: 70vh;
}

/* Nav Menu Hover */

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: rgba(255, 255, 255, 1) !important;
}

/* Page load text */
.page-load {
  font-size: 1rem;
  color: aqua;
  font-weight: 600;
}

.time {
  color: aliceblue;
}

/* Testimonials */
.testimonials {
  color: aqua;
}

.aqua {
  color: aqua;
}

.certs {
  color: aqua;
  font-size: 12px;
}

/* Guarantee CTA - single (no outer) card */
.guarantee-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);

  /* interesting background ON the card */
  background:
    radial-gradient(600px circle at 20% 20%, rgba(76, 120, 255, 0.32), transparent 55%), radial-gradient(500px circle at 85% 70%, rgba(120, 80, 255, 0.26), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.guarantee-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.28;
  /* subtle fade so it’s not noisy */
  -webkit-mask-image: radial-gradient(circle at 35% 35%, #000 0 60%, transparent 80%);
  mask-image: radial-gradient(circle at 35% 35%, #000 0 60%, transparent 80%);
}

/* Animate the background */

/* Stronger, visible animated background sweep */
.card.card-glass.guarantee-card {
  position: relative;
  overflow: hidden;
}

/* Moving gradient layer */
.card.card-glass.guarantee-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(
    115deg,
    rgba(76, 120, 255, 0.15) 0%,
    rgba(76, 120, 255, 0.55) 20%,
    rgba(120, 80, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.12) 60%,
    rgba(120, 80, 255, 0.5) 80%,
    rgba(76, 120, 255, 0.18) 100%
  );

  filter: blur(18px) saturate(1.2);
  opacity: 0.85;

  transform: translateX(-18%) translateY(0);
  animation: guaranteeSweep 4.5s ease-in-out infinite alternate;
}

/* Optional: boost the dots a touch so they stay visible */
.card.card-glass.guarantee-card::after {
  opacity: 0.34; /* increase if you want more texture */
}

/* Keep text above the animated layer */
.card.card-glass.guarantee-card > * {
  position: relative;
  z-index: 2;
}

@keyframes guaranteeSweep {
  from {
    transform: translateX(-18%) translateY(-2%);
  }
  to {
    transform: translateX(18%) translateY(2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card.card-glass.guarantee-card::before {
    animation: none;
  }
}

/* Different hover state to dark blue */
/* Turns button text dark blue on hover/focus */
.button-hover:hover,
.button-hover:focus,
.button-hover:focus-visible {
  color: #0a0d16 !important;
}

/* FAQ answers */
.faq-answer {
  color: rgb(192, 191, 191);
}

/* Blog titles changes stored in  JS */
/* Blog index card titles */
body[data-page="blog-index"] #postList h5 {
  color: aqua; /* <-- set your title color */
}

/* Single post page title */
body[data-page="blog-post"] #postTitle {
  color: aqua; /* <-- set your post title color */
}

body[data-page="blog-index"] #postList a:hover h5 {
  color: #fffb00;
}

/* Blogs in root index.html file */

/* Home page: "Most recent blogs" titles */
#blogPreview h5,
#blogPreview .h5,
#blogPreview h4,
#blogPreview .h4 {
  color: aqua; /* <-- set your title color */
}

/* Optional: hover state for the title link */
#blogPreview a:hover h5,
#blogPreview a:hover .h5,
#blogPreview a:hover h4,
#blogPreview a:hover .h4 {
  color: #fffb00;
}

/* BC NEWSLETTER THANK YOU */
.bc-newsletter-thanks {
  font-weight: 800 !important;
  color: #00ffff !important;
}

.card-body {
  color: #1b1e2a !important;
}
