/* Enhanced Footer Styles */

/* Footer Top Section with Gradient */
.footer-top {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f3e9f4 0%, #e0f7f6 100%);
}

.footer-top::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(89, 34, 96, 0.03) 0%, transparent 70%);
    animation: footerPulse 15s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
}

.footer-decorative-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.footer-decorative-blur-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #592260 0%, #00a89c 100%);
}

.footer-decorative-blur-2 {
    bottom: 10%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #00a89c 0%, #592260 100%);
}

/* Footer Logo Animation */
.footer-logo-wrapper {
    position: relative;
    display: inline-block;
}

.footer-logo-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #592260, #00a89c, transparent);
    border-radius: 2px;
    animation: logoUnderline 3s ease-in-out infinite;
}

@keyframes logoUnderline {
    0%, 100% { width: 60px; opacity: 0.6; }
    50% { width: 100px; opacity: 1; }
}

.footer-logo {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(89, 34, 96, 0.2));
}

/* Enhanced Social Icons */
.social-icon-wrapper {
    position: relative;
    display: inline-block;
}

.social-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(89, 34, 96, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #592260 0%, #00a89c 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.social-icon svg {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(89, 34, 96, 0.3);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover svg {
    color: white !important;
    transform: rotate(360deg);
}

/* Footer Main Section */
.footer-main {
    position: relative;
    background-color: var(--footer-dark-color);
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00a89c, #592260, #00a89c, transparent);
}

/* Footer Column Enhancements */
.footer-column {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }
.footer-column:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column-title {
    position: relative;
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #00a89c;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00a89c, transparent);
    transition: width 0.3s ease;
}

.footer-column:hover .footer-column-title::after {
    width: 60px;
}

/* Footer Links */
.footer-link {
    position: relative;
    display: inline-block;
    color: #d1d5db;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a89c, #592260);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #00a89c;
    padding-left: 15px;
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 10px;
}

/* Contact Info Items */
.footer-contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.footer-contact-item:hover {
    background: rgba(0, 168, 156, 0.1);
    transform: translateX(5px);
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #592260 0%, #00a89c 100%);
    border-radius: 0.5rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    transform: rotate(5deg) scale(1.1);
}

/* Insurance Provider Card */
.insurance-provider-card {
    position: relative;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.insurance-provider-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(89, 34, 96, 0.05) 0%, rgba(0, 168, 156, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.insurance-provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(89, 34, 96, 0.2);
}

.insurance-provider-card:hover::before {
    opacity: 1;
}

.insurance-provider-logo {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.insurance-provider-card:hover .insurance-provider-logo {
    transform: scale(1.05);
}

/* Newsletter Section */
.footer-newsletter {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #00a89c;
    box-shadow: 0 0 0 3px rgba(0, 168, 156, 0.1);
}

.newsletter-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #592260 0%, #00a89c 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 156, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-developer-link {
    color: #00a89c;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-developer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a89c, #592260);
    transition: width 0.3s ease;
}

.footer-developer-link:hover {
    color: #592260;
}

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

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(0, 168, 156, 0.1);
    transform: translateY(-2px);
}

.trust-badge-icon {
    color: #00a89c;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #592260 0%, #00a89c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(89, 34, 96, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(89, 34, 96, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-column {
        text-align: center;
    }
    
    .footer-column-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-link::before {
        display: none;
    }
    
    .footer-link:hover {
        padding-left: 0;
        transform: translateX(0);
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .newsletter-input-wrapper {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .trust-badges {
        gap: 1rem;
    }
    
    .trust-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .footer-top {
        background: linear-gradient(135deg, #1a0a1d 0%, #0a1a1a 100%);
    }
    
    .insurance-provider-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Print Styles */
@media print {
    .footer-decorative-blur,
    .scroll-to-top,
    .footer-newsletter {
        display: none;
    }
}
