/* Reset and Base Styles */
body {
  margin: 0;
  font-family: 'Libre Franklin', sans-serif;
  background-image: url(../images/bgv2.png);
  background-repeat: no-repeat;
  background-position: top center;
  overflow-x: hidden;
}

/* Banner and Logo */
#banner {
  max-width: 1080px;
  height: 500px;
  margin: auto;
  position: relative;
  background-image: url(../images/banner.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  overflow: visible;
  text-align: center;
}

#home-link{
  display: flex;
  text-decoration: none;
  padding: 0px;
  margin: 0px;
}

/* Particle canvas styling */
#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}



#hero-text{
  font-family: Inter;
  font-size: 50px;
  line-height: 60px;
  font-weight: 650;
  text-align: center;
  color: white;
  margin-top: 80px;
}

/* Shared animated gradient style */
.gradient-text-blue,
.gradient-text-green {
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.gradient-text-blue {
  background-image: linear-gradient(90deg, #70d8ff, #45a2ff, #70d8ff);
}

.gradient-text-green {
  background-image: linear-gradient(90deg, #21e297, #2ac971, #21e297);
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}



#sub-hero-text{
  width: 700px;
  font-family: Inter;
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  text-align: center;
  color: white;
  margin: auto;
  margin-top: 25px;
}

#solutions-link{
  min-width: 170px;
  font-family: Inter;
  display: inline-block;
  margin: auto;
  background: linear-gradient(16deg, #0e62b1, #084680, #1581c9);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 15px;
  width: auto;
  margin-top: 30px;
  border: 1px solid #217c96;
  border-radius: 5px;
  margin-right: 10px;
  cursor: pointer;
}

#partners-link{
  min-width: 170px;
  font-family: Inter;
  display: inline-block;
  margin: auto;
  background: linear-gradient(16deg, #107f92, #0b6372, rgb(25, 146, 226));
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 15px;
  width: auto;
  margin-top: 30px;
  border: 1px solid #217c96;
  border-radius: 5px;
  margin-left: 10px;
  cursor: pointer;
}

#partners-box{
  max-width: 1080px;
  min-height: 300px;
  margin: auto;
  margin-top: 0px;
  background-color: white;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  position: relative;
  padding-top: 1px;
}

.contrast-hover {
  transition: all 0.3s ease;
}

.contrast-hover:hover {
  filter: contrast(1) brightness(1.2);
}

#partners-box h3 {
  width: 700px;
  font-family: Inter;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: auto;
  margin-top: 30px;
  background: linear-gradient(170deg, #2050ca, #2dc7e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#partners-box h4{
  width: 70%;
  font-family: Inter;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  color: #535353;
  margin: auto;
  margin-top: 30px;
}

#partners-list{
  width: 100%;
  height: 150px;
  background-image: url(../images/partnersbg.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  background-position: 0 -25px;
}

#partners-scroller{
  border-radius: 10px;
  width: calc(100% - 50px);
  background-color: white;
  margin: 10px;
  padding: 5px;
  margin-left: auto;
  margin-right:auto;
  margin-top: 40px;
  overflow: hidden;
}

#partners-list {
  overflow: hidden;
  width: 100%;
}

#partners-scroller {
  display: flex;
  align-items: center;
}

.scroll-content {
  display: flex;
  animation: scroll-left 60s linear infinite;
}

.scroll-content a {
  display: inline-block;
  padding: 0 20px;
}

.scroll-content img {
  height: 40px; /* Adjust as needed */
  object-fit: contain;
}

/* Animation keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


#services-box{
  max-width: 1080px;
  min-height: 300px;
  margin: auto;
  margin-top: 0px;
  background-color: white;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  position: relative;
  padding-top: 1px;
}

#services-box h2 {
  width: 100%;
  font-family: Inter;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: auto;
  background: linear-gradient(170deg, #17ad50, #24c4cf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#services-box h4{
  width: 70%;
  font-family: Inter;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  color: #535353;
  margin: auto;
  margin-top: 5px;
}

.cards-section {
  font-family: Inter;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 40px 20px;
  background: white;
}

.card {
    background: radial-gradient(circle at 10% 20%, rgba(0, 94, 184, 0.05) 0%, transparent 30%), radial-gradient(circle at 90% 80%, rgba(178, 34, 52, 0.00) 0%, transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 252, 0.95));
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 94, 184, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e3e3e3;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card .material-icons {
  font-size: 48px;
  color: #4b4b4b; /* Accent color for icons */
  margin-bottom: 16px;
}

.card span{
  font-size: 60px !important;
}

.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #5a5a5a;
}

.card p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* 2-column layout on larger screens */
@media (min-width: 600px) {
  .cards-section {
    grid-template-columns: repeat(4, 1fr);
  }
}




#topbar {
  width: 100%;
  margin: auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

#logo {
  width: 220px;
  height: auto;
  z-index: 100;
}

/* Menu Wrapper */
.menu-wrapper {
  position: relative;
}

