* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #144a7c;
  --secondary: #3bb99f;
}

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary);
}

.cta-button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary);
}

.cta-button .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.cta-button:hover .arrow {
  transform: translateX(5px);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(90deg, #f5f7fa 0%, #e8ecf1 100%);
}

/* Header */
header {
  background: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

header.scrolled {
  box-shadow: 0 0 24px #cccccc5c;
  transition: box-shadow 0.3s ease;
}

.header-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e5a7d;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 50%;
}

.logo img {
  min-width: 50%;
  width: 200px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2196f3 0%, #1e5a7d 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

#mainDiv {
  width: 50%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1e5a7d;
}

.custom-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 25px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 20px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Solutions Section */
.solutions {
  padding-bottom: 100px;
}

.section-title {
  text-align: left;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 100;
}

.section-subtitle {
  text-align: left;
  font-size: 1.2rem;
  color: black;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.carousel-container {
  position: relative;
  margin: 0 auto;
  padding: 0 0px;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 15px;
}

.solutions-grid {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 25px;
  padding-top: 20px;
}

.solution-card {
  min-width: calc(33% - 19px);
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  height: 400px;
}

.navigation-button-container {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.solution-nav-btn {
  display: flex;
  background: var(--primary);
  color: white;
  padding: 15px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.solution-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.solution-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 70%,
    transparent 100%
  );
  padding: 1rem;
  color: white;
}

.solution-card-overlay h4 {
  color: white !important;
  font-weight: 600 !important;
  margin-bottom: -20px !important;
}

.solution-card-overlay h6 {
  color: white !important;
  font-weight: 100 !important;
  font-size: 0.8rem;
}

/* common for both */
.solution-card-overlay h4,
.solution-card-overlay h6 {
  margin: 0;
  position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* initial state */
.solution-card-overlay h4 {
  transform: translateY(0);
  opacity: 1;
}

.solution-card-overlay h6 {
  transform: translateY(100%);
  opacity: 0;
}

/* on hover: shift h4 up but keep it visible, and bring in h6 from below */
.solution-card:hover .solution-card-overlay h4 {
  transform: translateY(-50%);
  /* move up by 50% of its height (adjust as needed) */
  margin-bottom: 0px !important;
  opacity: 1;
  /* remain visible */
}

.solution-card:hover .solution-card-overlay h6 {
  transform: translateY(0);
  opacity: 1;
}

.solution-card h3 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.solution-icon {
  display: none;
}

.solution-card p {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid var(--secondary);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.3);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

@media (max-width: 1200px) {
  .solution-card {
    min-width: calc(33.333% - 17px);
  }
}

@media (max-width: 900px) {
  .solution-card {
    min-width: calc(50% - 12.5px);
  }
}

@media (max-width: 640px) {
  .solution-card {
    min-width: calc(100% - 0px);
  }

  .carousel-container {
    padding: 0;
  }
}

.solution-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.solution-card h3 {
  color: #1e3a5f;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.solution-card p {
  color: #666;
  line-height: 1.6;
}

/* Clients Section */
.clients {
  padding-bottom: 100px;
  overflow: hidden;
}

.clients-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.clients-subtitle {
  font-size: 1.2rem;
  color: transparent;
  background: rgb(0, 0, 0);
  background-clip: text;
  -webkit-background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 25px;
  border: 2px solid #000;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.view-all-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
}

.view-all-btn .arrow-icon {
  transition: transform 0.3s ease;
}

.view-all-btn:hover .arrow-icon {
  transform: translateX(5px);
}

.clients-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.clients-slider {
  display: flex;
  gap: 20px;
  animation: scrollClients 30s linear infinite;
  width: fit-content;
}

.clients-slider:hover {
  animation-play-state: paused;
}

@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo-box {
  flex-shrink: 0;
  max-width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s ease;
  filter: grayscale(100%) brightness(90%);
}

.client-logo-box:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.client-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #645e5e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-logo:hover {
  color: #000;
}

.mobile-view-all {
  display: none;
  text-align: center;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .view-all-btn {
    display: none;
  }

  .mobile-view-all {
    display: block;
  }

  .mobile-view-all .view-all-btn {
    display: inline-flex;
  }

  .clients-header {
    justify-content: center;
  }
}

.hub-content {
  text-align: center;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 2px solid #bc141a;
  border-radius: 50%;
  animation: pulse 2.5s ease-out infinite;
}

/* Second Pulsing Ring (Delayed) */
.pulse-ring-delayed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  animation: pulse 2.5s ease-out infinite;
  animation-delay: 1.25s;
  opacity: 0;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

/* Hub Text */
.hub-text {
  position: relative;
  z-index: 2;
}

.hub-text h3 {
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.hub-text h2 {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .center-circle {
    width: 180px;
    height: 180px;
  }

  .pulse-ring,
  .pulse-ring-delayed {
    width: 130px;
    height: 130px;
  }

  .hub-text h3 {
    font-size: 1rem;
  }

  .hub-text h2 {
    font-size: 1.6rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .center-circle {
    width: 150px;
    height: 150px;
  }

  .pulse-ring,
  .pulse-ring-delayed {
    width: 110px;
    height: 110px;
  }

  .hub-text h3 {
    font-size: 0.85rem;
  }

  .hub-text h2 {
    font-size: 1.3rem;
  }
}

/* Morphing Shape */
.morph-shape {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--secondary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  filter: blur(1px);
}

/* Morphing Animation */
@keyframes morph {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg) scale(1);
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    transform: rotate(90deg) scale(1.1);
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: rotate(180deg) scale(1);
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    transform: rotate(270deg) scale(1.1);
  }
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(188, 20, 26, 0.4);
  border-radius: 50%;
  animation: particleMove 8s ease-in-out infinite;
}

@keyframes particleMove {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }

  50% {
    transform: translate(var(--x), var(--y));
    opacity: 0.8;
  }
}

.particle:nth-child(1) {
  top: 10%;
  left: 20%;
  --x: 20px;
  --y: -20px;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 30%;
  right: 15%;
  --x: -15px;
  --y: 15px;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  bottom: 20%;
  left: 25%;
  --x: 25px;
  --y: 25px;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  bottom: 35%;
  right: 20%;
  --x: -20px;
  --y: -15px;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  top: 45%;
  left: 10%;
  --x: 30px;
  --y: 10px;
  animation-delay: 4s;
}

.particle:nth-child(6) {
  top: 25%;
  right: 30%;
  --x: -25px;
  --y: 20px;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  bottom: 15%;
  left: 35%;
  --x: 15px;
  --y: -25px;
  animation-delay: 6s;
}

.particle:nth-child(8) {
  top: 60%;
  right: 25%;
  --x: -30px;
  --y: -10px;
  animation-delay: 7s;
}

@media (max-width: 768px) {
  .solutions {
    padding-bottom: 40px;
  }

  .clients {
    padding-bottom: 40px;
  }
}

/* 1. Make the parent LI the reference point for positioning */
.has-submenu {
  position: relative; /* CRITICAL for absolute positioning of the submenu */
}

/* 2. Hide and position the submenu */
.submenu {
  /* HIDE by default */
  display: none;

  /* Positioning */
  position: absolute;
  top: 100%; /* Places the submenu just below the parent link */
  left: 0;

  /* Visual styling */
  background-color: white;
  min-width: max-content;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10; /* Ensures it sits above other content */
  list-style: none; /* Remove bullet points */
  padding: 0;
  margin: 0;
  padding-top: 15px;
  padding-bottom: 15px;
}

/* 3. SHOW the submenu on hover */
.has-submenu:hover > .submenu {
  display: block; /* Use 'block' or 'flex' based on your layout needs */
}

/* Adjust submenu links to stack vertically */
.submenu li {
  /* Override any horizontal layout from the main nav */
  display: block;
  padding: 6px 15px;
}
