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

:root {
    --lavender: #b8a9c9;
    --light-lavender: #eeebf4;
    --deep-purple: #5b3d7a;
    --muted-lavender: #e0d8eb;
    --dusty-purple: #8b7a9e;
    --warm-peach: #f4c4a0;
    --night: #1a1035;
    --mid-purple: #7c6f8a;
    --coral: #e87461;
    --parchment: #f5ede0;
    --soft-lavender: #c4b8d4;
    --dark-purple: #3d3450;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    background-color: var(--night);
    color: var(--light-lavender);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background blobs */
.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50% 40% 60% 45% / 55% 45% 50% 40%;
    opacity: 0.15;
    filter: blur(80px);
    animation: blobMorph 20s ease-in-out infinite alternate;
}

.blob-1 {
    width: 60vw;
    height: 60vw;
    top: -20%;
    left: -10%;
    background: var(--deep-purple);
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    top: 40%;
    right: -15%;
    background: var(--warm-peach);
    animation-delay: -7s;
}

.blob-3 {
    width: 50vw;
    height: 50vw;
    bottom: -20%;
    left: 20%;
    background: var(--lavender);
    animation-delay: -14s;
}

@keyframes blobMorph {
    0% {
        border-radius: 50% 40% 60% 45% / 55% 45% 50% 40%;
        transform: translate(0, 0) scale(1);
    }
    33% {
        border-radius: 40% 60% 45% 55% / 50% 40% 55% 45%;
    }
    66% {
        border-radius: 55% 45% 50% 40% / 60% 50% 40% 55%;
    }
    100% {
        border-radius: 45% 55% 40% 60% / 45% 55% 50% 40%;
        transform: translate(30px, -20px) scale(1.05);
    }
}

/* Panels - diagonal sections */
.panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    z-index: 1;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    transform: skewY(-7deg);
    z-index: -1;
}

.panel-1::before {
    background: linear-gradient(135deg, var(--night) 0%, #2a1845 100%);
}

.panel-2::before {
    background: linear-gradient(135deg, #2a1845 0%, var(--deep-purple) 100%);
}

.panel-3::before {
    background: linear-gradient(135deg, var(--deep-purple) 0%, #3d2560 100%);
}

.panel-4::before {
    background: linear-gradient(135deg, #3d2560 0%, var(--night) 100%);
}

.panel-5::before {
    background: linear-gradient(135deg, var(--night) 0%, #120a25 100%);
}

.panel-content {
    max-width: 900px;
    width: 100%;
    opacity: 0;
    transform: translateY(60px) rotate(-2deg);
    transition: opacity 0.8s ease, transform 1s ease;
}

.panel-content.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Typography */
.display-heading {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(5rem, 15vw, 18rem);
    line-height: 0.85;
    color: var(--light-lavender);
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    text-shadow: 0 0 80px rgba(184, 169, 201, 0.3);
}

.section-heading {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.9;
    color: var(--warm-peach);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.panel-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--lavender);
    max-width: 500px;
    margin-bottom: 2rem;
}

.panel-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--dusty-purple);
    max-width: 550px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Code fragments */
.code-fragment {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: rgba(91, 61, 122, 0.3);
    border: 1px solid rgba(184, 169, 201, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.code-fragment code {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: var(--warm-peach);
    letter-spacing: -0.02em;
}

/* Blob shapes */
.blob-shape {
    position: absolute;
    border-radius: 50% 40% 60% 45% / 55% 45% 50% 40%;
    opacity: 0.12;
    animation: blobMorph 15s ease-in-out infinite alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    background: var(--coral);
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: -5%;
    background: var(--lavender);
    animation-delay: -5s;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--light-lavender);
    line-height: 1;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--dusty-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--dusty-purple);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    transition: opacity 0.5s ease;
    z-index: 100;
    animation: gentleBounce 3s ease-in-out infinite;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Final fragment glow */
.final-fragment {
    box-shadow: 0 0 40px rgba(244, 196, 160, 0.2), 0 0 80px rgba(184, 169, 201, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .panel {
        padding: 4rem 1.5rem;
    }

    .stats-row {
        gap: 2rem;
    }

    .blob-shape {
        display: none;
    }
}
