@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@300;400;500;600;700;800&display=swap');

/* Brand Design Tokens from Logo (Light Mode Theme) */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-footer: #08122d; /* Dark navy footer for premium corporate structure */
  
  --accent-cyan: #00abec; /* Logo Cyan */
  --accent-purple: #0056b3; /* Logo Royal Blue */
  --accent-blue: #007cc2; /* Median Brand Blue */
  --accent-teal-dark: #ffffff; /* Mockup Dark Teal */
  --accent-lime: #0f79d6; /* Mockup Lime Green */
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow-cyan: rgba(0, 171, 236, 0.2);
  --border-glow-purple: rgba(0, 86, 179, 0.2);
  
  --font-heading: 'Canva Sans', sans-serif;
  --font-body: 'Canva Sans', sans-serif;
  
  --glow-shadow-cyan: 0 4px 20px rgba(0, 171, 236, 0.12);
  --glow-shadow-purple: 0 4px 20px rgba(0, 86, 179, 0.12);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: #ffffff;
}

body {
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Background Gradients (Soft pastel washes for light mode) */
.bg-glow-sphere-1 {
  position: absolute;
  top: -8%;
  right: 4%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 171, 236, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-sphere-2 {
  position: absolute;
  top: 42%;
  left: -8%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-sphere-3 {
  position: absolute;
  bottom: -8%;
  right: 5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 124, 194, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Glassmorphism Classes */
.glass-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

#nav-logo {
  min-width: 140px;
}

#nav-logo img {
  height: 130px;
  width: auto;
  max-width: 230px;
  border: none;
}

.glass-nav.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* Force dark links in Light Navbar */
.glass-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  transition: color 0.2s;
}

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

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 30px 0 rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 12px 35px 0 rgba(15, 23, 42, 0.08);
}

.glass-card.glow-cyan:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 171, 236, 0.08), var(--glow-shadow-cyan);
}

.glass-card.glow-purple:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 10px 30px rgba(0, 86, 179, 0.08), var(--glow-shadow-purple);
}

/* Override .text-light classes on page sections to ensure dark text on white */
nav .text-light,
header .text-light,
section .text-light {
  color: var(--text-primary) !important;
}

nav .text-secondary,
header .text-secondary,
section .text-secondary {
  color: var(--text-secondary) !important;
}

/* Typography & Text */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.product-title-visible {
  color: #ffffff !important;
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1.05;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.product-card-title {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.btn-apply-primary {
  min-width: 170px;
}

.text-gradient-cyan-purple {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(0, 171, 236, 0.25);
}

.text-glow-purple {
  text-shadow: 0 0 10px rgba(0, 86, 179, 0.25);
}

/* Custom Buttons */
.btn-glow-cyan {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 171, 236, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.max-width-md {
  max-width: 680px;
}

.max-width-lg {
  max-width: 980px;
}

section .text-center > .max-width-md,
section .text-center > .max-width-lg {
  margin-left: auto;
  margin-right: auto;
}

.btn-glow-cyan::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-glow-cyan:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 171, 236, 0.35), var(--glow-shadow-cyan);
}

.btn-glow-cyan:hover::after {
  opacity: 1;
}

.btn-outline-glow,
.btn-secondary-glow {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-glow:hover,
.btn-secondary-glow:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(0, 86, 179, 0.1);
  transform: translateY(-2px);
}

.btn-equal-width {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .btn-equal-width {
    flex: 1 1 100%;
    width: 100%;
    min-width: auto;
    margin-bottom: 0.75rem;
  }
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}

.section-reveal.visible {
  animation: bounceInUp 0.85s cubic-bezier(0.22, 1.03, 0.58, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.floating-element {
  animation: float 4s ease-in-out infinite;
}

.hero-image-container {
  position: relative;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  top: -3%;
  left: -3%;
  right: -3%;
  bottom: -3%;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  z-index: -1;
  filter: blur(10px);
  opacity: 0.15;
}

/* Loan Calculator Styles */
.calculator-container {
  border: 1px solid rgba(0, 171, 236, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 171, 236, 0.03);
  min-height: 100%;
}

.calculator-container .glass-card {
  min-height: 100%;
}

.calc-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.calc-value-display {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Range Input Customization */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 3px;
  outline: none;
  accent-color: var(--accent-cyan);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: transform 0.1s ease;
}

.result-box {
  width: 100%;
}

@media (max-width: 991px) {
  .calculator-container,
  .glass-card.border-primary {
    padding: 2rem !important;
  }

  .result-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .result-box i {
    margin-left: 0;
  }
}

.hero-slider {
  position: relative;
  min-height: clamp(520px, 56.25vw, 720px);
  overflow: hidden;
  width: 100%;
}

/* Product card image sizing and spacing */
.product-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

#products {
  position: relative;
  z-index: 1;
  display: block;
  visibility: visible;
  scroll-margin-top: 90px;
}

#products .row {
  display: flex;
  flex-wrap: wrap;
}

#products .product-hover {
  display: flex;
  visibility: visible;
}

