/* ========================================
   Watch Page - Custom Styles
   ======================================== */

/* Header z-index for watch page */
#header {
    z-index: 109;
}

/* Main Wrapper */
.watch-page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

/* ========================================
   Blue Sky Background
   ======================================== */
.sky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: visible;
}
.sky-bg-image {
    width: 100%;
    height: auto;
    min-height: 100%;
}
.footer-wrapper::before{
  background-color: #ffffff00 !important;
}

.footer-wrapper {
    margin-top: 0 !important;
    z-index: 1000 !important;
    padding: 1em 2vmin 1.5em;
}
/* ========================================
   Stars and Moon Overlay
   ======================================== */
.stars-moon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    pointer-events: none;
    overflow: visible;
}

.stars-moon-image {
    width: 100%;
    height: auto;
    min-height: 100%;
    opacity: 0.95;
}

/* Show desktop stars by default, hide mobile */
.stars-moon-mobile {
    display: none;
}

.stars-moon-desktop {
    display: block;
}

/* Prevent extra scrollable space */
.watch-page-wrapper .rami-stories h2 {
    margin-top: 0;
}

/* ========================================
   Hero Section - Full Height
   ======================================== */
.watch-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.watch-hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* ========================================
   Hero Columns
   ======================================== */
.hero-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

.hero-left {
    justify-content: flex-start;
    padding-left: 20px;
}

.hero-right {
    justify-content: flex-end;
    padding-right: 20px;
}

.hero-center {
    flex: 2;
    flex-direction: column;
    text-align: center;
    z-index: 100;
}

/* ========================================
   Character Images with Animations
   ======================================== */
.character-image {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}

/* Initial State - Hidden off-screen */
.qamar-character {
    transform: translateX(-150%) scale(1.3);
    opacity: 0;
}

.rami-character {
    transform: translateX(150%);
    opacity: 0;
}

/* Animate In State */
.qamar-character.animate-in {
    transform: translateX(0) scale(1.3);
    opacity: 1;
}

.rami-character.animate-in {
    transform: translateX(0);
    opacity: 1;
}

/* Animate Out State (on scroll) */
.qamar-character.animate-out {
    transform: translateX(-150%) scale(1.3);
    opacity: 0;
}

.rami-character.animate-out {
    transform: translateX(150%);
    opacity: 0;
}

/* ========================================
   Hero Text Content
   ======================================== */
.hero-tagline {
    font-family: 'Araasmaabeltajie', sans-serif;
    font-size: 55px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 100;
    margin-bottom: 0 !important;
}

/* Watch Title Container */
.watch-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.watch-icon {
    width: 80px;
    height: auto;
}

.watch-title {
    font-family: 'Araasmaabeltajie', sans-serif;
    font-size: 180px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 30px #f5b32c, 0 0 15px #f5b32c, 0 0 0px #f5b32c;
    margin: 0;
    text-transform: uppercase;
    font-weight: 100;
}
h1.watch-title {
    padding: 0px !important;
}
/* Stories Title - Matching dynamic-value style */
.stories-title {
    font-family: 'Araasmaabeltajie', sans-serif;
    font-size: 95px;
    color: #ffffff;
    text-align: center;
    text-shadow:0 0 5px #f5b32c, 0 0 10px #f5b32c, 0 0 0px #f5b32c;
    margin: 0;
    text-transform: uppercase;
    font-weight: 100;
}


.scroll-arrow {
    display: block;
    width: 30px;
    height: 30px;
    border-right: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: rotate(45deg) translateY(10px);
        opacity: 1;
    }
}

/* Override home-background to remove any background image */
.watch-page-wrapper .home-background {
    background-image: none !important;
    background: transparent !important;
}

/* Videos section padding */
.watch-page-wrapper .rami-stories {
    padding-bottom: 60px;
}

/* Video Cards Styling - consistent across all devices */
.watch-page-wrapper .video-items {
    position: relative;
    display: inline-block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid transparent;
    margin-bottom: 20px;
}

.watch-page-wrapper .video-items:hover {
    border: 4px solid #fff;
}

.watch-page-wrapper .video-items h4 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(0 0 0 / 70%);
    color: #fff;
    font-size: 41px;
    line-height: 40px;
    backdrop-filter: blur(5px);
    margin: 0px;
}

.watch-page-wrapper .video-items a:hover h4 {
    display: none;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1400px) {
    .watch-title {
        font-size: 140px;
    }
    
    .stories-title {
        font-size: 65px;
    }
    
    .hero-tagline {
        font-size: 38px;
    }
    
    .character-image {
        max-height: 60vh;
    }
    
    /* Fix stars image stretching */
    .stars-moon-image {
        object-fit: cover;
        object-position: top center;
    }
}

@media (max-width: 1200px) {
    .watch-title {
        font-size: 120px;
    }
    
    .stories-title {
        font-size: 55px;
    }
    
    .hero-tagline {
        font-size: 32px;
    }
    
    .watch-icon {
        width: 60px;
    }
    
    .watch-title::before,
    .watch-title::after {
        display: none;
    }
}

