/* Footer Styles */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Tajawal', sans-serif;
}

.footer__top {
    padding: 70px 0 40px;
    position: relative;
    z-index: 2;
}

.footer__top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(10, 77, 140, 0.4) 0%, rgba(0, 26, 56, 0) 70%),
        radial-gradient(circle at 90% 90%, rgba(10, 77, 140, 0.3) 0%, rgba(0, 26, 56, 0) 70%);
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
}

.footer__bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.footer__logo {
    max-width: 180px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.footer__logo img {
    width: 100%;
    height: auto;
    filter: brightness(1.1);
}

.footer__about {
    line-height: 1.8;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 2;
}

.footer__quote {
    position: relative;
    padding-right: 15px;
    border-right: 3px solid var(--secondary);
    font-style: italic;
    font-weight: 500;
    color: var(--secondary-light);
    z-index: 2;
}

.footer__heading {
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    z-index: 2;
}

.footer__heading::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
    font-size: 15px;
    display: inline-block;
}

.footer__links a::before {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    transition: all 0.3s ease;
}

.footer__links a:hover {
    color: var(--secondary);
    padding-right: 20px;
}

.footer__links a:hover::before {
    right: 5px;
}

.footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.footer__contact li {
    display: flex;
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.footer__contact i {
    color: var(--secondary);
    margin-left: 12px;
    font-size: 16px;
    margin-top: 3px;
    min-width: 20px;
    text-align: center;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__contact a:hover {
    color: var(--secondary);
}

/* Fix for social icons */
.footer__social {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 5;
    margin-top: 20px !important;
}

.footer__social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 5;
    cursor: pointer;
}

.footer__social-link:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer__copyright {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 2;
}

/* Developer Credit Styles */
.footer__developer {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 2;
}

.footer__developer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer__developer a:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

.footer__developer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-light);
    transition: width 0.3s ease;
}

.footer__developer a:hover::after {
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 30px;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Particles */
.footer-particle {
    pointer-events: none !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .footer__top {
        padding: 50px 0 20px;
    }

    .footer__contact span {
        font-size: 14px;
    }

    .footer__developer {
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .footer__heading {
        margin-top: 30px;
    }

    .footer__bottom .row > div {
        text-align: center !important;
    }

    .footer__copyright,
    .footer__developer {
        margin-bottom: 10px;
    }

    .footer__developer {
        margin-top: 5px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 48px;
        height: 48px;
        bottom: 20px;
        left: 20px;
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .footer__top {
        padding: 40px 0 20px;
    }

    .footer__logo {
        max-width: 160px;
        margin: 0 auto 20px;
    }

    .footer__about,
    .footer__quote {
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__quote {
        border-right: none;
        border-bottom: 2px solid var(--secondary);
        padding: 0 0 10px 0;
        margin-bottom: 15px;
    }

    .footer__heading::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer__heading,
    .footer__links li {
        text-align: center;
    }

    .footer__links a::before {
        display: none;
    }

    .footer__contact {
        max-width: 280px;
        margin: 0 auto;
    }

    .footer__contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__contact i {
        margin: 0 0 8px 0;
    }
}