/* =============================================
   JJUGGL.com - Styles
   Bubble cosmos / sci-fi / serif-classic
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
    --deep-space: #0a0e27;
    --cosmic-ink: #12162e;
    --bubble-membrane: #f0f4ff;
    --warm-glow: #d4a44a;
    --nebula-rose: #c4527a;
    --ion-blue: #3ba4d9;
    --plasma-green: #44c98b;
    --surface-film: #a78bdb;
    --bg-alt-1: #0f1435;
    --bg-alt-2: #141a3d;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--deep-space);
    color: var(--bubble-membrane);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Atmospheric Background (Gas Giant Bands) --- */
.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.atmo-band {
    position: absolute;
    left: 0;
    width: 100%;
    height: 300%;
}

.atmo-band-1 {
    top: 0;
    background: repeating-linear-gradient(
        180deg,
        #0a0e27 0px,
        #0a0e27 200px,
        #0f1435 200px,
        #0f1435 400px,
        #0a0e27 400px,
        #0a0e27 600px,
        #141a3d 600px,
        #141a3d 800px
    );
    opacity: 1;
    animation: atmo-drift-1 80s linear infinite;
}

.atmo-band-2 {
    top: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 150px,
        rgba(15, 20, 53, 0.4) 150px,
        rgba(15, 20, 53, 0.4) 350px,
        transparent 350px,
        transparent 500px
    );
    opacity: 0.6;
    animation: atmo-drift-2 120s linear infinite;
}

.atmo-band-3 {
    top: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 250px,
        rgba(20, 26, 61, 0.3) 250px,
        rgba(20, 26, 61, 0.3) 450px,
        transparent 450px,
        transparent 700px
    );
    opacity: 0.5;
    animation: atmo-drift-3 60s linear infinite;
}

@keyframes atmo-drift-1 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-800px); }
}

@keyframes atmo-drift-2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-500px); }
}

@keyframes atmo-drift-3 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-700px); }
}

/* --- Micro Bubbles (background particles) --- */
.micro-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.micro-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        rgba(240, 244, 255, 0.15),
        rgba(240, 244, 255, 0.05) 50%,
        transparent 70%
    );
    border: 1px solid rgba(240, 244, 255, 0.08);
    animation: micro-rise linear infinite;
    will-change: transform;
}

@keyframes micro-rise {
    0% {
        transform: translateY(110vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--drift-x, 20px));
        opacity: 0;
    }
}

/* --- Bubble Rendering (soap-film physics) --- */
.bubble-container {
    position: relative;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%,
            rgba(240, 244, 255, 0.02) 0%,
            rgba(240, 244, 255, 0.04) 40%,
            rgba(167, 139, 219, 0.06) 60%,
            rgba(240, 244, 255, 0.08) 80%,
            transparent 100%
        );
    border: 1px solid rgba(240, 244, 255, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 1.4);
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1.5rem, 3vw, 3rem);
    flex-direction: column;
}

/* Conic gradient overlay for thin-film interference */
.bubble-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 30deg,
        rgba(212, 164, 74, 0.08),
        rgba(196, 82, 122, 0.08),
        rgba(59, 164, 217, 0.08),
        rgba(167, 139, 219, 0.1),
        rgba(212, 164, 74, 0.08)
    );
    animation: sheen-rotate 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Specular highlight */
.bubble-container::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 18%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse,
        rgba(240, 244, 255, 0.25) 0%,
        rgba(240, 244, 255, 0.08) 40%,
        transparent 70%
    );
    transform: rotate(-30deg);
    pointer-events: none;
    z-index: 1;
}

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

/* Bubble size classes */
.bubble-large {
    width: clamp(320px, 45vw, 550px);
    height: clamp(320px, 45vw, 550px);
}

.bubble-medium {
    width: clamp(220px, 30vw, 350px);
    height: clamp(220px, 30vw, 350px);
}

.bubble-small {
    width: clamp(60px, 10vw, 120px);
    height: clamp(60px, 10vw, 120px);
    padding: 0;
}

/* Bubble content variants */
.bubble-content {
    background:
        radial-gradient(circle at 50% 50%,
            rgba(240, 244, 255, 0.03) 0%,
            rgba(240, 244, 255, 0.05) 40%,
            rgba(167, 139, 219, 0.07) 70%,
            rgba(240, 244, 255, 0.09) 90%,
            transparent 100%
        );
    border-color: rgba(240, 244, 255, 0.2);
}

