/********** Template CSS **********/
:root {
  --primary: #007bff;
  --secondary: #e93c05;
  --tertiary: #343a40;
  --light: #ccc;
  --dark: #011a41;
  --text-gray: #505050;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  color: white;
  background-color: var(--primary);
}

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

h3,
.h3,
h4,
.h4,
.fw-medium {
  font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
  font-weight: 500 !important;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
}

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

/*** Button ***/
.btn {
  transition: 0.5s;
  font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
  color: var(--light);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

html {
  scroll-padding-top: 100px;
}

/* Ensure the body has a top margin for the fixed navbar */
body {
  font-family: "Poppins", sans-serif;
  margin-top: 6.5rem;
}

/* GLASS NAVBAR */
.fixed-top {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  transition: 0.4s;
  z-index: 999;
}

/* NAVBAR */
.navbar {
  height: 6.5rem;
  transition: all 0.4s ease;
}

/* SCROLL EFFECT ONLY FOR DESKTOP */
@media (min-width: 992px) {
  .navbar.scrolled {
    height: 6rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: white;
  }
}

/* LOGO */
.logo {
  height: 6rem;
  transition: .3s;
}

.logo:hover {
  transform: scale(1.06);
}

@media (max-width: 991px) {
  .navbar.scrolled {
    height: 5.5rem;
    box-shadow: 0 8px 4px rgba(0, 0, 0, 0.1);
    background: white;
  }

  .logo {
    height: 5rem;
    transition: .3s;
  }
}

/* NAV LINKS */
.navbar-nav .nav-link {
  position: relative;
  font-size: 18px;
  font-weight: 500;
  padding: 25px 18px;
  color: #222;
  transition: 0.3s;
}

/* GRADIENT UNDERLINE */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  transition: 0.4s;
}

/* MOBILE FIX */
@media (max-width: 991px) {
  .navbar-nav .nav-link::after {
    bottom: 5px;
    height: 2px;
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 40%;
  }
}

/* DESKTOP */
@media (min-width: 992px) {

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 100%;
  }
}

.navbar-nav .nav-link:hover {
  color: #007bff;
}

/* CTA BUTTON */
.nav-cta {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s;
}

@media (max-width: 991px) {
  .nav-cta {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    padding: 8px 20px;
  }
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.35);
  color: white;
}

/* SOCIAL ICONS */
.social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #007bff;
  color: white;
  margin-left: 10px;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: translateY(-4px);
  background: #0056d2;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.45);
}

/* HAMBURGER ANIMATION */
.custom-toggler {
  border: none;
}

.custom-toggler span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px;
  background: #333;
  transition: 0.3s;
}

/* MOBILE MENU */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    background: white;
    margin-top: 0;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  }

  @keyframes slideMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .navbar-nav .nav-link {
    padding: 12px 0;
  }
}

/* header carousel */
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: start;
  z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
  border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
  border-radius: 3rem 0 0 3rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Project Section */
.project-item,
.project-item .project-img {
  position: relative;
}

.project-item .project-img a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0;
  transition: 0.5s;
}

.project-item:hover .project-img a {
  opacity: 1;
}

.project-item .project-title {
  position: absolute;
  top: 3rem;
  right: 0;
  bottom: 0;
  left: 3rem;
  border: 1px solid var(--light);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  z-index: -1;
  transition: 0.5s;
}

.project-item:hover .project-title {
  background: var(--primary);
  border-color: var(--primary);
}

.project-item .project-title h4 {
  transition: 0.5s;
}

.project-item:hover .project-title h4 {
  color: #ffffff;
}

.project-carousel .owl-nav {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
  margin: 0 12px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--light);
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  color: var(--light);
}

/*** Team ***/
.team-item {
  position: relative;
  padding: 4rem 0;
}

.team-item img {
  position: relative;
  z-index: 2;
}

.team-item .team-text {
  position: absolute;
  top: 0;
  right: 3rem;
  bottom: 0;
  left: 3rem;
  padding: 15px;
  border: 1px solid var(--light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: 0.5s;
  z-index: 1;
}

.team-item:hover .team-text {
  background: var(--primary);
  border-color: var(--primary);
}

.team-item .team-text h4 {
  transition: 0.5s;
}

.team-item:hover .team-text h4 {
  color: #ffffff;
}

.team-item .team-social .btn {
  background: var(--light);
  color: var(--primary);
}

.team-item:hover .team-social .btn {
  background: #ffffff;
}

.team-item .team-social .btn:hover {
  background: var(--primary);
  color: var(--light);
}

/* Functionality Section */

/* HERO SECTION */
.hero-section {
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 28px;
  margin-top: 10px;
  font-weight: 500;
}

.hero-text {
  max-width: 750px;
  margin: 20px auto 0;
  font-size: 18px;
  opacity: 0.9;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 20px;
  }
}

/* GENERAL SECTIONS */
.content-section {
  padding: 80px 20px;
}

.alt-bg {
  background: #f8f9fa;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.section-text {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  color: #555;
  font-size: 18px;
}

