﻿/* Hero Video Section - Full Width, Full Viewport Height, Mobile Responsive */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    min-height: 600px; /* Ensures decent height on large screens */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Video Container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.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; /* Ensures video covers entire section without distortion */
    filter: brightness(0.85); /* Slight darkening to enhance text contrast */
}

/* Overlay for better text readability - subtle gradient */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Hero Content (Text overlay) */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    pointer-events: none; /* Allows video interaction but not needed */
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

/* Brand Name Styling - Bold White */
.brand-name {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
    margin: 0;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #fff, #FFE0A3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Fallback for browsers that don't support background-clip text */
@supports not (background-clip: text) {
    .brand-name {
        color: white;
        text-shadow: 0 2px 10px rgba(0,0,0,0.6);
        background: none;
    }
}

.mango-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    display: inline-block;
}

/* Dynamic Message Container - Mango Fruit Quality Text */
.dynamic-message-container {
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.dynamic-message {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    font-weight: 800;
    color: white;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    display: inline-block;
    padding: 0.5rem 1.8rem;
    border-radius: 60px;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    border-left: 4px solid #FFA500;
    border-right: 4px solid #FFA500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Slogan Text - Bold White */
.slogan-wrapper {
    margin-top: 0.5rem;
}

.slogan-text {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.slogan-sub {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin: 0;
    letter-spacing: 0.5px;
}

/* CTA Button - Bold White Border */
.hero-cta {
    pointer-events: auto;
    display: inline-block;
    background: transparent;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 12px 32px;
    margin-top: 20px;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
    background-color: rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

    .hero-cta:hover {
        background-color: #FFA500;
        border-color: #FFA500;
        color: #2c2c2c;
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

/* Animations Classes */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

.fade-up {
    animation: fadeUpIn 0.8s ease forwards;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator (Stylish) */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
    pointer-events: none;
}

    .scroll-indicator span {
        display: block;
        width: 8px;
        height: 8px;
        background-color: white;
        border-radius: 50%;
        opacity: 0.7;
        animation: bounce 1.4s infinite ease-in-out;
    }

        .scroll-indicator span:nth-child(1) {
            animation-delay: 0s;
        }

        .scroll-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .scroll-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ========== MOBILE RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .hero-video-section {
        min-height: 600px;
        height: 100vh;
    }

    .hero-content {
        padding: 0 20px;
    }

    .brand-name {
        font-size: clamp(1.9rem, 7vw, 3rem);
        gap: 5px;
        flex-direction: row;
    }

    .mango-icon {
        font-size: 2rem;
    }

    .dynamic-message {
        font-size: 1.2rem;
        padding: 0.4rem 1.2rem;
        border-left-width: 3px;
        border-right-width: 3px;
    }

    .dynamic-message-container {
        min-height: 70px;
    }

    .slogan-text {
        font-size: 1.2rem;
    }

    .slogan-sub {
        font-size: 0.85rem;
    }

    .hero-cta {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        bottom: 15px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .dynamic-message {
        font-size: 1rem;
        padding: 0.3rem 1rem;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .mango-icon {
        font-size: 1.8rem;
    }

    .slogan-text {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Ensure video clarity on all devices */
@media (min-width: 1920px) {
    .hero-video {
        object-fit: cover;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-video-section {
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .dynamic-message-container {
        min-height: 50px;
    }
}