.bubble-accent {
    background:
        radial-gradient(circle at 50% 50%,
            rgba(212, 164, 74, 0.03) 0%,
            rgba(212, 164, 74, 0.05) 40%,
            rgba(196, 82, 122, 0.06) 70%,
            rgba(240, 244, 255, 0.08) 90%,
            transparent 100%
        );
    border-color: rgba(212, 164, 74, 0.2);
}

.bubble-decorative {
    background:
        radial-gradient(circle at 35% 35%,
            rgba(59, 164, 217, 0.06) 0%,
            rgba(68, 201, 139, 0.04) 50%,
            transparent 80%
        );
    border-color: rgba(59, 164, 217, 0.15);
}

/* --- Typography --- */
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--bubble-membrane);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.body-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.8;
    color: var(--bubble-membrane);
    position: relative;
    z-index: 2;
}

.pull-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.5;
    color: var(--warm-glow);
    position: relative;
    z-index: 2;
}

.bubble-label {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warm-glow);
    position: relative;
    z-index: 2;
}

/* --- Hero Zone --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-float-bubble {
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%,
            rgba(240, 244, 255, 0.02) 0%,
            rgba(167, 139, 219, 0.05) 50%,
            rgba(240, 244, 255, 0.08) 80%,
            transparent 100%
        );
    border: 1px solid rgba(240, 244, 255, 0.12);
    animation: hero-bubble-rise linear infinite;
    will-change: transform;
}

.hero-float-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 30deg,
        rgba(212, 164, 74, 0.06),
        rgba(196, 82, 122, 0.06),
        rgba(59, 164, 217, 0.06),
        rgba(167, 139, 219, 0.08),
        rgba(212, 164, 74, 0.06)
    );
    animation: sheen-rotate 12s linear infinite;
}

.hero-float-bubble::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 18%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse,
        rgba(240, 244, 255, 0.2) 0%,
        transparent 70%
    );
    transform: rotate(-30deg);
}

@keyframes hero-bubble-rise {
    0% {
        transform: translateY(100vh) translateX(0) scale(var(--scale, 1));
        opacity: 0;
    }
    5% { opacity: var(--max-opacity, 0.7); }
    95% { opacity: var(--max-opacity, 0.7); }
    100% {
        transform: translateY(-20vh) translateX(var(--drift, 30px)) scale(var(--scale, 1));
        opacity: 0;
    }
}

/* --- Hero Title (letters in bubbles) --- */
.hero-title {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 1.5vw, 1.2rem);
    flex-wrap: wrap;
}

.letter-bubble {
    display: inline-flex;
    opacity: 0;
    transform: scale(0);
    animation: letter-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--delay) * 80ms + 0.5s);
}

.bubble-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(3.5rem, 13vw, 10rem);
    height: clamp(3.5rem, 13vw, 10rem);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%,
            rgba(240, 244, 255, 0.04) 0%,
            rgba(167, 139, 219, 0.06) 50%,
            rgba(240, 244, 255, 0.1) 85%,
            transparent 100%
        );
    border: 1px solid rgba(240, 244, 255, 0.2);
    position: relative;
    animation: bubble-wobble 4s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.3s);
}

.bubble-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 30deg,
        rgba(212, 164, 74, 0.1),
        rgba(196, 82, 122, 0.08),
        rgba(59, 164, 217, 0.08),
        rgba(167, 139, 219, 0.12),
        rgba(212, 164, 74, 0.1)
    );
    animation: sheen-rotate 12s linear infinite;
    animation-delay: calc(var(--delay) * -2s);
}

.bubble-wrap::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 30%;
    height: 18%;
    border-radius: 50%;
    background: radial-gradient(ellipse,
        rgba(240, 244, 255, 0.3) 0%,
        transparent 70%
    );
    transform: rotate(-30deg);
}

.letter {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 10vw, 8rem);
    letter-spacing: -0.02em;
    color: var(--bubble-membrane);
    position: relative;
    z-index: 2;
    text-shadow: 0 0 30px rgba(167, 139, 219, 0.3);
}

@keyframes letter-pop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bubble-wobble {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
        border-radius: 48% 52% 50% 50% / 50% 50% 52% 48%;
    }
    50% {
        transform: translateY(3px) rotate(-0.5deg);
        border-radius: 50% 48% 52% 50% / 52% 50% 48% 50%;
    }
    75% {
        transform: translateY(-2px) rotate(0.5deg);
        border-radius: 52% 50% 48% 50% / 50% 52% 50% 48%;
    }
}

