/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-image: url("./images/peanut.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #222;
}


a {
    text-decoration: none;
    color: #222;
}

a:hover {
    color: #b8352b;
}

/* ===== HEADER ===== */
/* Mobile (small) screens */
header {
    background-color: #98af84;
    padding: 20px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    width: 100vw;
    gap: 15px;
}

header h2 {
    font-size: 2.5rem;
    color: #367175;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== NAVIGATION ===== */

nav.nav3d {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 10px;
    border-radius: 12px;
    display: flex;
    visibility: hidden;
    overflow: hidden;
    flex-direction: column;
    box-shadow: 0 10px 0 #a7a7a7,
        0 10px 25px rgba(0, 0, 0, 0.35);
    gap: 25px;
    list-style-type: none;
}

.nav3d.open {
    visibility: visible;
}

.nav-dropdown {
    transition: 0.3s all ease-in-out;
    transform: rotate(0);
}

.nav-dropdown.open {
    transform: rotate(180deg);
}

nav.nav3d a {
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.2s ease;
    color: #2b4f50;
}

nav.nav3d a:hover {
    color: #a3079b;
}

.content {
    display: flex;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    /* transform: translateY(-300px); */
    transition: 0.3s all ease-in-out;
    align-items: center;
    width: 80vw;
    gap: 10px;
}

.content.open {
    max-height: 500px;
    opacity: 1;
}

.content-item {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.content-item::before {
    position: absolute;
    top: 0;
    left: 0;
}

/* Desktop (large) screens */
@media screen and (min-width: 700px) {
    .content {
        display: flex;
        max-height: 100px;
        opacity: 1;
        flex-direction: row;
        justify-content: start;
    }

    nav.nav3d {
        display: flex;
        visibility: visible;
        flex-direction: column;
    }

    .nav-dropdown {
        display: none;
    }
}


/* ===== MAIN CONTAINER ===== */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 50px;
    padding: 0px;
    background: rgba(217, 217, 217, 0.85);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}

section h2 {
    margin-bottom: 10px;
}

/* ===== CARD SYSTEM ===== */
.card-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
}