/* Desktop Menu */
.menu > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu > ul > li {
  position: relative;
  margin-left: 35px;
}

.menu > ul > li > a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
  display: block;
}

.menu > ul > li > a:hover {
  color: rgb(228, 228, 228);
}

.menu > ul > li > a.contact-btn {
  background-color: #c0270e;
  border: 1px solid #c92208;;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.menu > ul > li > a.contact-btn:hover {
  background-color: #d62a0e;
}

/* Fixed Desktop Submenu Animations */
.menu > ul > li .submenu {
  position: absolute;
  top: 100%;
  left: 0px;
  width: 200px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 20px;
  z-index: 99;
  /*grid-template-columns: 1fr 1fr;*/
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: 
    opacity 0.25s ease-out,
    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    visibility 0s linear 0.25s;
  transform-origin: top center;
  will-change: transform, opacity;
  display: grid; /* Changed from display: none */
}

.menu > ul > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: 
    opacity 0.2s ease-out,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1),
    visibility 0s linear 0s;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Submenu Items Animation */
.submenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.submenu ul li {
  opacity: 0;
  text-align: left;
  transform: translateY(8px);
  transition: 
    opacity 0.25s ease,
    transform 0.25s ease;
}

.menu > ul > li:hover .submenu ul li {
  opacity: 1;
  transform: translateY(0);
}

.material-icons {
  font-size: 18px;         /* Smaller than default (24px) */
  vertical-align: middle;  /* Aligns icon with text */
  margin-right: 8px;       /* Space between icon and text */
  line-height: 1;          /* Prevents weird vertical offsets */
}

/* Staggered Animations */
.menu > ul > li:hover .submenu ul li:nth-child(1)  { transition-delay: 0.05s; }
.menu > ul > li:hover .submenu ul li:nth-child(2)  { transition-delay: 0.10s; }
.menu > ul > li:hover .submenu ul li:nth-child(3)  { transition-delay: 0.15s; }
.menu > ul > li:hover .submenu ul li:nth-child(4)  { transition-delay: 0.20s; }
.menu > ul > li:hover .submenu ul li:nth-child(5)  { transition-delay: 0.25s; }
.menu > ul > li:hover .submenu ul li:nth-child(6)  { transition-delay: 0.30s; }
.menu > ul > li:hover .submenu ul li:nth-child(7)  { transition-delay: 0.35s; }
.menu > ul > li:hover .submenu ul li:nth-child(8)  { transition-delay: 0.40s; }
.menu > ul > li:hover .submenu ul li:nth-child(9)  { transition-delay: 0.45s; }
.menu > ul > li:hover .submenu ul li:nth-child(10) { transition-delay: 0.50s; }
.menu > ul > li:hover .submenu ul li:nth-child(11) { transition-delay: 0.55s; }
.menu > ul > li:hover .submenu ul li:nth-child(12) { transition-delay: 0.60s; }
.menu > ul > li:hover .submenu ul li:nth-child(13) { transition-delay: 0.65s; }
.menu > ul > li:hover .submenu ul li:nth-child(14) { transition-delay: 0.70s; }
.menu > ul > li:hover .submenu ul li:nth-child(15) { transition-delay: 0.75s; }

.submenu ul li a {
  font-family: Inter;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  display: block;
  transition: color 0.2s ease;
}

.submenu ul li a:hover {
  color: #0066cc;
}

/* Products submenu hover */
.submenu.red li a:hover {
  color: #be2626; /* Orange */
}

/* Services submenu hover */
.submenu.green li a:hover {
  color: #2ba55e; /* Green */
}

/* Arrow Animation */
.arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  font-size: 20px;
  vertical-align: middle;
  margin-left: 5px;
  margin-top: -5px;
}

.menu > ul > li:hover .arrow {
  transform: rotate(90deg);
  transform-origin: center; /* or percentages like 0% 0% */
  margin-top: 0px;
}

/* Mobile Menu Toggle */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
  padding: 10px;
  z-index: 101;
}

/* Mobile Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px); /* Blur effect */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  z-index: 100;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 80px 20px 40px;
  box-sizing: border-box;
}

.menu-overlay.show {
  transform: translateX(0);
}

/* Mobile Close Button */
.menu-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 5px;
  z-index: 102;
}

/* Mobile Menu Items */
.menu-overlay > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-overlay > ul > li {
  margin-bottom: 15px;
  opacity: 0;
  transform: translateX(20px);
  transition: 
    opacity 0.3s ease,
    transform 0.3s ease;
}

.menu-overlay.show > ul > li {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay > ul > li > a {
  color: #ffffff;
  text-align: left;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.menu-overlay > ul > li > a.contact-btn {
  color: white;
  padding: 0px;
  border-radius: 4px;
  text-align: left;
  margin-top: 20px;
  border: none;
}

/* Mobile Menu Submenu Fix */
.menu-overlay .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 15px;
  width: 100%;
  position: relative;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.03);
  display: block;
  visibility: visible;
  opacity: 1;
}

