/* =========================
   Navbar - Base
========================= */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: none; /* transparent so section background shows */
  backdrop-filter: blur(2px);
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: 
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    filter 0.3s ease;
}
#navbar .nav-link {
  text-decoration: none;
  color: var(--White, #fff); /* default (will be overridden by .light/.dark) */
  font-family: Lato, Roboto, Arial, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  transition: color 0.3s ease;
}
/* FIX: Mobile menu text color */
#navbar.navbar-open .nav-link {
  color: #fff !important;
}

#navbar .nav-link.active {
  border-bottom: 2px solid #00aaff;
  color: var(--White, #fff);
}

#navbar .nav-link:hover {
  border-bottom: 2px solid #00aaff;
}

/* Light / Dark modes for navbar (used by JS based on section background) */
#navbar.light .nav-link {
  color: #000;
}

#navbar.dark .nav-link {
  color: #fff;
}

/* =========================
   Logo
========================= */

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-logo img {
  height: 26px;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
/* 🔥 FORCE logo when menu is open */
#navbar.navbar-open.logo-dark {
  display: block;
}

#navbar.navbar-open .logo-dark {
  display: block !important;
}

#navbar.navbar-open .logo-light {
  display: none !important;
}
/* OPTIONAL: if you want actual separate logos instead of filter */
#navbar.light .logo-dark { display: none; }
#navbar.dark .logo-light { display: none; }

   /* Nav Links Container */

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

   /* Language Selector */

.language-selector img:first-child {
  width: 15px;
  height: 15px;
}

.language-selector img:last-child {
  width: 15px;
  height: 15px;
  aspect-ratio: 1/1;
}

   /* Language Dropdown */

.language-selector {
  position: relative;
  cursor: pointer;
}

/* Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown */
.lang-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: rgba(3, 18, 45, 0.95);
  backdrop-filter: blur(10px);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border-radius: 6px;
  display: none;
  min-width: 130px;
  z-index: 1000;
}

/* Items */
.lang-dropdown li {
  padding: 10px 16px;
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.lang-dropdown li:hover {
  background: rgba(0,170,255,0.2);
}
.lang-dropdown li a{
  text-decoration: none;
  color: #fff;
}

/* Show */
.language-selector.active .lang-dropdown {
  display: block;
}

/* Arrow animation */
.language-selector.active .arrow {
  transform: rotate(180deg);
  transition: 0.3s;
}
/* Default → white (for dark background) */
.lang-icon,
.lang-arrow {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

/* Light background → make them black */
#navbar.light .lang-icon,
#navbar.light .lang-arrow {
  filter: brightness(0) invert(0);
}

/* Dark background → white */
#navbar.dark .lang-icon,
#navbar.dark .lang-arrow {
  filter: brightness(0) invert(1);
}

/* When menu open → always white */
#navbar.navbar-open .lang-icon,
#navbar.navbar-open .lang-arrow {
  filter: brightness(0) invert(1) !important;
}

/* =========================
   Hamburger Button
========================= */

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger .line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}


/* When background is LIGHT → make hamburger DARK */
.hamburger.light .line {
  background-color: #000;
}

/* When background is DARK → make hamburger WHITE */
.hamburger.dark .line {
  background-color: #fff;
}

/* =========================
   Responsive - Navbar
========================= */

/* Large tablet & small laptop */
@media (max-width: 1024px) {
  .nav-links {
    gap: 16px !important;
  }
}

/* Tablet & mobile */
@media (max-width: 768px) {
  #navbar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
 #navbar.navbar-open {
        background-color: #03122d;
    }
  .navbar-logo {
    flex: 1;
  }

  nav {
    flex: 1;
    text-align: right;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-left: 230px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #03122d;
    padding: 20px 0;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 0 !important;
  }

  /* When the menu is open, show the links */
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  #navbar.navbar-open .hamburger .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #navbar.navbar-open .hamburger .line:nth-child(2) {
    opacity: 0;
  }
  #navbar.navbar-open .hamburger .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* 🔥 Language Mobile Fix */
.language-selector {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang-toggle {
  width: 100%;
  justify-content: center;
}

.lang-dropdown {
  position: static;   /* KEY FIX */
  width: 90%;
  margin-top: 8px;
  text-align: center;
}
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-links {
    font-size: 14px !important;
  }
}

/* =========================
   Section Background Modes
   (used for navbar color change)
========================= */

section[data-bg="dark"] {
  background-color: #010101;
}

section[data-bg="light"] {
  background-color: #fff;
}



@media (max-width: 768px){
  .hidden-xs{
    display: none;
  }
}




/*  Footer */

footer {
  display: flex;
  background: #101b31;
  padding: 24px 20px;
  justify-content: center;
  align-items: center;
  gap: 32px;
  align-self: stretch;
}

.footer-container {
  display: flex;
  max-width: 1375px;
  width: 100%;
  padding: 24px 20px 0 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 45px;
  width: 100%;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  min-width: 250px;
}
.footer-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;
}
.title span {
  color: #fff;
  font-family: Lato, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.footer-logo .logo-main {
  width: 75px;
  height: 29px;
}

.footer-address-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.footer-address {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-address a {
  color: #fff;
  font-family: Lato, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  text-decoration: none;
}

.footer-email-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-email-link img {
  width: 24px;
  height: 24px;
}

.footer-email-link span {
  color: #fff;
  font-family: "Noto Sans", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.footer-socials {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 150px;
}
.footer-links h4 {
  margin: 0;
  color: #fff;
  font-family: Lato;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%; /* 20.8px */
}
.solution,
.company {
  display: flex;
  padding-left: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links a {
  color: #fff;
  font-family: Lato, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  text-decoration: none;
}

.footer-bottom-bar {
  display: flex;
  padding: 14px 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-top: 1px solid #909090;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom span {
  color: #fff;
  font-family: Lato, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}
.footer-bottom span a {
  color: #fff;
  font-family: Lato, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  text-decoration: none;
}

/* 📱 Responsive - Footer only */

/* Large tablet and below */
@media (max-width: 1024px) {
  .footer-main {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
}

/* Tablet and below */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  footer {
    padding: 16px;
  }

  .footer-main {
    flex-direction: row;
    gap: 20px;
  }

  .footer-bottom {
    gap: 6px;
    font-size: 11px;
  }
}


/* Buttons style */
.btn{
  display: flex;
  height: 52px;
  padding: 30px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--White, #FFF);
  text-align: center;
  font-family: Lato;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 20.8px */
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary{
  border-radius: 12px;
  background: var(--Capri, #0096D6);
}
.btn-secondary{
  border-radius: 12px;
  border: 1px solid var(--White, #FFF);
}