body {
  padding-top: 100px;
}

#navbarNav .navshadow {
  box-shadow: none !important;
}

.header-bg-container {
  background-image: none;
}

.txt-overlay {
  position: relative;
}

.txt-overlay h4 {
  color: white;
  position: absolute;
  top: -140px;
  left: 0;
  right: 0;
}

.txt-overlay-1 {
  position: relative;
}

.txt-overlay-1 h4 {
  color: white;
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
}

.process-btn {
  border-radius: 20px;
  padding: 8px 30px;
  border: 2px solid black;
  font-weight: 600;
}

.browse-btn {
  border-radius: 50px;
  padding: 8px 15px;
  border: 2px solid black;
  font-weight: 600;
  font-size: 18px;
}

.light-green {
  color: #ccd834;
}

.txt-testimonial h4 {
  color: #7d7c7c;
  margin-bottom: 0;
}

.video-testimonial-row img {
  height: 350px;
}

.static-videos-img {
  height: 630px;
}

.static-images-section {
  /* height: 247px; */
  border-radius: 10px 10px 0px 0px;
}

.down-arrow {
  width: 30px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  padding: 10px;
}

.service-card:hover .overlay {
  opacity: 1;
}

.section-title {
  text-align: center;
  margin: 0px 0 40px;
}

.txt-overlay p {
  color: white;
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  width: 80%;
  margin: auto;
  align-items: center;
}
.mob-view {
  display: none !important;
}
/* mute button styles */
.vimeo-mute-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  z-index: 99;
  pointer-events: auto;
  transition: background 0.15s;
}

.vimeo-mute-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.vimeo-mute-btn.unmuted {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
}

/* keep iframe below the button */
iframe[data-vimeo-embed] {
  z-index: 1;
  /* position: relative; */
  display: block;
  border-radius: 15px;
}

.bs-team-img {
  border-radius: 60px;
}

@media (max-width: 1400px) and (min-width: 1200px) {
  .watch-button {
    position: absolute;
    top: 84%;
  }
}

@media (max-width: 1400px) and (min-width: 1200px) {
  .txt-overlay p {
    top: -120px;
  }

  .txt-overlay h4 {
    top: -160px;
  }
}

