:root {
  --ink: #07111f;
  --muted: #647084;
  --line: #dde6f1;
  --soft: #f6f8fb;
  --panel: #ffffff;
  --brand: #075be8;
  --brand-2: var(--brand);
  --accent: #8bc53f;
  --navy: #06111f;
  --navy-2: #0b1f35;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.12);
  --soft-shadow: 0 18px 48px rgba(7, 17, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}


.navbar>.container,
.navbar-collapse,
.navbar-nav,
.footer-inner {
  display: flex;
  align-items: center;
}

.navbar>.container {
  justify-content: space-between;
}

.navbar-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.75rem;
}

.navbar-collapse {
  flex-grow: 1;
  justify-content: flex-end;
}

.ms-auto {
  margin-left: auto;
}

.navbar-toggler {
  display: none;
}

.navbar-toggler-icon {
  display: block;
  width: 1.5rem;
  height: 1rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
}

.navbar-toggler-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--ink);
  transform: translateY(-50%);
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }

  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }

  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
}

@media (min-width: 1200px) {
  .col-xl-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }

  .col-xl-9 {
    flex: 0 0 auto;
    width: 75%;
  }
}

.cursor-glow {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background: radial-gradient(circle, rgba(20, 184, 212, 0.24), transparent 68%);
  transform: translate(-50%, -50%);
}

.site-nav {
  padding: 1.25rem 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-nav.nav-scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(7, 17, 31, 0.08);
}

