﻿/* ============================================ */
/* FOOTER STYLES */
/* ============================================ */

.footer {
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
    position: relative;
    overflow: visible;
}

    .footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #faff04, #ffcc00, #faff04);
        background-size: 200% 100%;
        animation: gradientSlide 3s ease infinite;
    }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Back to Top Button - Top Right of Footer */
.back-to-top {
    position: absolute;
    top: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    border: 3px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(250, 255, 4, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
}

    .back-to-top:hover {
        background: linear-gradient(135deg, #ffcc00, #faff04);
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(250, 255, 4, 0.6);
    }

    .back-to-top:active {
        transform: translateY(-2px);
    }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #faff04;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-section h3::before {
        content: "";
        width: 4px;
        height: 20px;
        background: #faff04;
        border-radius: 2px;
    }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .footer-logo img {
        width: 50px;
        height: 50px;
    }

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .footer-links a:hover {
            color: #faff04;
            transform: translateX(5px);
        }

        .footer-links a i {
            font-size: 12px;
        }

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    .footer-social a {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

        .footer-social a:hover {
            background: #faff04;
            color: #022079;
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(250, 255, 4, 0.3);
        }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

    .footer-contact-item div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .footer-contact-item i {
        color: #faff04;
        font-size: 16px;
        margin-top: 2px;
        flex-shrink: 0;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Dark Mode Footer */
body.dark-mode .footer {
    background: linear-gradient(135deg, #0a0a1e 0%, #16213e 100%);
}

body.dark-mode .back-to-top {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    border-color: rgba(250, 255, 4, 0.5);
    box-shadow: 0 4px 15px rgba(250, 255, 4, 0.5);
}

    body.dark-mode .back-to-top:hover {
        background: linear-gradient(135deg, #ffcc00, #faff04);
        box-shadow: 0 6px 20px rgba(250, 255, 4, 0.7);
    }

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .back-to-top {
        top: -25px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 500px) {
    .footer-section h3 {
        font-size: 16px;
    }

    .footer-logo-text {
        font-size: 20px;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
