/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

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

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

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

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

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

/* Premium Services Dropdown styling */
.navbar .nav-item.dropdown {
  position: relative !important;
}

.services-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 0 !important;
  min-width: 260px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.services-dropdown-menu .dropdown-header-bar {
  background: linear-gradient(135deg, #06A3DA 0%, #0482B0 100%) !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.services-dropdown-menu .dropdown-header-title {
  color: white !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
}

.services-dropdown-menu .dropdown-header-title i {
  margin-right: 8px !important;
  font-size: 1rem !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.services-dropdown-menu .dropdown-item {
  padding: 11px 20px !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #333 !important;
  transition: all 0.2s ease !important;
  border-bottom: 1px solid rgba(0,0,0,0.04) !important;
  display: flex !important;
  align-items: center !important;
}

.services-dropdown-menu .dropdown-item:last-of-type {
  border-bottom: none !important;
}

.services-dropdown-menu .dropdown-item:hover {
  background-color: rgba(6, 163, 218, 0.08) !important;
  color: #06A3DA !important;
  padding-left: 26px !important;
}

.services-dropdown-menu .dropdown-item i {
  transition: transform 0.2s ease !important;
  font-size: 0.8rem !important;
}

.services-dropdown-menu .dropdown-item:hover i {
  transform: translateX(3px) !important;
}

/* Hover reveal for dropdown on desktop */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .services-dropdown-menu {
    display: block !important;
    animation: fadeInDropdown 0.3s ease-in-out !important;
  }
}

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

/* Mobile dropdown override */
@media (max-width: 991.98px) {
  .services-dropdown-menu {
    position: static !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    min-width: 100% !important;
  }
  .services-dropdown-menu .dropdown-header-bar {
    display: none !important;
  }
  .services-dropdown-menu .dropdown-item {
    text-align: center !important;
    border-bottom: none !important;
    padding: 8px 16px !important;
    color: var(--dark) !important;
    background: transparent !important;
    justify-content: center !important;
  }
  .services-dropdown-menu .dropdown-item:hover {
    padding-left: 16px !important;
    background: rgba(6, 163, 218, 0.05) !important;
  }
  .services-dropdown-menu .dropdown-item i {
    display: none !important;
  }
}

/* Horizontal Timeline Journey Styles */
.journey-timeline-container {
  position: relative;
  width: 100%;
  padding: 60px 0;
  overflow: hidden;
}

.journey-timeline-line {
  position: absolute;
  top: 105px;
  left: 10%;
  right: 10%;
  height: 4px;
  background-color: #e9ecef;
  z-index: 0;
}

.journey-timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: drawTrail 8s infinite ease-in-out;
  z-index: 1;
}

@keyframes drawTrail {
  0% { width: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; width: 100%; }
  100% { width: 100%; opacity: 0; }
}

.journey-step {
  position: relative;
  z-index: 3;
  text-align: center;
  transition: transform 0.3s ease;
}

.journey-step:hover {
  transform: translateY(-8px);
}

.journey-circle-outer {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Sequential pulse animation for steps */
.col-lg:nth-child(1) .journey-circle-outer { animation: pulseGlow 10s infinite; animation-delay: 0s; }
.col-lg:nth-child(2) .journey-circle-outer { animation: pulseGlow 10s infinite; animation-delay: 2s; }
.col-lg:nth-child(3) .journey-circle-outer { animation: pulseGlow 10s infinite; animation-delay: 4s; }
.col-lg:nth-child(4) .journey-circle-outer { animation: pulseGlow 10s infinite; animation-delay: 6s; }
.col-lg:nth-child(5) .journey-circle-outer { animation: pulseGlow 10s infinite; animation-delay: 8s; }
.col-lg:nth-child(6) .journey-circle-outer { animation: pulseGlow 10s infinite; animation-delay: 10s; }

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
  }
  15%, 25% {
    box-shadow: 0 0 25px 8px rgba(6, 163, 218, 0.5);
    border-color: #007bff;
    transform: scale(1.05);
  }
  40% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    transform: scale(1);
  }
}

.journey-circle-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-step-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 2px solid #fff;
}

.journey-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.journey-desc {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.5;
  padding: 0 15px;
}

@media (max-width: 991.98px) {
  .journey-timeline-line {
    display: none;
  }
  .journey-timeline-container {
    padding: 30px 0;
  }
  .journey-step {
    margin-bottom: 40px;
  }
}