/*
 * Video And Hero Stylesheet Overview
 * ----------------------------------
 * This file defines the hero area and reusable video carousel UI pieces.
 * It includes:
 * - hero layout and backdrop masks
 * - video box structure
 * - video title/description wrappers
 * - navigation arrows and dots
 * - overflow and hidden content helpers
 *
 * Practical CSS concepts used here:
 * - flexbox for alignment and spacing
 * - absolute positioning for overlays and loaders
 * - pseudo-elements for layout balancing
 * - keyframe animations for subtle transitions
 *
 * Tradeoff note:
 * Rules are kept mostly unchanged to preserve current rendering parity while
 * we reorganize files.
 */

/* Video Coming Soon Placeholder */
.video-coming-soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    color: #505070;
    letter-spacing: 0.08em;
    line-height: 0.9;
    z-index: 5;
    pointer-events: none;
    width: 50%;
}

/* Video Progress Bar */
.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    transition: width 0.3s ease;
    z-index: 10;
}

/* Hero Section */
.hero-backdrop {
    position: absolute;
    inset: -40px -380px;
    background: #f8f8ff88;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%), 
        linear-gradient(to bottom, transparent 0px, black 10px, black calc(100% - 10px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%), 
        linear-gradient(to bottom, transparent 0px, black 10px, black calc(100% - 10px), transparent 100%);
    mask-composite: intersect;
    pointer-events: none;
}

.case-studies-backdrop {
    position: absolute;
    inset: 0px -100px;
    background: #f8f8ff99;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);
    mask-composite: intersect;
    pointer-events: none;
    z-index: 0;
}

.case-study-container {
    position: relative;
    width: 95%;
    margin: 0 auto;
    max-width: 72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    width: 100%;
    padding:0px 2rem;
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    box-sizing: border-box;
    min-height: 100vh;
}

.hero-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;

}

.hero-heading {
    font-size: clamp(2rem, 2.5vw, 3.5rem);
    font-weight: 900;
    margin: 0 0 1.5rem 0;
    color: #000;
    line-height: 1.2;
}

.hero-paragraph {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight:400;
    margin: 0 0 1.5rem 0;
    line-height: 15;
    text-wrap: pretty;

}

.hero-paragraph:last-child {
    margin-bottom: 0;
}

.hero-paragraph p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #000;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.hero-paragraph p:last-child {
    margin-bottom: 0;
}

.video-box {
    width: 40%;
    border-radius: 15px;
    align-items: center;
    min-width:380px;
    box-sizing: border-box;
    background-color:#efefff; 
    border:3px solid #bbbbdd; 
    position: relative; 
    display: flex; 
    flex-direction: column;
    height:auto;
    color:#8888aa;
    
}

.hero-video-box {
    width:50%;
}

.video-box-wrapper {
    padding: 0px;
}

.video-box-wrapper.video-box-hash-pulse {
    transform-origin: center center;
    animation: videoBoxHashPulse 0.333s ease-out;
    will-change: transform;
}

@keyframes videoBoxHashPulse {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Video box top header */
.video-box-header {
    padding-top:20px !important;
    font-weight: 300;
    color: #a1a1bb;
}

/* Hero Video Navigation Buttons */
.video-box {
    position: relative;
}



.hero-video-container {
    position: relative;
    width: calc(100% - 40px);
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 852 / 480;
    margin: 20px 20px 0 20px;
    box-sizing: border-box;
    background-color: black;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
    display: block;
    opacity: 1;
}

/* Video loader */
.video-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,1);
    color: #ddddff;
    z-index: 5;
}

.videoInfoSection,
.video-information-section {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    margin: auto;
    padding-top: 0;
    padding-bottom: 5px;
}

/* Video title and arrows container */
.video-title-arrows {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    align-self: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-title-viewport {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    min-height: 3em;
    display: flex;
    align-items: center;
}

/* Video title display */
.video-title-display {
    min-height: 3em;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    width: 100%;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-wrap: balance;
}

/* Video description scrollbar wrapper */
.video-box-wrapper .descriptionScrollbarWrapper,
.video-box-wrapper .video-description-scroll-wrapper {
    height: 190px;
    margin-top: 9px;
}

/* Video description */
.video-description {
    font-size: 0.9em;
    font-weight: 400;
    max-width: 380px;
    text-align: center;
    line-height: 1.3;
    display: block;
    padding-left:5px;
    padding-right:5px;
    padding-top: 0;
    padding-bottom: 18px;
    transition: opacity 0.3s ease;
    color: #777799;

}

.hero-video-description {
    max-width: 360px !important;
}

/* Arrow indicator */
.video-arrow {
    background-color: transparent;
    height: 40px;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-video-arrow{
    height:20px;
    display: flex;
}

.hero-arrow-triangle-hidden {
    visibility: hidden;
    opacity: 0 !important;
    animation: none !important;
}

.video-arrow-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 15px solid #bbbbdd;
}

.videoInfoSection::before,
.videoInfoSection::after,
.video-information-section::before,
.video-information-section::after {
    content: '';
    flex: 1 1 auto;
    min-width: 0;
}

.videoInfo {
    flex: 0 1 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color:fuchsia;
    margin: 0 00px; /* ensures exactly 20px gap between videoInfo and each arrow */
}

/* Video Navigation Dots */
.video-nav-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 22px 0 4px 0;
}