/* Slightly smaller images on small screens */
@media (max-width: 767.98px) {
  .product-card-img {
    height: 120px;
  }

  #products.section-reveal {
    opacity: 1;
    transform: none;
  }

  #products {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  #products > .container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #products .row > [class*="col-"] {
    display: block;
    width: 100%;
  }

  #products .product-hover {
    min-height: 0;
  }

  #products .product-hover > .mt-auto {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem !important;
  }

  #products .product-hover > .mt-auto .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Card-level hover effects for product cards */
.glass-card.product-hover {
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s;
}
.glass-card.product-hover:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

/* Apply icon/button placed on product cards */
.card-apply-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  z-index: 5;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.glass-card:hover .card-apply-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Small icon inside the circle */
.card-apply-icon i {
  font-size: 1.1rem;
}

/* Ensure glass-card is positioned relative for absolute icon */
.glass-card {
  position: relative;
}

/* Brighten hero slide backgrounds while keeping text contrast */
.hero-slide {
  position: relative;
  overflow: hidden;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.20);
  pointer-events: none;
  z-index: 1;
}
.hero-left-content {
  position: relative;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-slide .hero-left-content {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 35, 0.38) 0%, rgba(7, 18, 35, 0.72) 100%);
  z-index: 1;
  backdrop-filter: brightness(1.1);
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide .hero-left-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
  padding: 100px 30px;
}

.hero-slider-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  justify-content: center;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.25);
}

.hero-dot.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  transform: scale(1.25);
  box-shadow: 0 0 18px rgba(0, 171, 236, 0.25);
}

.hero-slider-arrow {
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider-controls {
  justify-content: center;
  gap: 1rem;
}

.hero-slider-arrow {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-slider-arrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  background: var(--accent-cyan);
  transform: scale(1.2);
}

@media (max-width: 991px) {
  .hero-slider {
    min-height: clamp(520px, 70vw, 640px);
  }
  .hero-slide {
    position: absolute;
  }
  .hero-slide .hero-left-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 90px;
    padding-bottom: 120px;
  }
  .hero-slider-controls {
    justify-content: space-between;
  }
}

@media (max-width: 575.98px) {
  .hero-slider {
    min-height: 620px;
  }

  .hero-slide {
    align-items: flex-start;
  }

  .hero-slide .hero-left-content {
    padding-top: 145px;
    padding-bottom: 120px;
  }

  .hero-slider-controls {
    bottom: 16px;
    gap: 0.6rem;
  }

  .hero-slider-arrow {
    width: 40px;
    height: 40px;
  }
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Fallback gradient styling for range slider background */
.calc-range-wrapper {
  position: relative;
  padding: 0.5rem 0;
}

/* Dynamic counter displays */
.result-box {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
}

.result-box .calc-label {
  color: var(--text-secondary);
}

.result-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.result-number.accent {
  color: var(--accent-cyan);
}

/* Form Styles */
.form-group-custom {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group-custom label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control-custom {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary) !important;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  background: #ffffff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 171, 236, 0.15);
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

.form-select-custom {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}

.form-select-custom:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 171, 236, 0.15);
  outline: none;
}

.form-select-custom option {
  background-color: #ffffff;
  color: var(--text-primary);
}

/* Custom Checkbox */
.custom-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.custom-checkbox-container input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  cursor: pointer;
}