/* --- Tagline Bubble --- */
.tagline-bubble {
    position: relative;
    z-index: 10;
    margin-top: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1rem, 2vw, 2rem) clamp(2rem, 5vw, 5rem);
    border-radius: 999px;
    background:
        radial-gradient(ellipse at 50% 50%,
            rgba(240, 244, 255, 0.04) 0%,
            rgba(167, 139, 219, 0.05) 60%,
            transparent 100%
        );
    border: 1px solid rgba(240, 244, 255, 0.15);
    opacity: 0;
    animation: tagline-enter 1s ease-out 1.2s forwards;
}

.tagline-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 999px;
    background: conic-gradient(
        from 120deg,
        rgba(212, 164, 74, 0.06),
        rgba(196, 82, 122, 0.06),
        rgba(59, 164, 217, 0.06),
        rgba(167, 139, 219, 0.08),
        rgba(212, 164, 74, 0.06)
    );
    animation: sheen-rotate 15s linear infinite;
}

.tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--bubble-membrane);
    opacity: 0.85;
    position: relative;
    z-index: 2;
}

@keyframes tagline-enter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: clamp(2rem, 4vh, 4rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: fade-in 1s ease-out 2s forwards;
}

.scroll-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 244, 255, 0.2);
    background: rgba(240, 244, 255, 0.04);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 0.7; }
}

/* --- Collision Zones --- */
.collision-zone {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    z-index: 2;
}

.collision-bubble {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(150px, 25vw, 300px);
    height: clamp(150px, 25vw, 300px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%,
            rgba(196, 82, 122, 0.04) 0%,
            rgba(212, 164, 74, 0.05) 50%,
            rgba(240, 244, 255, 0.08) 80%,
            transparent 100%
        );
    border: 1px solid rgba(240, 244, 255, 0.15);
    transition: border-radius 0.4s ease;
}

.collision-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: conic-gradient(
        from 60deg,
        rgba(196, 82, 122, 0.1),
        rgba(212, 164, 74, 0.08),
        rgba(59, 164, 217, 0.08),
        rgba(167, 139, 219, 0.1),
        rgba(196, 82, 122, 0.1)
    );
    animation: sheen-rotate 10s linear infinite;
}

.collision-bubble::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 28%;
    height: 16%;
    border-radius: 50%;
    background: radial-gradient(ellipse,
        rgba(240, 244, 255, 0.2) 0%,
        transparent 70%
    );
    transform: rotate(-30deg);
}

.collision-left {
    left: -15%;
}

.collision-right {
    right: -15%;
}

.collision-bubble.deforming {
    border-radius: 48% 52% 50% 50% / 50% 50% 48% 52%;
}

/* --- Content Clusters --- */
.content-cluster {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: clamp(2rem, 5vh, 5rem) 0;
}

.cluster-center {
    position: relative;
    z-index: 3;
}

.content-cluster .bubble-container {
    position: relative;
    transform:
        translateX(var(--offset-x, 0))
        translateY(var(--offset-y, 0))
        rotate(var(--rot, 0deg));
    z-index: 2;
}

.content-cluster .bubble-container.bubble-small {
    position: absolute;
    z-index: 1;
}

/* Cluster-specific background shifts */
.cluster-1 {
    background: linear-gradient(180deg, transparent, rgba(15, 20, 53, 0.3), transparent);
}

.cluster-2 {
    background: linear-gradient(180deg, transparent, rgba(20, 26, 61, 0.25), transparent);
}

.cluster-3 {
    background: linear-gradient(180deg, transparent, rgba(15, 20, 53, 0.35), transparent);
}

.cluster-4 {
    background: linear-gradient(180deg, transparent, rgba(20, 26, 61, 0.3), transparent);
}

