footer {
    background: linear-gradient(180deg, rgb(20, 20, 20), rgb(0, 0, 0));
    color: white;
    padding: 4rem 0 2.5rem;
    font-family: 'Poppins', sans-serif;
    border-top: 2px solid rgb(41, 128, 225);
}

.footer_content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 0 3.75rem 3rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgb(60, 60, 60);
}

.footer_section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: rgb(41, 128, 225);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer_section h4:hover {
    color: rgb(255, 239, 170);
}

.footer_section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgb(200, 200, 200);
    transition: color 0.3s ease;
}

.footer_section {
    animation: fadeInUp 0.6s ease;
}

.footer_section ul {
    list-style: none;
    padding: 0;
}

.footer_section ul li {
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.footer_section ul li:hover {
    transform: translateX(5px);
}

.footer_section ul li a {
    text-decoration: none;
    color: rgb(200, 200, 200);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer_section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: rgb(41, 128, 225);
    transition: width 0.3s ease;
}

.footer_section ul li a:hover {
    color: rgb(41, 128, 225);
}

.footer_section ul li a:hover::before {
    width: 100%;
}

.newsletter_form {
    display: flex;
    margin-top: 1rem;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.newsletter_form input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.newsletter_form input:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(41, 128, 225, 0.5);
}

.newsletter_form input::placeholder {
    color: rgb(150, 150, 150);
}

.newsletter_form button {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, rgb(41, 128, 225), rgb(30, 100, 180));
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.newsletter_form button:hover {
    background: linear-gradient(135deg, rgb(255, 102, 0), rgb(255, 130, 30));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

footer #contact {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.875rem;
    padding: 0 3.75rem 1.25rem;
}

footer #contact_info {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

footer .contact_item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
}

footer .contact_item:hover {
    color: rgb(41, 128, 225);
    transform: translateY(-2px);
}

footer #social_medias {
    display: flex;
    gap: 1.25rem;
}

footer #social_medias a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(41, 128, 225, 0.2);
}

footer #social_medias a:hover {
    background: rgb(41, 128, 225);
    color: rgb(255, 255, 255);
    transform: scale(1.1);
}

footer .legal {
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgb(60, 60, 60);
    padding: 1rem 0;
    color: rgb(150, 150, 150);
}

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

@media (max-width: 1024px) {
    .footer_content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        padding: 0 2rem 2.5rem;
    }

    footer #contact {
        padding: 0 2rem 1.25rem;
    }

    footer #contact_info {
        gap: 1.875rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer_content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1.5rem 2rem;
        margin-bottom: 1.5rem;
    }

    .footer_section h4 {
        font-size: 1rem;
    }

    .footer_section p {
        font-size: 0.85rem;
    }

    .footer_section ul li a {
        font-size: 0.85rem;
    }

    .newsletter_form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter_form input,
    .newsletter_form button {
        width: 100%;
    }

    footer #contact {
        flex-direction: column;
        gap: 1.5rem;
    }

    footer #contact_info {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }

    footer .contact_item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 0 1rem;
    }

    .footer_content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem 1.5rem;
        margin-bottom: 1rem;
    }

    .footer_section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .footer_section p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer_section ul li a {
        font-size: 0.8rem;
    }

    .newsletter_form {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .newsletter_form input {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .newsletter_form button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    footer #contact {
        padding: 0 1rem 1rem;
        gap: 1rem;
    }

    footer #contact_info {
        gap: 0.875rem;
    }

    footer .contact_item {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    footer #social_medias {
        gap: 0.75rem;
    }

    footer #social_medias a {
        font-size: 1.25em;
        width: 35px;
        height: 35px;
    }

    footer .legal {
        font-size: 0.75rem;
        padding: 0.75rem 0;
    }
}
