/* ===== Global ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #333;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  padding: 1px 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  width: 100px;
  transition: all 0.3s ease;
}

.navbar.shrink {
  padding: 4px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.navbar.shrink .navbar-brand img {
  width: 60px;
}

.navbar .nav-link {
  color: #272727bf !important;
  margin-left: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #0d6efd;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #0d6efd !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}
/* Ensure smooth transitions when the menu closes */
.navbar-collapse {
  transition: all 0.35s ease-in-out;
}

/* Disable long-press "Save Image" on iOS and Android */
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none; /* Makes the image "uncatchable" by the mouse/finger */
}
/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero .carousel-item {
  height: 100vh;
  background: linear-gradient(135deg, #0d6efd 0%, #0b1020 100%);
}

.hero .carousel-layer {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.main-hero-logo.big-hero-logo {
  max-width: 450px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero .display-3 {
  letter-spacing: 0.5px;
  animation: fadeSlideDown 1.2s ease forwards;
}

.tagline-text {
  font-size: 1.8rem;
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: #e7eaf3;
  opacity: 0;
  animation: fadeSlideUp 1.2s ease 0.4s forwards;
}

.carousel-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  z-index: -1;
  animation: floatCircles 40s linear infinite;
}

/* ===== About Section & People-Process-Performance ===== */
.text-justify {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.8;
}

.flow-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #0d6efd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-card:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.flow-icon-box {
  position: relative;
  min-width: 60px;
  height: 60px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-right: 20px;
}

.flow-number {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #0d6efd;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 5px;
}

.flow-body h6 {
  font-weight: 700;
  margin-bottom: 5px;
  color: #0b1020;
}

.flow-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: #6c757d;
  line-height: 1.4;
}

/* ===== Services Section (Adjusted) ===== */
/* ===== Modern Overlay Service Style ===== */
#services {
  background-color: #f8f9fa;
}

.service-card {
  position: relative;
  height: 380px; /* Fixed height for a clean row */
  background: #ffffff;
  border-radius: 15px;
  border: none;
  overflow: hidden; /* Important to hide the sliding list */
  transition: all 0.4s ease;
}

/* The Front of the card */
.service-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.4s ease;
}

.service-icon {
  font-size: 3.5rem;
  color: #0d6efd;
  margin-bottom: 20px;
}

/* The Secret Description (The Overlay) */
.service-description {
  position: absolute;
  top: 100%; /* Hidden below the card */
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d6efd; /* Blue background on hover */
  color: white;
  padding: 25px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

/* Isolated Hover Action: Only the hovered card's description slides up */
/* Change this line to include the active-mobile class */
.service-card:hover .service-description,
.service-card.active-mobile .service-description {
  top: 0;
}

/* This pushes the front content up slightly to look like it's being replaced */
.service-card:hover .service-content {
  transform: translateY(-50px);
  opacity: 0;
}

/* Custom Scrollbar for the long lists inside the overlay */
.service-list {
  overflow-y: auto;
  padding-right: 10px;
  list-style: none;
  margin: 0;
}

.service-list::-webkit-scrollbar {
  width: 4px;
}
.service-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* Internal List Styling */
.service-list li {
  font-size: 0.85rem;
  margin-bottom: 8px;
  opacity: 0.9;
  line-height: 1.4;
}

.list-header {
  font-weight: 800;
  color: #07224b; /* Yellow headers for visibility */
  margin-top: 15px;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}
/* ===== Team Section & Leadership Images ===== */
.team-slide-content {
  max-width: 800px;
  margin: 20px auto 70px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-top: 6px solid #0d6efd;
  min-height: 10px; /* Prevents layout jump on slide change */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-img-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  position: relative;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #0d6efd, #032a5e);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.team-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
}

/* Customizing Carousel Indicators for Team */
#teamCarousel .carousel-indicators [data-bs-target] {
  background-color: #0d6efd;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
}

/* ===== Footer ===== */
.footer {
  background: #0b1020;
  color: #cbd5e0;
  padding: 80px 0 30px;
}

.footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.map-container {
  filter: grayscale(0.2) contrast(1.1);
  border-radius: 12px;
  overflow: hidden;
}

/* ===== Animations ===== */
@keyframes floatingLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes floatCircles {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -1000px;
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== Responsive Fixes ===== */
@media (max-width: 991px) {
  .hero,
  .hero .carousel-item {
    height: auto;
    min-height: 100vh;
  }
  .hero .carousel-layer {
    padding: 100px 0;
  }
  .main-hero-logo.big-hero-logo {
    max-width: 280px;
    margin-top: 30px;
  }
  .hero .display-3 {
    font-size: 2.5rem;
    text-align: center;
  }
  .tagline-text,
  .hero .lead {
    text-align: center;
  }
  .hero .text-start {
    text-align: center !important;
  }
  .flow-card {
    flex-direction: column;
    text-align: center;
  }
  .flow-icon-box {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .team-slide-content {
    min-height: auto;
    margin-bottom: 50px;
    padding: 40px 20px !important;
  }
}

@media (max-width: 575px) {
  .hero .display-3 {
    font-size: 2rem;
  }
  .footer {
    text-align: center;
  }
  .team-img-wrapper {
    width: 130px;
    height: 130px;
  }
}
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(
      255,
      255,
      255,
      0.98
    ); /* Ensure background is solid when open */
    padding: 1rem;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}