/* Hero section: dots stay inside videoInfoSection with original spacing */
.hero-video-box .video-nav-dots {
    padding: 0 0 20px 0;
}

.hero-video-box .videoInfoSection,
.hero-video-box .video-information-section {
    padding-top: 10px;
}

.video-nav-dot {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background-color: #bbbbdd;
    color: #555577;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.video-nav-dot:hover {
    background-color: #9999cc;
    transition: none;
}

.video-nav-dot.active {
    background-color: #6644ff;
    color: #ffffff;
}

/* Case study video boxes: smaller outline-style dots */
.video-box-wrapper:not(.hero-video-box) .video-nav-dots {
    padding: 22px 0 8px 0;
}

.video-box-wrapper:not(.hero-video-box) .video-nav-dot {
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 2px solid #bbbbdd;
    color: #bbbbdd;
    font-size: 0.85em;
}

.video-box-wrapper:not(.hero-video-box) .video-nav-dot:hover {
    background-color: rgba(187, 187, 221, 0.2);
    border-color: #8C83F9;
    color: #8C83F9;
    transition: none;
}

.video-box-wrapper:not(.hero-video-box) .video-nav-dot.active {
    background-color: #bbbbdd;
    border-color: #bbbbdd;
    color: #efefff;
}

.descriptionScrollbarWrapper,
.video-description-scroll-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    width: calc(100% - 1px);
    box-sizing: border-box;
    mask-image: 
        linear-gradient(to bottom, transparent 5px, black calc(5px + 2.25%), black 95.5%, transparent 100%),
        linear-gradient(to bottom, black 0%, black 100%);
    mask-size: calc(100% - 20px) 100%, 20px 100%;
    mask-position: left center, right center;
    mask-repeat: no-repeat;
    -webkit-mask-image: 
        linear-gradient(to bottom, transparent 5px, black calc(5px + 2.25%), black 95.5%, transparent 100%),
        linear-gradient(to bottom, black 0%, black 100%);
    -webkit-mask-size: calc(100% - 20px) 100%, 20px 100%;
    -webkit-mask-position: left center, right center;
    -webkit-mask-repeat: no-repeat;
}

.descriptionScrollbarWrapper::-webkit-scrollbar,
.video-description-scroll-wrapper::-webkit-scrollbar {
    width: 24px;
}

.descriptionScrollbarWrapper::-webkit-scrollbar-track,
.video-description-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.descriptionScrollbarWrapper::-webkit-scrollbar-thumb,
.video-description-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #bbbbdd;
    border-radius: 12px;
    border: 6px solid transparent;
    background-clip: padding-box;
}



.descriptionScrollbarWrapper,
.video-description-scroll-wrapper {
    scrollbar-width: auto;
    scrollbar-color: #bbbbdd transparent;
}

.hero-description-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-description-wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.video-text-slide-clone {
    z-index: 2;
    pointer-events: none;
}

.hidden-video-description,
.hidden-video-title,
.hidden-video-link {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.hero-nav-btn {
    position: relative;
    font-weight: 300;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #bbbbdd;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-size: clamp(1.5rem, calc(1.5rem + 0.5rem * ((100vw - 900px) / 252px)), 2rem);
    flex: 0 0 auto; /* prevent arrows from stretching; keeps them adjacent to videoInfo */
    transform: none;
    padding: 0;
    flex-shrink: 0;
}

.hero-nav-btn:hover {
    color: #9993bb;
}

.hero-nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: -2;
}

.hero-nav-img {
    height: clamp(24px, 3vw, 32px);
    width: clamp(24px, 3vw, 32px);
}


/* Video box description paragraphs stack vertically */
.video-box-wrapper .hidden-video-description,
.video-box-wrapper [id$="VideoDescription"] {
    display: block !important;
}

.video-box-wrapper [id$="VideoDescription"] p {
    display: block;
}

