@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    overflow: hidden;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #f1f4f9, #dff1ff);
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

section .color {
    position: absolute;
    filter: blur(150px);
}

section .color:nth-child(1) {
    top: -350px;
    width: 700px;
    height: 700px;
    background: #ff359b;
}

section .color:nth-child(2) {
    bottom: -100px;
    left: 300px;
    width: 600px;
    height: 600px;
    background: #ffdd87;
}

section .color:nth-child(3) {
    bottom: 50px;
    right: 200px;
    width: 400px;
    height: 400px;
    background: #00d2ff;
}

.box {
    position: relative;
}

.box .square {
    position: absolute;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: animate 20s linear infinite;
    animation-delay: calc(-1s * var(--i));
}

/* Box animation */
@keyframes animate {
    0%,
    100% {
        transform: translateX(-800px);
    }

    50% {
        transform: translateX(800px);
    }
}

.box .square:nth-child(1) {
    top: -50px;
    right: -60px;
    width: 100px;
    height: 100px;
}

.box .square:nth-child(2) {
    top: 150px;
    left: -100px;
    width: 120px;
    height: 120px;
    z-index: 2;
}

.box .square:nth-child(3) {
    bottom: 50px;
    right: -60px;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.box .square:nth-child(4) {
    bottom: -80px;
    left: -60px;
    width: 50px;
    height: 50px;
}

.box .square:nth-child(5) {
    top: -80px;
    left: 140px;
    width: 60px;
    height: 60px;
}

/* Footer styling */
.footer {
    position: relative;
    z-index: 10;
    top: 230px;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(4px) saturate(200%);
    -webkit-backdrop-filter: blur(4px) saturate(200%);
    background-color: rgba(17, 25, 40, 0.25);
    border: 2px solid rgba(247, 247, 247, 0.558);
}

.social-icon,
.menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

.social-icon__item,
.menu__item {
    list-style: none;
}

.social-icon__link {
    font-size: 2rem;
    color: #ffffff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
}

.social-icon__link:hover {
    transform: translateY(-10px);
}

.menu__link {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
    font-weight: 300;
}

.menu__link:hover {
    opacity: 1;
    transform: scale(1.2);
}

.footer p {
    color: #ffffff;
    margin: 15px 0 10px 0;
    font-size: 1rem;
    font-weight: 300;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .footer {
        padding: 20px;
    }

    .social-icon__link {
        font-size: 1.5rem;
        margin: 0 8px;
    }

    .menu__link {
        font-size: 1rem;
        margin: 0 8px;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 15px;
        flex-direction: column;
        align-items: center;
    }

    .social-icon__link {
        font-size: 1.2rem;
        margin: 0 5px;
    }

    .menu__link {
        font-size: 0.9rem;
        margin: 0 5px;
    }

    .footer p {
        font-size: 0.8rem;
        text-align: center;
    }
}