/* Unified Footer Styles with Theme Support */
:root {
    --footer-bg: linear-gradient(to top, #000000 0%, #030712 100%);
    --footer-text: #9ca3af;
    --footer-title: #ffffff;
    --footer-primary: #38bdf8;
    --footer-border: rgba(255, 255, 255, 0.05);
}

.glass-footer {
    width: 100%;
    margin-top: 50px;
    padding: 80px 20px 40px;
    background: var(--footer-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--footer-border);
    position: relative;
    z-index: 10;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.footer-image {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid var(--footer-primary);
}

.footer-logo h3 {
    color: var(--footer-primary);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.footer-desc {
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section h4 {
    color: var(--footer-title);
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin: 0;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--footer-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.footer-links li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links li a:hover {
    color: var(--footer-primary);
    transform: translateX(-5px);
}

.contact-info p {
    color: var(--footer-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--footer-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--footer-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-section:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-section:first-child {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