.menu-overlay > ul > li.show-submenu .submenu {
  max-height: 1000px;
  padding: 10px 15px;
}

.menu-overlay .submenu ul {
  padding-top: 5px;
  list-style: none;
}

.menu-overlay .submenu ul li a {
  font-size: 15px;
  padding: 8px 0;
  color: #efefef;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: color 0.2s ease;
}

.menu-overlay .submenu ul li a:hover {
  color: #0066cc;
}

/* Ensure submenu items are fully visible */
.menu-overlay .submenu,
.menu-overlay .submenu ul,
.menu-overlay .submenu ul li,
.menu-overlay .submenu ul li a {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mobile Arrow Styling */
.menu-overlay > ul > li > a .arrow {
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

.menu-overlay > ul > li.show-submenu > a .arrow {
  transform: rotate(90deg);
}

/* Staggered animation for menu items */
.menu-overlay.show > ul > li:nth-child(1)  { transition-delay: 0.05s; }
.menu-overlay.show > ul > li:nth-child(2)  { transition-delay: 0.10s; }
.menu-overlay.show > ul > li:nth-child(3)  { transition-delay: 0.15s; }
.menu-overlay.show > ul > li:nth-child(4)  { transition-delay: 0.20s; }
.menu-overlay.show > ul > li:nth-child(5)  { transition-delay: 0.25s; }
.menu-overlay.show > ul > li:nth-child(6)  { transition-delay: 0.30s; }
.menu-overlay.show > ul > li:nth-child(7)  { transition-delay: 0.35s; }
.menu-overlay.show > ul > li:nth-child(8)  { transition-delay: 0.40s; }
.menu-overlay.show > ul > li:nth-child(9)  { transition-delay: 0.45s; }
.menu-overlay.show > ul > li:nth-child(10) { transition-delay: 0.50s; }
.menu-overlay.show > ul > li:nth-child(11) { transition-delay: 0.55s; }
.menu-overlay.show > ul > li:nth-child(12) { transition-delay: 0.60s; }
.menu-overlay.show > ul > li:nth-child(13) { transition-delay: 0.65s; }
.menu-overlay.show > ul > li:nth-child(14) { transition-delay: 0.70s; }
.menu-overlay.show > ul > li:nth-child(15) { transition-delay: 0.75s; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  #banner {
    padding: 20px;
  }
  
  .menu > ul > li {
    margin-left: 15px;
  }
}

@media (max-width: 768px) {
  body{
    background-image: url(../images/bg-mobile-v2.png?v=2);
    background-size: 100% 770px;
  }

  #banner {
    height: auto;
    padding: 15px;
  }
  
  #logo {
    width: 215px;
  }
  
  .menu {
    display: none;
  }
  
  #menu-toggle {
    display: block;
  }
  
  .menu-overlay .submenu {
    grid-template-columns: 1fr;
  }

  #banner {
    max-width: 1080px;
    height: 430px;
    background-size: cover;
  }
  
  #hero-text{
    margin-top: 50px;
    font-family: Inter;
    font-size: 7.4vw;
    line-height: normal;
    font-weight: 200;
  }

  #hero-text span{
    font-weight: 600;
  }

  #sub-hero-text{
    width: 95%;
    font-family: Inter;
    font-size: 14px;
    line-height: 20px;
    margin-top: 20px;
  }

  #solutions-link{
    display: block;
    max-width: 250px;
    margin: auto;
    margin-top: 30px;
  }

  #partners-link{
    display: block;
    max-width: 250px;
    margin: auto;
    margin-top: 10px;
  }

  #partners-box{
    max-width: 1080px;
    min-height: 300px;
    margin: auto;
    margin-top: 0px;
    background-color: white;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-left: 15px;
    margin-right: 15px;
    position: relative;
    padding-top: 1px;
  }

  #partners-box h3 {
    width: 100%;
    font-family: Inter;
    font-size: 5vw;
    line-height: normal;
  }

  #partners-box h4{
    width: 90%;
    margin-top: 10px;
    font-size: 14px;
    line-height: 18px;
  }

  #partners-list{
    background-size: cover;
  }

  #services-box{
    max-width: 1080px;
    min-height: 300px;
    margin: auto;
    margin-top: 0px;
    background-color: white;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    position: relative;
    padding-top: 1px;
  }

  #services-box h2 {
    width: 100%;
    font-family: Inter;
    font-size: 5vw;
    font-weight: 700;
    text-align: center;
    margin: auto;
    background: linear-gradient(170deg, #17ad50, #24c4cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  #services-box h4{
    font-size: 14px;
    line-height: 18px;
  }

  #partners-scroller{
    border-radius: 10px;
    width: calc(100% - 30px);
    background-color: white;
    margin: 10px;
    padding: 5px;
    margin-left: auto;
    margin-right:auto;
    margin-top: 40px;
    overflow: hidden;
  }

  #particles{
    opacity: 0.5;
  }

}