@media (max-width: 991px) {
    /* Remove 100vh on mobile */
    .watch-hero-section {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .watch-hero-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-column {
        width: 100%;
    }
    
    /* Hero center becomes full width at the top */
    .hero-center {
        order: 1;
        width: 100%;
        z-index: 100;
        padding: 0 0 20px 0;
        position: relative;
    }
    
    /* Characters in the same row below hero-center */
    .hero-left,
    .hero-right {
        position: relative;
        order: 2;
        width: 50%;
        padding: 0 10px;
        transform: none;
    }
    
    .hero-left {
        left: auto;
    }
    
    .hero-right {
        right: auto;
    }
    
    /* Create a flex container for characters */
    .watch-hero-container {
        flex-wrap: wrap;
        flex-direction: row;
    }
    
    .hero-center {
        flex-basis: 100%;
    }
    
    .character-image {
        max-height: 40vh;
        max-width: 100%;
        width: 100%;
    }
    
    .watch-title {
        font-size: 100px;
    }
    
    .stories-title {
        font-size: 45px;
    }
    
    .hero-tagline {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    /* Add space at the bottom above footer */
    .watch-page-wrapper .home-background {
        padding-bottom: 60px;
    }
}

@media (max-width: 767px) {
    .watch-page-wrapper {
        padding-bottom: 20%;
    }
    
    .watch-hero-section {
        padding: 0 10px 20px 10px;
        min-height: auto;
    }
    
    .stars-moon-overlay {
        top: 30px;
        z-index: 1;
    }
    
    /* Swap to mobile stars image */
    .stars-moon-desktop {
        display: none;
    }
    
    .stars-moon-mobile {
        display: block;
    }
    
    .character-image {
        max-height: 22vh;
        max-width: 100%;
    }
    
    .hero-tagline {
        line-height: 1;
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .watch-title {
        font-size: 80px;
        letter-spacing: 4px;
    }
    
    .stories-title {
        font-size: 40px;
    }
    
    .watch-icon {
        width: 40px;
    }
    
    .watch-title-container {
        gap: 15px;
    }
    
    .scroll-arrow {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
    
    .watch-page-wrapper .rami-stories {
        margin: 0 10px;
        padding: 30px 15px;
        border-radius: 20px;
    }
    
    /* Mobile stars image - use contain to prevent stretching */
    .stars-moon-mobile {
        object-fit: contain;
        min-height: auto;
    }
    
    /* Video cards - maintain desktop styling with dark overlay */
    .watch-page-wrapper .video-items {
        border: 4px solid transparent !important;
        margin-bottom: 15px;
    }
    
    .watch-page-wrapper .video-items:hover {
        border: 4px solid #fff !important;
    }
    
    .watch-page-wrapper .video-items h4 {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 100% !important;
        width: 100% !important;
        text-align: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: rgb(0 0 0 / 70%) !important;
        color: #fff !important;
        font-size: 2rem !important;
        line-height: 1.2 !important;
        backdrop-filter: blur(5px);
        margin: 0px !important;
        padding: 10px 0 !important;
    }
    
    .watch-page-wrapper .video-items a:hover h4 {
        display: none !important;
    }
    
    /* Adjust navigation arrows */
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
        background-size: contain !important;
    }
    
    .owl-carousel .owl-nav button.owl-prev {
        left: -30px;
    }
    
    .owl-carousel .owl-nav button.owl-next {
        right: -30px;
    }
    
    /* Add space at the bottom above footer */
    .watch-page-wrapper .home-background {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .watch-page-wrapper {
        padding-bottom: 20%;
    }
    
    .watch-hero-section {
        padding: 0 10px 20px 10px;
        min-height: auto;
    }
    
    .stars-moon-overlay {
        top: 30px;
        z-index: 1;
    }
    
    /* Swap to mobile stars image */
    .stars-moon-desktop {
        display: none;
    }
    
    .stars-moon-mobile {
        display: block;
    }
    
    .hero-tagline {
        line-height: 1;
        font-size: 28px;
    }
    
    .watch-title {
        font-size: 80px;
    }
    
    .stories-title {
        font-size: 40px;
    }
    
    .character-image {
        max-height: 22vh;
        max-width: 100%;
    }
    
    .watch-icon {
        width: 30px;
    }
    
    .watch-title-container {
        gap: 10px;
    }
    
    /* Video cards - maintain dark overlay styling */
    .watch-page-wrapper .video-items h4 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        padding: 10px 0 !important;
    }
    
    /* Navigation arrows smaller on very small screens */
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        width: 30px;
        height: 30px;
    }
    
    .owl-carousel .owl-nav button.owl-prev {
        left: -30px;
    }
    
    .owl-carousel .owl-nav button.owl-next {
        right: -30px;
    }
    
    /* Add space at the bottom above footer */
    .watch-page-wrapper .home-background {
        padding-bottom: 100px;
    }
}