@media (max-width: 1399px) and (min-width: 1200px) {
  .first-video-section .swiper-container .swiper-slide {
    height: 600px !important;
    width: 27% !important;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .txt-overlay p {
    top: -110px;
    font-size: 14px;
  }

  .txt-overlay h4 {
    top: -150px;
  }

  .static-images-section {
    height: auto;
    width: 100%;
  }

  .first-video-section .swiper-container .swiper-slide {
    height: 600px !important;
    width: 32% !important;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .txt-overlay p {
    top: -100px;
    font-size: 12px;
  }
  .txt-overlay h4 {
    top: -125px;
    font-size: 18px;
  }

  .static-images-section {
    height: auto;
    width: 100%;
  }

  .meet-mind-magic-section {
    padding-top: 0px !important;
  }

  .txt-overlay-1 h4 {
    font-size: 18px;
    top: -30px;
  }

  .first-video-section .swiper-container .swiper-slide {
    height: 550px !important;
    width: 43% !important;
  }
}

@media (max-width: 767px) and (min-width: 576px) {
  .static-images-section {
    height: auto;
    width: 100%;
  }
  .video-grid-card img {
    height: 280px !important;
  }

  .txt-overlay-1 h4 {
    font-size: 18px;
    top: -30px;
  }

  .video-production-section .ps-5 {
    padding-left: 0 !important;
  }

  .txt-overlay p {
    top: -100px;
    width: 60%;
  }

  .first-video-section .swiper-container .swiper-slide {
    height: 550px !important;
    width: 58% !important;
  }
}

@media (max-width: 575px) and (min-width: 320px) {
  .static-images-section {
    height: auto;
    width: 100%;
  }
  .mob-view {
    display: block !important;
  }
  .txt-overlay-1 h4 {
    font-size: 16px;
    top: -30px;
  }

  .video-production-section .ps-5 {
    padding-left: 0 !important;
    font-size: 18px;
  }

  .video-production-section {
    padding-top: 0 !important;
    text-align: center;
  }

  .txt-overlay p {
    top: -100px;
    width: 90%;
    padding: 0 20px;
  }

  .ideation-creation .py-5 {
    padding-bottom: 0px !important;
  }

  .meet-mind-magic-section h3,
  .ideation-creation h3 {
    font-size: 16px;
  }

  h1 {
    font-size: 24px;
  }

  .first-video-section .swiper-container .swiper-slide {
    height: 550px !important;
    width: 73% !important;
  }

  .watch-button {
    padding: 6px 13px;
    font-size: 12px;
  }

  .vimeo-mute-btn {
    bottom: 12px;
    right: 27px;
    padding: 3px 7px;
    font-size: 12px;
  }
}

@media (max-width: 418px) and (min-width: 320px) {
  .first-video-section .swiper-container .swiper-slide {
    height: 400px !important;
    width: 71% !important;
  }

  /* .image-container iframe {
    height: 400px !important;
  } */

  .txt-overlay p {
    top: -110px;
    padding: 0 0px;
  }
}

.swiper-container {
  width: calc(100% - 0px);
  height: 100%;
  max-height: 700px;
  padding: 0px;
}

.swiper-slide {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-container .swiper-slide {
  height: 550px !important;
  width: 23% !important;
}

.image-container iframe {
  height: 600px;
}

.logo-grid {
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
}

/* Desktop & Tablet – 2 rows */
.logo-grid.collapsed {
  max-height: 260px;
}

/* Mobile – 3 rows */
@media (max-width: 575px) {
  .logo-grid.collapsed {
    max-height: 390px;
    /* 3 rows */
  }
}

.logo-grid.expanded {
  max-height: 2000px;
}

.logo-item {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  max-height: 60px;
  object-fit: contain;
}

.video-category-slider-wrap {
  position: relative;
  padding-top: 64px;
}

.video-category-slider {
  overflow: hidden;
}

.video-slider-controls {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.video-slider-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #000;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.video-slider-control:hover,
.video-slider-control:focus-visible {
  background: #ccd834;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.video-slider-control:focus-visible {
  outline: 3px solid rgba(204, 216, 52, 0.35);
  outline-offset: 3px;
}

.video-slider-control i {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.video-slider-control:hover i,
.video-slider-control:focus-visible i {
  color: #111;
}

/* Snaps cleanly when users click the video controls. */
.video-category-slider .swiper-wrapper {
  transition-timing-function: ease !important;
}

.swiper-slide {
  width: 300px !important;
  height: 560px !important;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.swiper-slide:hover {
  transform: translateY(-5px);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb {
  cursor: pointer;
  position: relative;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.5) 70%
  );
  border: 0;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.play-overlay::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  display: block;
  grid-area: 1 / 1;
}

.play-overlay::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #000;
  margin-left: 3px;
  grid-area: 1 / 1;
}

.video-thumb:hover .play-overlay {
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.6) 70%
  );
  transform: scale(1.02);
}

.video-thumb::after {
  content: "Click to watch the video.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-thumb:hover::after {
  opacity: 1;
}

.stats-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 6px 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.swiper-slide.image-container iframe {
  pointer-events: none;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1050;
}

.video-lightbox.open {
  display: flex;
}

.video-lightbox__dialog {
  position: relative;
  width: min(360px, calc((100vh - 64px) * 0.5625), calc(100vw - 32px)) !important;
  max-height: calc(100vh - 48px);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.video-lightbox__player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-lightbox__player iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.video-lightbox__close:hover {
  background: #fff;
}

.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

body.video-lightbox-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .video-category-slider-wrap {
    padding-top: 56px;
  }

  .video-slider-controls {
    right: 8px;
    padding: 6px;
    gap: 8px;
  }

  .video-slider-control {
    width: 38px;
    height: 38px;
  }

  .video-lightbox {
    padding: 16px;
  }

  .video-lightbox__dialog {
    width: min(340px, calc(100vw - 24px), calc((100vh - 40px) * 0.5625)) !important;
    max-height: calc(100vh - 32px);
    border-radius: 10px;
  }

  .video-lightbox__close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Overlay (optional) */
.bs-video-section-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 1;
}

/* Button above overlay */
#muteToggle {
  z-index: 3;
}

.bs-video-section-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #000;
}

/* Updated Iframe Rules for Top-Alignment */
.bs-video-section-bg iframe {
  position: absolute;
  /* 1. Pin the video to the top edge instead of the middle */
  top: -5px;
  left: 50%;
  width: 100%;
  height: 100%;

  min-width: 177.77vh;
  min-height: 56.25vw;

  /* 2. Only shift the video on the X-axis (horizontal) to center it.
        We removed the Y-axis shift so it stays at the top. */
  transform: translateX(-50%);

  pointer-events: none;
  border: none;
}
