/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    position: relative;
    color: var(--light-color);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

/* Floating shapes for footer */
.footer-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-floating-shapes div {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: footerFloat 10s ease-in-out infinite;
}

.footer-shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.footer-shape-2 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 10%;
    animation-delay: -3s;
}

.footer-shape-3 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 5%;
    animation-delay: -6s;
}

.footer-shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-delay: -2s;
}

@keyframes footerFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(90deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
    }
}

.footer-main {
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .footer-logo {
        max-height: 50px;
    }
}

.footer-widget h5 {
    color: var(--light-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 500;
}

[dir="rtl"] .footer-widget h5::after {
    right: 0;
}

[dir="ltr"] .footer-widget h5::after {
    left: 0;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links li, .contact-info li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.footer-links a:hover {
    color: white;
    padding-right: 1.25rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: white !important;
    font-size: 1.25rem;
    margin-left: 2rem;
    margin-top: 0.25rem;
}

.contact-info span {
    color: white;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.footer-bottom {
    background-color: white;
    border-top: 1px solid rgba(40, 16, 64, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--primary-color);
    margin: 0;
    font-size: 0.8rem;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-floating-shapes div {
        opacity: 0.5;
    }

    .footer-shape-1 {
        width: 80px;
        height: 80px;
    }

    .footer-shape-2 {
        width: 60px;
        height: 60px;
    }

    .footer-shape-3 {
        width: 40px;
        height: 40px;
    }

    .footer-shape-4 {
        width: 70px;
        height: 70px;
    }
}

/* Social Links in Footer */
.footer .social-links {
    display: flex;
    gap: 1rem;
}

.footer .social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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