/* ===== Base / Reset ===== */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  background: #000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  scroll-behavior: smooth;
}


/* ===== Fixed Top Navigation ===== */

.top-nav {
  position: fixed;
  top: 20px;
  left: 30px;     /* anchor to left side */
  z-index: 10;

  background: none;
  backdrop-filter: none;
  border: none;

  padding: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.top-nav.visible {
  opacity: 1;
}

.nav-inner {
  display: flex;
  gap: 2rem;      /* spacing between links */
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover {
  color: #2bb1c9; /* matches your spectral highlight */
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .top-nav {
    left: 20px;
  }
  .nav-inner {
    gap: 1.4rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
}




/* ===== Fullscreen Video =====
   Pinned to the viewport; no min- sizes (avoids overflow).
   object-fit: cover guarantees full-bleed without gaps. */
#bg-video {
  position: fixed;
  inset: 0;                 /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;           /* avoid inline baseline gaps */
  z-index: 0;

  /* Fade-in */
  opacity: 0;
  transition: opacity 1s ease-in;
  background: #000;         /* prevents white flash before first frame */
}
#bg-video.visible { opacity: 1; }

/* iOS dynamic viewport fix (when available) */
@supports (height: 100dvh) {
  #bg-video { height: 100dvh; }
}

/* ===== Overlay Tint (optional) ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 1s ease-in;
  pointer-events: none;
}
.overlay.visible { opacity: 1; }

/* ===== Logo: centered, fade-in + gentle upward drift =====
   The element is fixed (not in document flow), so no layout shift.
   We animate transform (translateY) and opacity together. */
.logo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -45%);   /* start slightly lower */
  opacity: 0;                         /* start hidden */
  will-change: transform, opacity;    /* smoother animation */
}

/* Combined fade + drift */
.logo-container.visible {
  animation: logoFadeUp 1.5s ease-out forwards;
}

@keyframes logoFadeUp {
  0%   { opacity: 0; transform: translate(-50%, -45%); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

/* Logo sizing (responsive) */
.logo {
  width: clamp(210px, 30vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
  opacity: 90%;
}

/* ===== Reduced motion respect ===== */
@media (prefers-reduced-motion: reduce) {
  #bg-video,
  .overlay {
    transition: none;
    opacity: 1;
  }
  .logo-container.visible {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


/* ===== About Section ===== */

.about,
.contact,
.site-footer {
  position: relative;
  z-index: 3; /* above video + overlay + logo */
}

.about {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  background:
    #0a0a0a /* base colour to fade into */
    url("images/background_image-sensor.jpg") center/cover no-repeat;
  color: rgb(240, 240, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 100vh;
}


/* Darkening overlay */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.99) 0%,    /* almost solid at the top edge */
    rgba(0, 0, 0, 0.80) 15%,
    rgba(0, 0, 0, 0.80) 85%,   /* still dark, image barely visible */
    #0a0a0a 100%              /* fade into contact's base colour */
  );
  z-index: -1;
  pointer-events: none;
}






/* Ensure the content stays above the overlay */
.about > * {
  position: relative;
  z-index: 1;
}




.about .content {
  max-width: 800px;
}

.about h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.85;
}


/* ===== Color Bar ===== */

.color-bar {
  position: relative;
  z-index: 3;
  height: 5px;
  background: linear-gradient( 90deg, #0a0a0a 0%, #1b2c57 20%, #253f7a 35%, #2bb1c9 50%, #253f7a 65%, #5a4fbf 80%, #1b2c57 100% );
  filter: saturate(1.15) brightness(0.95);
}

/* ===== Contact Section ===== */

.contact {
  position: relative;
  z-index: 3;
  background: linear-gradient( to bottom, #0a0a0a 0%, #0a101e 25%, #0a1122 100% );
  color: #f0f0f0;
  padding: 6rem 2rem;
  text-align: center;

  display: flex;
  justify-content: center;
  align-items: center;
}

.contact .content {
  max-width: 700px;
  width: 100%;
}

.contact h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

/* Form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  opacity: 0.9;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,0.35);
  outline: none;
}

/* Submit button */
.contact-form button {
  align-self: flex-start;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-form button:hover {
  background: #eaeaea;
}




/* ===== Supported By Section ===== */

.supported-by {
  position: relative;
  z-index: 3;
  background: #fff; /* white background */
  color: #666;
  text-align: center;
  padding: 15px 0;
}

.supported-by h3 {
  margin: 0;
  margin-bottom: 15px;
  padding: 0;

  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 16px;
  color: #888;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.support-logo-container
{
    display: inline-block;
    margin: 0 20px;
}

.support-logo-container img{
  width: 150px; /* fixed width for all logos */
  height: auto;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-row img:hover {
  filter: none;
  opacity: 1;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  .logo-row {
    gap: 1.5rem;
  }

  .logo-row img {
    width: 150px;
  }
}




/* ===== Footer ===== */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 0.1rem 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 3;
}
