* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* ===============================
   FULLSCREEN VIDEO
   =============================== */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none; /* VIDEO NEVER BLOCKS NAV */
}

/* ===============================
   HERO OVERLAY (content box)
   =============================== */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
  z-index: 5;       /* LOWER than nav */
  pointer-events: none; /* prevents blocking clicks */
}

.overlay .content-box {
  pointer-events: auto; /* enables clicks INSIDE content only */
  user-select: none; /* prevents accidental highlighting */
}

.content-box h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.content-box p {
  font-size: 1.2rem;
  max-width: 700px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .content-box h1 { font-size: 2.2rem; }
  .content-box p { font-size: 1rem; }
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 28px;
  background: #007bff;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: #005fcc;
}

/* ===============================
   NAVIGATION BAR
   =============================== */
.nav {
  position:fixed;
  top:0;
  left:0;
  width:100%;

  background:#000000c0;
  z-index:1000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav .nav-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1400px;
  margin:0 87px;
  padding:14px 20px;
}
.logo a { color:#fff; font-weight:700; font-size:1.2rem; text-decoration:none; }

/* nav links */
nav { display:block; }
.nav-links { list-style:none; display:flex; gap:24px; align-items:center; }
.nav-links a {
  color:#fff; text-decoration:none; font-weight:600; font-size:0.95rem;
  padding:8px 0; display:inline-block;
}
.nav-links a:hover { opacity:0.75; }
.nav-links a.active { border-bottom:3px solid #fff; padding-bottom:3px; }

/* hamburger */
.hamburger {
  display:none;
  border:0; background:transparent; cursor:pointer;
  padding:6px; margin-left:12px;
}
.hamburger span {
  display:block; width:24px; height:3px; background:#fff; margin:4px 0; border-radius:2px;
}

/* ===============================
   MOBILE MENU
   =============================== */
@media (max-width: 900px) {
  .nav .nav-inner { padding:12px; }


.nav-links {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  flex-direction: column;
  position: absolute;
  right: 14px;
  top: 60px;
  background: rgba(0,0,0,0.95);
  padding: 18px;
  width: 220px;
  gap: 12px;
  border-radius: 6px;
}

.nav-links.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}




  .hamburger { display:inline-block; }
  .content-block { flex-direction:column; }
  .content-block.reverse { flex-direction:column; }
  .hero { height:360px; margin-top:50px; }
  .hero h1 { font-size:28px; }
  .integrated { flex-direction:column; }
  .integrated .image-small { width:100%; max-width:420px; }
}

/* Smooth hide/show animation */
.nav {
    transition: transform 0.35s ease;
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

/* Mobile Navigation Fix */
@media (max-width: 768px) {
    .nav {
        padding: 0 20px;
    }

    .hamburger {
        margin-left: auto;
        margin-right: 0;
    }

    /* Text spacing fix */
    .section,
    .text-box,
    .content-block,
    .hero-inner {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
        .nav .nav-inner {margin: 0 auto;}

}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 42, 69, 0.97);
    color: white;
    padding: 25px 20px;
    z-index: 99999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: auto;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 40px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.cookie-btn.accept {
    background: #03A9F4;
    color: white;
}

.cookie-btn.accept:hover {
    background: #0288D1;
}

.cookie-btn.decline {
    background: rgba(255,255,255,0.15);
    color: white;
}

.cookie-btn.decline:hover {
    background: rgba(255,255,255,0.25);
}

.cookie-link {
    display: inline-block;
    margin-top: 10px;
    color: #9ccdf3;
    text-decoration: underline;
    font-size: 0.85rem;
}

.cookie-link:hover {
    opacity: 0.7;
}

/* Hidden state until JS checks */
.hidden {
    display: none;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
}

.lang-switcher a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.lang-switcher span {
    color: white;
    opacity: 0.6;
}

/* Mobile: put language switcher inside hamburger menu */
@media (max-width: 900px) {
    .lang-switcher {
        position: absolute;
        right: 70px;
        top: 22px;
    }
    .nav.open .lang-switcher {
        right: 20px;
        top: auto;
        bottom: 20px;
    }
}



/* FOOTER */
.site-footer {
  background: #0d2a45;
  padding: 40px 20px;
  color: #e9eef3;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #e9eef3;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.6;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ===============================
   PRELOADER (Spinner + %)
   =============================== */
#preloader {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.4s ease;
}

.spinner-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.spinner {
    width: 110px;
    height: 110px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.percent {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}
