/* ==========================================================================
   MG Education & Social Development Organization
   Premium Footer Stylesheet (Physics Wallah Inspired)
   ========================================================================== */

/* Footer Variables & Main Wrapper */
:root {
    --footer-bg: #090d16;
    --footer-card-bg: #121824;
    --footer-text-primary: #ffffff;
    --footer-text-secondary: #94a3b8;
    --footer-accent-blue: #0284c7;
    --footer-accent-green: #22c55e;
    --footer-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 70px 0 0 0;
    border-top: 1px solid var(--footer-border);
    position: relative;
    overflow: hidden;
}

/* Background Glowing Accents */
.main-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(9, 13, 22, 0) 70%);
    pointer-events: none;
}

.main-footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, rgba(9, 13, 22, 0) 70%);
    pointer-events: none;
}

/* Footer Container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Upper Section - Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Branding Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    background-color: #fff;
    padding: 2px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--footer-text-primary);
    letter-spacing: 0.5px;
}

.footer-about {
    font-size: 13.5px;
    color: var(--footer-text-secondary);
}

/* Social Media Channels */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background-color: var(--footer-accent-blue);
    color: var(--footer-text-primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    border-color: var(--footer-accent-blue);
}

.social-btn.facebook:hover {
    background-color: #3b5998;
    border-color: #3b5998;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.4);
}

.social-btn.youtube:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.social-btn.twitter:hover {
    background-color: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.social-btn.linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* Nav Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--footer-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--footer-accent-blue);
    border-radius: 2px;
}

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

.footer-links li a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a i {
    font-size: 10px;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

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

.footer-links li a:hover i {
    opacity: 1;
    color: var(--footer-accent-blue);
    transform: translateX(2px);
}

/* Contact Info Column Extra Styling */
.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-item i {
    color: var(--footer-accent-blue);
    font-size: 16px;
    margin-top: 4px;
}

.contact-text a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-text a:hover {
    color: var(--footer-text-primary);
}

/* App Download Badges Section */
.footer-apps {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apps-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--footer-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-badges {
    display: flex;
    gap: 12px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--footer-card-bg);
    color: var(--footer-text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--footer-border);
    transition: var(--transition-smooth);
}

.app-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--footer-accent-blue);
    transform: translateY(-2px);
}

.app-btn i {
    font-size: 24px;
}

.app-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-desc {
    font-size: 9px;
    color: var(--footer-text-secondary);
    text-transform: uppercase;
}

.app-name {
    font-size: 13px;
    font-weight: 600;
}

/* Separator Line */
.footer-divider {
    height: 1px;
    background-color: var(--footer-border);
    width: 100%;
}

/* Bottom Bar */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    border-top: 1px solid var(--footer-border);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 13px;
}

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

.legal-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-links li a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.legal-links li a:hover {
    color: var(--footer-text-primary);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 2;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: span 1;
        align-items: center;
        text-align: center;
    }

    .footer-about {
        max-width: 450px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .contact-item i {
        margin-top: 0;
    }

    .app-badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}
