/* ========================================
   HERO VIDEO SECTION - AUTOPLAY LOOPING VIDEO
   ======================================== */

/* Video Container */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Background Video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Video Overlay - Fading effect from left to transparent (half page) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.75) 20%,
        rgba(0, 0, 0, 0.5) 35%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 65%,
        transparent 100%
    );
    z-index: 2;
}

/* Alternative overlay - even more dramatic fade for better text visibility */
.video-overlay-dramatic {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.8) 15%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.3) 45%,
        rgba(0, 0, 0, 0.1) 55%,
        transparent 70%,
        transparent 100%
    );
}

/* Hero Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    color: white;
    padding: 0 20px;
}

/* Hero Typography */
.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    /* margin-bottom: 1.5rem; */
    font-family: var(--font-primary);
}

.hero-subtitle .highlight-text {
    color: #f39c12;
    display: block;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #7d2e3f 0%, #5a1f2e 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(125, 46, 63, 0.4);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(125, 46, 63, 0.6);
}

.hero-buttons .btn-outline-light {
    border: 2px solid white;
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: #7d2e3f;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.scroll-link:hover {
    background: rgba(243, 156, 18, 0.9);
    border-color: #f39c12;
    color: white;
    transform: translateY(5px);
}

/* Bounce Animation for Scroll Indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .hero-video-section {
        height: 90vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .scroll-indicator {
        bottom: 30px;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .hero-video-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
        /* margin-bottom: 1rem; */
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-link {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    /* Adjust video overlay for better mobile readability */
    .video-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.75) 40%,
            rgba(0, 0, 0, 0.85) 60%,
            rgba(0, 0, 0, 0.75) 80%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }
}

/* Extra small devices (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-subtitle {
        /* font-size: 1.5rem; */
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
}

/* ========== FALLBACK FOR DEVICES THAT DON'T SUPPORT VIDEO ========== */
.hero-video-section.no-video {
    background: linear-gradient(135deg, #7d2e3f 0%, #5a1f2e 100%);
}

.hero-video-section.no-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('path-to-fallback-image.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

/* ========== VIDEO LOADING STATE ========== */
.hero-video.loading {
    opacity: 0;
}

.hero-video.loaded {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator {
        animation: none;
    }
    
    .hero-buttons .btn:hover {
        transform: none;
    }
    
    .scroll-link:hover {
        transform: translateY(0);
    }
}


/* ========== ADDITIONAL ENHANCEMENTS ========== */

/* Add subtle animation to hero content */
.hero-content .hero-title {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content .hero-subtitle {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content .hero-description {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-content .hero-buttons {
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video play button for mobile (if autoplay fails) */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 80px;
    height: 80px;
    background: rgba(243, 156, 18, 0.9);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-button i {
    font-size: 2.5rem;
    color: white;
    margin-left: 5px;
}

.video-play-button:hover {
    background: rgba(243, 156, 18, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button.show {
    display: flex;
}

/* Hide play button when video is playing */
.video-container.playing .video-play-button {
    display: none;
}