/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'BlockBlueprint';
  src: url('./fonts/BlockBlueprint.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Teknaf';
  src: url('./fonts/TeknafRegular-rv0aB.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: sans-serif;
  background: #000;
  overflow-x: hidden;
}

/* ===========================
   KEW NAVBAR — atmospheric / cyan glow / frosted
=========================== */
.navbar {
  height: 80px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.nav-collapsed .navbar {
  transform: translateY(-100%);
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
}

#navbar__logo {
  font-family: 'Teknaf', 'Inter', system-ui, sans-serif;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.4s ease, text-shadow 0.4s ease;
}
#navbar__logo:hover {
  opacity: 1;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.navbar__item {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  list-style: none;
}

/* top-level triggers — Teknaf, faint, glow on hover */
.navbar__links {
  font-family: 'Teknaf', 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.navbar__links::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.navbar__links:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}
.navbar__links:hover::after {
  transform: scaleX(1);
}

/* Dropdown — dark frosted, cyan hairline */
.navbar__dropdown {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  background: rgba(6, 14, 18, 0.5);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  z-index: 1000;
  overflow: hidden;
}
.navbar__item:hover .navbar__dropdown,
.navbar__item:focus-within .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}
.navbar__dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.navbar__dropdown li { list-style: none; }
.navbar__dropdown a {
  display: block;
  padding: 11px 22px;
  font-family: 'Teknaf', 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease, background 0.3s ease;
}
.navbar__dropdown a:hover {
  color: #ffffff;
  padding-left: 30px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.14), transparent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Collapse arrow — hairline circle, cyan glow */
#navCollapseBtn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}
#navCollapseBtn:hover {
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

/* ===========================
   HAMBURGER (shown when nav collapsed)
=========================== */
#menuToggle {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  z-index: 1001;
  background: rgba(6, 14, 18, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s, border-color 0.3s ease, box-shadow 0.3s ease;
}
body.nav-collapsed #menuToggle {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, visibility 0s linear 0.2s, border-color 0.3s ease, box-shadow 0.3s ease;
}
body.menu-open #menuToggle {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
#menuToggle:hover {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}
#menuToggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
}

/* ===========================
   OVERLAY (invisible — click-to-close)
=========================== */
#menuOverlay {
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: visibility 0s linear 0.4s;
}
body.menu-open #menuOverlay {
  opacity: 1;
  visibility: visible;
  transition: visibility 0s;
}

/* ===========================
   SIDE PANEL — frosted glass, cyan edge
=========================== */
#sidePanel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 330px;
  max-width: 85vw;
  z-index: 1002;
  background: rgba(6, 14, 18, 0.32);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border-left: 1px solid rgba(0, 229, 255, 0.22);
  border-top-left-radius: 26px;
  border-bottom-left-radius: 26px;
  box-shadow: -8px 0 50px rgba(0, 0, 0, 0.4), -1px 0 30px rgba(0, 229, 255, 0.1);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body.menu-open #sidePanel {
  transform: translateX(0);
}

.side-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 28px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  border-top-left-radius: 26px;
  flex-shrink: 0;
}
.side-panel__logo {
  font-family: 'Teknaf', 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease, text-shadow 0.3s ease;
}
.side-panel__logo:hover { opacity: 1; text-shadow: 0 0 12px rgba(0, 229, 255, 0.6); }

#menuClose {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
#menuClose:hover {
  border-color: rgba(0, 229, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}

.side-panel__nav {
  padding: 30px 0;
  flex: 1;
}
.side-panel__group { margin-bottom: 28px; }
.side-panel__group:last-child { margin-bottom: 0; }

.side-panel__group-label {
  display: block;
  padding: 4px 28px 10px;
  margin: 0 18px 10px;
  font-family: 'Teknaf', 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #00e5ff;
  opacity: 0.85;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}
.side-panel__nav a {
  display: block;
  padding: 13px 34px;
  font-family: 'Teknaf', 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease, background 0.3s ease, text-shadow 0.3s ease;
}
.side-panel__nav a:hover {
  color: #ffffff;
  padding-left: 42px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), transparent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

@media screen and (max-width: 960px) {
  .navbar__container { padding: 0 20px; }
  .navbar__menu { gap: 0; }
  .navbar__links { font-size: 0.7rem; padding: 8px 9px; letter-spacing: 0.1em; }
  .navbar__dropdown { min-width: 170px; }
  .navbar__dropdown a { font-size: 0.7rem; padding: 9px 16px; }
  #navbar__logo { font-size: 0.85rem; letter-spacing: 0.18em; }
  #sidePanel { width: 270px; }
}


/* HERO / PAGE 1 */
.hero {
  position: fixed;      /* stays completely fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 2;           /* behind scrolling content */
}




.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 1px, transparent 1px);

  background-size: 2px 2px; /* grid size */
  pointer-events: none;
  z-index: 7;
}



.overlay-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: grayscale(0%) contrast(110%);
  z-index: 4;
  will-change: transform;
  backface-visibility: hidden;
}

.halftone-overlay {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 500px;        /* smaller width */
  height: auto;        /* keep aspect ratio */
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply; /* blends with video for halftone effect */
  opacity: 0.0;             /* subtle effect */
  pointer-events: none;      /* so it doesn't block text */
  z-index: 3;
}

