/* ===================================
   MODERN FOOTER WITH MEDICAL VECTORS
   =================================== */

.footer {
    position: relative;
    background: linear-gradient(135deg, #105c9d 0%, #0d4a7a 50%, #009688 100%);
    color: #ffffff;
    padding: 4rem 0 0;
    overflow: hidden;
}

/* Medical Vector Background */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Heartbeat Line */
        url("data:image/svg+xml,%3Csvg width='200' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 L40,50 L50,20 L60,80 L70,50 L200,50' stroke='rgba(255,255,255,0.05)' stroke-width='2' fill='none'/%3E%3C/svg%3E"),
        /* Medical Cross */
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40,0 L60,0 L60,40 L100,40 L100,60 L60,60 L60,100 L40,100 L40,60 L0,60 L0,40 L40,40 Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E"),
        /* DNA Helix */
        url("data:image/svg+xml,%3Csvg width='50' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='25' cy='20' rx='20' ry='5' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3Cellipse cx='25' cy='50' rx='20' ry='5' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3Cellipse cx='25' cy='80' rx='20' ry='5' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3C/svg%3E");
    background-position:
        10% 20%,
        80% 10%,
        90% 70%;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
}

/* Animated Medical Icons */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Stethoscope */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='20' r='15' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='3'/%3E%3Cpath d='M40,35 L40,60 Q40,70 50,70' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='3'/%3E%3C/svg%3E"),
        /* Pill */
        url("data:image/svg+xml,%3Csvg width='60' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='5' width='50' height='20' rx='10' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3Cline x1='30' y1='5' x2='30' y2='25' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3C/svg%3E");
    background-position:
        5% 60%,
        75% 80%;
    background-repeat: no-repeat;
    animation: float-medical 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float-medical {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #00ffcc, transparent);
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-logo i {
    font-size: 2rem;
    color: #00ffcc;
    animation: pulse 2s ease-in-out infinite;
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: #00ffcc;
    transform: translateX(5px);
}

.footer-section ul li i {
    color: #00ffcc;
    width: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: #00ffcc;
    border-color: #00ffcc;
    color: #105c9d;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00ffcc;
}

/* Decorative Elements */
.footer-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-decoration:nth-child(1) {
    top: -100px;
    right: -100px;
}

.footer-decoration:nth-child(2) {
    bottom: -100px;
    left: -100px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0;
    }

    .footer-links {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Scroll to Top Button Enhancement */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .whatsapp-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-button span {
        display: none;
    }

    .whatsapp-button i {
        font-size: 1.8rem;
    }
}