/* monopole.center — Electric Zazen */
/* Fonts: Space Grotesk 500, DM Sans 300, IBM Plex Mono 300 */
/* Palette: #0a0a0f #12101f #FF2D7B #00E5FF #39FF14 #BF40FF #C8B8E8 #00F5D4 */

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

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

body {
    background: #0a0a0f;
    color: #C8B8E8;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    min-height: 500vh;
}

/* ========== CRT Scan Line Overlay ========== */
#crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
}

/* ========== The Monopole Point ========== */
#monopole-point {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    width: 6px;
    height: 6px;
    pointer-events: none;
}

#monopole-core {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF2D7B;
    box-shadow:
        0 0 4px #FF2D7B,
        0 0 15px rgba(255, 45, 123, 0.6),
        0 0 40px rgba(255, 45, 123, 0.3),
        0 0 80px rgba(255, 45, 123, 0.1);
    animation: pointPulse 4s ease-in-out infinite;
}

@keyframes pointPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ========== Field Lines SVG ========== */
#field-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#field-lines line,
#field-lines path {
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
}

/* ========== Floating Elements ========== */
#floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.float-el {
    position: absolute;
    border-style: solid;
    border-width: 1px;
    background: transparent;
    opacity: 0.7;
}

.float-el.circle {
    border-radius: 50%;
}

.float-el.rounded-rect {
    border-radius: 3px;
}

.float-el.thin-line {
    border-top-width: 1px;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 0;
    height: 0 !important;
}

/* ========== Ripple Rings ========== */
#ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: rippleExpand 6s linear infinite;
    animation-play-state: paused;
}

.ripple-1 {
    border: 1px solid #FF2D7B;
    box-shadow: 0 0 8px rgba(255, 45, 123, 0.3), inset 0 0 8px rgba(255, 45, 123, 0.1);
    animation-delay: 0s;
}

.ripple-2 {
    border: 1px solid #00E5FF;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3), inset 0 0 8px rgba(0, 229, 255, 0.1);
    animation-delay: 1.5s;
}

.ripple-3 {
    border: 1px solid #39FF14;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.3), inset 0 0 8px rgba(57, 255, 20, 0.1);
    animation-delay: 3s;
}

.ripple-4 {
    border: 1px solid #BF40FF;
    box-shadow: 0 0 8px rgba(191, 64, 255, 0.3), inset 0 0 8px rgba(191, 64, 255, 0.1);
    animation-delay: 4.5s;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(80);
        opacity: 0;
    }
}

/* ========== Corner Coordinates ========== */
.corner-coord {
    position: fixed;
    z-index: 100;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 245, 212, 0.5);
    pointer-events: none;
}

.corner-coord.top-left {
    top: 20px;
    left: 20px;
}

.corner-coord.top-right {
    top: 20px;
    right: 20px;
}

.corner-coord.bottom-left {
    bottom: 20px;
    left: 20px;
}

.corner-coord.bottom-right {
    bottom: 20px;
    right: 20px;
}

/* ========== Scroll Container ========== */
#scroll-container {
    position: relative;
    z-index: 5;
    width: 100%;
}

/* ========== Chambers ========== */
.chamber {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chamber-content {
    position: relative;
    z-index: 30;
    text-align: center;
    padding: clamp(80px, 15vw, 200px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chamber-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Domain Title ========== */
.domain-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FF2D7B;
    text-shadow: 0 0 30px rgba(255, 45, 123, 0.4);
    line-height: 1.2;
}

/* ========== Contemplative Text ========== */
.contemplative-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 2.0;
    letter-spacing: 0.03em;
    color: rgba(200, 184, 232, 0.8);
}

/* ========== Chamber Labels ========== */
.chamber-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 245, 212, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.chamber-label.visible {
    opacity: 1;
}

/* ========== Final Dot ========== */
.final-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF2D7B;
    margin: 40px auto 0;
    box-shadow:
        0 0 4px #FF2D7B,
        0 0 15px rgba(255, 45, 123, 0.6),
        0 0 40px rgba(255, 45, 123, 0.3);
    opacity: 0;
    transition: opacity 1s ease;
}

.final-dot.visible {
    opacity: 1;
    animation: finalPulse 2s ease-in-out infinite;
}

@keyframes finalPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 4px #FF2D7B, 0 0 15px rgba(255, 45, 123, 0.6), 0 0 40px rgba(255, 45, 123, 0.3); }
    50% { transform: scale(1.5); box-shadow: 0 0 8px #FF2D7B, 0 0 25px rgba(255, 45, 123, 0.7), 0 0 60px rgba(255, 45, 123, 0.4); }
}

/* ========== Background Gradient Transitions ========== */
body {
    transition: background-color 1s ease;
}

body.chamber-transition {
    background: #12101f;
}
