/* ========================================
   lunge.dev - Blobitecture Training Dojo
   Color Palette: Dark Neon
   ======================================== */

/* CSS Custom Properties */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
    --void: #0a0a0f;
    --marble: #1a1a24;
    --vein: #c9a855;
    --cyan: #00f0ff;
    --magenta: #ff2d6f;
    --ghost: #e8e6e1;
    --teal: #0d2b30;
    --ember: #ff6d2e;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--void);
    color: var(--ghost);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
}
/* Marble Texture Background */
#marble-texture {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 30% 40%, #1a1a24 0%, #0a0a0f 70%),
        radial-gradient(ellipse at 15% 25%, rgba(201,168,85,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(201,168,85,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 45% 80%, rgba(201,168,85,0.04) 0%, transparent 60%),
        linear-gradient(135deg, rgba(201,168,85,0.03) 0%, transparent 30%),
        linear-gradient(45deg, rgba(26,26,36,1) 0%, rgba(10,10,15,1) 100%);
}

/* Geometric Rain */
#geometric-rain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rain-particle {
    position: absolute;
    opacity: 0.06;
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    0% { transform: translateY(-20px) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}
/* Navigation Compass */
#nav-compass {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

#compass-trigger {
    cursor: pointer;
    transition: transform 0.4s var(--spring);
    filter: drop-shadow(0 0 8px rgba(0,240,255,0.3));
}

#compass-trigger:hover {
    transform: scale(1.15) rotate(15deg);
}

#compass-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s var(--spring), transform 0.4s var(--spring);
}

#nav-compass:hover #compass-menu,
#nav-compass.active #compass-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.compass-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10,10,15,0.8);
    border: 1px solid rgba(0,240,255,0.2);
    transition: all 0.3s var(--spring);
    position: relative;
    text-decoration: none;
}

.compass-link:hover {
    background: rgba(0,240,255,0.15);
    border-color: var(--cyan);
    transform: scale(1.2);
}

.compass-link::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 48px;
    white-space: nowrap;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compass-link:hover::after {
    opacity: 1;
}
/* ===== CHAMBER 1: Hero ===== */

.chamber-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-blob-container {
    position: relative;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-blob {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 20px rgba(0,240,255,0.2));
}

#blob-path {
    animation: blob-glow 4s ease-in-out infinite;
}

@keyframes blob-glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(0,240,255,0.4)); stroke-width: 2; }
    50% { filter: drop-shadow(0 0 14px rgba(255,45,111,0.5)); stroke-width: 2.5; }
}

.hero-text-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-family: "Poiret One", cursive;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cyan);
    text-shadow: 0 0 30px rgba(0,240,255,0.3);
}

.hero-subtitle {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--ghost);
    margin-top: 0.75rem;
    letter-spacing: 0.08em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}
/* Interstitials */

.interstitial {
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.interstitial-text {
    font-family: "Poiret One", cursive;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ghost);
    opacity: 0.6;
}

