/* --- Footer Styles --- */
.footer {
    background-color: #051B2B; /* Dark */
    color: #F7F9FB; /* White */
    /* UPDATED: Reduced vertical padding */
    padding: 3rem 0 1.5rem 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top section with contact info */
.footer-top {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    /* UPDATED: Reduced bottom padding */
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(247, 249, 251, 0.1);
}

.footer-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-info-item .bi {
    font-size: 2.5rem;
    color: #1798C1; /* Blue */
    margin-bottom: 1rem;
}

.footer-info-item p {
    margin: 0;
    font-size: 1rem;
}

.footer-info-item p strong {
    font-weight: 700;
}

.footer-info-item p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info-item p a:hover {
    color: #1798C1; /* Blue */
}

.footer-info-item span {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Middle section with navigation links */
.footer-middle {
    display: flex;
    justify-content: center;
    gap: 2rem;
    /* UPDATED: Adjusted padding */
    padding: 2rem 0; 
}

.footer-link {
    color: #F7F9FB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #1798C1; /* Blue */
}

/* Social Icon Styles */
.footer-social {
    text-align: center;
    /* UPDATED: Reduced bottom padding */
    padding-bottom: 2rem; 
}

.footer-social a {
    color: #F7F9FB;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover {
    color: #1798C1;
    transform: scale(1.1);
}

/* Bottom section with copyright */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(247, 249, 251, 0.1);
    /* UPDATED: Adjusted padding */
    padding-top: 1.5rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Animation Styles --- */
/* Elements start invisible ONLY if the .animate-footer class is present */
.animate-footer .footer-info-item,
.animate-footer .footer-link,
.animate-footer .footer-social a,
.animate-footer .footer-bottom {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation trigger styles */
.animate-footer.is-visible .footer-info-item,
.animate-footer.is-visible .footer-link,
.animate-footer.is-visible .footer-social a,
.animate-footer.is-visible .footer-bottom {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-footer.is-visible .footer-info-item:nth-child(1) { transition-delay: 0.1s; }
.animate-footer.is-visible .footer-info-item:nth-child(2) { transition-delay: 0.2s; }
.animate-footer.is-visible .footer-info-item:nth-child(3) { transition-delay: 0.3s; }

.animate-footer.is-visible .footer-link:nth-child(1) { transition-delay: 0.4s; }
.animate-footer.is-visible .footer-link:nth-child(2) { transition-delay: 0.45s; }
.animate-footer.is-visible .footer-link:nth-child(3) { transition-delay: 0.5s; }
.animate-footer.is-visible .footer-link:nth-child(4) { transition-delay: 0.55s; }
.animate-footer.is-visible .footer-link:nth-child(5) { transition-delay: 0.6s; }

.animate-footer.is-visible .footer-social a { transition-delay: 0.7s; }

.animate-footer.is-visible .footer-bottom { transition-delay: 0.8s; }


/* Responsive styles for footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 2.5rem;
    }
    .footer-middle {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }
    .footer-social {
        padding-bottom: 2rem;
    }
}
