/*===============================================
  MODERN FOOTER STYLES
  Professional & Responsive Footer Design
===============================================*/

/* Main Footer Container */
.main-footer {
    position: relative;
    width: 100%;
    background: #1a1a2e;
    color: #b8b8c8;
    padding-top: 80px;
    overflow: hidden;
}

/* Footer Wave Animation */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: #fff;
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

/* Footer Widget */
.footer-widget {
    margin-bottom: 30px;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* Footer Description */
.footer-desc {
    color: #b8b8c8;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
}

/* Footer Title */
.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #b8b8c8;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: #4facfe;
    padding-left: 5px;
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

/* Footer Contact */
.footer-contact {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 15px;
}

.contact-item i {
    color: #4facfe;
    font-size: 18px;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item .contact-text {
    flex: 1;
}

.contact-item .contact-text span,
.contact-item .contact-text a {
    color: #b8b8c8;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item .contact-text a:hover {
    color: #4facfe;
}

/* Footer Social Media */
.footer-social {
    margin-top: 30px;
}

.footer-social h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-links li a:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

/* Newsletter */
.footer-newsletter {
    margin-top: 30px;
}

.footer-newsletter h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-newsletter p {
    color: #b8b8c8;
    font-size: 13px;
    margin-bottom: 15px;
}

.newsletter-form {
    position: relative;
}

.newsletter-input {
    position: relative;
    display: flex;
    gap: 0;
}

.newsletter-input input {
    flex: 1;
    padding: 14px 60px 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4facfe;
}

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

.btn-newsletter {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-newsletter:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

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

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copyright {
    margin: 0;
}

.copyright p {
    color: #b8b8c8;
    font-size: 14px;
    margin: 0;
    padding: 0;
    text-align: left;
}

.copyright strong {
    color: #fff;
    font-weight: 600;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: #b8b8c8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #4facfe;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
.to-top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.3);
}

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

.to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
}

/* Responsive Styles */
@media only screen and (max-width: 991px) {
    .main-footer {
        padding-top: 60px;
    }
    
    .footer-wave svg {
        height: 40px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .copyright p {
        text-align: center;
    }
    
    .footer-bottom-right {
        flex-direction: column;
        gap: 15px;
    }
}

@media only screen and (max-width: 767px) {
    .main-footer {
        padding-top: 50px;
    }
    
    .footer-content {
        padding-bottom: 30px;
    }
    
    .footer-logo img {
        max-height: 40px;
    }
    
    .footer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .footer-social-links {
        justify-content: flex-start;
    }
    
    .to-top-btn {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media only screen and (max-width: 575px) {
    .footer-wave svg {
        height: 30px;
    }
    
    .footer-desc {
        font-size: 13px;
    }
    
    .footer-links li a {
        font-size: 13px;
    }
    
    .contact-item .contact-text span,
    .contact-item .contact-text a {
        font-size: 13px;
    }
    
    .newsletter-input input {
        padding: 12px 55px 12px 18px;
        font-size: 13px;
    }
    
    .btn-newsletter {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Dark Mode Specific Adjustments */
.dark-bg.main-footer {
    background: #16213e;
}

/* Animation for Footer on Load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-footer .footer-widget {
    animation: fadeInUp 0.6s ease-out backwards;
}

.main-footer .col-lg-4:nth-child(1) .footer-widget {
    animation-delay: 0.1s;
}

.main-footer .col-lg-2:nth-child(2) .footer-widget,
.main-footer .col-lg-4:nth-child(2) .footer-widget {
    animation-delay: 0.2s;
}

.main-footer .col-lg-2:nth-child(3) .footer-widget,
.main-footer .col-lg-4:nth-child(3) .footer-widget {
    animation-delay: 0.3s;
}

.main-footer .col-lg-4:nth-child(4) .footer-widget {
    animation-delay: 0.4s;
}
