/* ############################## Primary brand color ########################################*/
:root {
  --bak-primary: #900C3F;
}

/* Utility */
.text-bak-primary {
  color: var(--bak-primary);
}

/* Navbar logo styling */
.navbar-brand img {
  height: 60px; /* Base height */
  max-height: 60px;
  transform: scale(2.0); /* Scale the logo to be 100% larger */
  transform-origin: left center; /* Scale from left center to maintain position */
}






/* ########################################## Navbar styling ###################################################*/
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--bak-primary);
}

.nav-link {
  color: #333;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--bak-primary);
}

/* Navbar sticky */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #ffffff; /* Or slightly transparent if you want */
  box-shadow: 0px 2px 10px rgba(0,0,0,0.5); /* Soft shadow */
}

.navbar a {
  font-weight: 600; /* Normal font weight */
}

/* Default Navbar Style */
.navbar {
  transition: all 0.3s ease;
  padding: 20px 0; /* Initial bigger padding */
}

/* Shrink Navbar on Scroll */
.navbar.navbar-shrink {
  padding: 10px 0; /* Smaller padding after scroll */
  background-color: #ffffff; /* Optional: keep background solid */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-shrink a {
  font-size: 0.9rem;
}

/* ===== Growing Underline Effect for Navbar Links ===== */
.navbar-nav .nav-link {
  position: relative;
  color: #000; /* Default text color */
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

/* Underline effect */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: #900C3F; /* Your primary color */
  transition: width 0.3s ease-in-out;
}

/* On hover, grow underline */
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Optional: Change text color on hover */
.navbar-nav .nav-link:hover {
  color: #900C3F;
}

/* Remove default caret icon */
.nav-item.dropdown > a::after {
  display: none;
}

/* Hover effect for the main menu item */
.navbar-nav .nav-item.dropdown:hover > .nav-link {
  color: #fff;
  background-color: #900C3F; /* Your primary color */
  position: relative;
}

.navbar-nav .nav-item.dropdown:hover > .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

/* Show dropdown on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  animation: fadeInDown 0.3s ease-in-out;
}

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

/* Dropdown menu style */
.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
}

/* Items */
.dropdown-item {
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
}

/* Icons spacing */
.dropdown-item i {
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* Hover effect on items */
.dropdown-item:hover {
  background-color: #900C3F;
  color: #fff;
}

/* Growing underline effect for Technology dropdown */
.navbar-nav .dropdown.tech-hover .nav-link {
  position: relative;
  color: inherit;
  font-weight: 600;
}

.navbar-nav .dropdown.tech-hover .nav-link .underline {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background-color: #900C3F; /* your primary color */
  transition: width 0.3s ease-in-out;
}

.navbar-nav .dropdown.tech-hover:hover .underline {
  width: 100%;
}

/* Remove Bootstrap caret from dropdown */
.navbar-nav .dropdown.tech-hover .dropdown-toggle::after {
  display: none !important;
}

/* Dropdown item hover effect for Technology dropdown */
.navbar-nav .dropdown-menu .dropdown-item {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: #900C3F;
  color: #ffffff;
}





/* ########################################## Navbar styling ####################################*/

/* ===== Growing Underline Effect for Navbar Links ===== */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--bak-primary);
}

.nav-link {
  color: #333;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--bak-primary);
}

/* Navbar sticky */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #ffffff; /* Or slightly transparent if you want */
  box-shadow: 0px 2px 10px rgba(0,0,0,0.5); /* Soft shadow */
}

.navbar a {
  font-weight: 600; /* Normal font weight */
}

/* Default Navbar Style */
.navbar {
  transition: all 0.3s ease;
  padding: 20px 0; /* Initial bigger padding */
}

/* Shrink Navbar on Scroll */
.navbar.navbar-shrink {
  padding: 10px 0; /* Smaller padding after scroll */
  background-color: #ffffff; /* Optional: keep background solid */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-shrink a {
  font-size: 0.9rem;
}

/* ===== Growing Underline Effect for Navbar Links ===== */
.navbar-nav .nav-link {
  position: relative;
  color: #000; /* Default text color */
  font-weight: 700;
  transition: all 0.3s ease-in-out;
  font-size: 1.0rem;
  margin-left: 1.1rem;
  
}

