body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
    background-color: #000;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*
   Wrapper for layers that mimics the video's dimensions and position
   after object-fit: cover is applied.
   This will be updated via JS.
*/
.layer-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* We will set width/height/top/left via JS to match the video's "cover" rect */
}

.overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.overlay-layer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.interactive-item {
    position: absolute;
    cursor: pointer;
    /* Use percentages for width/height relative to the video content */
    width: 10%;
    height: 10%;
    opacity: 0; /* Hidden initially for animation */
    transition: transform 0.3s ease;
}

.interactive-item-1 {
    top: 36.4%;
    left: 55.5%;
    width: 36.2%;
    height: 31.1%;
}

.interactive-item-2 {
    top: 21.5%;
    left: 23.6%;
    width: 23%;
    height: 19.5%;
}

.interactive-item-3 {
    top: 55.4%;
    left: 18%;
    width: 10.7%;
    height: 14.1%;
}

.interactive-item-4 {
    top: 30%;
    left: 42.3%;
    width: 10.4%;
    height: 12%;
}

/* Image handling for hover effect */
.interactive-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.interactive-item img.hover {
    opacity: 0;
}

.interactive-item:hover img.normal {
    opacity: 0;
}

.interactive-item:hover img.hover {
    opacity: 1;
}

.interactive-item:hover {
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.interactive-item:hover .tooltip {
    opacity: 1;
}

/* Top Right Button - Fixed to screen, not video content */
.top-right-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    z-index: 20; /* Ensure it's above layers */
}

.top-right-btn:hover {
    background-color: #fff;
}