/* home-3d.css */
body {
    background-color: #120e0b; /* Dark coffee background */
    color: #fff;
    overflow-x: hidden;
}

#coffee3d-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Behind content but above body background */
    pointer-events: none; /* Let clicks pass through */
}

#home-3d-scroll-container {
    position: relative;
    /* Make the container tall enough to allow a long scroll for the 3D animation */
    height: 600vh; 
    z-index: 1;
}

.scroll-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    pointer-events: none; /* Let clicks pass through empty space */
}

.scroll-section .content-box {
    background: rgba(20, 15, 12, 0.8);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(218, 159, 91, 0.3);
    max-width: 500px;
    pointer-events: auto; /* Re-enable clicks inside the box */
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-section.active .content-box {
    opacity: 1;
    transform: translateY(0);
}

.scroll-section h1, .scroll-section h2 {
    color: #da9f5b;
    font-weight: 700;
    margin-bottom: 1rem;
}

.scroll-section p {
    color: #e0d0c1;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Hotspots */
.hotspot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.hotspot.visible {
    opacity: 1;
}

.hotspot-dot {
    width: 15px;
    height: 15px;
    background-color: #da9f5b;
    border-radius: 50%;
    box-shadow: 0 0 10px #da9f5b, 0 0 20px #da9f5b;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.hotspot-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #da9f5b, transparent);
}

.hotspot-text {
    background: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid #da9f5b;
    white-space: nowrap;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px #da9f5b; }
    50% { transform: scale(1.5); box-shadow: 0 0 20px #da9f5b; }
    100% { transform: scale(1); box-shadow: 0 0 10px #da9f5b; }
}

/* Position text boxes alternatively */
#section-1 { justify-content: flex-start; }
#section-2 { justify-content: flex-end; }
#section-3 { justify-content: center; align-items: flex-end; padding-bottom: 10vh; }
#section-4 { justify-content: center; }

/* Keep normal content flow below the 3D scroll */
#normal-content {
    background-color: #fff;
    position: relative;
    z-index: 2;
    padding-top: 50px;
}
