/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, #001f3f 0%, var(--primary-color, #004aad) 100%);
    color: var(--secondary-color, #ffffff);
    margin-top: auto;
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--secondary-color, #ffffff);
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

/* Company Info Section */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    filter: brightness(0) invert(1);
}

.footer-logo h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color, #ffffff);
    margin: 0;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--secondary-color, #ffffff);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 1.1rem;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--secondary-color, #ffffff);
    padding-left: 25px;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Contact Info in Footer */
.footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    background: none;
    border-radius: 0;
}

.footer .contact-item i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 2px;
    min-width: 16px;
}

.footer .contact-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.footer .contact-item a:hover {
    color: var(--secondary-color, #ffffff);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

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

.footer-bottom-links a:hover {
    color: var(--secondary-color, #ffffff);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color, #004aad);
    color: var(--secondary-color, #ffffff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

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

.back-to-top:hover {
    background: #003a8c;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .footer-sections {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 30px;
    }
    
    .footer-sections .footer-section:last-child {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0 20px;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer .contact-info {
        align-items: center;
    }
    
    .footer .contact-item {
        justify-content: center;
        text-align: left;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 30px 0 15px;
    }
    
    .footer-sections {
        gap: 25px;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer .contact-item span {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 0.85rem;
    }
    
    .footer-bottom-links {
        gap: 15px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* ===== HOVER EFFECTS ===== */
.footer-section {
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
}

/* ===== ACCESSIBILITY ===== */
.social-link:focus,
.footer-links a:focus,
.footer .contact-item a:focus,
.footer-bottom-links a:focus,
.back-to-top:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .footer {
        background: none !important;
        color: #000 !important;
    }
    
    .back-to-top {
        display: none !important;
    }
    
    .social-links {
        display: none !important;
    }
}