/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #F5F0E8;
    color: #2E2A2F;
    font-family: 'Inter', sans-serif;
}

/* Scroll Container with Snap */
.scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Proposition Sections */
.proposition {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

/* Mountain Container */
.mountain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

/* Mountain Layers - CSS Polygon Shapes */
.mountain-layer {
    position: absolute;
    opacity: 0.9;
}

/* Layer 1 - Pale Lavender Background */
.layer-1 {
    width: 100%;
    height: 100%;
    background-color: #B8B8E0;
    clip-path: polygon(
        0% 100%,
        15% 65%,
        30% 75%,
        50% 40%,
        70% 70%,
        85% 50%,
        100% 80%,
        100% 100%,
        0% 100%
    );
    z-index: 1;
}

/* Layer 2 - Dusty Blue */
.layer-2 {
    width: 90%;
    height: 85%;
    background-color: #B8CBE0;
    clip-path: polygon(
        5% 100%,
        20% 60%,
        40% 80%,
        50% 35%,
        65% 75%,
        80% 55%,
        95% 85%,
        100% 100%,
        0% 100%
    );
    z-index: 2;
}

/* Layer 3 - Lavender Haze */
.layer-3 {
    width: 80%;
    height: 75%;
    background-color: #C4B7D4;
    clip-path: polygon(
        10% 100%,
        25% 55%,
        45% 75%,
        50% 30%,
        60% 70%,
        75% 50%,
        90% 80%,
        100% 100%,
        0% 100%
    );
    z-index: 3;
}

/* Layer 4 - Muted Mauve */
.layer-4 {
    width: 70%;
    height: 65%;
    background-color: #6B6370;
    clip-path: polygon(
        15% 100%,
        30% 50%,
        50% 70%,
        50% 25%,
        55% 65%,
        70% 45%,
        85% 75%,
        100% 100%,
        0% 100%
    );
    z-index: 4;
}

/* Layer 5 - Sage Green */
.layer-5 {
    width: 60%;
    height: 55%;
    background-color: #B4C5A9;
    clip-path: polygon(
        20% 100%,
        35% 45%,
        50% 65%,
        50% 20%,
        50% 60%,
        65% 40%,
        80% 70%,
        100% 100%,
        0% 100%
    );
    z-index: 5;
}

/* Layer 6 - Darker Sage Peak */
.layer-6 {
    width: 50%;
    height: 45%;
    background: linear-gradient(135deg, #D4B1B1 0%, #8FA889 100%);
    clip-path: polygon(
        25% 100%,
        40% 40%,
        50% 60%,
        50% 15%,
        50% 55%,
        60% 35%,
        75% 65%,
        100% 100%,
        0% 100%
    );
    z-index: 6;
}

/* Proposition Text - Centered Content */
.proposition-text {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(46, 42, 47, 0.1);
}

/* Proposition Headings */
.proposition-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2E2A2F;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

#prop-1 .proposition-heading {
    font-size: 4rem;
}

/* Proposition Body Text */
.proposition-body {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #6B6370;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* Glitch Effect for Paradox Proposition */
@keyframes glitch-shift {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translateX(0);
    }
    20% {
        clip-path: polygon(5% 10%, 95% 5%, 98% 95%, 2% 98%);
        transform: translateX(8px);
    }
    40% {
        clip-path: polygon(2% 20%, 98% 15%, 99% 85%, 1% 90%);
        transform: translateX(-12px);
    }
    60% {
        clip-path: polygon(8% 5%, 92% 10%, 95% 92%, 5% 95%);
        transform: translateX(5px);
    }
    80% {
        clip-path: polygon(3% 15%, 97% 8%, 96% 88%, 4% 92%);
        transform: translateX(-6px);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translateX(0);
    }
}

@keyframes glitch-opacity {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glitch-sage-channel {
    0%, 100% {
        background-color: #B4C5A9;
        transform: translateX(0);
    }
    50% {
        background-color: #A9C5A9;
        transform: translateX(3px);
    }
}

@keyframes glitch-powder-channel {
    0%, 100% {
        background-color: #B8CBE0;
        transform: translateX(0);
    }
    50% {
        background-color: #B8B8E0;
        transform: translateX(-3px);
    }
}

@keyframes glitch-lavender-channel {
    0%, 100% {
        background-color: #C4B7D4;
        transform: translateX(0);
    }
    50% {
        background-color: #D4B7C4;
        transform: translateX(3px);
    }
}

.glitch-active {
    animation: glitch-shift 0.8s ease-in-out infinite, glitch-opacity 0.6s ease-in-out infinite;
}

.glitch-active .layer-5 {
    animation: glitch-sage-channel 0.8s ease-in-out infinite;
}

.glitch-active .layer-2 {
    animation: glitch-powder-channel 0.8s ease-in-out infinite;
}

.glitch-active .layer-3 {
    animation: glitch-lavender-channel 0.8s ease-in-out infinite;
}

/* Cursor-Follow Effect for Final Proposition */
.cursor-follow {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth Scroll Behavior */
.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #F5F0E8;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #B8B8E0;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #6B6370;
}

/* Responsive Design */
@media (max-width: 768px) {
    .proposition-heading {
        font-size: 2rem;
    }

    #prop-1 .proposition-heading {
        font-size: 2.5rem;
    }

    .proposition-body {
        font-size: 1.1rem;
    }

    .proposition-text {
        padding: 30px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .proposition-heading {
        font-size: 1.5rem;
    }

    #prop-1 .proposition-heading {
        font-size: 1.8rem;
    }

    .proposition-body {
        font-size: 1rem;
    }

    .proposition-text {
        padding: 20px;
    }
}
