/* Footer Styles */
footer {
    background: linear-gradient(135deg, #001d3d 0%, #000814 100%);
    color: white;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0, 180, 216, 0.3);
    width: 100%;
    margin-top: auto; /* This pushes footer to bottom */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #00b4d8;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section p, .footer-section a {
    color: #ccc;
    line-height: 1.6;
    text-decoration: none;
}

.footer-section a:hover {
    color: #90e0ef;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-contact div {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: #00b4d8;
    margin-right: 10px;
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #00b4d8;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 180, 216, 0.2);
    color: #90e0ef;
}

/* Ensure proper layout */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.whatsapp-btn svg {
    color: white !important;
    width: 32px;
    height: 32px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation: none; /* Stop pulse on hover */
}

/* Pulsing Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Speech Bubble Tooltip */
.whatsapp-tooltip {
    position: relative;
    display: none; /* Hidden by default, shown on hover */
}

.whatsapp-float:hover .whatsapp-tooltip {
    display: block;
    animation: fadeIn 0.3s ease;
}

.speech-bubble {
    position: relative;
    background: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 200px;
    text-align: center;
    margin-bottom: 10px;
    margin-right: 10px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* New Message Badge */
.new-message-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF3B30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1s infinite alternate;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .speech-bubble {
        font-size: 13px;
        padding: 10px 14px;
        max-width: 180px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .speech-bubble {
        display: none; /* Hide speech bubble on very small screens */
    }
}

/* Always show speech bubble on mobile (alternative) */
@media (max-width: 768px) {
    .whatsapp-tooltip {
        display: block !important;
        opacity: 0.9;
    }
    
    .whatsapp-float:hover .whatsapp-tooltip {
        animation: none;
    }
}