﻿/* ============================================
   HERO SECTION - FIXED VIDEO PLAYBACK
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 1080px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2a1a;
    margin-top: 0;
    z-index: 1;
}

/* ============================================
   VIDEO BACKGROUND - FIXED
   ============================================ */
.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #1a2a1a;
}

    .hero-background-video video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block;
        background: transparent;
    }

/* Video Fallback */
.hero-video-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a1a, #2d4a2d);
    z-index: 0;
}

/* ============================================
   HERO OVERLAY - No Background
   ============================================ */
.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
}

.hero-text {
    max-width: 800px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   VIDEO PROGRESS INDICATOR
   ============================================ */
.video-progress-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 200px;
}

.video-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

    .video-progress-bar .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #4caf50, #66bb6a);
        border-radius: 2px;
        width: 0%;
        transition: width 0.3s ease;
    }

.video-progress-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

    .video-progress-dots .vdot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
        border: 2px solid transparent;
        padding: 0;
    }

        .video-progress-dots .vdot.active {
            background: #4caf50;
            transform: scale(1.3);
            box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .video-progress-dots .vdot:hover {
            background: rgba(255, 255, 255, 0.6);
            transform: scale(1.2);
        }

/* ============================================
   HERO TITLE
   ============================================ */
.hero-title {
    margin-bottom: 30px;
    line-height: 1.2;
}

    .hero-title .highlight-text {
        display: block;
        font-size: clamp(3rem, 8vw, 5.5rem);
        font-weight: 900;
        color: #ffffff;
        text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        letter-spacing: 2px;
    }

    .hero-title .sub-heading {
        display: block;
        font-size: clamp(1.2rem, 3vw, 2.2rem);
        font-weight: 600;
        color: #a5d6a7;
        margin-top: 8px;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
        letter-spacing: 1px;
    }

/* ============================================
   SLOGAN SLIDER
   ============================================ */
.slogan-slider {
    position: relative;
    margin-bottom: 40px;
    padding: 20px 0;
    min-height: 120px;
}

.slogan-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slogan-slide {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

    .slogan-slide.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
        animation: sloganFadeIn 0.6s ease forwards;
    }

@keyframes sloganFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slogan-icon {
    display: inline-block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #81c784;
    margin-right: 15px;
    vertical-align: middle;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slogan-text {
    display: inline-block;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ============================================
   SLOGAN DOTS
   ============================================ */
.slogan-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 0;
}

    .slogan-dots .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid rgba(255, 255, 255, 0.1);
        position: relative;
    }

        .slogan-dots .dot:hover {
            background: rgba(255, 255, 255, 0.5);
            transform: scale(1.15);
        }

        .slogan-dots .dot.active {
            background: #4caf50;
            border-color: #4caf50;
            transform: scale(1.2);
            box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
        }

/* ============================================
   CTA BUTTONS
   ============================================ */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 25px rgba(46, 125, 50, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

    .hero-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .hero-button:hover::before {
        left: 100%;
    }

    .hero-button:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 35px rgba(46, 125, 50, 0.5);
        background: linear-gradient(135deg, #388e3c, #1b5e20);
    }

.hero-button-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

    .hero-button-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 2px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        height: 40px;
        opacity: 1;
    }

    50% {
        height: 20px;
        opacity: 0.5;
    }

    100% {
        height: 40px;
        opacity: 1;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   VIDEO FADE EFFECTS
   ============================================ */
.hero-background-video video.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-background-video video.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 500px;
        max-height: 800px;
    }

    .hero-text {
        max-width: 90%;
    }

    .slogan-slider {
        min-height: 100px;
    }

    .video-progress-container {
        bottom: 70px;
        width: 150px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        max-height: 100vh;
        height: 100vh;
    }

    .hero-overlay {
        padding: 20px 15px;
        align-items: flex-start;
        padding-top: 80px;
    }

    .hero-content {
        padding: 0;
        margin-top: 20px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-title .highlight-text {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-title .sub-heading {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .slogan-slider {
        min-height: 140px;
        padding: 10px 0;
        margin-bottom: 25px;
    }

    .slogan-icon {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-right: 10px;
        display: block;
        margin: 0 auto 10px;
    }

    .slogan-text {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
        display: block;
        text-align: center;
        padding: 0 5px;
    }

    .slogan-dots {
        gap: 10px;
        margin-top: 15px;
    }

        .slogan-dots .dot {
            width: 10px;
            height: 10px;
        }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-button,
    .hero-button-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .hero-scroll-indicator {
        bottom: 20px;
    }

    .scroll-text {
        font-size: 10px;
    }

    .scroll-line {
        height: 30px;
    }

    .video-progress-container {
        bottom: 60px;
        width: 120px;
    }

    .video-progress-dots .vdot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 100vh;
        max-height: 100vh;
    }

    .hero-overlay {
        padding-top: 70px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-title .highlight-text {
        font-size: clamp(1.8rem, 12vw, 2.8rem);
    }

    .hero-title .sub-heading {
        font-size: clamp(0.9rem, 4.5vw, 1.2rem);
    }

    .slogan-slider {
        min-height: 130px;
    }

    .slogan-text {
        font-size: clamp(0.8rem, 4vw, 1rem);
    }

    .slogan-icon {
        font-size: clamp(1rem, 6vw, 1.5rem);
    }

    .hero-actions {
        max-width: 280px;
        gap: 12px;
    }

    .hero-button,
    .hero-button-secondary {
        padding: 12px 20px;
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }

    .video-progress-container {
        width: 100px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        max-height: 100vh;
    }

    .hero-overlay {
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .hero-title .highlight-text {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .hero-title .sub-heading {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }

    .slogan-slider {
        min-height: 80px;
        padding: 5px 0;
        margin-bottom: 15px;
    }

    .slogan-text {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .hero-actions {
        flex-direction: row;
        max-width: 500px;
    }

    .hero-button,
    .hero-button-secondary {
        padding: 10px 20px;
        font-size: clamp(0.8rem, 1.5vw, 0.9rem);
        width: auto;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .video-progress-container {
        bottom: 30px;
    }
}

@media (min-width: 1600px) {
    .hero-content {
        max-width: 1400px;
    }

    .hero-title .highlight-text {
        font-size: clamp(4.5rem, 6vw, 6.5rem);
    }

    .hero-title .sub-heading {
        font-size: clamp(2rem, 2.5vw, 3rem);
    }

    .slogan-text {
        font-size: clamp(1.8rem, 2vw, 2.5rem);
    }
}
