/* ===================================================
   ethica.dev — Styles
   Playful-philosophical bubble exploration
   Full-spectrum rainbow chromatic journey
   Fonts: Nunito (display), Quicksand (subheadings), Nunito Sans (body)
   =================================================== */

/* --- Design Palette Reference ---
   Peach Blossom (Empathy):  #FF8FA3
   Tangerine Pop (Justice):  #FFB347
   Lemon Fizz (Courage):     #FFE066
   Mint Leaf (Growth):       #7ED6A8
   Sky Bubble (Wisdom):      #7EC8E3
   Lavender Mist (Intuition):#C4B5FD
   Berry Swirl (Creativity): #D97BFF
   Cloud White (Background): #FAFBFF
   Plum Ink (Text Primary):  #3D3852
   Mist (Text Light):        #F0ECF7
   Faint Lavender (Path):    #C4B5FD at 30%
   ----------------------------------- */

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

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

body {
    background: #FAFBFF;
    color: #3D3852;
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw + 0.4rem, 1.15rem);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Opening Overlay (Cloud White fade-out) --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FAFBFF;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s ease 1.0s;
}

#intro-overlay.fade-out {
    opacity: 0;
}

/* --- Floating Navigation Circles --- */
#nav-circles {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 90px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#nav-circles.visible {
    opacity: 1;
}

.nav-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(61, 56, 82, 0.12);
    animation: nav-orbit 8s ease-in-out infinite;
    position: relative;
}

.nav-circle:nth-child(1) { animation-delay: 0s; }
.nav-circle:nth-child(2) { animation-delay: -1.14s; }
.nav-circle:nth-child(3) { animation-delay: -2.28s; }
.nav-circle:nth-child(4) { animation-delay: -3.42s; }
.nav-circle:nth-child(5) { animation-delay: -4.56s; }
.nav-circle:nth-child(6) { animation-delay: -5.7s; }
.nav-circle:nth-child(7) { animation-delay: -6.84s; }

@keyframes nav-orbit {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3px, -2px); }
    50% { transform: translate(-2px, 3px); }
    75% { transform: translate(2px, 2px); }
}

.nav-circle:hover {
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(61, 56, 82, 0.25);
}

.nav-circle.active {
    transform: scale(1.2);
    animation: nav-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(61, 56, 82, 0.25);
}

@keyframes nav-pulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.35); }
}

/* Navigation Tooltip */
.nav-tooltip {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3D3852;
    background: #FAFBFF;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(61, 56, 82, 0.1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-circle:hover .nav-tooltip {
    opacity: 1;
}

/* --- SVG Connecting Path --- */
#connecting-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#main-path {
    stroke-dasharray: 8 8;
    stroke-dashoffset: 0;
}

/* --- Floating Micro Dots --- */
#floating-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.micro-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: dot-float var(--float-duration, 10s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

@keyframes dot-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(8px); }
    66% { transform: translateY(10px) translateX(-6px); }
}

/* --- Cluster Sections --- */
.cluster {
    position: relative;
    min-height: 100vh;
    padding: 15vh 5vw;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.cluster-left {
    justify-content: flex-start;
    padding-left: 8vw;
    padding-right: 20vw;
}

.cluster-right {
    justify-content: flex-end;
    padding-right: 8vw;
    padding-left: 20vw;
}

.cluster-center {
    justify-content: center;
    padding-left: 10vw;
    padding-right: 10vw;
}

.cluster-bg-wash {
    position: absolute;
    top: -200px;
    left: -200px;
    right: -200px;
    bottom: -200px;
    z-index: 0;
    pointer-events: none;
}

/* --- Bubbles --- */
.bubble {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10%;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(61, 56, 82, 0.08);
    cursor: default;
    opacity: 0;
    transform: scale(0.7) translateY(30px);
}

.bubble.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.6s ease,
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.bubble.idle-float {
    animation: idle-float var(--idle-duration, 6s) ease-in-out infinite;
    animation-delay: var(--idle-delay, 0s);
}

@keyframes idle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(var(--idle-distance, -6px)); }
}

