/**
 * Footer & WhatsApp CSS
 */

.xtech-footer {
    background: var(--xtech-bg-elevated);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 5rem;
    margin-top: 4rem;
}

.xtech-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.xtech-footer__about {
    padding-right: 2rem;
}

.xtech-footer__logo {
    margin-bottom: 1.5rem;
}

.xtech-footer__logo img {
    height: 40px;
}

.xtech-footer__logo-text {
    font-family: var(--xtech-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.xtech-footer__logo-text span {
    color: var(--xtech-primary);
}

.xtech-footer__about-text {
    color: var(--xtech-text-secondary);
    margin-bottom: 2rem;
}

/* Social Links */
.xtech-footer__social {
    display: flex;
    gap: 1rem;
}

.xtech-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--xtech-text-secondary);
    transition: all 0.3s ease;
}

.xtech-footer__social-link svg {
    width: 18px;
    height: 18px;
}

.xtech-footer__social-link:hover {
    background: var(--xtech-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Columns */
.xtech-footer__heading {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.xtech-footer__links,
.xtech-footer-widget ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.xtech-footer__link,
.xtech-footer-widget ul li a {
    color: var(--xtech-text-muted);
    transition: color 0.3s ease;
}

.xtech-footer__link:hover,
.xtech-footer-widget ul li a:hover {
    color: var(--xtech-primary);
}

/* Contact Info */
.xtech-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--xtech-text-muted);
}

.xtech-footer__contact-icon {
    color: var(--xtech-primary);
    margin-top: 0.25rem;
}

.xtech-footer__contact-icon svg {
    width: 18px;
    height: 18px;
}

.xtech-footer__contact-item a {
    color: inherit;
}

.xtech-footer__contact-item a:hover {
    color: var(--xtech-primary);
}

/* Bottom Bar */
.xtech-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.xtech-footer__copyright {
    color: var(--xtech-text-muted);
    font-size: 0.875rem;
}

.xtech-footer__bottom-links {
    display: flex;
    gap: 1.5rem;
}

.xtech-footer__bottom-link {
    color: var(--xtech-text-muted);
    font-size: 0.875rem;
}

.xtech-footer__bottom-link:hover {
    color: var(--xtech-primary);
}

/* WhatsApp Floating Button */
.xtech-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.xtech-whatsapp__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #128c7e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.xtech-whatsapp__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.xtech-whatsapp:hover .xtech-whatsapp__tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.xtech-whatsapp__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: transform 0.3s ease;
}

.xtech-whatsapp__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

.xtech-whatsapp__btn:hover {
    transform: scale(1.1);
}

.xtech-whatsapp__btn svg {
    width: 32px;
    height: 32px;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
