/* ===== Video Scroll Section ===== */
.cp-video-scroll {
  position: relative;
  width: 100%;
  height: 300vh;
  background: #000;
}

.cp-video-scroll__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-video-scroll__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main content */
#cp-main-content {
  opacity: 1;
  transition: none;
}

/* Navbar: hidden by default on index (scoped via body class) */
body.cp-has-video-intro .custom-navbar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

body.cp-has-video-intro .custom-navbar.cp-nav-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Video section yanında body padding-top sıfırlansın */
body.cp-has-video-intro {
  padding-top: 0 !important;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .cp-video-scroll {
    height: 250vh;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cp-video-scroll {
    height: 200vh;
  }

  .cp-video-scroll__sticky {
    height: 100vh;
    height: 100dvh;
  }

  .cp-video-scroll__video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .cp-video-scroll {
    height: 180vh;
  }
}
