@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap");
@import url("../fonts/font.css");

body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  height: 100%;
  max-height: 100vh;
}

html,
body {
  /* overscroll-behavior: contain;
  scroll-behavior: auto !important; */
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  font-family: "Avenir LT Pro", "Courier New", Courier, monospace;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 
#main {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-x: hidden;
} */
.section {
  scroll-snap-align: start;
  /* height: 100vh; */
  overflow: hidden;
}

.whiteLogo {
  filter: brightness(0) saturate(100%) invert(200%) sepia(0%) saturate(2626%) hue-rotate(126deg) brightness(97%) contrast(98%);
}

footer {
  position: relative;
  background: var(--blue);
}

footer .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
  padding-bottom: 100px;
  /* z-index: 998; */
  position: relative;
  max-width: 1300px;
  margin: auto;
}

footer .logo {
  width: 120px;
  height: auto;
}

footer .links {
  display: grid;
  justify-content: space-between;
  grid-template-columns: repeat(6, 1fr);
  gap: 42px;
}


footer .links .linksDouble{
grid-column: span 2;
display: flex;
gap: 42px;
  justify-content: space-evenly;
}

footer .links .link:nth-child(1),
footer .links .link:nth-child(3) {
  grid-column: span 2;
}


footer .links .link,
.sideMenu .link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
footer .links .link{
  justify-content:flex-start;
}


footer .links .linkContent {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-size: 14px;
  font-weight: 300;
  gap: 8px;
}

footer .links .link ul {
  font-size: 14px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
}

footer .links .link ul li {
  list-style: none;
}

footer .links .link ul li h2 {
  font-size: 16px;
  font-weight: 900;
}

footer .links .link ul li a {
  text-decoration: none;
  color: var(--white);
}

footer .links .link h3 {
  font-size: 14px;
  color: #708597;
  font-weight: 700;
  margin: 0;
}

footer .links .link:nth-child(1) p {
  line-height: 180%;
  opacity: 70%;
}

footer .links .link p,
.sideMenu .link p {
  font-size: 14px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 150%;
}

footer .links .link p span,
.sideMenu .link p span {
  font-size: 14px;
  color: #708597;
  font-weight: 700;

}

footer .socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 80px;
}

footer .socials span {
  color: var(--white);
  font-size: 14px;
  opacity: 70%;
}

footer .socials .icons {
  min-width: 240px;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 15px;
}

footer .socials .icons img {
  cursor: pointer;
}

footer .socials .links {
  font-size: 12px;
  display: flex;
  align-items: center;
  color: #708597;
  text-decoration: none;
  width: 240px;
  align-items: center;
  gap: 0;
}

footer .socials .links a {
  text-decoration: none;
  color: #708597;
}

.nav-container {
  display: flex;
  max-height: 80px;
  justify-content: space-between;
  padding: 12px calc((100% - 1140px)/2);
  align-items: center;
  font-size: 18px;
  /* color: #15354E; */
  color: white;
  position: sticky;
  top: 0;
}

.nav-container.white {
  color: #15354E;
  background-color: white;
}

.nav-container ul {
  display: flex;
  gap: 32px;
}

.nav-container ul li {
  list-style: none;
  position: relative;
  width: 100%;
  text-align: center;
  min-width: max-content;
}

.nav-container ul li img {
  position: absolute;
}

.nav-container ul li .submenu1 { /* first li */
  left: 16px;
  top: -70px;
}

.nav-container ul li .submenu2 { /* second li */
  left: 16px;
  bottom: -175px;
}

.nav-container ul li .submenu3 { /* third li */
  right: 16px;
  top: -180px;
}

.nav-container ul li .submenu4 { /* fourth li */
  right: 16px;
  bottom: -65px;
}

.submenu li img {
  opacity: 0;
  transform: translateX(-10px); /* slide effect */
  transition: all 0.3s ease;
}

/* Show image when hovering the <a> inside the <li> */
.submenu li:hover img {
  opacity: 1;
  transform: translateX(0);
}

.has-submenu .arrowIcon {
  transition: transform 0.3s ease;
  margin-left: 4px;
}

/* Rotate 180deg when submenu is active */
.has-submenu.active > .arrowIcon {
  transform: rotate(180deg);
}

.nav-container ul li .submenu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  /* start at original position */
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  min-width: 700px;
  min-height: 0;
  padding: 0;
  margin-top: 6px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  color: #708597;
  font-size: 20px;
  transition: all 0.3s ease;
  /* smooth animation */
}

