/*==============================================
    Modern Footer Styles
===============================================*/

/* Main Footer Container */
.site-footer {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #0f0e1a 0%, #1a1930 50%, #131222 100%);
    z-index: 1;
    overflow: hidden;
}

/* Decorative background pattern */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(11, 77, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(11, 77, 136, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.site-footer__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Top Section */
.site-footer__top {
    position: relative;
    display: block;
    z-index: 1;
}

.site-footer__top-inner {
    position: relative;
    display: block;
    padding: 80px 0 60px;
}

/* About Widget */
.footer-widget__about {
    position: relative;
    display: block;
    padding-right: 30px;
}

.footer-widget__about-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.footer-widget__about-logo:hover {
    transform: translateY(-4px);
}

.footer-widget__about-logo img {
    max-height: 60px;
    width: auto;
}

.footer-widget__about-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.8;
    padding-bottom: 30px;
}

/* Widget Titles */
.footer-widget__title {
    position: relative;
    display: block;
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--mauno-base), transparent);
    border-radius: 2px;
}

/* Links Widget */
.footer-widget__links {
    position: relative;
    display: block;
}

.footer-widget__links-list {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
}

.footer-widget__links-list li {
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.footer-widget__links-list li:hover {
    transform: translateX(8px);
}

.footer-widget__links-list li a {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    display: inline-block;
    text-transform: capitalize;
    font-size: 15px;
    transition: all 0.3s ease;
    padding-left: 20px;
}

.footer-widget__links-list li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--mauno-base);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-widget__links-list li a:hover {
    color: #ffffff;
    padding-left: 20px;
}

.footer-widget__links-list li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Services Widget */
.footer-widget__services {
    position: relative;
    display: block;
}

/* Contact Widget */
.footer-widget__contact {
    position: relative;
    display: block;
}

.footer-widget__contact-list {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
}

.footer-widget__contact-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.footer-widget__contact-list li:hover {
    transform: translateX(6px);
}

.footer-widget__contact-list li .icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(11, 77, 136, 0.15);
    border: 2px solid rgba(11, 77, 136, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-widget__contact-list li:hover .icon {
    background: var(--mauno-base);
    border-color: var(--mauno-base);
    transform: rotate(360deg);
}

.footer-widget__contact-list li .icon i {
    font-size: 18px;
    color: #ffffff;
}

.footer-widget__contact-list li p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding-top: 4px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-widget__contact-list li p a {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-widget__contact-list li p a:hover {
    color: var(--mauno-base);
}

/* White icons for footer */
.footer-icon-white {
    color: #fff !important;
    font-size: 18px;
    transition: color 0.3s ease;
}

/* Bottom Section */
.site-footer__bottom {
    position: relative;
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.site-footer__bottom-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.site-footer__copyright {
    position: relative;
    display: block;
    text-align: center;
}

.site-footer__copyright-text {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.site-footer__copyright-text a {
    color: var(--mauno-base);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.site-footer__copyright-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mauno-base);
    transition: width 0.3s ease;
}

.site-footer__copyright-text a:hover {
    color: #ffffff;
}

.site-footer__copyright-text a:hover::after {
    width: 100%;
}

/* Social Media Icons (if needed) */
.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(11, 77, 136, 0.15);
    border: 2px solid rgba(11, 77, 136, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--mauno-base);
    border-color: var(--mauno-base);
    transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .site-footer__top-inner {
        padding: 60px 0 40px;
    }

    .footer-widget__about {
        padding-right: 15px;
        margin-bottom: 40px;
    }

    .footer-widget__links,
    .footer-widget__services,
    .footer-widget__contact {
        margin-bottom: 40px;
    }
}

@media (max-width: 991px) {
    .site-footer__top-inner {
        padding: 50px 0 30px;
    }

    .footer-widget__title {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .footer-widget__about-text {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .site-footer__top-inner {
        padding: 40px 0 20px;
    }

    .footer-widget__about,
    .footer-widget__links,
    .footer-widget__services,
    .footer-widget__contact {
        margin-bottom: 35px;
        padding-right: 0;
    }

    .footer-widget__title {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .site-footer__bottom-inner {
        padding: 24px 0;
    }

    .site-footer__copyright-text {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .site-footer__top-inner {
        padding: 35px 0 15px;
    }

    .footer-widget__about-logo img {
        max-height: 50px;
    }

    .footer-widget__contact-list li {
        margin-bottom: 20px;
    }

    .footer-widget__contact-list li .icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Performance optimizations */
.footer-widget__about-logo,
.footer-widget__links-list li,
.footer-widget__contact-list li,
.footer-social a {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth scrolling effect */
.site-footer * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