.navbar .navbar-nav > .nav-item.dropdown > .nav-link.dropdown-toggle,
.navbar .navbar-nav > .nav-item.tech-hover > .nav-link.dropdown-toggle {
  position: relative;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
  font-size: 1.0rem;
  margin-left: 1.1rem;
  
}

/* Underline effect */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: #900C3F; 
  transition: width 0.3s ease-in-out;
}

/* On hover, grow underline */
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Optional: Change text color on hover */
.navbar-nav .nav-link:hover {
  color: #900C3F;
}

/* Remove default caret icon */
.nav-item.dropdown > a::after {
  display: none;
}

/* Hover effect for the main menu item */
.navbar-nav .nav-item.dropdown:hover > .nav-link {
  color: #fff;
  background-color: #900C3F; /* Your primary color */
  position: relative;
}

.navbar-nav .nav-item.dropdown:hover > .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.navbar .dropdown-menu {
  border: none;
  border-radius: 18px;
  padding: 0.75rem;
  margin-top: 0.75rem;
  min-width: 260px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

/* Dropdown items */
.navbar .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  color: #333333;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

/* Dropdown icons */
.navbar .dropdown-menu .dropdown-item i {
  width: 22px;
  min-width: 22px;
  text-align: center;
  font-size: 1rem;
  color: #9e004c;
  transition: all 0.25s ease;
}

/* Hover effect */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background: rgba(158, 0, 76, 0.08);
  color: #9e004c;
  transform: translateX(4px);
}

/* Hover icon */
.navbar .dropdown-menu .dropdown-item:hover i,
.navbar .dropdown-menu .dropdown-item:focus i {
  color: #9e004c;
}

/* Remove Bootstrap default active blue */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
  background: #9e004c;
  color: #ffffff;
}

.navbar .dropdown-menu .dropdown-item.active i,
.navbar .dropdown-menu .dropdown-item:active i {
  color: #ffffff;
}

/* Smooth dropdown animation */
@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .navbar .dropdown:hover .dropdown-menu,
  .navbar .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.navbar .navbar-nav > .nav-item > .nav-link.active,
.navbar .navbar-nav > .nav-item.dropdown > .nav-link.show,
.navbar .navbar-nav > .nav-item.dropdown:hover > .nav-link {
  background: #9e004c;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 0.65rem 1rem !important;
}

/* ================================
   Technology Dropdown - Clean Version
================================ */

.navbar,
.navbar .dropdown,
.navbar .dropdown-menu {
  overflow: visible !important;
}

/* Main Technology dropdown */
.navbar .tech-dropdown-menu {
  min-width: 290px;
  padding: 0.8rem;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
  z-index: 3000;
}

/* Each category */
.navbar .tech-dropdown-menu > .dropdown-submenu {
  position: relative;
}

/* Category item */
.navbar .tech-dropdown-menu .submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 13px;
  color: #333333;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Left side icon + text */
.navbar .tech-dropdown-menu .submenu-toggle span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar .tech-dropdown-menu .submenu-toggle i {
  color: #9e004c;
  width: 22px;
  min-width: 22px;
  text-align: center;
}

/* Right arrow */
.navbar .tech-dropdown-menu .submenu-arrow {
  width: auto !important;
  min-width: auto !important;
  color: #999999 !important;
  font-size: 0.8rem;
}

/* Hover category */
.navbar .tech-dropdown-menu > .dropdown-submenu:hover > .submenu-toggle {
  background: #9e004c;
  color: #ffffff;
}

.navbar .tech-dropdown-menu > .dropdown-submenu:hover > .submenu-toggle i {
  color: #ffffff;
}

/* Hide all submenus by default */
.navbar .tech-dropdown-menu .submenu-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 260px;
  padding: 0.8rem;
  margin-left: 0;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
  z-index: 3100;

  display: none !important;
}

/* Show ONLY the submenu of the hovered category */
.navbar .tech-dropdown-menu > .dropdown-submenu:hover > .submenu-menu {
  display: block !important;
}

/* Submenu items */
.navbar .submenu-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: #333333;
  font-size: 0.95rem;
  font-weight: 650;
  transition: all 0.25s ease;
}

