/* =========================================================
   HERO BANNER & SLIDER STYLES
========================================================= */
.cv-hero-section {
    height: 100vh;
    min-height: 700px;
    background-color: #0d0d0d;
}

.cv-hero-swiper .swiper-slide {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
    height: 100vh;
    min-height: 700px;
}

/* Dark Gradient Overlay for optimal legibility */
.cv-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(13, 13, 13, 0.90) 0%, 
        rgba(13, 13, 13, 0.70) 45%, 
        rgba(13, 13, 13, 0.2) 100%);
    z-index: 1;
}

/* Vertical Social Bar */
.cv-social-vertical {
    left: 2rem;
    bottom: 3rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.cv-social-links {
    writing-mode: horizontal-tb;
    transform: rotate(180deg);
}

.cv-social-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2vw;
    transition: color 0.3s ease;
}

.cv-social-links a:hover {
    color:#cda85f;
}

.cv-social-text {
    letter-spacing: 1px;
}

/* Typography & Hero Content */
.cv-hero-content {
    padding-top: 80px;
}

.cv-hero-title {
    font-size: clamp(2.5rem, 5.5vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -1.5px;
}

.cv-arrow-down {
    font-weight: 300;
    display: inline-block;
    margin-left: 5px;
}

/* Floating Glassmorphism Video Card */
.cv-floating-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cv-play-btn {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.cv-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Swiper Custom Pagination Dots */
.cv-swiper-pagination {
    left: 8rem !important;
    bottom: 3.5rem !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    opacity: 0.5;
    border-radius: 50%;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.cv-swiper-pagination .swiper-pagination-bullet-active {
    width: 24px;
    height: 8px;
    background-color: #cda85f;
    border-radius: 10px;
    opacity: 1;
}
/* ==========================================
   VIDEO POPUP STYLES & ANIMATIONS
=========================================== */
.cv-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth easing */
}

/* Glassmorphism Dark Overlay */
.cv-video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Modal Content Container */
.cv-video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px; /* Max width for large screens */
  z-index: 10000;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Responsive 16:9 iframe wrapper */
.cv-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Modern responsive aspect ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cv-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Close Button Floating on Top Right */
.cv-video-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}

.cv-video-close-btn:hover {
  color: #ff3b30; /* Matches your brand red */
}

/* Active Class triggers animations */
.cv-video-modal.is-active {
  visibility: visible;
  opacity: 1;
}

.cv-video-modal.is-active .cv-video-modal-content {
  transform: scale(1); /* Pops in smoothly */
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .cv-video-wrapper {
    padding-top: 56.25%; /* 16:9 Hack */
    height: 0;
  }
}
/* Responsive Adjustments */
@media (max-width: 1200px) {
    .cv-swiper-pagination {
        left: 2rem !important;
    }
}

@media (max-width: 768px) {
    .cv-hero-section, 
    .cv-hero-swiper .swiper-slide {
        height: auto;
        min-height: 600px;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .cv-hero-title {
        font-size: 2.8rem;
    }

    .cv-swiper-pagination {
        bottom: 1.5rem !important;
        left: 50% !important;
        transform: translateX(-50%);
    }
    .cv-video-modal-content {
      width: 95%;
    }
    .cv-video-close-btn {
      top: -40px;
      font-size: 26px;
    }
}