:root {
    --gold: #d4af37;
    --dark: #1a1a1a;
    --light: #f9f9f9;
    --primary: #c0392b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--dark);
    color: var(--light);
    overflow: hidden; /* Prevent scrolling during interaction */
}

/* Intro Section */
#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/original_house.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: all 1.5s cubic-bezier(0.7, 0, 0.3, 1);
}

#intro.opened {
    transform: scale(2);
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
}

.intro-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.enter-btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.enter-btn:hover {
    background: white;
    color: var(--dark);
}

/* Interior Section */
#interior-view {
    height: 100vh;
    width: 100vw;
    background: url('assets/interior.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s 0.5s;
}

#interior-view.visible {
    opacity: 1;
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hotspot::after {
    content: '+';
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Info Panel */
.info-panel {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 400px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.5s;
    pointer-events: none;
}

.info-panel.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.info-panel h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.close-panel {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Positioning hotspots based on the generated image layout */
#hotspot-pulpit { top: 40%; left: 50%; }
#hotspot-piano { top: 55%; left: 20%; }
#hotspot-seating { top: 70%; left: 50%; }
#hotspot-kitchen { top: 45%; left: 80%; }
#hotspot-children { top: 40%; left: 92%; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .intro-content h1 {
        font-size: 2rem;
    }
    
    .enter-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .info-panel {
        width: 90%;
        bottom: 20px;
        padding: 1.5rem;
    }
    
    .hotspot {
        width: 30px;
        height: 30px;
    }
}
