/* 
 * Custom CSS for Home Page Hero and Support Us Sections
 * Human Rights Are Universal Arts Festival
 */

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    min-height: 600px; /* Reduced from 700px to properly contain the hero content */
    overflow: hidden; /* Prevent video overflow */
    padding-top: 80px;
    padding-bottom: 120px; /* Reduced padding to create clean boundary */
}

/* Video Background Container */
.hero-video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
    /* Ensure smooth playback across all devices */
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
}

/* Fallback Background Image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* This now only covers the hero section, not the quote section */
    background-image: url('../images/hero/artisticherobg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2; /* Above video, serves as fallback */
    opacity: 0.9;
}

/* Artistic Gradient Overlay for Text Readability */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Above video and fallback image, below content */
    background: linear-gradient(
        135deg,
        rgba(32, 32, 96, 0.15) 0%,      /* Much lighter dark blue top-left */
        rgba(255, 255, 255, 0.05) 20%,  /* Very subtle white lift */
        rgba(255, 217, 0, 0.08) 40%,    /* Slightly more yellow accent for warmth */
        rgba(0, 0, 0, 0.15) 60%,        /* Much lighter black fade */
        rgba(32, 32, 96, 0.25) 80%,     /* Lighter dark blue */
        rgba(0, 0, 0, 0.35) 100%        /* Significantly lighter bottom for text contrast */
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease-in-out infinite;
}

