/* ==============================================
   bada.systems - McBling Chrome Bubble System
   Aesthetic: McBling | Layout: Ma-Negative-Space
   Typography: Humanist | Palette: High-Contrast
   ============================================== */

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

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

body {
    background-color: #0A0A1A;
    color: #F0F0F5;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Chrome Text Effect --- */
.chrome-text {
    background: linear-gradient(135deg, #F8F8FF 0%, #C0C0C0 50%, #F8F8FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Scenes (Base) --- */
.scene {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene-boot {
    min-height: 120vh;
}

.scene-declaration {
    min-height: 100vh;
}

.scene-capabilities {
    min-height: 120vh;
}

.scene-showcase {
    min-height: 100vh;
}

.scene-contact {
    min-height: 80vh;
}

/* --- Pink Aurora Gradients --- */
.pink-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.aurora-boot {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 105, 180, 0.1) 0%, transparent 60%);
}

.aurora-declaration {
    background: radial-gradient(ellipse at 25% 50%, rgba(255, 105, 180, 0.08) 0%, transparent 65%);
}

.aurora-capabilities {
    background: radial-gradient(ellipse at 75% 40%, rgba(255, 105, 180, 0.1) 0%, transparent 60%);
}

.aurora-showcase {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 105, 180, 0.12) 0%, transparent 55%);
}

.aurora-contact {
    background: radial-gradient(ellipse at 50% 60%, rgba(255, 105, 180, 0.18) 0%, transparent 60%);
}

/* --- Bubble Base Styles --- */
.hero-bubble,
.satellite-bubble,
.cascade-bubble,
.micro-bubble {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 133, 200, 0.2) 40%, rgba(179, 136, 255, 0.1) 70%, transparent 100%);
    box-shadow:
        inset 0 -20px 40px rgba(255, 105, 180, 0.3),
        inset 20px 20px 60px rgba(255, 255, 255, 0.5),
        0 20px 60px rgba(10, 10, 26, 0.5),
        inset -5px -5px 20px rgba(179, 136, 255, 0.3);
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.hero-bubble:hover,
.satellite-bubble:hover,
.cascade-bubble:hover {
    transform: scale(1.08);
    box-shadow:
        inset 0 -20px 40px rgba(255, 105, 180, 0.35),
        inset 20px 20px 60px rgba(255, 255, 255, 0.7),
        0 25px 70px rgba(10, 10, 26, 0.6),
        inset -5px -5px 20px rgba(179, 136, 255, 0.4);
}

