* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyan: #4fc3f7;
    --deep-bg: #0a0e27;
    --purple: #ce93d8;
    --pink: #f06292;
    --light: #e8eaf6;
    --mid-bg: #1a1f4e;
    --green: #69f0ae;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--deep-bg);
    color: var(--white);
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    position: relative;
}

#bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#bubble-container .bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(79, 195, 247, 0.15), transparent 70%);
    border: 1px solid rgba(79, 195, 247, 0.2);
    animation: float-up linear infinite;
}

#bubble-container .bubble::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 20%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-30deg);
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

#cursor-trail .trail-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(206, 147, 216, 0.4), transparent 70%);
    border: 1px solid rgba(105, 240, 174, 0.3);
    transition: transform 0.1s ease-out;
}

.act {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* Act 1: Hero */
#act-hero {
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-family: 'Titan One', cursive;
    font-size: clamp(4rem, 12vw, 14rem);
    letter-spacing: -0.03em;
    color: var(--white);
    text-shadow: 
        0 0 40px rgba(79, 195, 247, 0.5),
        0 0 80px rgba(206, 147, 216, 0.3),
        0 0 120px rgba(105, 240, 174, 0.2);
    animation: hero-pulse 4s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
    0% {
        text-shadow: 
            0 0 40px rgba(79, 195, 247, 0.5),
            0 0 80px rgba(206, 147, 216, 0.3),
            0 0 120px rgba(105, 240, 174, 0.2);
    }
    100% {
        text-shadow: 
            0 0 60px rgba(79, 195, 247, 0.7),
            0 0 100px rgba(206, 147, 216, 0.5),
            0 0 140px rgba(105, 240, 174, 0.3);
    }
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--cyan);
    opacity: 0.8;
    letter-spacing: 0.1em;
}

/* Act 2: Descent */
#act-descent {
    flex-wrap: wrap;
    gap: 3rem;
    padding: 4rem 2rem;
}

.bubble-card {
    width: clamp(200px, 30vw, 320px);
    height: clamp(200px, 30vw, 320px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    background: radial-gradient(circle at 30% 30%, rgba(26, 31, 78, 0.9), rgba(10, 14, 39, 0.95));
    border: 1px solid rgba(79, 195, 247, 0.3);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.bubble-card:hover {
    transform: scale(1.05);
    border-color: var(--green);
    box-shadow: 0 0 40px rgba(105, 240, 174, 0.2), inset 0 0 30px rgba(79, 195, 247, 0.1);
}

.bubble-card h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.8rem;
}

.bubble-card p {
    font-size: 0.85rem;
    color: var(--light);
    line-height: 1.5;
}

.bubble-card-1 { transform: translateY(-20px); }
.bubble-card-2 { transform: translateY(30px); }
.bubble-card-3 { transform: translateY(-10px); }

/* Act 3: Deep Water */
#act-deep {
    background: linear-gradient(180deg, var(--deep-bg) 0%, var(--mid-bg) 50%, var(--deep-bg) 100%);
}

.deep-content {
    max-width: 600px;
    text-align: center;
}

.section-heading {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 1.5rem;
}

.deep-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light);
}

.deep-text em {
    color: var(--pink);
    font-style: normal;
    font-weight: 700;
}

/* Act 4: Abyss */
#act-abyss {
    flex-direction: column;
    gap: 0;
}

.abyss-ring {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    position: absolute;
    transition: transform 0.6s ease;
}

.abyss-ring span {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.abyss-ring-1 {
    width: 400px;
    height: 400px;
    border-color: rgba(79, 195, 247, 0.4);
    animation: orbit 20s linear infinite;
}
.abyss-ring-1 span { color: var(--cyan); }

.abyss-ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(206, 147, 216, 0.4);
    animation: orbit 15s linear infinite reverse;
}
.abyss-ring-2 span { color: var(--purple); }

.abyss-ring-3 {
    width: 240px;
    height: 240px;
    border-color: rgba(105, 240, 174, 0.4);
    animation: orbit 12s linear infinite;
}
.abyss-ring-3 span { color: var(--green); }

.abyss-ring-4 {
    width: 160px;
    height: 160px;
    border-color: rgba(240, 98, 146, 0.4);
    animation: orbit 8s linear infinite reverse;
}
.abyss-ring-4 span { color: var(--pink); }

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.abyss-ring span {
    animation: counter-orbit 20s linear infinite;
}

.abyss-ring-2 span { animation-duration: 15s; animation-direction: reverse; }
.abyss-ring-3 span { animation-duration: 12s; }
.abyss-ring-4 span { animation-duration: 8s; animation-direction: reverse; }

@keyframes counter-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Act 5: Floor */
#act-floor {
    flex-direction: column;
}

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

.floor-text {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 2rem;
}

.cta-bubble {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: var(--deep-bg);
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 30px rgba(79, 195, 247, 0.3);
}

.cta-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(79, 195, 247, 0.5), 0 0 80px rgba(206, 147, 216, 0.3);
}

/* Scroll reveal */
.act {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.act.visible {
    opacity: 1;
    transform: translateY(0);
}

#act-hero {
    opacity: 1;
    transform: none;
}