/* Subtle gradient animation for artistic effect */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hero Content Container */
.hero-content-container {
    position: relative;
    z-index: 4; /* Highest layer - above everything */
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

/* Left column styles */
.hero-text-col {
    margin-bottom: 30px;
}

.hero-heading-block {
    background-color: rgba(32, 32, 96, 0.95); /* Slightly more opaque for better readability over video */
    display: inline-block;
    margin-bottom: 10px;
    padding: 12px 24px; /* Slightly larger padding for better readability */
    max-width: 100%;
    backdrop-filter: blur(2px); /* Subtle blur effect for modern look */
    border: 2px solid rgba(255, 255, 255, 0.1); /* Subtle border for definition */
}

.hero-heading {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text shadow for better readability over video */
}

.hero-date-block {
    background-color: rgba(255, 217, 0, 0.95); /* Slightly more opaque */
    display: inline-block;
    margin-bottom: 25px;
    padding: 12px 24px; /* Slightly larger padding */
    max-width: 100%;
    backdrop-filter: blur(2px);
    border: 2px solid rgba(32, 32, 96, 0.2);
}

.hero-date {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* Light shadow for dark text */
}

.hero-theme {
    margin-bottom: 15px;
    position: relative;
}

.theme-heading {
    color: #ffffff; /* Changed to white for better readability over video */
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Strong shadow for better readability */
    background-color: rgba(32, 32, 96, 0.7); /* Background for better contrast */
    padding: 8px 16px;
    display: inline-block;
    backdrop-filter: blur(1px);
}

.theme-underline {
    width: 150px;
    height: 3px;
    background-color: #FFD900; /* Changed to yellow for better visibility */
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Shadow for definition */
}

.hero-description {
    color: #ffffff; /* Changed to white for better readability over video */
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 580px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Strong shadow */
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    padding: 15px 20px;
    backdrop-filter: blur(2px);
    border-left: 4px solid #FFD900; /* Yellow accent border */
}

.participate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(32, 32, 32, 0.95); /* More opaque */
    color: #ffffff;
    text-decoration: none;
    padding: 15px 30px; /* Larger padding for better visibility */
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    border: 2px solid rgba(255, 217, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.participate-btn:hover {
    background-color: rgba(255, 217, 0, 0.95);
    color: #202060;
    border-color: rgba(255, 217, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.play-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* Right column styles */
.hero-logo-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* Updated desktop styles for herologo.png with improved positioning and animations */
.hero-logo-container {
    width: 100%;
    max-width: 400px; /* Increased from 300px to make logo larger */
    margin-bottom: 20px;
    position: absolute;
    top: -40px; /* Adjusted from -60px since we now have proper hero boundaries */
    right: 40px; /* Adjusted right position */
    z-index: 5; /* Above gradient overlay */
    /* Animation: Gentle fade-in and scale-up on load */
    animation: heroLogoFadeIn 1.5s ease-out forwards, heroLogoFloat 6s ease-in-out infinite 1.5s;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); /* Drop shadow for better definition over video */
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover effect for additional engagement */
.hero-logo-container:hover .hero-logo {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Keyframe animations for the hero logo */
@keyframes heroLogoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroLogoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Updated desktop styles for wavyline.png */
.wavy-line-container {
    position: absolute;
    top: 55%; /* Adjusted to flow better with the larger logo */
    right: 0;
    z-index: 4;
    width: 100%;
    max-width: 450px; /* Slightly larger to match the logo */
    transform: translateY(-50%) rotate(-5deg); /* Added slight rotation for better flow */
    /* Subtle animation for the wavy line */
    animation: wavyLineSlideIn 2s ease-out 0.5s forwards;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.wavy-line {
    width: 100%;
    height: auto;
    display: block;
}

/* Animation for wavy line */
@keyframes wavyLineSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(30px) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) rotate(-5deg);
    }
}

/* ========== Separate Quote Section ========== */
.quote-section {
    background-color: #202060; /* Dark blue */
    color: #ffffff;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.quote-container {
    /* Existing quote styles will be maintained */
}

.hero-quote-text {
    font-size: 24px;
    line-height: 1.4;
    margin: 0 0 15px 0;
    font-weight: 500;
    font-style: italic;
}

.quote-attribution {
    font-size: 18px;
    font-weight: 300;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

/* Newsletter form styles for the quote section */
.compact-newsletter {
    margin-top: 20px;
}

.newsletter-inline-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-inline-form .form-control {
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    background-color: #ffffff;
    color: #333333;
}

.newsletter-inline-form .form-control::placeholder {
    color: #999999;
}

.newsletter-inline-form .btn-primary {
    background-color: #FFD900;
    border-color: #FFD900;
    color: #202060;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
}

.newsletter-inline-form .btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #202060;
}

/* ========== Support Us Section ========== */
.support-us-section {
    position: absolute;
    top: auto;
    bottom: -80px; /* Adjusted since hero section is now properly contained */
    right: 0;
    width: 100%;
    max-width: 400px;
    z-index: 6; /* Above video and gradient overlay */
}

.support-us-container {
    background-color: rgba(255, 217, 0, 0.95); /* Slightly transparent for modern look */
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.support-heading {
    color: #202060; /* Dark blue */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.support-subheading {
    color: #202060; /* Dark blue */
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.donation-tabs {
    display: flex;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #202060; /* Dark blue */
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #202060; /* Dark blue */
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background-color: #202060; /* Dark blue */
    color: #FFD900; /* Yellow text */
}

.monthly-tab {
    border-right: 1px solid #202060;
}

.once-tab {
    border-left: 1px solid #202060;
}

.donation-form {
    text-align: center;
}

.donation-amount {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-symbol {
    font-size: 20px;
    font-weight: 700;
    color: #202060; /* Dark blue */
    margin-right: 5px;
}

.amount-input {
    border: 2px solid #202060; /* Dark blue */
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: #ffffff;
    color: #202060; /* Dark blue */
    width: 120px;
}

.donate-btn {
    width: 100%;
    padding: 12px;
    background-color: #202060; /* Dark blue */
    color: #FFD900; /* Yellow text */
    border: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-btn:hover {
    background-color: #1a1a50; /* Darker blue */
}

.arrow-icon {
    margin-left: 8px;
    font-size: 14px;
}

/* ========== Responsive Styles ========== */
@media (max-width: 1199.98px) {
    .hero-section {
        min-height: 550px; /* Adjusted for new structure */
        padding-bottom: 100px;
    }

    .hero-heading {
        font-size: 28px;
    }

    .hero-date {
        font-size: 24px;
    }

    .hero-description {
        font-size: 16px;
    }

    .wavy-line-container {
        max-width: 400px;
    }

    .support-us-section {
        max-width: 350px;
        bottom: -60px; /* Adjusted for medium screens */
    }

    .hero-logo-container {
        max-width: 350px;
        top: -30px; /* Adjusted for medium screens */
        right: 30px;
    }
}

@media (max-width: 991.98px) {
    /* Reset animations for mobile to avoid performance issues */
    .hero-logo-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .wavy-line-container {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-gradient-overlay {
        animation: none; /* Disable gradient animation on mobile for performance */
        background: linear-gradient(
            to bottom,
            rgba(32, 32, 96, 0.2) 0%,    /* Lighter blue overlay for mobile */
            rgba(255, 255, 255, 0.03) 30%, /* Subtle white lift */
            rgba(0, 0, 0, 0.25) 100%     /* Much lighter bottom overlay */
        );
    }
    
    .hero-section {
        min-height: auto;
        padding-bottom: 60px; /* Reduced since sections are now separate */
    }

    .hero-content {
        padding: 20px 0;
    }

    .hero-logo-col {
        order: -1;
        margin-bottom: 20px;
        height: 250px;
        position: relative;
        justify-content: center;
    }

    .hero-logo-container {
        position: static;
        max-width: 250px;
        margin: 0 auto;
        margin-bottom: 10px;
        top: auto;
        right: auto;
    }

    .wavy-line-container {
        position: static;
        max-width: 200px;
        margin: 0 auto;
        top: auto;
        right: auto;
        transform: none;
    }

    .hero-text-col {
        text-align: center;
    }

    .hero-heading-block, 
    .hero-date-block {
        margin: 0 auto 10px;
        text-align: center;
    }

    .hero-theme {
        text-align: center;
    }

    .theme-underline {
        margin: 0 auto 15px;
    }

    .participate-btn {
        display: inline-flex;
    }

    .support-us-section {
        position: static;
        max-width: 100%;
        margin-top: 30px;
    }

    /* Quote section mobile adjustments */
    .hero-quote-text {
        font-size: 20px;
    }

    .quote-attribution {
        font-size: 16px;
    }

    /* Ensure video container maintains proper height on mobile */
    .hero-video-background-container {
        min-height: 400px; /* Ensure minimum height for video visibility */
    }
    
    /* Adjust hero section minimum height for mobile to accommodate video */
    .hero-section {
        min-height: 400px;
        padding-bottom: 60px;
    }

    /* Mobile-specific video optimizations */
    .hero-bg-video {
        /* Maintain video quality but optimize for mobile performance */
        object-fit: cover;
        /* Ensure video continues playing on mobile */
        -webkit-playsinline: true;
        playsinline: true;
    }
    
    /* Ensure video container maintains proper dimensions */
    .hero-video-background-container {
        min-height: 400px; /* Ensure minimum height for video visibility */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 60px;
        padding-bottom: 40px; /* Further reduced */
    }

    .hero-content {
        padding: 15px 0;
    }

    .hero-logo-container {
        max-width: 200px;
    }

    .hero-heading-block, .hero-date-block {
        padding: 8px 16px;
    }

    .hero-heading {
        font-size: 24px;
    }

    .hero-date {
        font-size: 20px;
    }

    .theme-heading {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .participate-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .support-us-section {
        margin-top: 20px;
    }

    .support-us-container {
        padding: 20px;
    }

    .support-heading {
        font-size: 20px;
    }

    .support-subheading {
        font-size: 12px;
    }

    .tab-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Quote section mobile adjustments */
    .hero-quote-text {
        font-size: 18px;
    }

    .quote-attribution {
        font-size: 14px;
    }

    .newsletter-inline-form .form-control,
    .newsletter-inline-form .btn-primary {
        font-size: 14px;
        padding: 10px 12px;
    }

    .hero-video-background-container {
        min-height: 350px;
    }
    
    .hero-section {
        min-height: 350px;
    }
    
    /* Optimize video performance on smaller screens */
    .hero-bg-video {
        /* Maintain aspect ratio but allow for smaller display area */
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .hero-logo-container {
        max-width: 180px;
    }

    .hero-heading {
        font-size: 20px;
    }

    .hero-date {
        font-size: 18px;
    }

    .theme-heading {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
    }

    .support-us-section {
        margin-top: 15px;
    }

    .support-heading {
        font-size: 18px;
    }

    .currency-symbol {
        font-size: 16px;
    }

    .amount-input {
        font-size: 16px;
        width: 100px;
    }

    .donate-btn {
        font-size: 14px;
        padding: 10px;
    }

    /* Quote section mobile adjustments */
    .hero-quote-text {
        font-size: 16px;
    }

    .quote-attribution {
        font-size: 12px;
    }

    .newsletter-inline-form .input-group {
        max-width: 300px;
    }

    .hero-video-background-container {
        min-height: 300px;
    }
    
    .hero-section {
        min-height: 300px;
    }
} 