.navbar-brand img {
  width: clamp(10.5rem, 17vw, 16rem);
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.site-nav.nav-scrolled .navbar-brand img {
  filter: none;
}

.navbar-toggler {
  border: 0;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(7, 91, 232, 0.16);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.3s ease;
}

.site-nav.nav-scrolled .nav-link {
  color: #182234;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
}

.site-nav.nav-scrolled .nav-link:hover,
.site-nav.nav-scrolled .nav-link:focus {
  color: var(--brand);
}

.site-nav.nav-scrolled .btn-outline-light {
  color: var(--brand);
  border-color: var(--brand);
}

.site-nav.nav-scrolled .btn-outline-light:hover,
.site-nav.nav-scrolled .btn-outline-light:focus {
  background-color: var(--brand);
  color: #ffffff;
}

.btn {
  border-radius: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-width: 1px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 16px 32px rgba(7, 91, 232, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand);
  border-color: var(--brand);
  opacity: 0.9;
}

.btn-ghost,
.btn-outline-dark {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
}

.nav-cta {
  padding: 0.6rem 1rem;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 12rem 0 6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111;
  isolation: isolate;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -4;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  /* Diagonal sharp split: Premium Deep Tech Blue on left, transparent dark on right */
  background: linear-gradient(110deg, rgba(5, 18, 48, 0.96) 0%, rgba(10, 42, 110, 0.92) 55%, rgba(0, 0, 0, 0.2) 55.1%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.25vw, 1.15rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Custom Buttons for Hero */
.btn-brand-outline {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
  background: #ffffff;
  color: #075be8;
  /* Verixo brand blue */
  border-color: #ffffff;
}

.btn-text-link {
  color: #ffffff;
  background: transparent;
  border: none;
  padding: 0.7rem 0;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: none;
}

.btn-text-link i {
  margin-left: 0.4rem;
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.btn-text-link:hover,
.btn-text-link:focus {
  color: rgba(255, 255, 255, 0.8);
}

.btn-text-link:hover i {
  transform: translateX(4px);
}

.section-pad {
  padding: 6.5rem 0;
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.industry-section h2,
.process-section h2,
.contact-section h2,
#technology h2,
.engagement-card h2,
.intro-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading p,
.section-lead,
.muted-copy {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.section-heading p {
  margin: 1rem 0 0;
  max-width: 48rem;
}

.intro-section {
  background: transparent;
}

.intro-panel {
  padding: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #0b111e;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.intro-grid div {
  padding: 1.15rem;
  border: none;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.intro-grid div:hover {
  background: transparent;
  border-left-color: var(--brand);
  transform: translateX(5px);
}

.intro-grid span {
  color: var(--brand);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
}

.intro-grid h3,
.service-card h3,
.industry-card h3,
.impact-card h3,
.timeline-item h3,
.engagement-options h3 {
  margin: 0.55rem 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 850;
}

.intro-grid p,
.service-card p,
.impact-card p,
.timeline-item p,
.engagement-options p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.industry-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.72;
}

.cred-strip {
  display: none;
}

.service-card,
.impact-card,
.contact-form {
  height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(221, 230, 241, 0.9);
  box-shadow: var(--soft-shadow);
}

.service-card {
  padding: 2rem;
  background: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.impact-card:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(7, 91, 232, 0.3);
  box-shadow: var(--shadow);
}

.featured-card {
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(7, 91, 232, 0.24), transparent 14rem),
    linear-gradient(145deg, #07111f, #06111f);
}

.service-card i,
.industry-card i,
.impact-card>span {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 1.55rem;
  border-radius: 8px;
  background: #edf5ff;
}

.featured-card>i {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.featured-card p {
  color: rgba(255, 255, 255, 0.72);
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.3rem;
  color: var(--brand);
  font-weight: 850;
}

.featured-card a {
  color: #ffffff;
}

.industry-section {
  background: #050b14;
}

.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
}

.industry-hero-card {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.industry-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-hero-card:hover img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 5, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.industry-card {
  padding: 1.65rem;
  background: #0b111e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(255, 255, 255, 0.15);
  background: #0e1525;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
  .industry-card-wide {
    grid-column: span 3;
  }
  .wide-content {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .wide-content i {
    margin-bottom: 0 !important;
  }
}

.industry-card i {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.industry-card:hover i {
  transform: scale(1.1);
  background: var(--brand);
  color: #fff;
}

.impact-section {
  background: #ffffff;
}

.impact-card {
  padding: 2rem;
  background: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.impact-card>span {
  color: #ffffff;
  background: var(--brand);
  font-size: 1rem;
  font-weight: 900;
}

.process-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(7, 91, 232, 0.17), transparent 22rem),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #ffffff;
}

.process-section .section-kicker {
  color: var(--brand);
}

.process-section .muted-copy {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1.2rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.timeline-item span {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #ffffff;
  border-radius: 8px;
  font-weight: 900;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.7);
}

.tech-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.tech-panel span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  color: var(--ink);
  border: 1px solid rgba(7, 91, 232, 0.16);
  border-radius: 8px;
  background: #f6faff;
  font-weight: 800;
}

.engagement-section {
  padding: 0 0 3.5rem;
}

.engagement-card {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #ffffff;
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 12%, rgba(7, 91, 232, 0.22), transparent 18rem),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow);
}

.engagement-card .section-kicker {
  color: var(--brand);
}

.engagement-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.engagement-options div {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.engagement-options i {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 1.8rem;
}

.engagement-options p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: #f8f9fa;
  position: relative;
}

.contact-section h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.contact-section .section-kicker {
  color: var(--brand);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-list a,
.contact-list>span {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-list a:hover {
  color: var(--brand);
  transform: translateX(5px);
}

.contact-list i {
  font-size: 1.3rem;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(7, 91, 232, 0.08);
  border-radius: 8px;
}

.contact-form {
  padding: clamp(2rem, 4vw, 3rem);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-form .form-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
  min-height: 3.2rem;
  background-color: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control::placeholder {
  color: #a0aab5;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background-color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(7, 91, 232, 0.1);
  color: var(--ink);
}

.contact-form .btn-primary {
  background: var(--brand);
  border: none;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(7, 91, 232, 0.25);
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* --- SIMPLE DECENT FOOTER --- */
.simple-footer {
  background: #050505;
  padding: 5rem 0 2rem;
}

.simple-footer-links .list-inline-item {
  margin-right: 2rem;
}

.simple-footer-links .list-inline-item:last-child {
  margin-right: 0;
}

.simple-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.simple-footer-links a:hover {
  color: #fff;
}

.hover-white {
  transition: color 0.3s ease;
}

.hover-white:hover {
  color: #fff !important;
}

.simple-social-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  margin-left: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.simple-social-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}



.reveal {
  opacity: 0;
}

@media (max-width: 991.98px) {
  .simple-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .simple-footer-links .list-inline-item {
    margin-right: 0;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .engagement-card,
  .engagement-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: none;
    width: 100%;
    flex-basis: 100%;
  }

  .navbar-collapse.show {
    display: flex;
  }

  .navbar>.container {
    flex-wrap: wrap;
  }

  .navbar-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .btn-ghost {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
  }

  .hero-section {
    min-height: auto;
    padding-top: 8.6rem;
  }

  .hero-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 3rem;
  }
}

@media (max-width: 767.98px) {
  .simple-social-links a {
    margin: 0 0.75rem;
  }

  .cursor-glow {
    display: none;
  }

  .hero-section {
    padding: 8rem 0 3.5rem;
  }

  .section-pad {
    padding: 4.5rem 0;
  }

  .hero-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .hero-proof,
  .hero-capabilities,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .intro-section {
    padding-bottom: 4.5rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .tech-panel {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-canvas {
    display: none;
  }
}

/* --- FLOATING ACTIONS --- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  align-items: flex-end;
}

.float-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-5px);
  color: #fff;
}

.back-to-top {
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--brand);
}

/* Custom Chat Widget */
.custom-chat-btn {
  width: auto;
  height: 3.5rem;
  padding: 0 1.5rem;
  background: var(--brand);
  color: #fff;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(7, 91, 232, 0.4);
  cursor: pointer;
  z-index: 1050;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.custom-chat-btn i {
  font-size: 1.25rem;
}

.chat-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #ff3b30;
  border-radius: 50%;
  border: 2px solid #fff;
}

.custom-chat-btn:hover {
  transform: translateY(-3px);
  background: var(--navy);
  box-shadow: 0 10px 25px rgba(7, 91, 232, 0.5);
}

.custom-chat-window {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  width: 350px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.custom-chat-window.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.custom-chat-header {
  background: var(--ink);
  color: #fff;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-chat-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.custom-chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.custom-chat-close:hover {
  color: #fff;
}

.custom-chat-body {
  background: #f8f9fa;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 350px;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-bubble.bot {
  background: #e9ecef;
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}

.chat-bubble.user {
  background: var(--brand);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.4rem 0.5rem;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.chat-input-area {
  padding: 1rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 0.5rem;
}

.chat-input-area input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 2rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input-area input:focus {
  border-color: var(--brand);
}

.chat-input-area input:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
}

.chat-input-area button {
  background: var(--brand);
  color: #fff;
  border: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.chat-input-area button:hover:not(:disabled) {
  background: var(--navy);
}

.chat-input-area button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Quick Replies */
.chat-quick-replies {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  border-top: 1px solid rgba(0,0,0,0.03);
  -webkit-overflow-scrolling: touch;
}

.chat-quick-replies::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.quick-reply-btn {
  flex: 0 0 auto;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
}

.quick-reply-btn i {
  color: var(--brand);
  transition: color 0.25s ease;
}

.quick-reply-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(7, 91, 232, 0.2);
}

.quick-reply-btn:hover i {
  color: #fff;
}

/* Markdown Support in Chat Bubbles */
.chat-bubble.bot p {
  margin-bottom: 0.5rem;
}
.chat-bubble.bot p:last-child {
  margin-bottom: 0;
}
.chat-bubble.bot ul, .chat-bubble.bot ol {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}
.chat-bubble.bot ul:last-child, .chat-bubble.bot ol:last-child {
  margin-bottom: 0;
}
.chat-bubble.bot a {
  color: var(--brand);
  text-decoration: underline;
}
.chat-bubble.bot a:hover {
  text-decoration: none;
}
.chat-bubble.bot strong {
  font-weight: 700;
}