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

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

/* =========================
   FONTS
========================= */
@font-face {
  font-family: 'BlockBlueprint';
  src: url('./fonts/BlockBlueprint.ttf') format('truetype');
}

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

/* ===========================
   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; }
}


/* =========================
   FIXED VIDEO LAYER
========================= */
.fixed-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin-right: 200px;
  z-index: 4;
  opacity: 1; /* adjust brightness */
  filter: saturate(0.3) contrast(170%);
}


.video-track-container {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  pointer-events: none;
}

.video-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgb(54, 54, 54);
  transform: translateY(-50%);
}

.track-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:  rgb(54, 54, 54);
  z-index: 2;
}

.overlay-video {
  position: absolute;
  width: 65vw;
  height: 65vh;
  margin-top: 10%;
  object-fit: cover;
  filter: grayscale(20%) contrast(150%);
  top: 0;
  left: 0;
  transform: translate3d(0px, 15vh, 0px);
  z-index: 4;
}


/* grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.281)1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 3;
  pointer-events: none;
}

/* =========================
   SCROLL WRAPPER
========================= */
.scroll-wrapper {
  position: relative;
  z-index: 0;
  padding-top: 80px;
}

/* Scrollable page title */
.page-title {
  font-family: 'BlockBlueprint', sans-serif;
  font-size: 10rem;
  width: 84%;
  text-align: right;
  margin-right: 290px;
  padding: 20px 50px;
  line-height: 0.7;
  opacity: 0.8;
  z-index: 5;

  background: linear-gradient(to right, #000000, #000000, #4bff8d1d,  #b5d86b); /* green -> blue */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* =========================
   ALL SECTIONS CONSISTENT
========================= */
#page1,
#page2,
#page3,
#page4,
#page5,
#page6 {
  height: 45vh;
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: -3.4%;
  margin-bottom: 1.3%;
  padding: 80px;
  position: relative;
  background: transparent;
  z-index: 1;
}

.page2-container,
.page3-container,
.page4-container,
.page5-container,
.page6-container {
  width: 100%;
  display: flex;
  align-items: center;
}

#page2 .page2-container { justify-content: flex-start; margin-left: 20%; }
#page3 .page3-container { justify-content: flex-end; margin-right: 20%; }
#page4 .page4-container { justify-content: flex-start; margin-left: 20%; }
#page5 .page5-container { justify-content: flex-end; margin-right: 20%; }
#page6 .page6-container { justify-content: flex-start; margin-left: 20%; }

.page2-text,
.page3-text,
.page4-text,
.page5-text,
.page6-text {
  max-width: 400px;
  font-family: 'Teknaf', sans-serif;
  font-size: 1.2rem;
  line-height: 1.4;
  color: white;
  opacity: 0.9;

  /* NEW: initially hidden for fade-in scroll */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2.8s ease-out, transform 0.8s ease-out;
}

/* visible class when scrolled into view */
.page-text-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* =========================
   PAGE 7 FULL VIDEO
========================= */
#page7 {
  height: 100vh;
  width: 100%;
  margin-top: 290px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 20;
}

.page7-fullvideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   PAGE 8 IMAGE SLIDER
========================= */
#page8 {
  height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  position: relative;
  z-index: 20;
}

.image-slidee {
  width: 100%;
  height: 400px;
  background: black;
  display: flex;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  padding: 20px;
}

.image-slidee:active { cursor: grabbing; }
.image-slidee img {
  height: 100%;
  width: auto;
  flex: 0 0 auto;
  object-fit: cover;
  opacity: 1;
}


/* =========================
   PAGE 9 CONTACT
========================= */
#page9 {
  min-height: 30vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: rgb(0, 0, 0);
  position: relative;
  z-index: 20;
}

/* black grid overlay */
#page9 .grid-overlay-black {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 3px 3px; /* adjust grid spacing */
  pointer-events: none; /* ensures content is still clickable */
  z-index: 25; /* in front of text/content */
}

.page9-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-left: -2%;
  max-width: 1000px;
}

.page9-left,
.page9-right {
  width: 45%;
}

.page9-left h1 {
  font-size: 3rem;
  font-family: 'Teknaf', sans-serif;
  margin-bottom: 10px;
  color: #727272;
}

.page9-right h1 {
   font-size: 3rem;
  font-family: 'Teknaf', sans-serif;
  margin-bottom: 10px;
  text-align: right;
  color: #727272;
}

.page9-left p {
  font-size: 1rem;
  font-family: 'Teknaf', sans-serif;
  margin: 6px 0;
  color: #686868;
}


.page9-right p {
   font-size: 1rem;
  font-family: 'Teknaf', sans-serif;
  margin: 6px 0;
  color: #686868;
  text-align: right;
} 


/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
  .navbar__container {
    padding: 0 20px;
  }

  .overlay-video {
    width: 90vw;
    height: 60vh;
  }

  #page1,
  #page2,
  #page3,
  #page4,
  #page5,
  #page6 {
    padding: 40px 20px;
    justify-content: center;
  }

  .page2-container,
  .page3-container,
  .page4-container,
  .page5-container,
  .page6-container {
    justify-content: center !important;
    text-align: center;
  }

  .page2-text,
  .page3-text,
  .page4-text,
  .page5-text,
  .page6-text {
    max-width: 100%;
    font-size: 0.95rem;
  }

  #page8 {
    height: auto;
    padding: 40px 0;
  }

  .image-slidee {
    height: 280px;
  }

  .page9-container h1 {
    font-size: 2rem;
  }
}