.custom-checkbox-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.invalid-feedback-custom {
  color: #ff4d6d;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-control-custom:invalid-custom,
.form-control-custom.is-invalid {
  border-color: #ff4d6d;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.15);
}

.form-control-custom.is-invalid + .invalid-feedback-custom {
  display: block;
}

/* Multi-step Form Wizard */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.step-indicator-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
}

.step-indicator-line {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: rgba(15, 23, 42, 0.08);
  width: 100%;
  transform: translateY(-50%);
  z-index: 1;
}

.step-indicator-line-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  width: 0%;
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.3s ease;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.step-dot.active {
  border-color: var(--accent-cyan);
  background: #ffffff;
  color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
}

.step-dot.completed {
  border-color: var(--accent-purple);
  background: var(--accent-purple);
  color: white;
  box-shadow: var(--glow-shadow-purple);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Feature Icons */
.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-wrapper.cyan {
  background: rgba(0, 171, 236, 0.1);
  border: 1px solid rgba(0, 171, 236, 0.2);
  color: var(--accent-cyan);
}

.feature-icon-wrapper.purple {
  background: rgba(0, 86, 179, 0.1);
  border: 1px solid rgba(0, 86, 179, 0.2);
  color: var(--accent-purple);
}

/* Testimonial slider */
.testimonial-card {
  padding: 2rem;
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  line-height: 1;
  font-family: serif;
  color: rgba(0, 86, 179, 0.15);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.carousel-indicators .active {
  background-color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
  width: 24px;
  border-radius: 4px;
}

/* Virtual Assistant (Chat Widget) */
.chat-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 171, 236, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-trigger:hover {
  transform: scale(1.05) rotate(15deg);
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.35);
}

.chat-box {
  width: 350px;
  height: 480px;
  border-radius: 16px;
  margin-bottom: 1rem;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 171, 236, 0.15);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
  background: #ffffff;
  animation: slideUp 0.3s ease;
}

.chat-box.active {
  display: flex;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 171, 236, 0.1);
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.bot-status {
  display: flex;
  flex-direction: column;
}

.bot-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.bot-online {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bot-online::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--accent-cyan);
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.chat-close-btn:hover {
  color: var(--text-primary);
}

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

.chat-message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-message.bot {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.02);
  color: var(--text-primary);
  border-top-left-radius: 2px;
  align-self: flex-start;
}

.chat-message.user {
  background: rgba(0, 171, 236, 0.12);
  border: 1px solid rgba(0, 171, 236, 0.1);
  color: var(--text-primary);
  border-top-right-radius: 2px;
  align-self: flex-end;
}

.chat-quick-replies {
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.01);
}

.quick-reply-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-purple);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-reply-btn:hover {
  background: rgba(0, 171, 236, 0.08);
  border-color: var(--accent-cyan);
}

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
  background: var(--bg-secondary);
}

.chat-input-field {
  flex: 1;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-field:focus {
  border-color: var(--accent-cyan);
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.1);
}

/* Stat Counter Section */
.counter-box {
  text-align: center;
  padding: 1.5rem;
}

.counter-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Footer styling */
footer {
  background-color: var(--bg-footer) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

footer h4,
footer strong {
  color: #ffffff !important;
}

footer p,
footer span,
footer li,
footer small,
footer a {
  color: #94a3b8 !important;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-link {
  text-decoration: none;
  transition: all 0.2s;
}

.footer-link:hover {
  color: var(--accent-cyan) !important;
  padding-left: 4px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.social-icon:hover {
  background: var(--accent-cyan);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow-cyan);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-image-container {
    margin-top: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .chat-widget-container {
    bottom: 1rem;
    right: 1rem;
  }
  .chat-box {
    width: 310px;
    height: 420px;
  }
}

/* Hero Carousel Custom Styling */
#heroCarousel {
  position: relative;
}

.custom-carousel-indicators {
  bottom: -35px;
}

.custom-carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  border: none;
  opacity: 0.5;
  transition: all 0.3s ease;
  margin: 0 6px;
}

.custom-carousel-indicators .active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  width: 24px;
  border-radius: 5px;
  opacity: 1;
}