.floating-images {
  position: absolute;
  inset: 0;
  z-index: 1; /* behind text, above video if desired */
  pointer-events: none; /* don’t block clicks */
}

.floating-images img {
  position: absolute;
  width: 290px; /* adjust size */
  height: auto;
  opacity: 0.7; /* subtle overlay */
  transition: transform 3s ease, opacity 3s ease;
}

/* Random positions around corners */
.floating-images img:nth-child(1) {
  top: 5%;
  left: 55%;
}

.floating-images img:nth-child(2) {
  top: 10%;
  right: 75%;
}

.floating-images img:nth-child(3) {
  bottom: 40%;
  left: 20%;
}

.floating-images img:nth-child(4) {
  bottom: 29%;
  right: 20%;
}


@keyframes float {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(10px, -10px); }
  100% { transform: translate(0, 0); }
}

.floating-images img {
  animation: float 6s ease-in-out infinite alternate;
}


/* CORNER TEXTS */
.corner-text {
  position: absolute;
  margin-left: 550px;
  font-size: 7rem;
  font-weight: 301;
letter-spacing: -0.7rem;
  transform: scale(1.14, 1.00);
  line-height: 0.75;      /* try 0.9 – 1.1 */
  padding: 90px;
 opacity: 1;
  z-index: 5; /* above video and halftone overlay */
  max-width: 850px;
  margin-top: 300px;
}

/* Top Left */
.corner-text.top-left {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgb(255, 255, 255));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  top: 0;
  left: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .corner-text.top-left {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 90vw !important;
    max-width: 90vw !important;
    font-size: 2.5rem !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    transform: translate(-50%, -50%) !important;
  }

  .halftone-overlay {
    width: 150%;
    height: 150%;
  }

  /* center "scroll for the portal" */
  .page2-container {
    margin-left: 0 !important;
    max-width: 90vw !important;
    justify-content: center !important;
  }
  .page2-text {
    text-align: center !important;
  }

  /* center "BACK TO THE FUTURE" button */
  .back-to-future-btn {
    margin-left: 0 !important;
  }
}


/* PAGE 2 */
#page2 {
  margin-top: 100vh; /* start below hero */
  width: 100%;
  height: 8%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 88; /* scroll content above hero */
}

.page2-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: -900px;
  max-width: 300px;
        margin-left:-360px;

  gap: 40px;
  flex-wrap: wrap;
}

.page2-text {
  flex: 1 1 20%;
  color: #00e5ff62;
  text-align: center; /* move text closer to video */
    z-index: 3;

}


.page2-text p {
  font-size: 1rem;
    font-family: 'Teknaf', sans-serif;

  line-height: 1.2;
  margin-bottom: 15px;
  opacity: 0.9;
}


/* PAGE 3 *//* PAGE 3 FULLSCREEN VIDEO */
#page3 {
   margin-top: 20vh; /* start below hero */
  width: 100%;
  height: 8%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1; /* scroll content above hero */
}
.page3-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 300px;
        margin-left: -750px;

  gap: 40px;
  flex-wrap: wrap;
}

.page3-text {
  flex: 1 1 20%;
  color: #ffffff;
  text-align: center; /* move text closer to video */
    z-index: 3;

}


.page3-text p {
  font-size: 1rem;
    font-family: 'Teknaf', sans-serif;

  line-height: 1.2;
  margin-bottom: 15px;
  opacity: 0.9;
}

#page4 {
   margin-top: 20vh; /* start below hero */
  width: 100%;
  height: 8%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1; /* scroll content above hero */
}
.page4-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 300px;
        margin-left: -150px;

  gap: 40px;
  flex-wrap: wrap;
}

.page4-text {
  flex: 1 1 20%;
  color: #ffffff;
  text-align: center; /* move text closer to video */
    z-index: 3;

}

.page4-text p {
  font-size: 1rem;
    font-family: 'Teknaf', sans-serif;

  line-height: 1.2;
  margin-bottom: 15px;
  opacity: 0.9;
}

#page5 {
   margin-top: 20vh; /* start below hero */
  width: 100%;
  height: 8%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1; /* scroll content above hero */
}
.page5-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 300px;
        margin-left: 550px;

  gap: 40px;
  flex-wrap: wrap;
}

.page5-text {
  flex: 1 1 20%;
  color: #ffffff;
  text-align: center; /* move text closer to video */
    z-index: 3;

}

.page5-text p {
  font-size: 1rem;
    font-family: 'Teknaf', sans-serif;

  line-height: 1.2;
  margin-bottom: 15px;
  opacity: 0.9;
}

.page6-container {
  position: relative;
  width: 100%;
  height: 100vh; /* full viewport height */
  display: flex;
  justify-content: center;
  z-index: 9999;
  align-items: center;
  margin-top: -1100px;
}

.back-to-future-btn {
  display: inline-block;
  margin-top: 550px;
  margin-left: 300px;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-family: Teknaf;
  text-decoration: none;
  color: #6d858d;
  background-color: #ffffff27;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.back-to-future-btn:hover {
  transform: scale(1.1);
  background-color: #b2b2b2;
}

