/* ==========================================================================
   CINEMATIC PORTFOLIO SECTION STYLES (UPDATED FOR DIRECT VIDEOS & REELS)
   ========================================================================== */

/* Main Section Wrapper */
.cinematic-work-section {
  position: relative;
  background-color: #050505;
  padding: 80px 0 140px 0;
  min-height: 100vh;
  overflow: hidden;
}

/* 1. Huge Fixed Stroke Background Title (OUR WORKS) */
.sticky-title-wrapper {
  position: sticky;
  top: 25vh;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -100px;
}

.bg-scroll-title {
  font-size: clamp(4rem, 15vw, 15rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 8px;
  white-space: nowrap;
  user-select: none;
  margin: 0;
  line-height: 1;
}

/* 2. Foreground Content Layer */
.video-content-container {
  position: relative;
  z-index: 10;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 3. Filter Tabs Bar */
.tabs-scroll-container {
  width: 100%;
  margin-bottom: 60px;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

.tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.tab-btn {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #888;
  padding: 10px 20px;
  border-radius: 40px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  backdrop-filter: blur(16px);
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(30, 30, 30, 0.9);
}

.tab-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

/* 4. Responsive Video Masonry/Grid */
.video-two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start; /* Dynamic heights adjustment */
}

/* 5. Scroll Animation States */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 6. Video Cards Design */
.cinematic-card {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.cinematic-card.hide {
  display: none !important;
}

/* Direct Inline Video Player Box (Standard 16:9 Landscape Ratio) */
.card-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: #000;
}

/* Vertical Reels Layout Format (9:16 Ratio) */
.cinematic-card.is-reel .card-media-box {
  aspect-ratio: 9 / 16;
}

/* Video Styling (Autoplay & Hover Zoom) */
.card-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-card:hover .card-media-box video {
  transform: scale(1.03);
}

/* Sound Toggle Control (Mute/Unmute Badge) */
.video-sound-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: #fff;
  font-size: 12px;
  transition: all 0.3s ease;
}

.video-sound-toggle:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Card Details Footer Bar */
.card-details-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #090909;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-tag {
  display: block;
  font-size: 10px;
  font-family: monospace;
  color: #d4af37;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin: 4px 0 0 0;
}

.card-counter {
  font-size: 11px;
  font-family: monospace;
  color: #666666;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 30px;
}

/* 7. Mobile Responsiveness */
@media (max-width: 768px) {
  .video-two-column-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .tabs-wrapper {
    gap: 8px;
  }
  
  .tab-btn {
    padding: 8px 14px;
    font-size: 10px;
  }
}
/* Slick Track Flex Fix */
.service-t__slider .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.service-t__slider .slick-slide {
  height: auto !important;
}

.service-t__slider .slick-slide > div,
.service-t-single-wrapper {
  height: 100% !important;
}

/* Fixed Height & Flex Alignment */
.service-t__slider-single {
  min-height: 520px !important; /* Fixed base height */
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Align Headings & Lists */
.service-t__slider-single .intro {
  min-height: 90px !important;
}

.service-t__slider-single ul {
  flex-grow: 1 !important;
}