.custom-carousel-control {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

#heroCarousel:hover .custom-carousel-control {
  opacity: 0.8;
}

.custom-carousel-control:hover {
  background: rgba(255, 255, 255, 0.8);
  opacity: 1 !important;
  box-shadow: 0 4px 15px rgba(0, 171, 236, 0.15);
}

.custom-carousel-control.carousel-control-prev {
  left: -60px;
}

.custom-carousel-control.carousel-control-next {
  right: -60px;
}

.custom-carousel-control .carousel-control-prev-icon,
.custom-carousel-control .carousel-control-next-icon {
  filter: invert(30%) sepia(85%) saturate(3000%) hue-rotate(180deg) brightness(85%) contrast(100%);
  width: 20px;
  height: 20px;
}

@media (max-width: 1200px) {
  .custom-carousel-control {
    display: none;
  }
  .custom-carousel-indicators {
    bottom: -20px;
  }
}

/* Product Cards Image Styling */
.product-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
}

.glass-card:hover .product-card-img {
  transform: scale(1.03);
}

.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.team-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.team-socials .social-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.08);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-socials .social-pill i {
  font-size: 1.1rem;
  line-height: 1;
}

.team-socials .social-pill:hover {
  background: rgba(0, 171, 236, 0.18);
  color: #ffffff;
}

/* Custom Hero Background & Split-Pane Layout */
.section-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-section {
  position: relative;
  min-height: 720px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 36, 0.65) 0%, rgba(6, 22, 36, 0.92) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 100px 30px;
  max-width: 760px;
  color: #ffffff;
}