.card-container:hover {
    background-image: url("./images/peanut.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}

.card,
.card:hover {
    width: 80%;
    height: 40vh;
    border-radius: 15px;
    padding: 20px 20px;
    background: linear-gradient(135deg, #c52323, #e08e8e);
    background-size: 200% 200%;
    animation: cardGlow 8s ease-in-out infinite;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.card:hover {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #e08e8e;
    border-radius: 8px;
    margin-bottom: 15px;
}

@keyframes cardGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes markerDrop {
    0% {
        transform: translateY(-40px) scale(0.2);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes markerPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

/*Desktop(large)screens*/
@media screen and (min-width: 800px) {
    .card {
        width: 200px;
        height: auto;
    }

    .card img {
        height: 120px;
    }

    .card:hover {
        width: 600px;
        background-size: 400% 400%;
    }

    .card-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}

.animated-marker {
    animation: markerDrop 0.6s ease-out forwards,
        markerPulse 1.2s ease-in-out 0.6s infinite;
}

/* PEANUT-THEME FORM */
form {
    background: #f2e3c6;
    border: 3px solid #d2b48c;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(109, 71, 33, 0.25);
}

form label {
    font-weight: bold;
    color: #6b3e18;
    display: block;
    margin-top: 15px;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #d2b48c;
    margin-top: 6px;
    background: #fffaf0;
    font-size: 1rem;
    transition: 0.25s ease;
}

form input:focus,
form textarea:focus {
    border-color: #b86a04;
    outline: none;
    box-shadow: 0 0 8px rgba(184, 106, 4, 0.4);
}

form input[type="submit"] {
    width: 50%;
    background: #b86a04;
    color: white;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

form input[type="submit"]:hover {
    background: #8f4d03;
    transform: scale(1.05);
}

/* ===== ANIMATED SUBMIT BUTTON ===== */

/* Hover effect */
form input[type="submit"]:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #ffb347, 0 0 40px #b86a04;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(184, 106, 4, 0.5), 0 0 20px rgba(255, 179, 71, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(184, 106, 4, 0.7), 0 0 30px rgba(255, 179, 71, 0.6);
    }

    100% {
        box-shadow: 0 0 10px rgba(184, 106, 4, 0.5), 0 0 20px rgba(255, 179, 71, 0.4);
    }
}



/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #74c7e0, #333);
    color: #f1f1f1;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

footer:hover {
    background-image: url("./images/peanut.png");
    border-color: #00f0b4;
    border: 2px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;

}

footer a {
    color: #94c07a;
}

footer a:hover {
    color: #fff;
}


/* BUTTON STYLE 1 – slide & fill effect on hover */
.btn-slide-fill {
    display: inline-block;
    padding: 14px 28px;
    color: #fff;
    background: transparent;
    border: 2px solid #b86a04;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.btn-slide-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #b86a04, #ffb347);
    transition: transform 0.35s ease;
    transform: skewX(-20deg) translateX(0);
    transform-origin: left;
}

.btn-slide-fill:hover {
    color: #222;
}

.btn-slide-fill:hover::before {
    transform: skewX(-20deg) translateX(150%);
}

.button--atlas {
    pointer-events: auto;
    cursor: pointer;
    background: #e7e7e7;
    border: none;
    padding: 1.5rem 3rem;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    position: relative;
    display: inline-block;
    font-family: signo, sans-serif;
    font-weight: 500;
}

.button--atlas::before,
.button--atlas::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.button--atlas>span {
    display: inline-block;
}

.button--atlas:hover>span {
    opacity: 0;
}

.marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.marquee__inner {
    width: fit-content;
    display: flex;
    position: relative;
    --offset: 1rem;
    --move-initial: calc(-25% + var(--offset));
    --move-final: calc(-50% + var(--offset));
    transform: translate3d(var(--move-initial), 0, 0);
    animation: marquee 1s linear infinite;
    animation-play-state: paused;
    opacity: 0;
    color: #00f0b4;
}

.button--atlas:hover .marquee__inner {
    animation-play-state: running;
    opacity: 1;
    transition-duration: 0.4s;
}

.marquee span {
    text-align: center;
    white-space: nowrap;
    font-style: italic;
    padding: 1.5rem 0.5rem;
}

@keyframes marquee {
    0% {
        transform: translate3d(var(--move-initial), 0, 0);
    }

    100% {
        transform: translate3d(var(--move-final), 0, 0);
    }
}

.link {
    cursor: pointer;
    font-size: 18px;
    position: relative;
    white-space: nowrap;
    color: var(--color-text);
}

.link::before,
.link::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: currentColor;
    top: 100%;
    left: 0;
    pointer-events: none;
}


.link::before {
    content: '';
    /* show by default */
}

.link--helike {
    font-family: aktiv-grotesk-extended, sans-serif;
    font-weight: bold;
}

.link--helike:hover span {
    animation: glitchText 0.4s linear;
}

@keyframes glitchText {
    0% {
        opacity: 1;
        transform: translate3d(-10px, 0, 0) scale3d(-1, -1, 1);
        -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
        clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
    }

    10% {
        -webkit-clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
        clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
    }

    20% {
        -webkit-clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
        clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
    }

    35% {
        -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
        clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
    }

    50% {
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }

    60% {
        -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
        clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
    }

    70% {
        -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
    }

    80% {
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
        clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
    }

    90% {
        transform: translate3d(-10px, 0, 0) scale3d(-1, -1, 1);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}

.link--helike::before {
    height: 2px;
    opacity: 0;
}

.link--helike:hover::before {
    opacity: 1;
    animation: glitchLine 0.4s steps(2, start) forwards;
}

@keyframes glitchLine {
    0% {
        transform: scale3d(1, 1, 1);
    }

    10% {
        transform: translate3d(10px, 0, 0);
    }

    20% {
        transform: translate3d(0, 4px, 0);
    }

    30% {
        transform: scale3d(0.1, 1.4, 1) translate3d(0, -25px, 0);
        transform-origin: 100% 0%;
    }

    40% {
        transform: scale3d(1, 0.3, 1) translate3d(0, 25px, 0);
    }

    50% {
        transform: scale3d(0.5, 0.3, 1) translate3d(-100px, -80px, 0);
    }

    60% {
        transform: scale3d(1, 1.25, 1) translate3d(10px, -5px, 0);
    }

    70% {
        transform: scale3d(0.5, 0.5, 1) translate3d(0, 20px, 0);
    }

    80% {
        transform: translate3d(-30, 10px, 0) scale3d(1, 0.4, 1);
        transform-origin: 100% 0%;
    }

    90% {
        transform: scale3d(1, 0.5, 1) translate3d(0, -15px, 0);
        ;
        transform-origin: 0% 50%;
    }

    100% {
        opacity: 1;
    }
}

.link--mneme {
    font-family: aktiv-grotesk-extended, sans-serif;
    font-size: 0.875rem;
}

.link--mneme::before {
    height: 100%;
    top: 0;
    opacity: 0;
}

.link--mneme:hover::before {
    opacity: 1;
    animation: coverUp 0.3s ease forwards;
}

@keyframes coverUp {
    0% {
        transform-origin: 50% 100%;
        transform: scale3d(1, 0.045, 1);
    }

    50% {
        transform-origin: 50% 100%;
        transform: scale3d(1, 1, 1);
    }

    51% {
        transform-origin: 50% 0%;
        transform: scale3d(1, 1, 1);
    }

    100% {
        transform-origin: 50% 0%;
        transform: scale3d(1, 0.045, 1);
    }
}

.link--mneme::after {
    transition: opacity 0.3s;
}

.link--mneme:hover::after {
    opacity: 0;
}

.link--leda {
    overflow: hidden;
    line-height: 2;
    font-weight: 700;
}

.link--leda::before {
    height: 2px;
    top: calc(100% - 5px);
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link--leda:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

.link--leda::after {
    content: attr(data-text);
    height: 100%;
    top: 0;
    background: none;
    transform-origin: 100% 50%;
    transform: translate3d(150%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link--leda:hover::after {
    transform: translate3d(0, 0, 0);
}

.link--leda span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link--leda:hover span {
    transform: translate3d(-150%, 0, 0);
}

.link--thebe {
    font-family: angie-sans, sans-serif;
}

.link--thebe::before {
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.8, 1);
}

.link--thebe:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 2, 1);
    transition-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
}

.link--thebe::after {
    content: '';
    top: calc(100% + 4px);
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.4s 0.1s cubic-bezier(0.2, 1, 0.8, 1);
}

.link--thebe:hover::after {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
    transition-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
}

#chart_div {
            width: 800px;
            height: 600px;
            border: 1px solid #ccc;
        }