/* Hover-lift: primary interaction pattern */
.bubble:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(61, 56, 82, 0.15);
}

/* Bubble soap-bubble highlight (light refraction arc) */
.bubble-highlight {
    position: absolute;
    top: 12%;
    left: 18%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    filter: blur(6px);
    pointer-events: none;
    z-index: 3;
}

/* Iridescent ring effect on bubbles */
.bubble::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    border: 2px solid var(--bubble-color);
    opacity: 0.03;
    pointer-events: none;
    z-index: 5;
}

/* Inner radial gradient for soap-bubble depth */
.bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 3;
}

/* Hero Bubble: 280-400px diameter */
.hero-bubble {
    width: clamp(280px, 35vw, 400px);
    height: clamp(280px, 35vw, 400px);
    background: color-mix(in srgb, var(--bubble-color) 15%, #FAFBFF);
    border: 2px solid color-mix(in srgb, var(--bubble-color) 20%, transparent);
}

.hero-bubble h1,
.hero-bubble h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #3D3852;
    position: relative;
    z-index: 4;
}

.hero-bubble h1 {
    font-size: clamp(2.2rem, 6vw + 0.5rem, 5rem);
}

/* Slightly smaller headlines for non-intro sections */
.hero-bubble h2 {
    font-size: clamp(1.6rem, 4vw + 0.3rem, 3rem);
}

/* Support Bubble: 120-200px diameter */
.support-bubble {
    width: clamp(150px, 18vw, 200px);
    height: clamp(150px, 18vw, 200px);
    background: color-mix(in srgb, var(--bubble-color) 8%, #FAFBFF);
    border: 1.5px solid color-mix(in srgb, var(--bubble-color) 12%, transparent);
}

.support-bubble p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.2vw + 0.2rem, 1rem);
    letter-spacing: 0.01em;
    line-height: 1.5;
    color: #3D3852;
    position: relative;
    z-index: 4;
}

.support-bubble.small {
    width: clamp(120px, 14vw, 160px);
    height: clamp(120px, 14vw, 160px);
}

/* Filled support bubbles: full saturation with Mist text */
.support-bubble.filled {
    background: var(--bubble-color);
    border-color: var(--bubble-color);
}

.support-bubble.filled p {
    color: #F0ECF7;
}

/* Accent Bubble: 40-80px diameter, decorative */
.accent-bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--bubble-color);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    animation: accent-drift 8s ease-in-out infinite;
}

.accent-bubble:nth-child(even) {
    opacity: 0.8;
    animation-duration: 10s;
    animation-direction: reverse;
}

.accent-bubble:nth-child(3n) {
    opacity: 1;
    animation-duration: 12s;
}

@keyframes accent-drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(6px, -8px); }
    66% { transform: translate(-4px, 5px); }
}

/* ===================================================
   CREATURES BASE
   CSS-only illustrated blob characters
   =================================================== */
.creature {
    position: absolute;
    z-index: 10;
    width: 60px;
    height: 60px;
    transition: transform 0.2s ease-out;
}

.creature-body {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 12px rgba(61, 56, 82, 0.1),
                inset 0 -6px 12px rgba(0, 0, 0, 0.05);
}

.creature-eye {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3D3852;
    top: 35%;
    z-index: 11;
}

.creature-eye-left {
    left: 30%;
}

.creature-eye-right {
    right: 30%;
}

/* --- Empath Creature (Peach Blossom #FF8FA3) ---
   Round, slightly tilted, heart floating above */
.creature-empath {
    bottom: 20%;
    right: 15%;
    transform: rotate(-5deg);
}

.creature-empath .creature-body {
    background: radial-gradient(circle at 40% 35%, #FFB8C6, #FF8FA3);
}

.creature-feature.heart-float {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 14px;
    animation: heart-bob 2s ease-in-out infinite;
}

.heart-float::before,
.heart-float::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 14px;
    border-radius: 8px 8px 0 0;
    background: #FF8FA3;
}