.hero-heading {
  font-size: clamp(2.8rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  color: #ffffff !important;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88) !important;
}

.hero-stats-row {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat-item {
  min-width: 140px;
}

@media (max-width: 991.98px) {
  .hero-image-section {
    min-height: 640px;
  }
  .hero-content {
    padding: 70px 20px;
  }
  .hero-heading {
    font-size: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-image-section {
    min-height: 580px;
  }
  .hero-content {
    padding: 50px 16px;
  }
  .hero-stats-row {
    flex-direction: column;
    gap: 18px;
  }
}

/* Badge styled exactly like mockup */
.hero-badge-lime {
  color: var(--accent-lime);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-star-icon {
  font-size: 1.15rem;
  vertical-align: middle;
}

.hero-heading {
  font-size: 3.5rem;
  line-height: 1.15;
  color: #ffffff !important;
  font-family: var(--font-heading);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400;
}

/* Stats Row */
.hero-stats-row {
  display: flex;
  gap: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
}

.hero-stat-item {
  flex: 1;
}

.hero-stat-number {
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 500;
  line-height: 1.3;
}

/* Button styled exactly like mockup */
.btn-lime-pill {
  background-color: var(--accent-lime);
  color: var(--accent-teal-dark) !important;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--accent-lime);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(14, 120, 190, 0.15);
  text-decoration: none;
}

.btn-lime-pill:hover {
  background-color: transparent;
  color: var(--accent-lime) !important;
  border-color: var(--accent-lime);
  box-shadow: 0 6px 25px rgba(205, 232, 119, 0.3);
  transform: translateY(-2px);
}

.arrow-diagonal {
  font-size: 1.15rem;
  font-weight: bold;
  line-height: 1;
}

/* Responsive Alignment */
@media (min-width: 992px) {
  .new-hero-left {
    padding-left: calc((100vw - 960px) / 2 + 15px);
  }
}
@media (min-width: 1200px) {
  .new-hero-left {
    padding-left: calc((100vw - 1140px) / 2 + 15px);
  }
}
@media (min-width: 1400px) {
  .new-hero-left {
    padding-left: calc((100vw - 1320px) / 2 + 15px);
  }
}

@media (max-width: 991.98px) {
  .new-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .new-hero-left {
    padding-top: 120px;
    padding-bottom: 60px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .new-hero-right {
    height: auto;
    padding: 60px 24px;
    background-image: linear-gradient(rgba(14, 72, 63, 0.85), rgba(14, 72, 63, 0.85)), url('../images/hero_businesswomen.jpg');
  }
  .hero-heading {
    font-size: 2.75rem;
  }
  .hero-stats-row {
    gap: 30px;
  }
}

@media (max-width: 575.98px) {
  .hero-stats-row {
    flex-direction: column;
    gap: 20px;
  }
  .hero-heading {
    font-size: 2.25rem;
  }
  .new-hero-right {
    height: auto;
    padding: 40px 16px;
  }
}

/* Hero Background Symbols Layer */
.hero-bg-symbols {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-symbols .bg-symbol {
  position: absolute;
  color: #ffffff;
  opacity: 0.04;
  font-family: var(--font-heading);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Animations for floating background symbols */
@keyframes slowFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes slowFloatReverse {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(18px) rotate(-4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.hero-bg-symbols .bg-symbol:nth-child(even) {
  animation: slowFloat 9s ease-in-out infinite;
}

.hero-bg-symbols .bg-symbol:nth-child(odd) {
  animation: slowFloatReverse 11s ease-in-out infinite;
}

/* Specific Sizes & Placements for Background Symbols */
.symbol-cedi-1 {
  top: 15%;
  left: 3%;
  font-size: 9rem;
  font-weight: 700;
}

.symbol-cedi-2 {
  bottom: 8%;
  right: 15%;
  font-size: 7rem;
  font-weight: 600;
}

.symbol-cedi-3 {
  top: 38%;
  left: 65%;
  font-size: 5rem;
  font-weight: 500;
}

/* Stacked Client Reviews */
.hero-review-group {
  position: relative;
  z-index: 2;
}

.review-avatars-stacked {
  display: flex;
  align-items: center;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-teal-dark);
  overflow: hidden;
  margin-right: -12px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: all 0.2s ease;
}

.review-avatar:hover {
  transform: translateY(-4px);
  z-index: 5;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-avatar.count {
  background-color: var(--accent-lime);
  color: var(--accent-teal-dark);
  font-weight: 700;
  font-size: 0.8rem;
  margin-right: 0;
  border-color: var(--accent-teal-dark);
}

.review-text-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-text-meta .stars {
  font-size: 0.8rem;
  margin-bottom: 2px;
  line-height: 1;
}

.review-desc-small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Floating Glassmorphic Banking Portal Card */
.portal-card-wrapper {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 10;
}

.portal-card-glass {
  background: rgba(14, 72, 63, 0.65);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.portal-card-glass:hover {
  border-color: rgba(205, 232, 119, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(205, 232, 119, 0.15);
}

.portal-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-lime);
}

.text-lime-glow {
  color: var(--accent-lime) !important;
  text-shadow: 0 0 10px rgba(205, 232, 119, 0.2);
}

.bi-cpu-fill {
  font-size: 1rem;
  color: var(--accent-lime);
}

.portal-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Tabs */
.portal-tabs-wrapper {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.portal-tab-btn.active {
  background: var(--accent-lime);
  color: var(--accent-teal-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Elements */
.portal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.portal-input:focus {
  border-color: var(--accent-lime);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 10px rgba(205, 232, 119, 0.15);
}

.portal-password-field {
  position: relative;
  width: 100%;
}

.portal-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.portal-password-toggle:hover {
  color: #ffffff;
}

/* Switch & Checkbox */
.portal-switch-group {
  display: flex;
  align-items: center;
  padding-left: 0;
}

.portal-switch {
  cursor: pointer;
}

.portal-switch-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  margin-left: 8px;
  margin-bottom: 0;
}

.portal-forgot-link {
  font-size: 0.85rem;
  color: var(--accent-lime);
  text-decoration: none;
  transition: opacity 0.2s;
}

.portal-forgot-link:hover {
  opacity: 0.85;
}

.portal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
}

.portal-divider::before,
.portal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-divider:not(:empty)::before {
  margin-right: .5em;
}

.portal-divider:not(:empty)::after {
  margin-left: .5em;
}

.btn-portal-google {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-portal-google:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.portal-footer-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.portal-footer-text a {
  text-decoration: none;
  font-weight: 600;
}

/* Panels */
.portal-panel {
  display: none;
}

.portal-panel.active {
  display: block;
  animation: portalFadeIn 0.3s ease;
}

@keyframes portalFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