/* --- Float Animation --- */
@keyframes bubbleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(1deg); }
    66% { transform: translateY(-6px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.bubble-float {
    animation: bubbleFloat 10s ease-in-out infinite;
}

/* Staggered float delays */
.satellite-1 { animation-delay: 0s; animation-duration: 8s; }
.satellite-2 { animation-delay: 1.5s; animation-duration: 10s; }
.satellite-3 { animation-delay: 3s; animation-duration: 12s; }

/* --- Pulse Animation for Status Badges --- */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- Bounce Enter (initial hidden state) --- */
.bounce-target {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
}

.bounce-target.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Scene 1: System Boot --- */
.scene-boot {
    padding-top: 20vh;
}

.hero-bubble-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bubble-main {
    width: 450px;
    height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 52px;
    letter-spacing: -0.03em;
    text-align: center;
    z-index: 3;
    position: relative;
}

.satellite-bubble {
    z-index: 1;
}

.satellite-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 12%;
}

.satellite-2 {
    width: 90px;
    height: 90px;
    bottom: 25%;
    left: 8%;
}

.satellite-3 {
    width: 80px;
    height: 80px;
    bottom: 18%;
    right: 18%;
}

.scene-boot > .status-badge {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

/* --- Status Badges --- */
.status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 12px;
    border: 1px solid;
    border-image: linear-gradient(135deg, #F0F0F5, #8888AA, #F0F0F5) 1;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F0F0F5;
    animation: pulse 3s ease-in-out infinite;
    background: rgba(26, 26, 46, 0.6);
}

/* Fix: border-image doesn't work with border-radius, use alternative */
.status-badge {
    border: 1px solid #8888AA;
    background: linear-gradient(135deg, #1A1A2E, rgba(136, 136, 170, 0.1));
    backdrop-filter: blur(4px);
}

/* --- Scene 2: System Declaration --- */
.scene-declaration {
    padding: 15vh 5vw;
}

.float-zone {
    position: relative;
    z-index: 2;
    width: 65%;
}

.float-zone-left {
    align-self: flex-start;
    margin-left: 8vw;
}

.float-zone-right {
    align-self: flex-end;
    margin-right: 8vw;
}

.display-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 700px;
}

.bubble-cascade {
    position: relative;
    width: 300px;
    height: 300px;
    margin-left: auto;
    margin-top: -80px;
    margin-right: -5vw;
}

.cascade-bubble {
    position: absolute;
}

.cascade-large {
    width: 200px;
    height: 200px;
    top: 0;
    right: 0;
    animation-delay: 0.5s;
    animation-duration: 9s;
}

.cascade-medium {
    width: 120px;
    height: 120px;
    top: 100px;
    right: 120px;
    animation-delay: 1.2s;
    animation-duration: 11s;
}

.cascade-small {
    width: 60px;
    height: 60px;
    top: 170px;
    right: 200px;
    animation-delay: 2s;
    animation-duration: 8s;
}

.chrome-ribbon {
    width: 350px;
    height: 3px;
    background: linear-gradient(135deg, #F0F0F5 0%, #8888AA 50%, #F0F0F5 100%);
    transform: rotate(-8deg);
    margin-top: 60px;
    opacity: 0.6;
}

.badge-right {
    position: absolute;
    right: 10vw;
    bottom: 20vh;
    z-index: 2;
}

/* --- Scene 3: System Capabilities --- */
.scene-capabilities {
    padding: 15vh 5vw;
    position: relative;
}

.capability-block {
    margin-bottom: 8vh;
    max-width: 500px;
}

.capability-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    margin-top: 12px;
}

.capability-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: #8888AA;
}

.badge-inline {
    display: inline-block;
    margin-bottom: 4px;
    animation: pulse 3s ease-in-out infinite;
}

.hero-bubble-capabilities {
    width: 350px;
    height: 350px;
    left: 8vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-bubble-capabilities:hover {
    transform: translateY(-50%) scale(1.08);
}

.micro-bubbles-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
}

.micro-bubble {
    width: 12px;
    height: 12px;
    position: absolute;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 133, 200, 0.3) 50%, transparent 100%);
    box-shadow:
        inset 0 -3px 6px rgba(255, 105, 180, 0.3),
        inset 3px 3px 8px rgba(255, 255, 255, 0.6),
        0 3px 10px rgba(10, 10, 26, 0.3);
}

.mb-1 { left: 10%; top: 0; width: 14px; height: 14px; animation-delay: 0.3s; animation-duration: 7s; }
.mb-2 { left: 25%; top: 20px; width: 10px; height: 10px; animation-delay: 1s; animation-duration: 9s; }
.mb-3 { left: 40%; top: -10px; width: 16px; height: 16px; animation-delay: 0.7s; animation-duration: 8s; }
.mb-4 { left: 55%; top: 15px; width: 8px; height: 8px; animation-delay: 2.1s; animation-duration: 11s; }
.mb-5 { left: 70%; top: -5px; width: 12px; height: 12px; animation-delay: 1.5s; animation-duration: 10s; }
.mb-6 { left: 82%; top: 25px; width: 10px; height: 10px; animation-delay: 0.2s; animation-duration: 12s; }
.mb-7 { left: 50%; top: 40px; width: 9px; height: 9px; animation-delay: 3s; animation-duration: 9s; }

.script-accent {
    font-family: 'Satisfy', cursive;
    font-size: 42px;
    color: #FF69B4;
    text-shadow: 0 0 20px rgba(179, 136, 255, 0.4);
    position: absolute;
    left: 12vw;
    bottom: 15vh;
    transform: rotate(-5deg);
    z-index: 3;
}

/* B388FF rim light accent for capability blocks */
.capability-block {
    border-left: 2px solid #B388FF;
    padding-left: 20px;
}

/* --- Scene 4: System Showcase --- */
.scene-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-center {
    position: relative;
    z-index: 2;
}

.hero-bubble-showcase {
    width: 500px;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 -30px 60px rgba(255, 105, 180, 0.35),
        inset 30px 30px 80px rgba(255, 255, 255, 0.55),
        0 30px 80px rgba(10, 10, 26, 0.6),
        inset -8px -8px 30px rgba(179, 136, 255, 0.35),
        0 0 120px rgba(255, 105, 180, 0.1);
}

