/* Hero Section Layout */
.hero-section {
    position: relative;
    height: 100vh;
    max-height: 75vw;
    /* Limit height to 4:3 ratio (Height <= 0.75 * Width) */
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Accounts for top bar */
    overflow: visible;
    /* Change to visible for straddling scroll */
}

.hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Added to clip curtains instead of hero-section */
}

.hero-curtain,
.hero-stage-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform; /* Hardware acceleration hint */
    backface-visibility: hidden;
}

.hero-curtain-left {
    z-index: 3;
}

.hero-curtain-right {
    z-index: 3;
}

.hero-stage-bg {
    z-index: 2;
    pointer-events: none;
}

/* Center Content & Scroll Indicator */
.hero-center-content {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    /* Let clicks pass through if necessary */
}

.hero-main-title {
    font-family: 'NeueMachina-Ultrabold', sans-serif;
    font-size: 3.8vw;
    /* 5.5vw * 0.7 */
    color: #ffdf99;
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(150px);
}

.div-scroll-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    /* Center on the boundary */
    z-index: 9999;
    pointer-events: none;
}

.hero-scroll-indicator {
    position: relative;
    width: 144px;
    /* 120px * 1.2 */
    height: 144px;
    /* 120px * 1.2 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-spin {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate-scroll 10s linear infinite;
}

.scroll-arrow {
    position: relative;
    width: 36px;
    /* 30px * 1.2 */
    height: auto;
    z-index: 2;
}

@keyframes rotate-scroll {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



@media (max-width: 768px) {
    .hero-section {
        height: 75vw;
        /* Fixed 4:3 aspect ratio (100:75) */
        min-height: auto;
    }

    .hero-stage {
        transform: none;
        /* Restore original scale */
    }

    .hero-scroll-indicator {
        width: 110px;
        height: 110px;
    }
}

/* Hidden Interactive Images Styling */
.hero-hidden-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Container itself should not block */
}

.hero-hidden-image-container {
    position: absolute;
    opacity: 0;
    transform: scale(0.85) translateY(10px);
    /* Start slightly smaller and lower */
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy elastic easing */
    z-index: 10;
    width: 14vw;
    pointer-events: auto;
}

.hero-hidden-image-container:hover {
    opacity: 1;
    transform: scale(1.1) translateY(0);
    /* Pop up and grow */
}

/* 1px White Border and Corner Squares on Hover */
.hero-hidden-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    outline: 1px solid white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.hero-hidden-image-container:hover::before {
    opacity: 1;
}

.hero-hidden-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: -4px; /* Center 8x8 square on corner endpoint */
    background: 
        linear-gradient(white, white) 0 0,
        linear-gradient(white, white) 100% 0,
        linear-gradient(white, white) 0 100%,
        linear-gradient(white, white) 100% 100%;
    background-repeat: no-repeat;
    background-size: 8px 8px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-hidden-image-container:hover::after {
    opacity: 1;
}

.hero-hidden-image {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9);
    /* Slightly darker when hidden to pop more on hover */
    transition: filter 0.6s ease;
}

.hero-hidden-image-container:hover .hero-hidden-image {
    filter: brightness(1);
}

/* Specific Positions based on mockup boxes */
.st-01 {
    top: 25%;
    left: 36%;
}

.st-02 {
    top: 52%;
    left: 30%;
}

.st-03 {
    top: 75%;
    left: 43%;
}

.st-04 {
    top: 30%;
    right: 34%;
}

.st-05 {
    top: 62%;
    right: 30%;
}

@media (max-width: 1024px) {
    .hero-hidden-image {
        width: 15vw;
    }
}