:root {
  --bs-primary: #039EDC; /* brand blue */
  --bs-primary-rgb: 3, 158, 220;
  --ai-grad-a: #039EDC;
  --ai-grad-b: #01496b;
  --ai-dark: #0b1f2a;
  --ai-dark-1: #0a1a29;
  --ai-grad-c: #05121b;
}

/* Navbar */
.navbar-custom { 
  background-color: #0c0f12; 
}

/* Carousel */
.carousel-item { 
  height: 70vh;
  width: 100%;
  position: relative;
}

.carousel-caption { 
  text-shadow: 0 10px 25px rgba(0,0,0,.55); 
}

.hero-2 { 
  background: linear-gradient(135deg, #017fb4, var(--ai-dark)); 
}

.hero-3 { 
  background: linear-gradient(135deg, #01496b, var(--ai-dark)); 
}

/* Graphics Layer */
.hero-logo {
  position: absolute;
  right: 10%;
  bottom: 10%;
  max-width: 220px;
  z-index: 3;
}

/* Responsive Tweaks */
@media (max-width: 992px) {
  .hero-logo {
    max-width: 160px;
    bottom: 5%;
    right: 5%;
  }
  .carousel-item { 
    height: 90vh; 
  }
}

@media (max-width: 576px) {
  .hero-sentinel {
    max-height: 50%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    opacity: 0.5;
  }
}

/* Utility + Components */
.featurette-divider { margin: 5rem 0; }
.icon-xxl { font-size: 3rem; }
.kpi { font-weight: 800; letter-spacing: .5px; }
.list-clean { list-style: none; padding-left: 0; margin-bottom: 0; }
.list-clean li i { color: var(--bs-primary); margin-right: .5rem; }

.section-muted { background: #f7fafc; }
footer a { color: inherit; }

/* Card titles + icons */
.card-title.text-primary,
.card-title.text-primary i.bi {
  color: var(--bs-primary) !important;
}

/* XXL icons */
.icon-xxl.text-primary,
.icon-xxl.text-primary i.bi {
  color: var(--bs-primary) !important;
}

/* General text-primary override */
.text-primary { color: var(--bs-primary) !important; }

/* Stretched links */
.stretched-link { color: var(--bs-primary); }
.stretched-link:hover,
.stretched-link:focus {
  color: #0277a8;
}

/* Primary buttons */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #0277a8;
  --bs-btn-hover-border-color: #0277a8;
  --bs-btn-active-bg: #02638a;
  --bs-btn-active-border-color: #02638a;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

/* Toasts */
.toast-container .toast {
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.toast .toast-body {
  font-weight: 500;
}

/* Overlay / Alerts */
.alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  z-index: 1055;
}
.alert-box {
  background: #fff;
  max-width: 400px;
  animation: fadeInUp .35s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade-out animation */
.fade-out {
  animation: fadeOut 0.6s ease forwards;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

/* Carousel transparency */
#carouselHero,
#carouselHero .carousel,
#carouselHero .carousel-inner {
  background: transparent !important;
}

/* Fix carousel chevrons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background: no-repeat 50% / 100% 100%;
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 0 0 .708L10.293 8l-5.647 5.646a.5.5 0 0 0 .708.708l6-6a.5.5 0 0 0 0-.708l-6-6a.5.5 0 0 0-.708 0z'/%3e%3c/svg%3e");
}