/* Modern Footer Styles */
.footer {
    position: relative;
    color: #fff;
    font-family: "Poppins", sans-serif;
    margin-top: -1px; /* Fix gap between sections and footer */
}

.footer-wave-top {
    color: #2a2f4f;
    display: block;
    width: 100%;
    line-height: 0;
    margin-bottom: -5px; /* Fix gap between wave and footer content */
    position: relative;
    z-index: 2;
}

/* Main Footer Content */
.footer-main {
    background: linear-gradient(135deg, #2a2f4f 0%, #4b56d2 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 30px 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #fff;
    position: relative;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: #82c3ec;
    border-radius: 50%;
    margin-left: 3px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.footer-tagline {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.6;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #82c3ec;
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.2rem;
    color: #82c3ec;
    width: 25px;
    text-align: center;
}

/* Footer Navigation */
.footer-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: #fff;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #82c3ec;
    border-radius: 3px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.footer-link i {
    font-size: 0.8rem;
    color: #82c3ec;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #82c3ec;
    transform: translateX(8px);
}

.footer-link:hover i {
    transform: translateX(3px);
}

/* Footer Social Media */
.social-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.social-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #82c3ec;
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon:hover::before {
    transform: scale(1);
}

.icon-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.social-icon:hover .icon-inner {
    animation: iconBounce 0.5s;
}

@keyframes iconBounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Footer Newsletter */
.newsletter-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form .form-group {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50px;
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    border: none;
    background: #82c3ec;
    color: #fff;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #4b56d2;
}

.newsletter-form button i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 20px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #82c3ec;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 840px;
    right: 50px;
    width: 70px;
    height: 70px;
    background: #4b56d2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #82c3ec;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.back-to-top:hover i {
    animation: arrowUp 0.5s infinite alternate;
}

@keyframes arrowUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-wave-top {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 50px 20px 30px;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .footer-wave-top {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .footer-heading {
        font-size: 1.2rem;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .footer-wave-top {
        height: 60px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}
