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

:root {
    --warm-white: #F5F0E8;
    --warm-cream: #E8E0D4;
    --forest-black: #1A3A1A;
    --deep-green: #2A4A2A;
    --muted-sage: #4A6A4A;
    --sage: #6A8A6A;
    --light-sage: #8AA88A;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--warm-white);
    color: var(--deep-green);
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--warm-white);
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translateY(calc(var(--scroll-offset) * -0.3));
    will-change: transform;
}

.parallax-midground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(calc(var(--scroll-offset) * -0.6));
    will-change: transform;
    pointer-events: none;
}

.parallax-foreground {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 40px;
}

/* Botanical Illustrations */
.botanical-illustration {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.latin-name {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    color: var(--muted-sage);
    opacity: 0.4;
    text-align: center;
    white-space: nowrap;
}

/* Neubrutalist Cards */
.neubrutalist-card {
    background-color: var(--warm-white);
    border: 4px solid var(--forest-black);
    border-radius: 0;
    padding: 32px;
    box-shadow: 6px 6px 0px var(--forest-black);
    position: relative;
    animation: cardSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.parallax-section:nth-child(1) .neubrutalist-card {
    animation-delay: 0s;
}

.parallax-section:nth-child(2) .neubrutalist-card {
    animation-delay: 0.1s;
}

.parallax-section:nth-child(3) .neubrutalist-card {
    animation-delay: 0.2s;
}

.parallax-section:nth-child(4) .neubrutalist-card {
    animation-delay: 0.3s;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.neubrutalist-card:hover {
    box-shadow: 8px 8px 0px var(--forest-black);
}

/* Typography */
.page-title {
    font-family: 'Recursive', sans-serif;
    font-weight: 800;
    font-size: 52px;
    color: var(--forest-black);
    margin-bottom: 20px;
    line-height: 1;
    position: relative;
    letter-spacing: 0;
}

.page-title .underline-draw {
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 3px;
    background-color: var(--forest-black);
    animation: underlineDraw 0.6s ease-out forwards;
    width: 0;
}

@keyframes underlineDraw {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.section-title {
    font-family: 'Recursive', sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: var(--forest-black);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

.neubrutalist-card p {
    color: var(--deep-green);
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.8;
}

.neubrutalist-card p:last-child {
    margin-bottom: 0;
}

/* Botanical Fragments */
.botanical-fragment {
    position: absolute;
    opacity: 0.3;
    mix-blend-mode: multiply;
    pointer-events: none;
    animation: fragmentSway 8s ease-in-out infinite;
}

@keyframes fragmentSway {
    0%, 100% {
        transform: rotateZ(-2deg);
    }
    50% {
        transform: rotateZ(2deg);
    }
}

/* Links and Interactive Elements */
a {
    color: var(--sage);
    text-decoration: none;
    border-bottom: 3px solid var(--forest-black);
    transition: all 0.25s ease-out;
    position: relative;
    overflow: hidden;
}

a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -100%;
    width: 100%;
    height: 3px;
    background-color: var(--forest-black);
    transition: left 0.25s ease-out;
}

a:hover {
    color: var(--forest-black);
}

a:hover::before {
    left: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .parallax-section {
        height: auto;
        min-height: 100vh;
    }

    .parallax-background,
    .parallax-midground {
        position: relative;
        transform: none !important;
        height: auto;
    }

    .neubrutalist-card {
        box-shadow: 4px 4px 0px var(--forest-black);
    }

    .page-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .parallax-foreground {
        padding: 24px;
    }

    .neubrutalist-card {
        border-width: 3px;
        padding: 24px;
        box-shadow: 3px 3px 0px var(--forest-black);
    }

    .page-title {
        font-size: 32px;
    }

    .page-title .underline-draw {
        bottom: -6px;
    }

    .section-title {
        font-size: 26px;
    }

    .latin-name {
        font-size: 16px;
    }

    .neubrutalist-card p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .parallax-section {
        min-height: 80vh;
    }

    .parallax-foreground {
        padding: 16px;
    }

    .neubrutalist-card {
        border-width: 2px;
        padding: 16px;
        box-shadow: 2px 2px 0px var(--forest-black);
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .neubrutalist-card p {
        font-size: 15px;
    }
}
