/* ==========================================
   FOOTER - css/footer.css
   ========================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* ===== Footer Main ===== */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Footer Column ===== */
.footer-column {
    display: flex;
    flex-direction: column;
}

/* ===== Footer Logo ===== */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo i {
    font-size: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

/* ===== Footer Social ===== */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.social-icon:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== Footer Title ===== */
.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* ===== Footer Links ===== */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-links li a i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.footer-links li a:hover i {
    transform: translateX(-3px);
}

/* ===== Footer Contact ===== */
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-contact li i {
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== Footer Bottom ===== */
.footer-bottom {
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.copyright strong {
    color: var(--white);
    font-weight: 700;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== App Download Section ===== */
.app-downloads {
    margin-top: 25px;
}

.app-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-weight: 600;
}

.app-buttons {
    display: flex;
    gap: 10px;
}

.app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.app-btn img {
    height: 35px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(1);
    transition: var(--transition);
}

.app-btn span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.app-btn:hover img {
    opacity: 1;
    filter: grayscale(0);
}


/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(52, 73, 152, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(52, 73, 152, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ===== RESPONSIVE - Mobile ===== */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 40px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 35px;
    }

    .footer-logo {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .footer-logo i {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .footer-social {
        gap: 10px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links li a,
    .footer-contact li {
        font-size: 0.9rem;
    }

    .footer-contact {
        gap: 12px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .copyright {
        font-size: 0.9rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-bottom-links a {
        font-size: 0.85rem;
    }

    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding-top: 35px;
    }

    .footer-main {
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-logo i {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    .footer-description {
        font-size: 0.85rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-links li a,
    .footer-contact li {
        font-size: 0.85rem;
    }

    .scroll-to-top {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        bottom: 15px;
        left: 15px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.6s ease backwards;
}

.footer-column:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.4s;
}