.navbar .submenu-menu .dropdown-item i {
  color: #9e004c;
  width: 22px;
  min-width: 22px;
  text-align: center;
}

.navbar .submenu-menu .dropdown-item:hover {
  background: rgba(158, 0, 76, 0.08);
  color: #9e004c;
  transform: translateX(4px);
}

/* Remove Bootstrap active blue */
.navbar .submenu-menu .dropdown-item:active,
.navbar .submenu-menu .dropdown-item.active {
  background: #9e004c;
  color: #ffffff;
}

.navbar .submenu-menu .dropdown-item:active i,
.navbar .submenu-menu .dropdown-item.active i {
  color: #ffffff;
}

/* Add small gap between Technology category menu and submenu */
.navbar .tech-dropdown-menu .submenu-menu {
  left: calc(100% + 10px) !important;
}

/* Invisible hover bridge so submenu does not disappear */
.navbar .tech-dropdown-menu > .dropdown-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 12px;
  height: 100%;
}

/* Mobile Technology dropdown */
@media (max-width: 991.98px) {
  .navbar .tech-dropdown-menu {
    width: 100%;
    min-width: 100%;
    border-radius: 16px;
    box-shadow: none;
    padding: 0.6rem;
  }

  .navbar .dropdown-submenu {
    position: static;
  }

  .navbar .dropdown-submenu::after {
    display: none;
  }

  .navbar .submenu-arrow {
    display: none;
  }

  .navbar .submenu-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }
}

/* Make submenu icons white on hover/active */
.navbar .tech-dropdown-menu .submenu-menu .dropdown-item:hover i,
.navbar .tech-dropdown-menu .submenu-menu .dropdown-item:focus i,
.navbar .tech-dropdown-menu .submenu-menu .dropdown-item.active i,
.navbar .tech-dropdown-menu .submenu-menu .dropdown-item:active i {
  color: #ffffff !important;
}

.navbar .tech-dropdown-menu .submenu-menu .dropdown-item:hover,
.navbar .tech-dropdown-menu .submenu-menu .dropdown-item:focus,
.navbar .tech-dropdown-menu .submenu-menu .dropdown-item.active,
.navbar .tech-dropdown-menu .submenu-menu .dropdown-item:active {
  background: #9e004c !important;
  color: #ffffff !important;
}


/* Show dropdown on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  animation: fadeInDown 0.3s ease-in-out;
}

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

/* Dropdown menu style */
.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
}

/* Items */
.dropdown-item {
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
}

/* Icons spacing */
.dropdown-item i {
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* Hover effect on items */
.dropdown-item:hover {
  background-color: #900C3F;
  color: #fff;
}

/* Growing underline effect for Technology dropdown */
.navbar-nav .dropdown.tech-hover .nav-link {
  position: relative;
  color: inherit;
  font-weight: 600;
}

.navbar-nav .dropdown.tech-hover .nav-link .underline {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background-color: #900C3F; 
  transition: width 0.3s ease-in-out;
}

.navbar-nav .dropdown.tech-hover:hover .underline {
  width: 100%;
}

/* Remove Bootstrap caret from dropdown */
.navbar-nav .dropdown.tech-hover .dropdown-toggle::after {
  display: none !important;
}

/* Dropdown item hover effect for Technology dropdown */
.navbar-nav .dropdown-menu .dropdown-item {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: #900C3F;
  color: #ffffff;
}

/* Active navbar menu item */
.navbar .navbar-nav > .nav-item > .nav-link.active {
  background-color: #900C3F !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 0.75rem 1.2rem !important;
}

/* Keep active link white on hover */
.navbar .navbar-nav > .nav-item > .nav-link.active:hover {
  background-color: #900C3F !important;
  color: #ffffff !important;
}


/*##############################  Navbar Service ############################*/
/* General dropdown hover fix for icons */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
  background: #9e004c !important;
  color: #ffffff !important;
}

/* Make dropdown icons white on hover */
.navbar .dropdown-menu .dropdown-item:hover i,
.navbar .dropdown-menu .dropdown-item:focus i,
.navbar .dropdown-menu .dropdown-item.active i,
.navbar .dropdown-menu .dropdown-item:active i {
  color: #ffffff !important;
}





