/* ================================================
   HENDOSHI - SECTIONS - HERO HOMEPAGE
   ================================================
   
   Purpose: Homepage hero section with full-width carousel layout
   
   Contains:
   - Full-width hero carousel
   - Background image management
   - Hero content overlay
   - Responsive hero layouts
   
   Dependencies: variables.css, animations.css
   Load Order: Load after foundation and components
   ================================================ */

.hero {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 86vh;
    margin-top: 76px;
    overflow: hidden;
}

/* Full-width Background Carousel */
.hero-carousel {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Carousel slides with Ken Burns effect - fixed to prevent black gaps */
.carousel-slide {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-color: #0a0a0a;
    animation: kenBurns 10s ease-in-out infinite alternate;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: transform, opacity;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.active {
    opacity: 1;
}

/* Ken Burns zoom effect - subtle and smooth */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1%, 1%);
    }
}

.carousel-slide:nth-child(2n) {
    animation: kenBurns2 10s ease-in-out infinite alternate;
}

@keyframes kenBurns2 {
    0% {
        transform: scale(1.02) translate(1%, 0);
    }
    100% {
        transform: scale(1.1) translate(-1%, 1%);
    }
}

.carousel-slide:nth-child(3n) {
    animation: kenBurns3 10s ease-in-out infinite alternate;
}

@keyframes kenBurns3 {
    0% {
        transform: scale(1.03) translate(0, 1%);
    }
    100% {
        transform: scale(1.09) translate(1%, -1%);
    }
}

/* Dark gradient overlays for text legibility */
.hero-overlay-top {
    top: 0;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 60%,
        transparent 100%
    );
}

.hero-overlay-top,
.hero-overlay-bottom {
    z-index: 2;
    position: absolute;
    right: 0;
    left: 0;
    pointer-events: none;
}

.hero-overlay-bottom {
    bottom: 0;
    height: 35%;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
}

/* Logo Container - Top Center */
.hero-logo-container {
    z-index: 10;
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-logo-container:hover {
    transform: translateY(-5px) scale(1.03);
}

.hero-logo-container:active {
    transform: translateY(-2px) scale(1.01);
}

.hero-logo {
    width: 90vw;
    max-width: 320px;
    height: auto;
    animation:
        heroLogoEntrance 1s ease-out forwards,
        glitchLogo 4s ease-in-out infinite;
    animation-delay: 0.2s, 1.5s;
    filter: drop-shadow(0 0 30px rgba(255, 20, 147, 0.7));
    opacity: 0;
}

@keyframes heroLogoEntrance {
    0% {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes glitchLogo {
    0%,
    85%,
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 20, 147, 0.7));
    }
    87% {
        filter: drop-shadow(-4px 0 25px rgba(255, 255, 0, 0.9))
            drop-shadow(4px 0 0 rgba(255, 20, 147, 1));
    }
    89% {
        filter: drop-shadow(4px 0 25px rgba(255, 20, 147, 0.9))
            drop-shadow(-4px 0 0 rgba(255, 255, 0, 1));
    }
    91% {
        filter: drop-shadow(-3px 0 20px rgba(255, 255, 0, 0.8))
            drop-shadow(3px 0 0 rgba(255, 20, 147, 0.9));
    }
    93% {
        filter: drop-shadow(0 0 35px rgba(255, 20, 147, 1));
    }
}

.hero-bottom-controls {
    display: flex;
    z-index: 15;
    position: absolute;
    bottom: 15px;
    left: 50%;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    transform: translateX(-50%);
}

