/* Updated Footer Styles with Corporate Colors */
footer {
    background: linear-gradient(135deg, #2c3e50, #1a2a38) !important;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5282, #3182ce);
}

footer h5 {
    color: #3182ce;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

footer h5:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3182ce;
}

footer .nav-link {
    transition: transform 0.3s ease;
    padding-left: 0 !important;
    position: relative;
    display: inline-block;
    will-change: transform;
}

footer .nav-link:hover {
    transform: translateX(5px);
}

footer .nav-link:before {
    content: '›';
    color: #3182ce;
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

footer .nav-link:hover:before {
    opacity: 1;
    transform: translateX(5px);
}

footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-right: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

footer .social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

footer .social-link i {
    color: #2c5282;
}

footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Back to top button styling */
#back-to-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c5282, #3182ce);
    border: none;
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}

/* Newsletter form */
.newsletter-form .form-control {
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 10px 15px;
    height: auto;
}

.newsletter-form .btn {
    background-color: #3182ce;
    border-color: #3182ce;
    border-radius: 0 4px 4px 0;
}

.newsletter-form .btn:hover {
    background-color: #2c5282;
    border-color: #2c5282;
}

/* Animation for footer elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-animate {
    animation: fadeInUp 0.6s ease-out;
}

/* Footer responsive styles */
@media (max-width: 768px) {
    footer .social-links {
        margin-top: 20px;
        justify-content: center !important;
    }
}