.showcase-metric {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 86px;
    letter-spacing: -0.03em;
    z-index: 3;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

/* Glow highlight ring around showcase bubble */
.hero-bubble-showcase::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid #FFFFFF;
    opacity: 0.15;
    pointer-events: none;
}

.orbit-bubble {
    position: absolute;
    z-index: 1;
}

.orbit-1 { width: 18px; height: 18px; top: 20%; left: 15%; animation-delay: 0s; animation-duration: 9s; }
.orbit-2 { width: 14px; height: 14px; top: 30%; right: 12%; animation-delay: 1.2s; animation-duration: 11s; }
.orbit-3 { width: 20px; height: 20px; bottom: 25%; left: 20%; animation-delay: 2.4s; animation-duration: 8s; }
.orbit-4 { width: 12px; height: 12px; bottom: 35%; right: 18%; animation-delay: 0.8s; animation-duration: 13s; }
.orbit-5 { width: 16px; height: 16px; top: 15%; left: 40%; animation-delay: 3.1s; animation-duration: 10s; }
.orbit-6 { width: 10px; height: 10px; bottom: 20%; right: 35%; animation-delay: 1.7s; animation-duration: 12s; }
.orbit-7 { width: 15px; height: 15px; top: 45%; left: 10%; animation-delay: 4s; animation-duration: 9s; }
.orbit-8 { width: 11px; height: 11px; top: 55%; right: 10%; animation-delay: 2.8s; animation-duration: 14s; }