/* ################################### Hero section styling ##################################### */
/* .hero-section {
  background: url('../assets/Service4.png') center center/cover no-repeat;
  background-color: #f8f9fa; 
  padding: 100px 0;
  width: 100%;
  min-height: 78vh;
} */

/* Services Page Hero */
.services-hero-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(3, 12, 38, 0.58), rgba(0, 55, 120, 0.38)),
    url("../assets/Service4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay for stronger readability */
.services-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 145, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
  z-index: 1;
}

.services-hero-section .container {
  position: relative;
  z-index: 2;
}

.services-hero-section .welcome-text {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.services-hero-badge {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
}

.services-hero-title {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.08;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.3rem;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.services-hero-subtitle {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.services-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.services-hero-btn-primary,
.services-hero-btn-secondary {
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
}

.services-hero-btn-primary {
  background: #900C3F;
  border: 1px solid #900C3F;
  color: #ffffff;
}

.services-hero-btn-primary:hover {
  background: #720932;
  border-color: #720932;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(144, 12, 63, 0.35);
}

.services-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.services-hero-btn-secondary:hover {
  background: #ffffff;
  color: #900C3F;
  transform: translateY(-3px);
}

.services-hero-highlights {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.services-hero-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 50px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  font-weight: 600;
}

.services-hero-item i {
  color: #ffffff;
  font-size: 1rem;
}

/* Mobile */
@media (max-width: 767.98px) {
  .services-hero-section {
    min-height: auto;
    padding-top: 7rem !important;
    padding-bottom: 5rem !important;
    background-position: center;
  }

  .services-hero-title {
    font-size: 2.25rem;
    line-height: 1.18;
    max-width: 340px;
  }

  .services-hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 340px;
  }

  .services-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .services-hero-btn-primary,
  .services-hero-btn-secondary {
    width: 100%;
  }

  .services-hero-highlights {
    flex-direction: column;
    align-items: center;
  }

  .services-hero-item {
    width: 100%;
    max-width: 330px;
    justify-content: center;
  }
}


/* Services List Section */
.services-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f6f8 0%, #ffffff 100%);
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(144, 12, 63, 0.055);
  top: -140px;
  left: -120px;
}

.services-section::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(144, 12, 63, 0.045);
  bottom: -120px;
  right: -100px;
}

.services-section .container {
  position: relative;
  z-index: 2;
}

.services-section h2 {
  letter-spacing: 0.5px;
}

.services-section .lead {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-size: 1.02rem;
}

/* Service Card */
.service-card {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Top accent line */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 0;
  background: #900C3F;
  transition: width 0.3s ease;
}

.service-card:hover::before {
  width: 100%;
}

