@import url('./typography.css');

body {
    background: linear-gradient(-45deg, #a0f877, #f2e7d5, #e6dccb, #f1ad24);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #2a4d3c;
    overflow-x: hidden;
    overflow-y: scroll;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(-45deg, #fdfaf4, #f2e7d5, #e6dccb, #fdfaf4);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    z-index: 1000;
}

.logo {
    height: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-size: 1.2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2a4d3c;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ca5c2c;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #2a4d3c;
}

.hero {
    background: none;
    height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    padding-top: 40rem;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
    color: #2a4d3c;
}

.start-order {
    text-decoration: none;
    background-color: #ca5c2c;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    display: inline-block;
    margin-bottom: 2rem;
}

.start-order:hover {
    background-color: #b14e23;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(45px);
    animation: fadeInUp 2s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    opacity: 0;
    animation: fadeInWave 2s ease forwards;
}

.curve svg {
    animation: waveFlow 5s linear infinite;
}

.did-you-know-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0.5rem;
    margin-bottom: 5rem;
    background: transparent;
}

.fact-carousel,
.brand-carousel {
    width: 100%;
    max-width: 450px;
    min-width: 450px;
    height: 160px;
    padding: 2rem;
    background: #ffffffcc;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.carousel-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #cfd8dc;
    transition: background-color 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.carousel-dots .dot.active {
    background-color: #4CAF50;
    transform: scale(1.3);
    opacity: 1;
}


.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2a4d3c;
    color: white;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.footer p {
    margin: 0;
    padding: 0.5rem 1rem;
    color: white;
}

.page-wrapper {
    padding-bottom: 50px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


@media (min-width: 768px) {
    .did-you-know-section {
        flex-direction: row;
        justify-content: space-between;
        padding: 4rem 5rem;
        align-items: stretch;
    }

    .curve {
        display: block;
    }
}

@media (max-width: 767px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        border-radius: 0.5rem;
        top: 80px;
        right: 1.2rem;
        background-color: #fdfaf4;
        padding: 1rem;
        gap: 1rem;
        font-size: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        margin-left: auto;
    }

    .logo {
        height: 70px;
    }

    .hero {
        height: 99vh;
        padding-bottom: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-top: 25rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .start-order {
        margin-top: 1.2rem;
        font-size: 9px;
        margin-bottom: 1rem;
    }

    .did-you-know-section {
        padding-bottom: 0;
        margin-top: 0.2rem;
        margin-bottom: 60rem;
    }

    .fact-carousel,
    .brand-carousel {
        padding: 1rem;
        font-size: 0.5rem;
        width: 100%;
        min-width: 350px;
        margin-top: 0.1rem;
        margin-bottom: 1rem;
    }

    .fact-carousel h2,
    .brand-carousel h2 {
        font-size: 1rem;
    }

    .fact-carousel p,
    .brand-carousel p {
        font-size: 0.8rem;
    }

    .curve {
        display: none;
    }

    .footer {
        padding: 0.5rem 1rem;
        font-size: 0.2rem;
        margin-top: auto;
    }


}