.badge-showcase {
    position: absolute;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* --- Scene 5: System Contact --- */
.scene-contact {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cluster {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.contact-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 56px;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.contact-body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.65;
    color: #8888AA;
    margin-bottom: 40px;
}

.contact-button {
    display: inline-block;
    padding: 16px 48px;
    border: 2px solid #8888AA;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #FF69B4;
    text-decoration: none;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.contact-button:hover {
    transform: scale(1.06);
    border-color: #FF69B4;
    background: rgba(255, 105, 180, 0.08);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.15);
}

.badge-contact {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.contact-bubble-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 10%;
    animation-delay: 0.5s;
    animation-duration: 11s;
}

.contact-bubble-2 {
    width: 70px;
    height: 70px;
    bottom: 20%;
    left: 8%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.contact-bubble-3 {
    width: 55px;
    height: 55px;
    top: 30%;
    left: 15%;
    animation-delay: 3.5s;
    animation-duration: 13s;
}

/* --- Floating Pill Navigation --- */
.pill-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.pill-nav-toggle {
    width: 200px;
    height: 60px;
    border-radius: 30px;
    border: 1px solid #8888AA;
    background: linear-gradient(135deg, rgba(240, 240, 245, 0.08), rgba(136, 136, 170, 0.12));
    backdrop-filter: blur(16px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.pill-nav-toggle:hover {
    transform: scale(1.04);
    border-color: #FF69B4;
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.12);
}

.pill-nav-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #F0F0F5;
}

.pill-nav-menu {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(200%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    padding: 20px;
}

.pill-nav-menu.open {
    display: block;
}

.nav-bubble {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(136, 136, 170, 0.4);
    background: rgba(26, 26, 46, 0.5);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #F0F0F5;
    text-decoration: none;
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease,
                border-color 0.3s ease;
}

.nav-bubble:hover {
    transform: scale(1.1);
    border-color: #FF69B4;
    background: rgba(255, 105, 180, 0.12);
    color: #FF85C8;
}

/* Constellation scatter positions */
.nav-bubble[data-index="0"] { top: 20px; left: 30px; }
.nav-bubble[data-index="1"] { top: 55px; right: 35px; }
.nav-bubble[data-index="2"] { top: 105px; left: 50px; }
.nav-bubble[data-index="3"] { top: 140px; right: 40px; }
.nav-bubble[data-index="4"] { top: 175px; left: 80px; }

/* --- Ambient Micro Bubbles --- */
.ambient-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ambient-mb {
    position: absolute;
    opacity: 0.4;
}

.amb-1 { width: 10px; height: 10px; top: 5%; left: 3%; animation-delay: 0.2s; animation-duration: 10s; }
.amb-2 { width: 14px; height: 14px; top: 12%; right: 7%; animation-delay: 1.5s; animation-duration: 12s; }
.amb-3 { width: 8px; height: 8px; top: 22%; left: 15%; animation-delay: 3.2s; animation-duration: 8s; }
.amb-4 { width: 16px; height: 16px; top: 30%; right: 20%; animation-delay: 0.8s; animation-duration: 11s; }
.amb-5 { width: 12px; height: 12px; top: 38%; left: 5%; animation-delay: 2.5s; animation-duration: 9s; }
.amb-6 { width: 9px; height: 9px; top: 45%; right: 4%; animation-delay: 4s; animation-duration: 13s; }
.amb-7 { width: 18px; height: 18px; top: 55%; left: 8%; animation-delay: 1s; animation-duration: 10s; }
.amb-8 { width: 11px; height: 11px; top: 62%; right: 12%; animation-delay: 3.5s; animation-duration: 14s; }
.amb-9 { width: 13px; height: 13px; top: 70%; left: 2%; animation-delay: 0.5s; animation-duration: 8s; }
.amb-10 { width: 10px; height: 10px; top: 78%; right: 6%; animation-delay: 2s; animation-duration: 12s; }
.amb-11 { width: 15px; height: 15px; top: 85%; left: 18%; animation-delay: 4.5s; animation-duration: 9s; }
.amb-12 { width: 8px; height: 8px; top: 92%; right: 15%; animation-delay: 1.8s; animation-duration: 11s; }
.amb-13 { width: 12px; height: 12px; top: 8%; left: 45%; animation-delay: 3s; animation-duration: 10s; }
.amb-14 { width: 9px; height: 9px; top: 18%; right: 40%; animation-delay: 0.6s; animation-duration: 13s; }
.amb-15 { width: 14px; height: 14px; top: 35%; left: 55%; animation-delay: 2.3s; animation-duration: 8s; }
.amb-16 { width: 11px; height: 11px; top: 48%; right: 48%; animation-delay: 4.2s; animation-duration: 12s; }
.amb-17 { width: 10px; height: 10px; top: 58%; left: 42%; animation-delay: 1.3s; animation-duration: 9s; }
.amb-18 { width: 16px; height: 16px; top: 68%; right: 38%; animation-delay: 3.8s; animation-duration: 11s; }
.amb-19 { width: 8px; height: 8px; top: 82%; left: 50%; animation-delay: 0.9s; animation-duration: 14s; }
.amb-20 { width: 13px; height: 13px; top: 90%; right: 55%; animation-delay: 2.7s; animation-duration: 10s; }

/* --- Chrome Ribbon Scene Dividers --- */
.chrome-ribbon {
    position: relative;
    z-index: 2;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .hero-bubble-main {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: 36px;
    }

    .display-heading {
        font-size: 44px;
    }

    .float-zone {
        width: 90%;
    }

    .float-zone-left {
        margin-left: 5vw;
    }

    .float-zone-right {
        margin-right: 5vw;
    }

    .hero-bubble-showcase {
        width: 320px;
        height: 320px;
    }

    .showcase-metric {
        font-size: 54px;
    }

    .contact-heading {
        font-size: 40px;
    }

    .hero-bubble-capabilities {
        width: 220px;
        height: 220px;
        left: 5vw;
    }

    .bubble-cascade {
        width: 200px;
        height: 200px;
        margin-right: 0;
    }

    .cascade-large { width: 140px; height: 140px; }
    .cascade-medium { width: 80px; height: 80px; top: 70px; right: 80px; }
    .cascade-small { width: 45px; height: 45px; top: 110px; right: 130px; }

    .satellite-1 { width: 80px; height: 80px; }
    .satellite-2 { width: 60px; height: 60px; }
    .satellite-3 { width: 50px; height: 50px; }

    .script-accent {
        font-size: 32px;
        left: 5vw;
        bottom: 10vh;
    }

    .pill-nav-menu {
        width: 260px;
        height: 200px;
    }

    .chrome-ribbon {
        width: 200px;
    }
}

@media (max-width: 560px) {
    .hero-bubble-main {
        width: 240px;
        height: 240px;
    }

    .hero-title {
        font-size: 28px;
    }

    .display-heading {
        font-size: 32px;
    }

    .hero-bubble-showcase {
        width: 250px;
        height: 250px;
    }

    .showcase-metric {
        font-size: 40px;
    }

    .contact-heading {
        font-size: 32px;
    }

    .contact-body {
        font-size: 17px;
    }

    .pill-nav-toggle {
        width: 160px;
        height: 50px;
    }
}