/* --- Scroll Entrance Animations --- */
.bubble-container.in-view {
    animation: bubble-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bubble-container.hidden {
    opacity: 0;
    transform:
        translateX(var(--offset-x, 0))
        translateY(calc(var(--offset-y, 0) + 40px))
        rotate(var(--rot, 0deg))
        scale(0.7);
}

@keyframes bubble-enter {
    0% {
        opacity: 0;
        transform:
            translateX(var(--offset-x, 0))
            translateY(calc(var(--offset-y, 0) + 40px))
            rotate(var(--rot, 0deg))
            scale(0.7);
    }
    100% {
        opacity: 1;
        transform:
            translateX(var(--offset-x, 0))
            translateY(var(--offset-y, 0))
            rotate(var(--rot, 0deg))
            scale(1);
    }
}

/* Typography entrance */
.section-heading.in-view {
    animation: heading-emerge 0.8s ease-out forwards;
}

.section-heading.hidden {
    opacity: 0;
    transform: scale(0.8);
    letter-spacing: -0.05em;
}

@keyframes heading-emerge {
    0% {
        opacity: 0;
        transform: scale(0.8);
        letter-spacing: -0.05em;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        letter-spacing: -0.02em;
    }
}

.body-text.in-view {
    animation: text-fade-up 0.6s ease-out forwards;
}

.body-text.hidden {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes text-fade-up {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pull-quote.in-view {
    animation: text-fade-up 0.7s ease-out forwards;
}

.pull-quote.hidden {
    opacity: 0;
    transform: translateY(10px);
}

/* --- Magnetic Field Lines --- */
.field-lines {
    position: relative;
    width: 100%;
    height: 200px;
    z-index: 2;
    overflow: visible;
}

.field-line {
    fill: none;
    stroke: rgba(167, 139, 219, 0.2);
    stroke-width: 1px;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s ease-out;
}

.field-line.drawn {
    stroke-dashoffset: 0;
}

/* --- Footer Nebula --- */
.footer-nebula {
    position: relative;
    width: 100%;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(10, 14, 39, 0.8) 20%,
        rgba(212, 164, 74, 0.08) 60%,
        rgba(212, 164, 74, 0.12) 80%,
        rgba(212, 164, 74, 0.15) 100%
    );
    padding: clamp(3rem, 8vh, 8rem) clamp(1rem, 5vw, 3rem);
    overflow: hidden;
}

.footer-effervescence {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.footer-micro-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        rgba(212, 164, 74, 0.2),
        rgba(212, 164, 74, 0.08) 50%,
        transparent 70%
    );
    border: 1px solid rgba(212, 164, 74, 0.12);
    animation: footer-rise linear infinite;
}

@keyframes footer-rise {
    0% {
        transform: translateY(100%) translateX(0);
        opacity: 0;
    }
    15% { opacity: 0.7; }
    85% { opacity: 0.5; }
    100% {
        transform: translateY(-100%) translateX(var(--drift-x, 10px));
        opacity: 0;
    }
}

.footer-nav {
    position: relative;
    z-index: 5;
    display: flex;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-pill {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bubble-membrane);
    padding: 0.6em 1.5em;
    border-radius: 999px;
    border: 1px solid rgba(240, 244, 255, 0.2);
    background: rgba(240, 244, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 1.4);
}

.footer-pill:hover {
    background: rgba(212, 164, 74, 0.15);
    border-color: rgba(212, 164, 74, 0.4);
    color: var(--warm-glow);
    transform: scale(1.05);
}

.footer-credit {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(240, 244, 255, 0.4);
    position: relative;
    z-index: 5;
}

/* --- Juggling Motion Trails --- */
.bubble-container.trail-active::before {
    box-shadow:
        -8px -5px 0 rgba(167, 139, 219, 0.08),
        -16px -10px 0 rgba(167, 139, 219, 0.04),
        -24px -15px 0 rgba(167, 139, 219, 0.02);
}

/* --- Link Styles --- */
a {
    color: var(--ion-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--warm-glow);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .content-cluster {
        flex-direction: column;
        padding: 3rem 1rem;
    }

    .content-cluster .bubble-container {
        transform:
            translateX(0)
            translateY(0)
            rotate(var(--rot, 0deg)) !important;
        margin: 1rem auto;
    }

    .content-cluster .bubble-container.bubble-small {
        position: relative;
        display: none;
    }

    .bubble-large {
        width: 90vw;
        height: auto;
        min-height: 300px;
        border-radius: 40px;
        aspect-ratio: auto;
    }

    .bubble-medium {
        width: 85vw;
        height: auto;
        min-height: 220px;
        border-radius: 35px;
        aspect-ratio: auto;
    }

    .hero-title {
        gap: 0.3rem;
    }

    .collision-bubble {
        width: 120px;
        height: 120px;
    }

    .section-heading {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .bubble-wrap {
        width: 3rem;
        height: 3rem;
    }

    .letter {
        font-size: 1.8rem;
    }

    .bubble-large {
        width: 95vw;
        border-radius: 30px;
    }

    .bubble-medium {
        width: 90vw;
        border-radius: 28px;
    }
}

/* --- Selection --- */
::selection {
    background: rgba(212, 164, 74, 0.3);
    color: var(--bubble-membrane);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--deep-space);
}

::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 219, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 219, 0.5);
}
