/* Custom Hero Background with Overlay & GPU-Accelerated Panning on Desktop */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('./img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Panning animation restricted to screens smaller than desktop (max-width: 1023px) */
@media (max-width: 1023px) {
    .hero-section::before {
        background-position: left center;
        animation: pan-image 40s ease-in-out infinite;
    }
}

@keyframes pan-image {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Subtle animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Hero product name cycling animation */
#hero-product-name {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#hero-product-name.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

#hero-product-name.fade-in {
    opacity: 1;
    transform: translateY(0);
}