.nav-container ul li .submenu.active {
  min-height: 350px;
  /* expand */
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
  /* slide down slightly */
}

.nav-container #menu-btn {
  cursor: pointer;
  background-color: unset;
  border: 0;
  position: relative;
}


/* solutions */
.solutionContainer {
  display: flex;
  gap: 54px;
  padding-left: calc((100% - 1140px)/2);
  height: calc(100% - 83px);
  padding-top: 85px;
}

.solutionContainer .content {
  max-height: calc(100% - 137px);
  justify-content: center;
  display: flex;
  flex-direction: column;
  padding-top: 77px;
  max-width: 400px;
  min-width: 400px;
  align-items: start;
}

.solutionContainer .content h1 {
  color: #15354E;
  font-size: 24px;
  font-weight: 900;
}

.solutionContainer .content p {
  text-align: justify;
  line-height: 140%;
  color: #708597;
}

.solutionContainer .content .main {
  margin-top: 60px;
}

.solutionContainer:nth-child(1) .content .main {
  width: 100%;
}

.solutionContainer .content button,
.philosophy button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #FAFAFA;
  color: #15354E;
  border-radius: 8px;
  border: 0;
  text-align: center;
  align-items: center;
  margin-top: auto;
  font-size: 18px;
  transition: all ease 0.5s;
}

.solutionContainer .content button img,
.philosophy button img {
  transform: rotate(0deg);
  transition: all ease 0.5s;

}

.solutionContainer .content button:hover,
.philosophy button:hover {
  background-color: #15354E;
  color: white;
}

.solutionContainer .content button:hover img,
.philosophy button:hover img {
  transform: rotate(45deg);
  filter: brightness(0) saturate(100%) invert(200%) sepia(0%) saturate(2626%) hue-rotate(126deg) brightness(97%) contrast(98%);
}

.solutionContainer .banner {
  overflow: hidden;
  width: 100%;
}

.solutionContainer .banner img:nth-of-type(1) {
  width: 100%;
}

.solutionContainer .banner img:nth-of-type(2) {
  display: none;
}

/* loader */
.loader {
  height: 8px;
  aspect-ratio: 5;
  --_g: no-repeat radial-gradient(farthest-side, #708597 94%, #0000);
  background: var(--_g), var(--_g), var(--_g), var(--_g);
  background-size: 20% 100%;
  animation:
    l40-1 .75s infinite alternate,
    l40-2 1.5s infinite alternate;
}

@keyframes l40-1 {

  0%,
  10% {
    background-position: 0 0, 0 0, 0 0, 0 0
  }

  33% {
    background-position: 0 0, calc(100%/3) 0, calc(100%/3) 0, calc(100%/3) 0
  }

  66% {
    background-position: 0 0, calc(100%/3) 0, calc(2*100%/3) 0, calc(2*100%/3) 0
  }

  90%,
  100% {
    background-position: 0 0, calc(100%/3) 0, calc(2*100%/3) 0, 100% 0
  }
}

@keyframes l40-2 {

  0%,
  49.99% {
    transform: scale(1)
  }

  50%,
  100% {
    transform: scale(-1)
  }
}

/* ✅ Background Video */
.videoContainer {
  position: relative;
  /* inset: 0; */
  width: 100vw;
  height: 100vh;
  /* opacity: 0; */
  z-index: -2;
  transition: opacity 1s ease;
}

.videoContainer.show {
  opacity: 1;
}

.videoContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* mask-image: url("../assets/images/maskimage.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  width: 65%; */
}

/* ✅ Dark overlay on video */
.videoOverlay {
  position: absolute;
  inset: 0;
  background: #2C2C2Ccc;
  pointer-events: none;
}

.videoContainer .videoContent {
  padding-left: 150px;
  padding-bottom: 100px;
  width: 50%;
  color: #fff;
  position: absolute;
  bottom: 0;
  z-index: 2;
  height: max-content;
  max-width: 500px;
}

.videoContainer .videoContent h1 {
  font-size: 34px;
  font-weight: 800;
}

.videoContainer .videoContent p {
  font-size: 18px;
  font-weight: 350;
  line-height: 180%;
}

/* ✅ Loading Screen */
.loading {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}

/* ✅ BIG “1” MASK */
.mask-wrapper {
  position: relative;
  font-size: 200px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 5px white;
  max-width: 500px;
}

.mask-text img {
  font-size: inherit;
  width: 390px;
}

/* ✅ Curtain Zoom Reveal */
.loading.zoom .mask-wrapper {
  transform: scale(10);
  /* margin-right: 500px; */
  transition: transform 1.2s ease-out, margin 1s ease-out;
  transform-origin: center;
}

.loading h2 {
  font-weight: 300;
  letter-spacing: 37%;
  font-size: 20px;
  margin-top: -85px;
  margin-bottom: 140px;
}

/* ✅ Fade Out Loading */
.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ✅ Page appears after */
#pageContent.show {
  opacity: 1;
  transition: opacity 1s ease 0.4s;
}