.heart-float::before {
    left: 0;
    transform: rotate(-45deg);
    transform-origin: bottom right;
}

.heart-float::after {
    right: 0;
    transform: rotate(45deg);
    transform-origin: bottom left;
}

@keyframes heart-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* --- Scales Creature (Tangerine Pop #FFB347) ---
   Slightly flattened, arms extended holding invisible balance */
.creature-scales {
    bottom: 25%;
    left: 10%;
}

.creature-scales .creature-body {
    background: radial-gradient(circle at 40% 35%, #FFCF80, #FFB347);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.creature-feature.scales-arms {
    position: absolute;
    top: 45%;
    left: -14px;
    right: -14px;
    height: 4px;
    background: #FFB347;
    border-radius: 2px;
}

.scales-arms::before,
.scales-arms::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #FFB347;
    border-radius: 50%;
    top: -12px;
}

.scales-arms::before {
    left: -2px;
    animation: scale-bob 3s ease-in-out infinite;
}

.scales-arms::after {
    right: -2px;
    animation: scale-bob 3s ease-in-out infinite reverse;
}

@keyframes scale-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* --- Spark Creature (Lemon Fizz #FFE066) ---
   Small, energetic, slight upward lean */
.creature-spark {
    top: 15%;
    right: 20%;
    width: 48px;
    height: 48px;
}

.creature-spark .creature-body {
    background: radial-gradient(circle at 40% 35%, #FFF1A0, #FFE066);
    transform: rotate(-10deg);
    animation: spark-bounce 1.5s ease-in-out infinite;
}

.creature-spark .creature-eye {
    width: 6px;
    height: 6px;
}

.creature-feature.spark-energy {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #FFE066;
    border-radius: 50%;
    box-shadow: -8px 4px 0 2px rgba(255, 224, 102, 0.5),
                8px 2px 0 1px rgba(255, 224, 102, 0.4),
                0 -6px 0 1px rgba(255, 224, 102, 0.6);
    animation: spark-glow 2s ease-in-out infinite;
}

@keyframes spark-bounce {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(-10deg) translateY(-5px); }
}

@keyframes spark-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* --- Sprout Creature (Mint Leaf #7ED6A8) ---
   Oval-tall, tiny leaf growing from top */
.creature-sprout {
    bottom: 18%;
    left: 15%;
    width: 50px;
    height: 65px;
}

.creature-sprout .creature-body {
    background: radial-gradient(circle at 40% 35%, #A6E4C1, #7ED6A8);
    border-radius: 45% 45% 45% 45% / 55% 55% 45% 45%;
    height: 52px;
    width: 50px;
}

.creature-sprout .creature-eye {
    top: 30%;
}

.creature-feature.sprout-leaf {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 18px;
    background: #4DC87D;
    border-radius: 0 80% 0 80%;
    transform-origin: bottom center;
    animation: leaf-sway 3s ease-in-out infinite;
}

@keyframes leaf-sway {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(12deg); }
}

/* --- Thinker Creature (Sky Bubble #7EC8E3) ---
   Medium, slight head-tilt, "..." thought bubble */
.creature-thinker {
    top: 20%;
    left: 12%;
    transform: rotate(8deg);
}

.creature-thinker .creature-body {
    background: radial-gradient(circle at 40% 35%, #A8DFF0, #7EC8E3);
}

.creature-feature.thought-dots {
    position: absolute;
    top: -22px;
    right: -12px;
    width: 30px;
    height: 20px;
}

.thought-dot {
    position: absolute;
    border-radius: 50%;
    background: #7EC8E3;
}

.thought-dot.td1 {
    width: 8px;
    height: 8px;
    bottom: 0;
    right: 0;
    animation: thought-pulse 2.5s ease-in-out infinite;
}

.thought-dot.td2 {
    width: 6px;
    height: 6px;
    bottom: 10px;
    right: 8px;
    animation: thought-pulse 2.5s ease-in-out infinite 0.3s;
}

.thought-dot.td3 {
    width: 5px;
    height: 5px;
    bottom: 18px;
    right: 14px;
    animation: thought-pulse 2.5s ease-in-out infinite 0.6s;
}

@keyframes thought-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* --- Intuitor Creature (Lavender Mist #C4B5FD) ---
   Wispy edges, eyes half-closed */
.creature-intuitor {
    bottom: 20%;
    right: 12%;
    width: 56px;
    height: 56px;
}

.creature-intuitor .creature-body {
    background: radial-gradient(circle at 40% 35%, #DDD2FF, #C4B5FD);
    box-shadow: 0 4px 12px rgba(61, 56, 82, 0.1),
                inset 0 -6px 12px rgba(0, 0, 0, 0.05),
                0 0 20px rgba(196, 181, 253, 0.3);
}

/* Half-closed eyes for the intuitor */
.creature-intuitor .creature-eye {
    height: 4px;
    border-radius: 50%;
}

/* --- Dreamer Creature (Berry Swirl #D97BFF) ---
   Star-shaped sparkles orbiting */
.creature-dreamer {
    top: 18%;
    right: 12%;
}

.creature-dreamer .creature-body {
    background: radial-gradient(circle at 40% 35%, #E9A8FF, #D97BFF);
}

.creature-feature.dreamer-sparkles {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #D97BFF;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkle-orbit 4s linear infinite;
}

.sparkle.s1 {
    animation-delay: 0s;
}

.sparkle.s2 {
    animation-delay: -1.33s;
}

.sparkle.s3 {
    animation-delay: -2.66s;
}

@keyframes sparkle-orbit {
    0% { transform: rotate(0deg) translateX(38px) rotate(0deg); opacity: 0.6; }
    50% { opacity: 1; }
    100% { transform: rotate(360deg) translateX(38px) rotate(-360deg); opacity: 0.6; }
}

/* ===================================================
   DILEMMA INTERACTION
   =================================================== */
.dilemma-option {
    cursor: pointer;
    user-select: none;
}

.dilemma-option:hover {
    transform: translateY(-10px) scale(1.03);
}

.dilemma-option.chosen {
    transform: scale(1.08);
    box-shadow: 0 0 30px color-mix(in srgb, var(--bubble-color) 40%, transparent);
    filter: brightness(1.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dilemma-option.unchosen {
    transform: scale(0.85);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.dilemma-option.reset-pulse {
    animation: dilemma-reset-pulse 0.8s ease-in-out;
}

@keyframes dilemma-reset-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px color-mix(in srgb, var(--bubble-color) 30%, transparent); }
    100% { transform: scale(1); }
}

.dilemma-reset-message {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #3D3852;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 20;
    white-space: nowrap;
}

.dilemma-reset-message.show {
    opacity: 1;
}

/* ===================================================
   EMPATHY MIRROR
   =================================================== */
.empathy-mirror {
    overflow: hidden;
}

.mirror-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 2;
}

.empathy-mirror:hover .mirror-fill {
    opacity: 0.3;
}

.mirror-label {
    position: relative;
    z-index: 4;
}

/* ===================================================
   CREATURE GATHERING
   =================================================== */
.creature-gathering-section {
    padding-bottom: 25vh;
}

.gathering-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    z-index: 5;
}

.gathering-creature {
    position: absolute;
    width: 44px;
    height: 44px;
    top: 50%;
    left: 50%;
    margin-top: -22px;
    margin-left: -22px;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.gathering-creature .creature-body {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%,
        color-mix(in srgb, var(--gc-color) 60%, white),
        var(--gc-color));
    box-shadow: 0 2px 8px rgba(61, 56, 82, 0.1);
}

.gathering-creature .creature-eye {
    width: 5px;
    height: 5px;
}

/* Position 7 creatures in a circle, slow orbit */
.gathering-creature:nth-child(1) { animation: gather-orbit-1 20s linear infinite; }
.gathering-creature:nth-child(2) { animation: gather-orbit-2 20s linear infinite; }
.gathering-creature:nth-child(3) { animation: gather-orbit-3 20s linear infinite; }
.gathering-creature:nth-child(4) { animation: gather-orbit-4 20s linear infinite; }
.gathering-creature:nth-child(5) { animation: gather-orbit-5 20s linear infinite; }
.gathering-creature:nth-child(6) { animation: gather-orbit-6 20s linear infinite; }
.gathering-creature:nth-child(7) { animation: gather-orbit-7 20s linear infinite; }

@keyframes gather-orbit-1 {
    from { transform: rotate(0deg) translateX(160px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
@keyframes gather-orbit-2 {
    from { transform: rotate(51.4deg) translateX(160px) rotate(-51.4deg); }
    to { transform: rotate(411.4deg) translateX(160px) rotate(-411.4deg); }
}
@keyframes gather-orbit-3 {
    from { transform: rotate(102.8deg) translateX(160px) rotate(-102.8deg); }
    to { transform: rotate(462.8deg) translateX(160px) rotate(-462.8deg); }
}
@keyframes gather-orbit-4 {
    from { transform: rotate(154.3deg) translateX(160px) rotate(-154.3deg); }
    to { transform: rotate(514.3deg) translateX(160px) rotate(-514.3deg); }
}
@keyframes gather-orbit-5 {
    from { transform: rotate(205.7deg) translateX(160px) rotate(-205.7deg); }
    to { transform: rotate(565.7deg) translateX(160px) rotate(-565.7deg); }
}
@keyframes gather-orbit-6 {
    from { transform: rotate(257.1deg) translateX(160px) rotate(-257.1deg); }
    to { transform: rotate(617.1deg) translateX(160px) rotate(-617.1deg); }
}
@keyframes gather-orbit-7 {
    from { transform: rotate(308.6deg) translateX(160px) rotate(-308.6deg); }
    to { transform: rotate(668.6deg) translateX(160px) rotate(-668.6deg); }
}

.gathering-creature.glowing {
    filter: drop-shadow(0 0 12px var(--gc-color));
}

.gathering-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    background: conic-gradient(
        #FF8FA3,
        #FFB347,
        #FFE066,
        #7ED6A8,
        #7EC8E3,
        #C4B5FD,
        #D97BFF,
        #FF8FA3
    );
    transition: opacity 0.6s ease;
    z-index: 2;
}

.gathering-center:hover .gathering-fill {
    opacity: 0.35;
}

.gathering-center.active-gather .gathering-fill {
    opacity: 0.35;
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1, h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Section-specific headline colors (all use Plum Ink on light backgrounds) */
#empathy .hero-bubble h1 { color: #3D3852; }
#justice .hero-bubble h2 { color: #3D3852; }
#courage .hero-bubble h2 { color: #3D3852; }
#growth .hero-bubble h2 { color: #3D3852; }
#wisdom .hero-bubble h2 { color: #3D3852; }
#intuition .hero-bubble h2 { color: #3D3852; }
#creativity .hero-bubble h2 { color: #3D3852; }

/* ===================================================
   DECORATIVE ELEMENTS
   =================================================== */

/* Breadcrumb Dots Along Path */
.path-breadcrumb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Color-mixing dots between clusters */
.color-spray {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
    .cluster {
        padding: 12vh 4vw;
    }

    .cluster-left {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .cluster-right {
        padding-right: 4vw;
        padding-left: 4vw;
        justify-content: flex-start;
    }

    .hero-bubble {
        width: clamp(220px, 70vw, 320px);
        height: clamp(220px, 70vw, 320px);
    }

    .hero-bubble h1 {
        font-size: clamp(1.5rem, 5vw, 2.8rem);
    }

    .hero-bubble h2 {
        font-size: clamp(1.3rem, 4vw, 2.2rem);
    }

    .support-bubble {
        width: clamp(130px, 40vw, 180px);
        height: clamp(130px, 40vw, 180px);
    }

    .gathering-ring {
        width: 280px;
        height: 280px;
    }

    @keyframes gather-orbit-1 {
        from { transform: rotate(0deg) translateX(110px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
    }
    @keyframes gather-orbit-2 {
        from { transform: rotate(51.4deg) translateX(110px) rotate(-51.4deg); }
        to { transform: rotate(411.4deg) translateX(110px) rotate(-411.4deg); }
    }
    @keyframes gather-orbit-3 {
        from { transform: rotate(102.8deg) translateX(110px) rotate(-102.8deg); }
        to { transform: rotate(462.8deg) translateX(110px) rotate(-462.8deg); }
    }
    @keyframes gather-orbit-4 {
        from { transform: rotate(154.3deg) translateX(110px) rotate(-154.3deg); }
        to { transform: rotate(514.3deg) translateX(110px) rotate(-514.3deg); }
    }
    @keyframes gather-orbit-5 {
        from { transform: rotate(205.7deg) translateX(110px) rotate(-205.7deg); }
        to { transform: rotate(565.7deg) translateX(110px) rotate(-565.7deg); }
    }
    @keyframes gather-orbit-6 {
        from { transform: rotate(257.1deg) translateX(110px) rotate(-257.1deg); }
        to { transform: rotate(617.1deg) translateX(110px) rotate(-617.1deg); }
    }
    @keyframes gather-orbit-7 {
        from { transform: rotate(308.6deg) translateX(110px) rotate(-308.6deg); }
        to { transform: rotate(668.6deg) translateX(110px) rotate(-668.6deg); }
    }

    #nav-circles {
        top: 12px;
        right: 12px;
        width: 76px;
    }

    .nav-circle {
        width: 18px;
        height: 18px;
    }

    .nav-tooltip {
        display: none;
    }

    .creature {
        width: 45px;
        height: 45px;
    }

    .creature-eye {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 600px) {
    .hero-bubble {
        width: clamp(200px, 80vw, 280px);
        height: clamp(200px, 80vw, 280px);
    }

    .hero-bubble h1 {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .hero-bubble h2 {
        font-size: clamp(1.1rem, 4vw, 1.8rem);
    }

    .support-bubble {
        width: clamp(120px, 42vw, 160px);
        height: clamp(120px, 42vw, 160px);
    }

    .support-bubble p {
        font-size: 0.75rem;
    }

    .gathering-ring {
        width: 220px;
        height: 220px;
    }

    @keyframes gather-orbit-1 {
        from { transform: rotate(0deg) translateX(85px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(85px) rotate(-360deg); }
    }
    @keyframes gather-orbit-2 {
        from { transform: rotate(51.4deg) translateX(85px) rotate(-51.4deg); }
        to { transform: rotate(411.4deg) translateX(85px) rotate(-411.4deg); }
    }
    @keyframes gather-orbit-3 {
        from { transform: rotate(102.8deg) translateX(85px) rotate(-102.8deg); }
        to { transform: rotate(462.8deg) translateX(85px) rotate(-462.8deg); }
    }
    @keyframes gather-orbit-4 {
        from { transform: rotate(154.3deg) translateX(85px) rotate(-154.3deg); }
        to { transform: rotate(514.3deg) translateX(85px) rotate(-514.3deg); }
    }
    @keyframes gather-orbit-5 {
        from { transform: rotate(205.7deg) translateX(85px) rotate(-205.7deg); }
        to { transform: rotate(565.7deg) translateX(85px) rotate(-565.7deg); }
    }
    @keyframes gather-orbit-6 {
        from { transform: rotate(257.1deg) translateX(85px) rotate(-257.1deg); }
        to { transform: rotate(617.1deg) translateX(85px) rotate(-617.1deg); }
    }
    @keyframes gather-orbit-7 {
        from { transform: rotate(308.6deg) translateX(85px) rotate(-308.6deg); }
        to { transform: rotate(668.6deg) translateX(85px) rotate(-668.6deg); }
    }
}
