:root {
    --reveal-accent-color: #00f3ff;
    --reveal-cursor-size: 400px;
}

/* Cinematic Zoom-Out Entrance Animation */
@keyframes cinematicZoomOut {
    0% {
        transform: scale(1.25);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInSlow {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Image Wrapper - Full Screen */
.reveal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    animation: fadeInSlow 1s ease-out forwards;
}

.reveal-wrapper .layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.reveal-wrapper .layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    animation: cinematicZoomOut 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-wrapper .bottom {
    z-index: 1;
}

.reveal-wrapper .top {
    z-index: 2;
    mask-image: radial-gradient(circle var(--reveal-cursor-size) at var(--x, 50%) var(--y, 50%),
            transparent 0%,
            transparent 40%,
            black 80%);
    -webkit-mask-image: radial-gradient(circle var(--reveal-cursor-size) at var(--x, 50%) var(--y, 50%),
            transparent 0%,
            transparent 40%,
            black 80%);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--reveal-accent-color);
    opacity: 0;
    animation: fadeInSlow 0.5s ease-out 1.5s forwards;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 243, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    opacity: 0;
    animation: fadeInSlow 0.5s ease-out 1.5s forwards;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    :root {
        --reveal-cursor-size: 150px;
    }

    .reveal-wrapper .layer img {
        object-fit: cover;
        object-position: 30% 60%;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}