.rotating-shape {
    animation: slow-rotate 20s linear infinite;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* ===== CHAMBER 2: The Form ===== */

.chamber-form {
    min-height: 90vh;
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.blob-section-wrapper {
    clip-path: path("M50,20 C150,-30 350,-20 450,40 C530,90 520,200 480,300 C440,400 300,440 180,420 C60,400 -30,330 10,220 C40,140 -20,60 50,20");
    background: radial-gradient(ellipse at 40% 30%, rgba(13,43,48,0.6), rgba(10,10,15,0.9));
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.two-column {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.section-heading {
    font-family: "Poiret One", cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cyan);
    margin-bottom: 2rem;
}

.body-text {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    color: var(--ghost);
    margin-bottom: 1.25rem;
}

.highlight {
    color: var(--cyan);
    font-weight: 600;
}

.emphasis {
    font-weight: 600;
    color: var(--ghost);
}
/* Hex Cycle Diagram */

.hex-cycle-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hex-group polygon {
    transition: fill 0.6s var(--spring), stroke 0.3s ease;
}

.hex-group.active polygon {
    fill: rgba(0,240,255,0.15);
    stroke: var(--cyan);
    filter: drop-shadow(0 0 8px rgba(0,240,255,0.4));
}
/* ===== CHAMBER 3: The Practice ===== */

.chamber-practice {
    min-height: 100vh;
    position: relative;
    z-index: 2;
    background: var(--teal);
    padding: 6rem 2rem;
}

.chamber-practice .chamber-content {
    max-width: 900px;
    margin: 0 auto;
}

.code-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.code-block-wrapper {
    width: 100%;
    opacity: 0;
    transform: translateX(-40px) translateY(20px);
    transition: opacity 0.8s var(--spring), transform 0.8s var(--spring);
}

.code-block-wrapper.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.parallelogram-frame {
    transform: skewX(-8deg);
    background: rgba(10,10,15,0.7);
    border: 1px solid rgba(0,240,255,0.2);
    padding: 1.5rem 2rem;
    transition: transform 0.6s var(--spring);
}

.code-block-wrapper.revealed .parallelogram-frame {
    transform: skewX(0deg);
}

.code-block-inner {
    transform: skewX(8deg);
}

.code-block-wrapper.revealed .code-block-inner {
    transform: skewX(0deg);
}

pre {
    margin: 0;
    overflow-x: auto;
}

code {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--ghost);
}

code .kw { color: var(--cyan); }
code .fn { color: var(--ember); }
code .cm { color: var(--vein); }
code .str { color: var(--ember); }
code .num { color: var(--magenta); }

.code-label {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.85rem;
    color: var(--ghost);
    opacity: 0.6;
    margin-top: 0.75rem;
    text-align: right;
    letter-spacing: 0.05em;
}

.progression-arrow {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}
/* ===== CHAMBER 4: The Breakthrough ===== */

.chamber-breakthrough {
    min-height: 80vh;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--void));
}

.breakthrough-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hex-burst-container {
    transform: scale(0.3);
    opacity: 0;
    transition: transform 1.2s var(--spring), opacity 0.8s ease;
}

.hex-burst-container.revealed {
    transform: scale(1);
    opacity: 1;
}

.burst-particle {
    transition: opacity 0.6s ease, transform 0.8s var(--spring);
}

.hex-burst-container.revealed .burst-particle {
    opacity: 0.6;
    animation: orbit 12s linear infinite;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(5deg) translateX(5px); }
    50% { transform: rotate(0deg) translateX(0); }
    75% { transform: rotate(-5deg) translateX(-5px); }
    100% { transform: rotate(0deg) translateX(0); }
}

.breakthrough-quote {
    text-align: center;
    max-width: 600px;
}

.breakthrough-quote p {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.12em;
    color: var(--ghost);
    text-shadow: 0 0 20px rgba(0,240,255,0.15);
}
/* ===== CHAMBER 5: The Return ===== */

.chamber-return {
    min-height: 60vh;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.return-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.return-title {
    font-family: "Poiret One", cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cyan);
}

.return-subtitle {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--ghost);
    opacity: 0.7;
}

.compass-icon-large {
    margin: 1rem 0;
    animation: slow-rotate 30s linear infinite;
    filter: drop-shadow(0 0 12px rgba(0,240,255,0.3));
}

.return-links {
    display: flex;
    gap: 2.5rem;
    margin-top: 1rem;
}

.hex-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.4s var(--spring);
}

.hex-link:hover {
    transform: scale(1.15);
}

.hex-link svg {
    filter: drop-shadow(0 0 4px rgba(0,240,255,0.2));
    transition: filter 0.3s ease;
}

.hex-link:hover svg {
    filter: drop-shadow(0 0 10px rgba(0,240,255,0.5));
}

.hex-link span {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.8rem;
    color: var(--ghost);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.hex-link:hover span {
    opacity: 1;
    color: var(--cyan);
}
/* ===== Responsive ===== */

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    .col-minor {
        order: -1;
        display: flex;
        justify-content: center;
    }
    .blob-section-wrapper {
        clip-path: none;
        border-radius: 20px;
        padding: 3rem 2rem;
    }
    .hero-blob-container {
        width: 80vw;
        height: 80vw;
    }
    .return-links {
        gap: 1.5rem;
    }
    #nav-compass {
        bottom: 1rem;
        right: 1rem;
    }
}
