/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f5f0e8;
    --pink: #ff2d7b;
    --midnight: #1a0a2e;
    --lavender: #b8a5d4;
    --violet: #8b5cf6;
    --yellow: #ffe156;
    --orange: #ff8c42;
    --deep-purple: #2d1b4e;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--midnight);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    cursor: none;
}

/* === GRAIN OVERLAY === */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === CURSOR GLOW === */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* === HORIZONTAL CONTAINER === */
.horizontal-container {
    display: flex;
    height: 100vh;
    width: 500vw;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* === ROOMS === */
.room {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.room-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

.room-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.title-dot {
    color: var(--pink);
}

.room-subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--lavender);
    opacity: 0.8;
}

/* === ROOM BACKGROUNDS === */
.room-entrance {
    background: radial-gradient(ellipse at 30% 50%, var(--deep-purple) 0%, var(--midnight) 70%);
}

.room-gallery {
    background: radial-gradient(ellipse at 70% 40%, rgba(139, 92, 246, 0.2) 0%, var(--midnight) 70%);
}

.room-seance {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 45, 123, 0.1) 0%, var(--midnight) 60%);
}

.room-workshop {
    background: radial-gradient(ellipse at 40% 60%, rgba(255, 140, 66, 0.1) 0%, var(--midnight) 70%);
}

.room-exit {
    background: radial-gradient(ellipse at 60% 50%, rgba(255, 225, 86, 0.08) 0%, var(--midnight) 70%);
}

/* === BLOBS === */
.blob {
    position: absolute;
    border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
    animation: blobMorph 8s ease-in-out infinite;
}

.blob-decorative {
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    top: -80px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    bottom: -60px;
    right: -50px;
    animation-delay: -3s;
}

.blob-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    top: 20%;
    right: 10%;
    animation-delay: -5s;
    opacity: 0.3;
}

.blob-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    top: -100px;
    right: -80px;
    animation-delay: -2s;
}

.blob-5 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--violet), var(--lavender));
    bottom: -50px;
    left: -60px;
    animation-delay: -4s;
}

.blob-6 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--pink), rgba(255, 45, 123, 0.3));
    top: -120px;
    left: -150px;
    animation-delay: -1s;
}

.blob-7 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--violet), var(--deep-purple));
    bottom: -80px;
    right: -60px;
    animation-delay: -6s;
}

.blob-8 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    top: -90px;
    left: -100px;
    animation-delay: -2.5s;
}

.blob-9 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    bottom: -40px;
    right: -80px;
    animation-delay: -7s;
}

.blob-10 {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    top: -130px;
    right: -120px;
    animation-delay: -3.5s;
}

.blob-11 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--lavender), var(--violet));
    bottom: -70px;
    left: -80px;
    animation-delay: -5.5s;
}

@keyframes blobMorph {
    0%, 100% {
        border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
    }
    25% {
        border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
    }
    50% {
        border-radius: 50% 50% 60% 40% / 50% 50% 40% 60%;
    }
    75% {
        border-radius: 70% 30% 40% 60% / 30% 70% 60% 40%;
    }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    margin-top: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--lavender);
    border-bottom: 2px solid var(--lavender);
    transform: rotate(-45deg);
    margin: 0 auto;
    opacity: 0.6;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(10px); }
}

/* === GALLERY === */
.gallery-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.gallery-blob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.blob-container {
    width: 160px;
    height: 160px;
    position: relative;
}

.blob-interactive {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: none;
}

.gallery-blob-item:nth-child(1) .blob-interactive {
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.gallery-blob-item:nth-child(2) .blob-interactive {
    background: linear-gradient(135deg, var(--violet), var(--yellow));
}

.gallery-blob-item:nth-child(3) .blob-interactive {
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.blob-interactive:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

.blob-label {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--lavender);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* === SÉANCE ORB === */
.seance-orb {
    width: 200px;
    height: 200px;
    margin: 3rem auto;
    position: relative;
    cursor: none;
}

.orb-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--violet), var(--deep-purple));
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4), inset 0 0 40px rgba(255, 45, 123, 0.2);
    transition: box-shadow 0.5s ease;
}

.orb-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: orbSpin 6s linear infinite;
}

.orb-ring-2 {
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    border-color: rgba(255, 45, 123, 0.2);
    animation-duration: 10s;
    animation-direction: reverse;
}

@keyframes orbSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.seance-orb:hover .orb-inner {
    box-shadow: 0 0 100px rgba(139, 92, 246, 0.7), 0 0 200px rgba(255, 45, 123, 0.3), inset 0 0 60px rgba(255, 225, 86, 0.3);
}

.seance-text {
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--lavender);
    opacity: 0.6;
    font-size: 1rem;
}

/* === WORKSHOP === */
.workshop-items {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.workshop-card {
    background: rgba(45, 27, 78, 0.6);
    border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
    padding: 2.5rem 2rem;
    width: 220px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-radius 0.8s ease;
    animation: cardMorph 10s ease-in-out infinite;
}

.workshop-card:nth-child(2) { animation-delay: -3s; }
.workshop-card:nth-child(3) { animation-delay: -6s; }

@keyframes cardMorph {
    0%, 100% { border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; }
    50% { border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; }
}

.workshop-card:hover {
    transform: scale(1.05) translateY(-5px);
}

.card-blob {
    width: 60px;
    height: 60px;
    border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
    margin: 0 auto 1rem;
    animation: blobMorph 6s ease-in-out infinite;
}

.workshop-card:nth-child(1) .card-blob {
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.workshop-card:nth-child(2) .card-blob {
    background: linear-gradient(135deg, var(--violet), var(--lavender));
}

.workshop-card:nth-child(3) .card-blob {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.workshop-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--cream);
}

.card-text {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--lavender);
    line-height: 1.5;
}

/* === EXIT === */
.exit-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--lavender);
    margin-bottom: 2rem;
}

.exit-blob-cluster {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 2rem auto;
}

.blob-exit {
    position: absolute;
    opacity: 0.7;
}

.blob-exit-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    top: 20px;
    left: 30px;
    animation-delay: -1s;
}

.blob-exit-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    top: 50px;
    right: 40px;
    animation-delay: -4s;
}

.blob-exit-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--violet), var(--lavender));
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -7s;
}

/* === NAV DOTS === */
.room-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--lavender);
    background: transparent;
    cursor: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-dot.active {
    background: var(--violet);
    transform: scale(1.3);
}

.nav-dot:hover {
    background: var(--pink);
}
