/* ==========================================
   MODERN FOOTER
   ========================================== */

.modern-footer {
    background: #2C3E50;
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer About Column */
.footer-about {
    max-width: 380px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px 0;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: #5B9BD5;
    border-color: #5B9BD5;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Footer Columns */
.footer-column h4.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Contact Column */
.footer-contact-info {
    margin-bottom: 24px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: #5B9BD5;
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #ffffff;
}

/* Certifications */
.footer-certifications {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(91, 155, 213, 0.15);
    border: 1px solid rgba(91, 155, 213, 0.3);
    border-radius: 20px;
    color: #5B9BD5;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #5B9BD5;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(91, 155, 213, 0.3);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #4A8AC4;
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(91, 155, 213, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-about {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }
    
    .modern-footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
    
    .footer-about {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 20px;
        display: block;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        padding: 24px 0;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .modern-footer {
        margin-top: 40px;
    }
    
    .footer-main {
        gap: 32px;
    }
    
    .footer-heading {
        font-size: 0.9rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-legal .separator {
        display: none;
    }
}
