
/*----------------------------------------*/
/*  27. footer css start
/*----------------------------------------*/

/* Main footer styles */
.tp-footer-area {
    contain: layout style paint;
    will-change: transform;
}

.tp-footer-space {
    padding-top: 110px;
}

/* Footer clip shape */
.footer-clip-shape {
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    z-index: 2;
}

.footer-clip-shape svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer content */
.tp-footer-description {
    font-size: 16px;
    color: var(--tp-common-white);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer logo */
.footer-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* Social links */
.footer-social-link {
    color: var(--tp-common-white);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    color: var(--tp-theme-1);
    background: var(--tp-common-white);
    transform: translateY(-2px);
}

.footer-social-link[data-color]:hover {
    color: attr(data-color);
}

/* Footer navigation */
.footer-nav-link {
    color: var(--tp-common-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.footer-nav-link:hover {
    color: var(--tp-theme-1);
}

.footer-nav-link[data-color]:hover {
    color: attr(data-color);
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--tp-theme-1);
    transition: width 0.3s ease;
}

.footer-nav-link:hover::after {
    width: 100%;
}

/* Copyright text */
.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
}

/* Scroll to top button */
.scroll-top {
    width: 50px;
    height: 50px;
    line-height: 50px;
    position: fixed;
    bottom: -10%;
    right: 50px;
    font-size: 16px;
    border-radius: 6px;
    z-index: 99;
    color: var(--tp-common-white);
    text-align: center;
    cursor: pointer;
    background: var(--tp-theme-1);
    transition: all 0.3s ease;
    border: none;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
}

.scroll-top::after {
    position: absolute;
    z-index: -1;
    content: "";
    top: 100%;
    left: 5%;
    height: 10px;
    width: 90%;
    opacity: 1;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 80%);
}

.scroll-top.open {
    bottom: 30px;
}

/* Responsive design */
@media (max-width: 991.98px) {
    .tp-footer-space {
        padding-top: 80px;
    }

    .footer-logo img {
        max-width: 120px;
    }

    .tp-footer-description {
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .tp-footer-space {
        padding-top: 60px;
    }

    .scroll-top {
        right: 20px;
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 14px;
    }

    .footer-social-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .footer-clip-shape {
        top: -1px;
    }

    .tp-copyright-area {
        text-align: center;
    }

    .footer-nav {
        margin-top: 20px;
    }
}

/* Performance optimizations */
.tp-footer-area * {
    box-sizing: border-box;
}
.tp-copyright-area {
    padding: 40px 0;
    border-top: 1px solid #6b6b6b1f;
    margin-top: 40px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .footer-social-link,
    .footer-nav-link,
    .scroll-top {
        transition: none;
    }

    .scroll-top:hover {
        transform: none;
    }
}