/* footer.css */

/* Footer Gradient Animation */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Base Footer Styles */
footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    background: linear-gradient(270deg, skyblue, white, skyblue, white);
    background-size: 800% 800%;
    animation: gradientMove 15s ease infinite;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer Grid Layout - Updated for centered content */
footer .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 auto;
}

/* Footer Text Styles */
footer .font-bold {
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

footer p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer Links */
footer ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
}

/* Quick Links and Contact Columns - Centered on mobile */
footer ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #4b5563;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-align: left;
}

footer ul li a:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    transform: translateX(4px);
    border-radius: 12px;
    font-weight: 600;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.social-icons a:hover {
    transform: scale(1.2) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Social Media Colors */
.icon-instagram {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.icon-facebook {
    background: #1877F2;
}

.icon-linkedin {
    background: #0077B5;
}

.icon-twitter {
    background: #000000;
}

/* Contact Section */
#contact {
    padding: 3rem 1rem;
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

#contact .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Contact Cards */
.contact-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Center Quick Links and Contact on mobile */
@media (max-width: 767px) {
    footer .grid > div:nth-child(2),
    footer .grid > div:nth-child(3) {
        text-align: center;
    }

    footer .grid > div:nth-child(2) ul {
        display: inline-block;
        text-align: left;
    }

    footer .grid > div:nth-child(3) > div {
        text-align: center;
    }
}

/* Responsive Adjustments */
@media (min-width: 640px) {
    footer {
        padding: 2rem 1.5rem;
    }

    footer .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #contact .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-icons {
        justify-content: flex-start;
    }

    footer .grid > div:nth-child(2),
    footer .grid > div:nth-child(3) {
        text-align: left;
    }
}

@media (min-width: 768px) {
    footer {
        padding: 3rem 1.5rem;
    }

    footer .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .social-icons a {
        width: 3rem;
        height: 3rem;
    }

    .social-icons svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 640px) {
    .social-icons a {
        width: 2rem;
        height: 2rem;
    }

    .social-icons svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Animation for Footer */
.animate-footer {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}