/* ========================================
   KINGWORK - Footer Styles
   Modern & Premium Design
   ======================================== */

/* Footer Base */
.footer {
    background: linear-gradient(180deg, #1a2332 0%, #0d1520 100%);
    color: #fff;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer > .container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 40px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 79, 110, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer Main Grid */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Footer Company Info */
.footer-company {
    padding-right: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    text-decoration: none;
}

.footer-logo img {
    height: 55px;
    border-radius: 10px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a8d4e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 79, 110, 0.4);
}

/* Footer Links */
.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: #fff;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #fff;
    transform: translateX(8px);
}

.footer-links ul li a i {
    font-size: 0.7rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover i {
    transform: translateX(3px);
}

/* Footer Contact */
.footer-contact {
    text-align: right;
}

.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: #fff;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45px;
    height: 3px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.contact-item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: flex-end;
}

.contact-item i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: var(--secondary-gradient);
    color: #fff;
    border-color: transparent;
    transform: scale(1.1);
}

.contact-item div {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: right;
}

.contact-item strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    text-align: right;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #fff;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 10px 40px rgba(13, 79, 110, 0.4);
    border: none;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 50px rgba(13, 79, 110, 0.5);
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-company {
        grid-column: span 3;
        padding-right: 0;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .footer {
        padding-top: 60px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-company {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding-top: 50px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-company {
        grid-column: span 1;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .footer-links ul li a {
        justify-content: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .contact-item div {
        text-align: center;
    }
    
    .contact-item strong {
        text-align: center;
    }

    .back-to-top {
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .footer-logo span {
        font-size: 1.5rem;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
    }
}
