@font-face {
    font-family: 'Agdasima';
    src: url('Agdasima-Regular.ttf') format('truetype');
}

.titlepage {
    font-family: 'Agdasima', sans-serif;
    height: 100vh;
}

.title {
    font-weight: bold;
    color: #7ddc4e;
    font-size: 8vw;
    margin: 0;
    text-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.fade-on-scroll {
    transition: opacity 0.3s ease;
    transition: height 0.3s ease;
    opacity: 1;
}

.fade-on-scroll.scrolled {
    opacity: 0;
    height: 200px;
}

.conveyor {
    position: relative;
    z-index: 3;

    width: 400px;
    height: 120px;

    /* Visuals */
    border: 26px solid transparant;
    /* green border */
    border-radius: 9999px;
    /* pill shape */

    /* Optional: crisp rendering on all screens */
    box-sizing: border-box;
    display: inline-block;

    background:
        #7ddc4e,
        conic-gradient(from 0deg,
            #7ddc4e,
            #2ecc71,
            #16a085,
            #7ddc4e);
    overflow: hidden;
    /* keeps ::before inside */

    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.conveyor::before {
    content: "";
    position: absolute;
    /* make it bigger than the parent */
    inset: -400px;
    border-radius: 50%;
    /* big circle */
    background: conic-gradient(from 0deg,
            #7ddc4e,
            /* rgba(125,220,78,1) */
            #64b446,
            /* rgba(100,180,70,1) */
            #508c3c,
            /* rgba(80,140,60,1) */
            #d98c6a,
            /* warm accent */
            #7ddc4e
            /* loop back to start */
        );

    animation: spin 4s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.conveyor::after {
    content: "";
    position: absolute;
    top: 26px;
    /* equal to border thickness */
    left: 26px;
    right: 26px;
    bottom: 26px;
    border-radius: calc(9999px - 26px);
    /* inner pill */
    background: #333;
    /* match page background */

    /* inset shadow on top and left */
    box-shadow: inset 0 6px 8px rgba(0, 0, 0, 0.3);
}

.menu {
    padding: 10px 0;
    text-align: center;
}

.package-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: flex-end;
}

/* Base package look */
.package {
    font-size: 21px;
    background: linear-gradient(135deg,
            #d98c6a,
            /* base terracotta */
            #c76b5a,
            /* deeper clay */
            #a8563f
            /* rich earthy accent */
        );
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;

    /* Keep your varied sizes */
    padding: 5px 8px;

    /* Flexbox to push text to the bottom */
    display: flex;
    align-items: flex-end;
    /* push content to bottom vertically */
    justify-content: center;
    /* center horizontally */
    text-align: center;
}

/* Different sizes for variety */
.package:nth-child(1) {
    width: 50px;
    height: 50px;
}

.package:nth-child(2) {
    width: 70px;
    height: 70px;
}

.package:nth-child(3) {
    width: 80px;
    height: 40px;
}

/* Keyframes for different bounce styles */
@keyframes bounce-small {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    40% {
        transform: translateY(-4px) rotate(-2deg);
    }

    70% {
        transform: translateY(-2px) rotate(1deg);
    }
}

@keyframes bounce-medium {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    30% {
        transform: translateY(-8px) rotate(3deg);
    }

    60% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

@keyframes bounce-big {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(-4deg);
    }

    55% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* Assign different animations, speeds, and delays */
.package:nth-child(1) {
    animation: bounce-small 1.3s ease-in-out infinite;
    animation-delay: 0s;
}

.package:nth-child(2) {
    animation: bounce-big 1.7s ease-in-out infinite;
    animation-delay: 0.4s;
}

.package:nth-child(3) {
    animation: bounce-medium 1.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Hover overrides bounce for a stronger lift */
.package:hover {
    transform: translateY(-10px) scale(1.05);
    animation-play-state: paused;
    /* pause bounce on hover */

    /* inset shadow on top and left */
    box-shadow: inset 0 20px 30px rgba(0, 0, 0, 0.3);
}

.package a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;

    display: inline-block;
    width: 100%;
    height: 100%;
}

.scroll-arrow {
    font-size: 3em;
    color: #d98c6a;
    animation: blink 1.2s infinite;
    pointer-events: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}
