/* ======================
   WHITE FLASH
====================== */

.transition-flash {
    position: absolute;
    inset: 0;
    z-index: 9999;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.transition-flash.active {
    visibility: visible;
    animation: whiteFlash 2s ease-in-out forwards;
}

@keyframes whiteFlash {
    0%   { opacity: 0; }
    25%  { opacity: 1; }
    45%  { opacity: 1; }
    100% { opacity: 0; }
}


/* ======================
   HOME BACKGROUND
====================== */

.home {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
}

.bg-home {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    /* Posisi awal: zoom besar, sedikit ke kanan atas */
    transform: translate(-20%, 20%) scale(2);
    transform-origin: center center;

    transition:
        transform 3s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}

/* Zoom-out menuju posisi normal */
.home.zoom-out .bg-home {
    transform: translate(0, 0) scale(1);
}


/* ======================
   HOME CONTENT FADE
====================== */

.home-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 40%;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );

    opacity: 0;
    transition: opacity 1s ease;
}

.home.show-content .home-content {
    opacity: 1;
}

.home-content h2 {
    font-size: 1rem;
    font-family: var(--font-content);
    color: var(--color-light);
}

.home-content h1 {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-light);
}

.home-content h3 {
    font-family: var(--font-content);
    font-size: 1rem;
    color: var(--color-light);
}