/* philosophy */
.philosophy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(100vh - 166px);
  padding-top: 83px;
  padding-right: 64px;
  padding-left: 64px;
  gap: 115px;
  align-items: center;
  padding-bottom: 83px;
}

.philosophy .mobile{
  display: none;
}

.philosophy .imageGroup {
  height: max-content;
  width: max-content;
  position: relative;
}

.philosophy .imageGroup img:nth-child(2) {
  margin-left: -40px;
  margin-top: -30px;
  position: absolute;
}

.philosophy .content {
  text-align: center;
}

.philosophy .content h1 {
  font-size: 36px;
  color: #15354E;
}

.philosophy .content p {
  line-height: 140%;
  font-size: 18px;
  font-weight: 300;
  color: #708597;
}

.philosophy .counter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 90px;
}

.philosophy .counter .counterItem {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 22px;
  color: #15354E;
  font-weight: 800;
  text-align: left;
}

.philosophy .counter .counterItem:nth-of-type(3) {
min-width: 130px;
}
.philosophy .counter .counterItem:nth-of-type(2) {
min-width: 85px;
}

.philosophy .counter .counterItem h3 {
  margin: 0;
}

.philosophy .counter .counterItem p {
  font-size: 16px;
  line-height: 120%;
  font-weight: 300;
  margin: 0;
}

/* description */
.description {
  height: calc(100vh - 170px);
  padding-top: 170px;

  max-width: 1140px;
  margin: auto;
  transition: max-width 1s ease-out;
}

.description .content {
  background: #15354E;
  color: white;
  border-radius: 12px 12px 0 0;
  height: 100%;
  padding: 0 195px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
   transform: translateY(240px);
     transition: transform 0.8s ease, opacity 0.8s ease, padding-top 0.8s ease;
}

.description .content.active {
  transform: translateY(0); /* move to correct position */
}

.description .content.active hr{
  margin-top: 0px;
}

.description.expand {
  max-width: 1400px;
}

.description .content hr{
  background: white;
  border: 1px solid white;
  height: 1px;
  width: 174px;
  position: absolute;
  top: 26px;
  margin-top: -55px;
  transition: margin 1.2s ease;
}

.description .content p{
  color: #B0B0B0;
  line-height: 140%;
  font-size: 16px;
  font-weight: 300;
  max-width: 750px;
}

.formSection {
  height: calc(100vh - 83px);
  padding-top: 83px;
  background: #15354E;
  border-radius: 12px 12px 0 0;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.formSection form {
  min-width: 407px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formSection form input,
.formSection form textarea {
  background-color: #FFFFFF21;
  border-radius: 8px;
  outline: none;
  border: none;
  min-height: 30px;
  color: white;
  padding: 10px;
}

.formSection form textarea {
  min-height: 127px;
  resize: none;
}

.formSection h1 {
  font-size: 36px;
  font-weight: 900;
  margin: 0;
}

.formSection span {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 42px;
}

.formSection form button {
  background-color: #F99D22;
  margin-top: 36px;
  border: none;
  border-radius: 8px;
  min-height: 40px;
  font-size: 14px;
  color: #15354E;
  font-weight: 300;
}

/* side menu */
#menu-btn .sideMenu {
  position: absolute;
  width: 330px;
  background: white;
  right: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 33px;
  gap: 70px;
  border-radius: 12px;
  margin-top: 40px;

  opacity: 0;
  /* hidden initially */
  pointer-events: none;
  /* prevent clicks when hidden */
  transform: translateY(-20px);
  /* slightly above */
  transition: all 0.3s ease;
  /* smooth animation */
}

#menu-btn .sideMenu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  /* slide in */
}

.sideMenu .top {
  display: flex;
  justify-content: space-between;
  width: 100%;
}


.sideMenu .top .lang {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #708597;
  gap: 8px;
}

#mobileMenu{
  display: none;
}