* {
    box-sizing: border-box;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

.intro__title {
    text-align: center;
}

body {
    padding: 0;
    font-size: 1.6rem;
    font-family: 'Nunito', Verdana, sans-serif;

    .wrapper {
        max-width: 900px;
        margin: 0 auto; 
        padding: 0 20px;
    }

    .header__wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between; 
        background-color: #ffeff6;
        border-radius: 5px;
    }

    .navigation {
        display: flex;
        gap: 2rem;

        .navigation__item{  
            list-style: none;
            background-color: #e9b4cc;
            border-radius: 5px;
            transition: background-color 0.3s ease;
            &:hover {
                background-color: #d483a4;
            }
            a{
                text-decoration: none;
                display: block;
                padding: 0.8rem 1.0rem;
                font-weight: bold;
            }
        }
    }

    .intro {
        background-color: #ffeff6;
        position: relative;
        height: 500px;     
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .intro__photo {
        width: 200px;
        height: 300px;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        margin: 20px auto;
    }

    .container {
        padding-bottom: 40px;
        border-bottom: 1px solid #e19ebc;
        scroll-margin-top: 40px;
    }

    .contacts__list {
        position: absolute;

        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 5rem;
        align-items: center;
        pointer-events: none;

    }

    .contacts__item {
        position: absolute;
        pointer-events: auto;
    }

    .contact--github {
        top: 83px;
        left: 500px;
    }

    .contact--mail {
        bottom: 150px;
        left: 400px;
    }

    .contact--phone {
        top: 48%;
        left: 31%;
    }

    .contacts__item a {
        display: flex;
        width: 60px;
        height: 60px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;

        transition: background-color 0.3s ease, transform 0.3s ease;


        animation: levitation 3s infinite ease-in-out;     


    }

    .contacts__item a:hover {
        background-color: #e9b4cc;
    }

    .contacts__item img {
        width: 30px;  
        height: 30px;
        display: block;
        transition: transform 0.3s ease;
    }

    .contacts__item a:hover img {
        transform: scale(1.25)
    }

    .contacts__item:nth-child(2n) a {
        animation-delay: 0.5s; 
        animation-duration: 3.5s; 
    }

    .contacts__item:nth-child(3n) a {
        animation-delay: 1s;
        animation-duration: 4s;
    }

    a {
        color: #6c1b3f;
    }

    .code-block {
        background-color: #e9b4cc;
        border-radius: 10px;
        padding: 1.5rem;
        overflow-x: auto;
        display: flex;
        justify-content: center;
        code {
            font-size: 1.5rem;
            display: block;  
        }
    }

    .footer {
        background-color: #fdf2f8; 
        border-top: 2px solid #e19ebc;
        padding: 2rem 0;
        margin-top: 4rem;
    }

    .footer__wrapper {
        display: flex;
        justify-content: space-between; 
        align-items: center;
    }

    .footer__item {
        display: flex;
        align-items: center;
        gap: 3rem;
        img {
            height: 40px;
            width: auto;
        }
    }
}

@keyframes levitation {
    0% {transform: translateY(0)}
    50% {transform: translateX(-10px);}
    100% {transform: translateY(0)}

}