/*
 * Footer Styles
 * HalalahSite - Halala Plus
 * Modern Neon Design
 */

/* ============================================
   FOOTER MAIN CONTAINER
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0 0;
}

/* Pattern Overlay - Same as Hero Section */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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");
    pointer-events: none;
}

/* Top Glow Line - Simple and Clean */
.site-footer .footer-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   FOOTER CONTENT
   ============================================ */
.footer-content {
    position: relative;
    z-index: 1;
}

/* Logo Section */
.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Footer Description */
.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 350px;
}

/* ============================================
   SOCIAL MEDIA ICONS
   ============================================ */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #fff;
    color: var(--bs-halala3);
    transform: translateY(-3px);
}

/* ============================================
   FOOTER LINKS
   ============================================ */
.footer-links-section {
    margin-bottom: 30px;
}

.footer-links-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

[dir="rtl"] .footer-links-title::after,
[dir="RTL"] .footer-links-title::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-link i {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

[dir="rtl"] .footer-link i,
[dir="RTL"] .footer-link i {
    transform: translateX(10px);
}

.footer-link:hover {
    color: #fff !important;
    padding-left: 5px;
}

[dir="rtl"] .footer-link:hover,
[dir="RTL"] .footer-link:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-link:hover i {
    opacity: 1;
    transform: translateX(0);
    color: #fff;
}

/* ============================================
   FOOTER BOTTOM / COPYRIGHT
   ============================================ */
.footer-bottom {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom::before {
    display: none;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.copyright-text span {
    color: #fff;
    font-weight: 600;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bs-halala3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

[dir="rtl"] .back-to-top,
[dir="RTL"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--bs-halala4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Static floating particles at different positions */
.particle:nth-child(1) { 
    left: 5%; top: 20%; 
    width: 8px; height: 8px; 
    animation: floatMove 8s ease-in-out infinite;
}
.particle:nth-child(2) { 
    left: 15%; top: 60%; 
    width: 12px; height: 12px; 
    animation: floatMove 10s ease-in-out infinite;
    animation-delay: -2s;
}
.particle:nth-child(3) { 
    left: 25%; top: 40%; 
    width: 6px; height: 6px; 
    animation: floatMove 7s ease-in-out infinite;
    animation-delay: -4s;
}
.particle:nth-child(4) { 
    left: 40%; top: 70%; 
    width: 10px; height: 10px; 
    animation: floatMove 9s ease-in-out infinite;
    animation-delay: -1s;
}
.particle:nth-child(5) { 
    left: 55%; top: 30%; 
    width: 14px; height: 14px; 
    animation: floatMove 11s ease-in-out infinite;
    animation-delay: -3s;
}
.particle:nth-child(6) { 
    left: 65%; top: 80%; 
    width: 7px; height: 7px; 
    animation: floatMove 8s ease-in-out infinite;
    animation-delay: -5s;
}
.particle:nth-child(7) { 
    left: 75%; top: 50%; 
    width: 9px; height: 9px; 
    animation: floatMove 10s ease-in-out infinite;
    animation-delay: -2s;
}
.particle:nth-child(8) { 
    left: 85%; top: 25%; 
    width: 11px; height: 11px; 
    animation: floatMove 9s ease-in-out infinite;
    animation-delay: -6s;
}
.particle:nth-child(9) { 
    left: 92%; top: 65%; 
    width: 5px; height: 5px; 
    animation: floatMove 7s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes floatMove {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.25;
    }
    75% {
        transform: translateY(-25px) translateX(5px);
        opacity: 0.3;
    }
}

/* ============================================
   RISING PARTICLES - Straight up motion
   ============================================ */
.particle-rise {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: riseUp linear infinite;
}

.particle-rise:nth-child(10) {
    left: 5%;
    width: 10px;
    height: 10px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.particle-rise:nth-child(11) {
    left: 15%;
    width: 6px;
    height: 6px;
    animation-duration: 12s;
    animation-delay: -3s;
}

.particle-rise:nth-child(12) {
    left: 28%;
    width: 12px;
    height: 12px;
    animation-duration: 10s;
    animation-delay: -6s;
}

.particle-rise:nth-child(13) {
    left: 42%;
    width: 8px;
    height: 8px;
    animation-duration: 9s;
    animation-delay: -2s;
}

.particle-rise:nth-child(14) {
    left: 55%;
    width: 14px;
    height: 14px;
    animation-duration: 11s;
    animation-delay: -5s;
}

.particle-rise:nth-child(15) {
    left: 68%;
    width: 7px;
    height: 7px;
    animation-duration: 13s;
    animation-delay: -1s;
}

.particle-rise:nth-child(16) {
    left: 80%;
    width: 10px;
    height: 10px;
    animation-duration: 8s;
    animation-delay: -4s;
}

.particle-rise:nth-child(17) {
    left: 92%;
    width: 9px;
    height: 9px;
    animation-duration: 10s;
    animation-delay: -7s;
}

@keyframes riseUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-500px);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .site-footer {
        padding: 50px 0 0;
    }
    
    .footer-logo img {
        max-width: 150px;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-links-section {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
        text-align: center;
    }
    
    .footer-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    [dir="rtl"] .footer-links-title::after,
    [dir="RTL"] .footer-links-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .footer-link {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    [dir="rtl"] .back-to-top,
    [dir="RTL"] .back-to-top {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 576px) {
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .copyright-text {
        font-size: 0.85rem;
    }
}