/* Sleek CTA Button */
.hero-cta-btn {
    display: inline-flex;
    position: relative;
    align-items: center;
    padding: 14px 32px;
    overflow: hidden;
    gap: 12px;
    border: 2px solid var(--neon-pink);
    border-radius: 50px;
    background: rgba(255, 20, 147, 0.9);
    box-shadow:
        0 0 20px rgba(255, 20, 147, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    animation:
        ctaEntrance 0.8s ease-out forwards,
        ctaPulse 2.5s ease-in-out infinite;
    animation-delay: 0.8s, 2s;
    opacity: 0;
    transition: all 0.3s ease;
}

@keyframes ctaEntrance {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ctaPulse {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(255, 20, 147, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 35px rgba(255, 20, 147, 0.7),
            0 0 60px rgba(255, 20, 147, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.hero-cta-btn::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    content: "";
    animation: btnShine 3s ease-in-out infinite;
    animation-delay: 2.5s;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }
    50%,
    100% {
        left: 100%;
    }
}

.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--electric-yellow);
    background: var(--electric-yellow);
    box-shadow:
        0 0 40px rgba(255, 255, 0, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.3);
    color: #000;
}

.hero-cta-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.hero-cta-btn:hover i {
    transform: translateX(5px);
}

/* Navigation Dots - Sleek horizontal line */
.hero-carousel-dots {
    display: flex;
    padding: 8px 16px;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-dot:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.6);
}

.hero-carousel-dot.active {
    transform: scale(1.1);
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

/* Legacy classes - hide unused elements */
.hero-content,
.hero-slogan-static,
.hero-background {
    display: none;
}

/* ============================================
   HERO SECTION - Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 81vh;
        margin-top: 56px;
    }

    /* Logo - now positioned in bottom controls */
    /* .hero-logo-container {
        top: 5%;
    } */

    .hero-logo {
        max-width: 220px;
    }

    /* Vinyl Record button - smaller on tablet */

    .vinyl-record-btn,
    .vinyl-spinner {
        width: 120px;
        height: 120px;
    }

    .vinyl-label {
        width: 55px;
        height: 55px;
    }

    .vinyl-record-btn .pug-skull-img {
        max-width: 36px;
    }

    .vinyl-text {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .vinyl-record-btn::before {
        width: 130px;
        height: 130px;
    }

    /* Overlays - stronger for mobile readability */
    .hero-overlay-top {
        height: 35%;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 60%,
            transparent 100%
        );
    }

    .hero-overlay-bottom {
        height: 45%;
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            transparent 100%
        );
    }

    /* Bottom controls - adjust spacing */
    .hero-bottom-controls {
        bottom: 15px;
        gap: 0px;
    }

    /* CTA Button - single line text on mobile */
    .hero-cta-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        white-space: nowrap;
    }

    /* Dots container - more compact */
    .hero-carousel-dots {
        padding: 6px 12px;
        gap: 8px;
    }

    .hero-carousel-dot {
        width: 8px;
        height: 8px;
    }

    /* Carousel - gentler animations for performance */
    .carousel-slide {
        top: -3%;
        left: -3%;
        width: 106%;
        height: 106%;
        animation: kenBurnsMobile 12s ease-in-out infinite alternate;
    }

    @keyframes kenBurnsMobile {
        0% {
            transform: scale(1) translate(0, 0);
        }
        100% {
            transform: scale(1.04) translate(-0.5%, 0.5%);
        }
    }

    .carousel-slide:nth-child(2n),
    .carousel-slide:nth-child(3n) {
        animation: kenBurnsMobile 12s ease-in-out infinite alternate;
    }
}

/* Extra small devices (480px and below) */
@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }

    .hero-logo {
        width: auto;
        max-width: 155px;
    }

    /* Vinyl Record button - even smaller on mobile */

    .vinyl-record-btn,
    .vinyl-spinner {
        width: 100px;
        height: 100px;
    }

    .vinyl-label {
        width: 45px;
        height: 45px;
    }

    .vinyl-record-btn .pug-skull-img {
        max-width: 28px;
    }

    .vinyl-text {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .vinyl-record-btn::before {
        width: 110px;
        height: 110px;
    }

    .hero-bottom-controls {
        bottom: 15px;
        gap: 0px;
    }

    .hero-carousel-dot {
        width: 8px;
        height: 8px;
    }
}
