/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 25%, #80deea 50%, #4dd0e1 75%, #26c6da 100%);
  color: #000000;
  /* Changed to black */
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
  font-family: 'Instrument Sans', sans-serif;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0288d1, #00bcd4, #80deea);
}

.footer .logo {
  margin-bottom: 20px;
  display: inline-block;
}

.footer .nav_logo-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.footer .paragraph_large {
  color: #000000;
  /* Changed to black */
  font-weight: 600;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.footer .text-size-small {
  color: #000000;
  /* Changed to black */
  opacity: 0.9;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.footer .footer_links-wrapper {
  margin-top: 30px;
}

.footer .footer_links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.footer .footer_link {
  color: #000000;
  /* Changed to black */
  text-decoration: none;
  margin-left: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 500;
  display: inline-block;
  position: relative;
  padding: 2px 0;
  overflow: hidden;
}

.footer .footer_link:hover {
  color: #000000;
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.footer .footer_divider {
  height: 1px;
  background: rgba(2, 119, 189, 0.2);
  margin: 30px 0;
}

.footer .footer_bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
  margin-top: 5px;
  animation: fadeInUp 0.6s ease-out;
  width: 100%;
  gap: 30px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.footer .footer_copyright {
  color: #000000;
  /* Changed to black */
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer .footer_copyright:hover {
  transform: scale(1.02);
}

.footer .footer_icon-group {
  display: flex;
  gap: 15px;
  align-items: center;
  width: auto;
}

.footer .footer_icon-link {
  color: #000000;
  /* Changed to black */
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-block;
  transform: translateZ(0);
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.footer .footer_icon-link:hover {
  color: #000000;
  transform: translateY(-4px) scale(1.1);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .footer {
    text-align: center;
    padding: 40px 0 20px;
  }

  .footer .footer_bottom {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .footer .footer_links-list {
    flex-direction: column;
    align-items: center;
  }

  .footer .footer_bottom>div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Navbar CTA button (Talk to Us) */
.nav .button-3.w-button,
.nav_container .button-3.w-button {
  color: #ffffff;
  padding: 10px 16px;
  line-height: 1;
  font-weight: 600;
  border: 0;
  display: inline-block;
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.nav .button-3.w-button:hover,
.nav_container .button-3.w-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 136, 204, 0.45);
  filter: brightness(1.05);
}

.nav .button-3.w-button:active,
.nav_container .button-3.w-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.35);
}

/* Industries We Serve Dropdown Styles */
.nav_menu-list-item:nth-child(3) .mega-nav_dropdown-list {
  text-align: center;
}

/* Industries We Serve Card Hover Effects */
.section.is-inverse .card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.section.is-inverse .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.section.is-inverse .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 15px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.section.is-inverse .card:hover::before {
  opacity: 1;
}

/* Glow effect on hover */
.section.is-inverse .card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #94d8eb, #8d5dfe, #00ccff, #87b1f4);
  background-size: 400% 400%;
  z-index: -1;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradientBG 8s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.section.is-inverse .card:hover::after {
  opacity: 0.8;
}

/* Icon animation */
.section.is-inverse .card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.section.is-inverse .icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

/* 3D tilt effect */
.section.is-inverse .card {
  transform: perspective(1000px) rotateX(0) rotateY(0) scale(1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.section.is-inverse .card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
}

/* Smooth content reveal */
.card_body {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .section.is-inverse .card:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

@media (max-width: 767px) {
  .section.is-inverse .card:hover {
    transform: none;
  }

  .section.is-inverse .card::after {
    display: none;
  }
}

.nav_menu-list-item:nth-child(3) .mega-nav_dropdown-list-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav_menu-list-item:nth-child(3) .grid_3-col {
  display: inline-flex;
  justify-content: center;
  width: auto;
  margin: 0 auto;
}

/* Add padding after first column */
.nav_menu-list-item:nth-child(3) .grid_3-col>div:first-child {
  padding-right: 40px;
  /* Adjust this value as needed */
}

/* Add spacing between columns */
.nav_menu-list-item:nth-child(3) .grid_3-col>div:not(:last-child) {
  margin-right: 40px;
  /* Adjust this value as needed */
}

/* Keep the original styles for Who We Are */
.nav_menu-list-item:nth-child(2) .mega-nav_dropdown-list {
  text-align: center;
}

.nav_menu-list-item:nth-child(2) .mega-nav_list {
  display: inline-block;
  text-align: left;
}

.nav_menu-list-item:nth-child(2) .mega-nav_link-item {
  justify-content: center;
}

.nav_menu-list-item:nth-child(2) .mega-nav_dropdown-list-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}