.footer {
    background-color: var(--dark);
    color: var(--text-secondary);
    position: relative;
    z-index: 1000; /* Lower z-index than chat */
}

/* Top Section */
.footer-top {
    background: linear-gradient(to right, var(--bg-dark), var(--dark));
    border-bottom: 1px solid rgba(63, 193, 201, 0.2);
    padding: 2rem 0;
}

.footer-logo .gradient-icon {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-tagline {
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Middle Section */
.footer-middle {
    border-bottom: 1px solid #415A77;
    padding: 2rem 0;
}

.footer-brand .brand-icon {
    color: #3FC1C9;
    font-size: 1.8rem;
}

.footer-heading {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-size: 1.1rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links a i {
    color: var(--primary);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: rotate(45deg);
}

/* Contact Info Styling */
.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info i {
    color: #3FC1C9;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.map-link {
    color: #3FC1C9;
    font-size: 0.8rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form .input-group {
    background: var(--bg-dark);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid rgba(63, 193, 201, 0.2);
}

.newsletter-form .form-control {
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding-left: 1.5rem;
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    margin: 2px;
}

.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(63, 193, 201, 0.25);
}

.contact-info {
    font-size: 0.85rem;
}

.contact-info i {
    color: #3FC1C9;
}

.footer-bottom {
    background: var(--dark);
    border-top: 1px solid rgba(63, 193, 201, 0.2);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1000; /* Lower z-index than chat widget */
}

.legal-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-links li:not(:last-child) {
    margin-right: 1.5rem;
}

.legal-links a {
    color: #C5C6C7;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 100px; /* Move to the left of chat widget */
    background: linear-gradient(45deg, var(--primary), var(--success));
    color: var(--light);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(63, 193, 201, 0.4);
}

.language-selector {
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
}

.language-selector select {
    color: #C5C6C7;
    border: 1px solid #415A77;
    padding: 0.25rem 1rem;
}

.language-selector select option {
    background-color: #0A192F;
    color: #C5C6C7;
}

@media (max-width: 768px) {
    .footer-bottom {
        text-align: center;
    }
    
    .language-selector {
        margin-top: 1rem;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}
