/* Footer Styles */

.footer-section {
    position: relative;
    background-color: #1a202c; /* bg-gray-900 */
    color: #ffffff;
    padding: 5rem 1rem 2rem;
    overflow: hidden;
    font-family: Tajawal, sans-serif;
    z-index: 10;
}

@media (max-width: 640px) {
    /* Enhanced Mobile Footer Design */
    .footer-section {
        padding: 1.2rem 0.5rem 1rem;
        font-size: 0.95rem;
        min-width: 0;
        box-sizing: border-box;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
    }
    .footer-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
        pointer-events: none;
        z-index: 1;
    }
    .footer-background {
        display: none !important;
    }
    .container {
        position: relative;
        z-index: 10;
        padding: 0;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
    }
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .grid > div:first-child {
        text-align: center;
        padding: 1.2rem 0.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        margin-bottom: 1rem;
    }
    .flex.items-center.mb-6 {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    .flex.items-center.mb-6 .w-12.h-12 {
        width: 3rem;
        height: 3rem;
        margin-right: 0.7rem;
        box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
        animation: pulse-glow 2s ease-in-out infinite alternate;
    }
    .flex.items-center.mb-6 img {
        max-width: 100%;
        height: auto;
    }
    @keyframes pulse-glow {
        0% { box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3); }
        100% { box-shadow: 0 12px 48px rgba(99, 102, 241, 0.5); }
    }
    .footer-section .flex.items-center.mb-6 span {
        font-size: 2.5rem;
        font-weight: 900;
        background: linear-gradient(135deg, #6366f1, #9333ea, #3b82f6);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    .grid > div:first-child p {
        font-size: 0.98rem;
        line-height: 1.6;
        color: #cbd5e1;
        margin: 0;
        padding: 0 0.5rem;
    }
    .grid > div:not(:first-child) {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 0.8rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        transition: all 0.3s ease;
    }
    .grid > div:not(:first-child):hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(99, 102, 241, 0.3);
        transform: translateY(-2px);
    }
    .footer-heading {
        font-size: 1.15rem;
        font-weight: 900;
        margin-bottom: 1rem;
        color: #fff;
        background: none;
        background-clip: unset;
        -webkit-background-clip: unset;
        text-align: center;
        position: relative;
        text-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 0 #6366f1;
        letter-spacing: 0.5px;
    }
    .footer-heading::after {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2rem;
        height: 2px;
        background: linear-gradient(135deg, #6366f1, #9333ea);
        border-radius: 1px;
    }
    .footer-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-list li {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    .footer-list li:hover {
        background: rgba(99, 102, 241, 0.1);
        border-color: rgba(99, 102, 241, 0.3);
        transform: translateX(0.5rem);
    }
    .footer-list a {
        display: block;
        font-size: 0.98rem;
        padding: 0.7rem 0.7rem;
        color: #e2e8f0;
    }
    .footer-newsletter-form input[type="email"] {
        padding: 0.5rem 0.7rem;
        font-size: 0.98rem;
    }
    .footer-newsletter-form button {
        padding: 0.5rem 1rem;
        font-size: 0.98rem;
    }
    .footer-bottom {
        padding-top: 1rem;
        margin-top: 2rem;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-links {
        gap: 0.7rem;
        flex-wrap: wrap;
    }
}

.footer-background {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.footer-background .circle1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: linear-gradient(to bottom right, #6366f1, #9333ea);
    border-radius: 50%;
    transform: translate(-12rem, -12rem);
}

.footer-background .circle2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
    border-radius: 50%;
    transform: translate(8rem, 8rem);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #6366f1, #9333ea);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-list a {
    display: flex;
    align-items: center;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-list a:hover {
    color: #ffffff;
    transform: translateX(0.25rem);
}

.footer-newsletter-form {
    display: flex;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    color: #ffffff;
    border-right: none;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    transition: box-shadow 0.3s ease;
}

.footer-newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px #6366f1;
}

.footer-newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #6366f1, #9333ea);
    color: #ffffff;
    border: none;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-newsletter-form button:hover {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 4rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9ca3af;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    margin: 0 0 1rem 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6366f1;
}
