/* ------------ Global Styles ------------ */

@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Std Book.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Std Book Oblique.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Std Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Std Bold Oblique.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}


  h2 {
    font-family: 'Futura', sans-serif;
    font-weight: 450;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"], 
.button {
  font-family: 'Futura', sans-serif;
}

select, 
option,
.filter-group,
.selected-countries {
  font-family: 'Futura', sans-serif;
}
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow-x: hidden; 
    }

    body {
      display: flex;
      flex-direction: column;
      position: relative;
      font-family: 'Futura', sans-serif;
      color: #333;
      background-color: #f8f8f8;
      line-height: 1.6;
    }

    /* links */
    a {
      text-decoration: none;
      color: inherit;
    }
    
    .container {
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    /* ------------ Header ------------ */
    header {
        position: relative;
        margin-bottom: 3rem;
        padding: 1rem 0;
        z-index: 1000;
    }

    .video-wrapper {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      overflow: hidden;
      z-index: 0;
    }

    .header-video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none; /* Let clicks pass through */
      z-index: 0;
    }

    
    .header-content {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      min-height: 3.5rem;
      width: 100%; 
      padding: 0 1.5rem;
    }
  

  
    .logo img {
      height: 3.5rem;
      margin-bottom: -0.5rem;
    }
  
  nav {
    flex-grow: 1;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    list-style: none;
  }
  
  .nav-links li {
    font-size: 1rem;
  }
  
  .nav-links a {
    color: #333;
    transition: color 0.2s ease;
    display: inline-flex;
    line-height: 1.5rem;
    align-items: baseline;
  }
  
  .nav-links a.active {
    color: #ffffff;
  }

  .nav-links a:hover {
    color: #ffffff;
  }
  
  .nav-icon {
    height: 1em; 
    vertical-align: baseline;
    display: inline-block;
    margin-left: 8px;
  }
  
/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown menu style */
.dropdown-menu {
  display: none;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 160px;
  z-index: 1005;
  border-radius: 8px;
  text-align: center;
  max-height: none;
  overflow: visible;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Individual dropdown items */
.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333 !important;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Show menu on hover (desktop) */
.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Hover effect for dropdown items */
.dropdown-menu li a:hover {
  background-color: rgba(255,255,255,0.2);
  color: #000;
  transform: translateY(-1px);
}

body.home .dropdown-menu li a {
  color: #333;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============ Hamburger Menu ============ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2000;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation when open */
.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0 !important;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============ Mobile Responsive ============ */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header-content {
    padding: 0 1rem;
    justify-content: space-between;
  }

  .logo img {
    height: 2.5rem;
  }

  /* Hide nav by default, show as compact right-aligned dropdown */
  nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 2000;
  }

  nav.open {
    max-height: 400px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    margin: 0.25rem 0;
    padding: 0.25rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 170px;
  }

  .nav-links li {
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
  }

  .nav-links li a {
    display: block;
    padding: 0.35rem 1rem;
  }

  .dropdown-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 130px;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  /* Show dropdown on tap (JS toggles .open on parent) */
  .dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 2rem;
  }

  .nav-links li {
    font-size: 0.78rem;
  }

  .nav-links li a {
    padding: 0.3rem 0.9rem;
  }
}

/* Transparent header only on homepage */
body.home header {
  background-color: transparent;
  box-shadow: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  overflow: visible;
  min-height: 9.1vh; 
}

  body.about header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  } 
  
  /* Hide video background on homepage */
  body.home .header-video {
    display: none;
  }

 body.about .header-video {
    display: none; 
  }
    
    /* ------------ Footer ------------ */
    footer {
      background-color: #000; 
      color: #fff;
      background-color: #a4b5ca; 
      color: #000;
      padding: 1rem 0;
      position: relative;
    }

    /* For about page */
    body.about #footer-wrapper {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      z-index: 999;
      opacity: 0; 
      transition: opacity 0.5s ease;
    }


    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      padding: 0 1.5rem; 
    }
    
    .about-section {
      flex: 1;
      padding: 0; 
      margin: 0;
      width: auto;
    }

    .about-section:hover {
      color:#ffffff;
    }

    .about-link {
      display: inline;
      color: #000;
      text-decoration: none;
    }
    
    .about-link:hover {
      color: #ffffff;
    }
    
    .footer-nav ul {
      display: flex;
      gap: 1rem; 
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-nav ul li a {
      color: #fff;
      color: #000;
      text-decoration: none;
      font-size: 0.9rem;
    }

    .footer-nav ul li a:hover {
      color: #fff; 
    }
    
    .footer-logos {
      position: absolute;
      bottom: 1rem;
      right: 1.5rem;
      display: flex;
      gap: 1.5rem; 
    }
    
    .footer-logos img {
      height: 1.5rem; 
    }

    body {
      position: relative;
    }

    #bg-video {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
      opacity: 0.8;
    }

    header {
      position: relative;
      z-index: 1000;
    }

    /* ensure content sits above video */
    main, footer {
      position: relative;
      z-index: 500;
    }

    /* ------------ Fade-in keyframe (if used) ------------ */
    @keyframes fadeIn {
      to { opacity: 1; }
    }

/* ============ Mobile Overlay (all pages) ============ */

/* Hidden on desktop */
.mobile_overlay {
  display: none;
}

@media (max-width: 768px) {

  /* Prevent body scrolling and set fallback background */
  body {
    overflow: hidden !important;
    height: 100dvh;
    width: 100vw;
    background-color: #0a1628;
  }

  /* Hide hamburger menu */
  .hamburger {
    display: none !important;
  }

  /* Fullscreen overlay with water background */
  .mobile_overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 99999;
    overflow: hidden;
  }

  .mobile_overlay_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .mobile_overlay_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10%;
  }

  .mobile_overlay_logo {
    width: clamp(180px, 50vw, 280px);
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 12px rgba(158, 181, 203, 0.8));
  }

  .mobile_overlay_text {
    font-family: 'Futura', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 3.8vw, 1.2rem);
    color: white;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
  }
}
