/* ==========================================
   PHASE 4: HOMEPAGE HERO TRANSFORMATION
   ========================================== */

/* Full-width Immersive Hero Section - Optimized Height */
.home-hero-carousel {
    position: relative;
    width: 100%;
    min-height: 70vh;
    max-height: 650px;
    overflow: hidden;
    margin: -20px 0 0 0;
}

.home-hero-carousel .carousel {
    height: 70vh;
    max-height: 650px;
}

.home-hero-carousel .carousel-inner,
.home-hero-carousel .carousel-item {
    height: 70vh;
    max-height: 650px;
}

/* Parallax Effect Container */
.carousel-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
}

/* Animated Gradient Overlay */
.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(20, 110, 180, 0.85) 0%,
            rgba(255, 153, 0, 0.75) 50%,
            rgba(20, 110, 180, 0.85) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Ken Burns Effect on Background Images */
.carousel-item.active .carousel-overlay {
    animation: kenBurns 10s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateX(0);
    }

    50% {
        transform: scale(1.1) translateX(-2%);
    }

    100% {
        transform: scale(1.15) translateY(-2%);
    }
}

/* Video Background Support */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero Content Styling */
.overlay-gradient .row {
    position: relative;
    z-index: 2;
    width: 100%;
}

.home-hero-carousel h2 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.home-hero-carousel p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Price Display in Hero */
.price-main {
    font-size: 3rem;
    font-weight: 900;
    color: #febd69;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.7s both;
}

.price-original {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Hero CTA Button */
.btn-hero {
    padding: 18px 48px;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #febd69 0%, #ff9900 100%);
    border: none;
    color: #111;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(255, 153, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.9s both, pulse 2s ease-in-out 2s infinite;
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 153, 0, 0.6);
    background: linear-gradient(135deg, #ff9900 0%, #febd69 100%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Controls Enhancement */
.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.home-hero-carousel .carousel-control-prev {
    left: 30px;
}

.home-hero-carousel .carousel-control-next {
    right: 30px;
}

.home-hero-carousel .carousel-control-prev:hover,
.home-hero-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 153, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.home-hero-carousel .carousel-control-prev-icon,
.home-hero-carousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Indicators Enhancement */
.home-hero-carousel .carousel-indicators {
    bottom: 40px;
}

.home-hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.home-hero-carousel .carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background-color: #febd69;
    border-color: white;
}

/* Scroll Down Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator i {
    font-size: 32px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Floating Elements Animation */
.hero-floating-badge {
    position: absolute;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    color: #111;
    animation: float 3s ease-in-out infinite;
}

.hero-floating-badge.top-right {
    top: 100px;
    right: 80px;
}

.hero-floating-badge.bottom-left {
    bottom: 120px;
    left: 80px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .home-hero-carousel {
        min-height: 70vh;
    }

    .home-hero-carousel .carousel,
    .home-hero-carousel .carousel-inner,
    .home-hero-carousel .carousel-item {
        height: 70vh;
    }

    .home-hero-carousel h2 {
        font-size: 2.5rem;
    }

    .home-hero-carousel p {
        font-size: 1.1rem;
    }

    .price-main {
        font-size: 2rem;
    }

    .btn-hero {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .hero-floating-badge {
        display: none;
    }
}

@media (max-width: 576px) {
    .home-hero-carousel {
        min-height: 60vh;
    }

    .home-hero-carousel .carousel,
    .home-hero-carousel .carousel-inner,
    .home-hero-carousel .carousel-item {
        height: 60vh;
    }

    .home-hero-carousel h2 {
        font-size: 1.8rem;
    }

    .home-hero-carousel p {
        font-size: 1rem;
    }

    .carousel-overlay {
        background-attachment: scroll;
        /* Disable parallax on mobile */
    }
}

/* Glowing effect on featured products in hero */
.hero-product-glow {
    position: relative;
}

.hero-product-glow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #febd69, #ff9900, #febd69);
    background-size: 200% 200%;
    animation: glowPulse 3s ease infinite;
    border-radius: 12px;
    opacity: 0.7;
    z-index: -1;
    filter: blur(20px);
}

@keyframes glowPulse {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}