/* Small "View service" text */
.service-card::after {
  content: "View service →";
  position: absolute;
  left: 2rem;
  bottom: 1.6rem;
  color: #900C3F;
  font-size: 0.9rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.service-card .card-body {
  min-height: 260px;
  padding: 2rem;
  padding-bottom: 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

/* Icon */
.service-card .icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(144, 12, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem !important;
  transition: all 0.3s ease;
}

.service-card .icon i {
  font-size: 2rem !important;
  color: #900C3F !important;
  transition: all 0.3s ease;
}

.service-card .card-title {
  color: #111111;
  font-size: 1.12rem;
  margin-bottom: 0.8rem;
}

.service-card .card-text {
  color: #555555 !important;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Hover */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12) !important;
}

.service-card:hover .icon {
  background: #900C3F;
  transform: scale(1.04);
}

.service-card:hover .icon i {
  color: #ffffff !important;
}

/* CTA spacing */
.services-section .bak-btn {
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  font-weight: 800;
}

/* Tablet and mobile */
@media (max-width: 991.98px) {
  .services-section {
    padding: 5rem 0;
  }

  .service-card {
    min-height: 240px;
  }

  .service-card .card-body {
    min-height: 240px;
  }
}

@media (max-width: 576px) {
  .services-section {
    padding: 4rem 0;
  }

  .services-section h2 {
    font-size: 2.1rem;
  }

  .services-section .lead {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .service-card {
    min-height: 230px;
    border-radius: 20px;
  }

  .service-card .card-body {
    min-height: 230px;
    padding: 1.7rem;
    padding-bottom: 3.2rem;
  }

  .service-card::after {
    left: 1.7rem;
    bottom: 1.4rem;
  }

  .service-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .service-card .icon i {
    font-size: 1.75rem !important;
  }
}



/* ######################################## Back to Top Button ############################################# */
#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 20px;
  
  z-index: 99;
  font-size: 24px;
  border: none;
  outline: none;
  background-color: #900C3F; /* Your Primary Color */
  color: white;
  cursor: pointer;
  padding: 0px 10px;
  border-radius: 10%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

#backToTopBtn:hover {
  background-color: #6d0a2f; /* Slightly darker on hover */
}





/* ##################################### Services Section ############################################# */
/* .service-section {
  
  height: auto;
  width: 100%;
  background: url('../assets/hero_section2.jpg') no-repeat center center;
} */

.service-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 390px;
}

.service-card .card-body {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-card i {
  color: #900C3F; /* Your primary Bak-it color */
}

.services-section {
  padding-top: 5rem;
  padding-bottom: 6rem;
  background-color: #f5f2f2;
  min-height: 645px;
}
section.services-section.py-5.mt-5 {
  background-color: #f8f6f6;
  padding: 50px 0;
}

.services-section .card {
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.services-section .card:hover {
  transform: translateY(-8px);
}

.custom-btn {
  background-color: #900C3F;
  border: none;
  font-weight: 500;
  padding: 10px 30px;
  font-size: 1.2rem;
  border-radius: 30px;
}

.custom-btn:hover {
  background-color: #75052f;
}

/* General dropdown hover fix for icons */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
  background: #9e004c !important;
  color: #ffffff !important;
}

/* Make dropdown icons white on hover */
.navbar .dropdown-menu .dropdown-item:hover i,
.navbar .dropdown-menu .dropdown-item:focus i,
.navbar .dropdown-menu .dropdown-item.active i,
.navbar .dropdown-menu .dropdown-item:active i {
  color: #ffffff !important;
}


.technology-badge {
  background: linear-gradient(135deg, #900C3F, #75052f);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.2rem;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(144, 12, 63, 0.3);
}


/* Button style */
.bak-btn {
  background-color: var(--bak-primary);
  color: white;
  font-weight: 500;
  padding: 10px 30px;
  font-size: 1.2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: none;
}

.bak-btn:hover {
  background-color: #720a32;
  color: #fff;
}



/* #################################### Footer styling ###################################################*/
.footer {
  background-color: #121212;
  color: #fff;
  padding: 100px 0;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: var(--bak-primary);
}

/* #################################### Service Subpage Styles ############################################# */

/* Feature Items */
.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 500;
}

.feature-item i {
  font-size: 1.2rem;
  margin-right: 10px;
}

/* Tech Items */
.tech-item {
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-5px);
}

.tech-item h6 {
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

/* Process Steps */
.process-step {
  position: relative;
  padding: 30px 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(144, 12, 63, 0.15);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--bak-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(144, 12, 63, 0.3);
}

.process-step h5 {
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--bak-primary);
  font-weight: 600;
}

/* Benefit Cards */
.benefit-card {
  background-color: #fff;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(144, 12, 63, 0.15);
}

.benefit-card h5 {
  color: var(--bak-primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.benefit-card i {
  transition: transform 0.3s ease;
}

.benefit-card:hover i {
  transform: scale(1.1);
}

/* Service Details Section */
.service-details {
  padding: 80px 0;
}

.service-details img {
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Technologies Section */
.technologies-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Process Section */
.process-section {
  background-color: #f8f9fa;
}

/* Benefits Section */
.benefits-section {
  background-color: #fff;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--bak-primary) 0%, #6d0a2f 100%);
  color: white;
}

.cta-section h3,
.cta-section p {
  color: white;
}

/* #################################### CTA Section Button Improvements ############################################# */

/* Light buttons on dark background */
.btn-light.custom-btn {
  background-color: #ffffff;
  border: 2px solid #ffffff;
  color: var(--bak-primary);
  font-weight: 600;
  padding: 12px 35px;
  font-size: 1.1rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-light.custom-btn:hover {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline-light {
  border-color: #ffffff;
  color: #ffffff;
  font-weight: 500;
  border-width: 2px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--bak-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for service subpages */
@media (max-width: 768px) {
  .process-step {
    margin-bottom: 40px;
  }
  
  .step-number {
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    margin: 0 auto 20px;
  }
  
  .tech-item {
    margin-bottom: 20px;
  }
  
  .benefit-card {
    margin-bottom: 30px;
  }
  
  /* CTA Section Button Spacing on Mobile */
  .cta-section .btn {
    margin-bottom: 15px;
    margin-right: 0 !important;
    display: inline-block;
    width: auto;
    min-width: 200px;
  }
  
  .cta-section .container {
    padding: 0 20px;
  }
  
  .cta-section .btn:last-child {
    margin-bottom: 0;
  }
}

/* Additional hover effects for buttons */
.btn-outline-primary {
  border-color: var(--bak-primary);
  color: var(--bak-primary);
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--bak-primary);
  border-color: var(--bak-primary);
  color: white;
}

/* Section spacing improvements */
.service-details,
.technologies-section,
.process-section,
.benefits-section,
.cta-section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .service-details,
  .technologies-section,
  .process-section,
  .benefits-section,
  .cta-section {
    padding: 60px 0;
  }
}



/* ######################################################### Modern Footer styling ########################################*/
/*############################################# Modern Footer styling ###########################################*/
.modern-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-top: 3px solid var(--bak-primary);
  /* padding-top: 5rem;
  padding-bottom: 6rem; */
  padding: 4rem 0 2rem;
}

.modern-footer h4,
.modern-footer h6 {
  color: #ffffff;
}

.modern-footer .text-muted {
  color: rgba(255, 255, 255, 0.68) !important;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 150px;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.footer-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-brand p {
  max-width: 390px;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
  transform: scale(1.03);
  opacity: 0.92;
}

.footer-links a:hover {
  color: #ffffff !important;
  transform: translateX(5px);
}

.footer-links a i {
  color: #9e004c;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.footer-links a:hover i {
  color: var(--bak-primary);
}

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links .social-link:hover {
  background: var(--bak-primary);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-info .contact-item i {
  font-size: 1.2rem;
  margin-top: 2px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--bak-primary);
  text-decoration: none;
}

.modern-footer hr {
  border-color: #444;
  opacity: 0.18;
}

.modern-footer .text-muted {
  color: #aaa !important;
}

/* Footer bottom links */
.modern-footer .col-md-6:last-child a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.modern-footer .col-md-6:last-child a:hover {
  color: var(--bak-primary);
  text-decoration: none;
}


/* Mobile footer alignment */
@media (max-width: 576px) {
  .modern-footer {
    padding: 3.5rem 0 1.5rem;
    text-align: center;
  }

  .modern-footer .row {
    --bs-gutter-y: 0;
  }

  .modern-footer [class*="col-"] {
    text-align: center !important;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .modern-footer [class*="col-"]:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .footer-brand p {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
  }

  .modern-footer h6 {
    margin-bottom: 1.25rem !important;
  }

  /* Social icons */
  .modern-footer .social-links .d-flex {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }

  .modern-footer .social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Footer links */
  .modern-footer .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modern-footer .footer-links li {
    margin-bottom: 0.75rem;
  }

  .modern-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    text-align: left;
  }

  .modern-footer .footer-links a i {
    width: 18px;
    margin-right: 0.5rem !important;
  }

  /* Contact section */
  .modern-footer .contact-info {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .modern-footer .contact-info .contact-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 1.6rem !important;
  }

  .modern-footer .contact-info .contact-item i {
    margin-right: 0 !important;
    margin-top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(158, 0, 76, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modern-footer .contact-info .contact-item div {
    text-align: center;
  }

  .modern-footer .contact-info .contact-item small {
    margin-bottom: 0.25rem;
  }

  .modern-footer hr {
    margin-top: 2rem !important;
  }

  .footer-logo {
    width: 170px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-logo-link {
    margin-bottom: 1.2rem;
  }

  .footer-brand p {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}
