@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.wrapper {
    width: 80%;
    height: 800px;
    margin: 75px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #fa8072, #FAE673);
    box-shadow: 0 6px 30px lightgrey;
    color: #a3acb3;
    font-family: 'Inter';
    border-radius: 50px;
}
.header {
    padding: 15px;
    font-family: 'Inter';
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    box-shadow: 0 8px 18px -6px grey;
    text-align: center;
    border-radius: 50px;
    background: linear-gradient(to right, #73FAB3, #8073FA);
}
.header h1,
.header h2 {
    text-shadow:
        0 1px 0 #d7dfe0,
        0 3px 6px #bfc9cb,
        0 10px 30px #00000014;
}

.navigation {
    background-color: transparent;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
    margin-bottom: 24px;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}
.navigation li {
    display: inline-block;
}
.navigation a {
    display: inline-block;
    background: linear-gradient(to right, #73FAB3 0%, #8073FA 50%, #fa8072 100%);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px grey;
    transition: transform 0.18s ease, background 0.18s, color 0.18s, box-shadow 0.18s;
    flex: 0 1 auto;
    max-width: none;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navigation a:hover,
.navigation a:focus {
    filter: brightness(0.95);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px grey;
}

.navigation a:nth-child(1) { background-position: 0% 0; }
.navigation a:nth-child(2) { background-position: 50% 0; }
.navigation a:nth-child(3) { background-position: 100% 0; }
.main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    gap: 28px;
    padding: 32px 0;
    align-items: center;
    padding: 20px 0;
}
.main p {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffda96;
    border-radius: 24px;
    box-shadow: 0 2px 12px grey;
    padding: 24px 32px;
    max-width: 1200px;
    font-size: 20px;
    line-height: 1.7;
    color: rgb(160, 126, 98);
    transition: box-shadow 0.2s;
}
.main p:hover {
    box-shadow: 0 6px 24px grey;
}
.main img {
    max-width: 160px;
    border-radius: 18px;
    box-shadow: 0 2px 8px grey;
    margin-right: 10px;
    transition: transform 0.2s;
}
.main img:hover {
    transform: scale(1.07) rotate(-2deg);
}
.footer {
    text-align: center;
    margin-top: 0;
    position: relative;
    top: 50px;
    color: grey;
    font-size: 15px;
}

@media (max-width: 600px) {
    .wrapper {
        width: 94%;
        margin: 20px auto;
        border-radius: 18px;
        box-shadow: 0 4px 12px grey;
    }

    .header {
        padding: 14px 12px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .header h1 {
        font-size: 20px;
        line-height: 1.15;
    }

    .header h2 {
        font-size: 13px;
        margin-top: 6px;
    }

    .navigation {
        gap: 14px;
        padding: 10px 6px;
        flex-wrap: wrap;
    }

    .navigation a {
        font-size: 16px;
        padding: 10px 12px;
        border-radius: 12px;
        box-shadow: 0 6px 16px grey;
    }

    .main {
        padding: 12px 8px;
        gap: 14px;
        align-items: stretch;
    }

    .main p {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
        font-size: 16px;
        line-height: 1.5;
        max-width: 100%;
    }

    .main img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px grey;
        transform: none;
    }

    .footer {
        top: 20px;
        font-size: 13px;
        padding: 18px 6px 30px;
    }

    .navigation a {
        min-width: 90px;
        text-align: center;
    }
}