/* FEATURE GRID - 3 per row */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #007bff;
}

/* Tablet */
@media (max-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* TWO COLUMN */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid #007bff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.info-box h4 {
  font-weight: 600;
  margin-bottom: 10px;
}

/* MODULE GRID */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* MODULE CARD */
.module-card {
  padding: 30px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  border-top: 4px solid #007bff;
}

.module-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.module-card h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #007bff;
}

.module-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

/* Functionality Section */

/*** Feature ***/
/* Flexbox for consistent feature box heights */
.feature .row.g-4 {
  display: flex;
  flex-wrap: wrap;
}

.feature .col-md-6 {
  display: flex;
  flex-direction: column;
}

.feature .feature-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Distributes space between items */
  height: 100%;
  /* Ensures the feature box takes full height of its container */
}

/* Existing transition and hover effects */
.feature .feature-box,
.feature .feature-box * {
  transition: 0.5s;
}

.feature .feature-box:hover {
  background: var(--primary);
  border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
  color: #ffffff !important;
}

.more-content {
  display: none;
}

.read-more-btn {
  cursor: pointer;
  color: #007bff;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/*** Service ***/
.service .nav .nav-link {
  transition: 0.5s;
  height: 90px;
  /* Set a fixed height */
  display: flex;
  align-items: center;
  /* Vertically center the content */
  padding: 1rem;
  text-align: start;
  border-radius: 0.25rem;
  overflow: hidden;
  white-space: nowrap;
  /* Prevent text wrapping */
  text-overflow: ellipsis;
  /* Handle overflow with ellipsis */
}

.service .nav .nav-link.active {
  border-color: var(--primary) !important;
  background: var(--primary);
}

.service .nav .nav-link.active h5 {
  color: #ffffff !important;
}

.service .nav .nav-link.active h5 i {
  color: #ffffff !important;
}

.service .nav .nav-link h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex: 1;
  /* Allow the text to take up remaining space */
}

.service .nav .nav-link i {
  margin-right: 1rem;
}

/* Adjust button margins */
.service .nav .nav-link.mb-4 {
  margin-bottom: 1rem;
}

.service .nav .nav-link.mb-0 {
  margin-bottom: 0;
}

.page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/header.jpg) top left no-repeat;
  background-size: cover;
}

/*About us heading*/
.aboutus-page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/aboutus2.jpg) top left no-repeat;
  background-size: cover;
  background-position: center center;
}

/* career header*/
.career-page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/career.jpg) top left no-repeat;
  background-size: cover;
  background-position: center center;
}

/*Partners header*/
.partners-page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/partner2.png) top left no-repeat;
  background-size: cover;
  background-position: center center;
}

/*Leadership header*/
.leadership-page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/leadership2.png) top left no-repeat;
  background-size: cover;
  background-position: center center;
}

/*Event header*/
.event-page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/event.png) top left no-repeat;
  background-size: cover;
  background-position: center center;
}

/*News header*/
.news-page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/news.jpg) top left no-repeat;
  background-size: cover;
  background-position: center center;
}

/*Advisory board*/
.advisory-board-page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/advisory-board.jpg) top left no-repeat;
  background-size: cover;
  background-position: center center;
}

/*Customers header*/
.customers-page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/customers2.jpg) top left no-repeat;
  background-size: cover;
  background-position: center center;
}

.career-page-header::before,
.aboutus-page-header::before,
.partners-page-header::before,
.leadership-page-header::before,
.event-page-header::before,
.news-page-header::before,
.advisory-board-page-header::before,
.customers-page-header::before,
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Adjust the RGBA value for desired opacity */
  z-index: 1;
}

.career-page-header *,
.aboutus-page-header *,
.partners-page-header *,
.leadership-page-header *,
.event-page-header *,
.news-page-header *,
.advisory-board-page-header *,
.customers-page-header *,
.page-header * {
  position: relative;
  z-index: 2;
}

@media (max-width: 576px) {

  .page-header,
  .aboutus-page-header,
  .career-page-header,
  .partners-page-header,
  .leadership-page-header,
  .event-page-header,
  .news-page-header,
  .advisory-board-page-header,
  .customers-page-header {
    background-size: cover;
    background-position: center center;

    min-height: 250px;
    /* control height instead of padding */
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/*** Footer ***/
#footerSection {
  background: #3a3a3b;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  font-size: 18px;
  color: var(--light);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: #ffffff;
  letter-spacing: 1px;
  box-shadow: none;
}

#footerFrameworksLink,
#footerIndustriesLink {
  display: block;
  color: var(--light);
}

#footerSection p {
  font-size: 18px;
}

#footerFrameworksLink:hover,
#footerIndustriesLink:hover {
  color: #ffffff;
  text-decoration: underline;
}

.copyright {
  color: var(--light);
  background: #3a3a3b;
}

.copyright a {
  color: var(--light);
}

.copyright a:hover {
  color: #ffffff;
}