/* ============================================
   FOOTER - FANCY FADING FOOTER
   Fades in from CTA section with blur and gradient mask
   ============================================ */

footer {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 1) 15%, #f8fafc 100%);
    color: #334155;
    padding: 100px 5% 50px;
    position: relative;
    margin-top: -100px;
    overflow: hidden;
    z-index: 500;
}

/* Subtle gradient overlay for depth */
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.02) 0%,
        transparent 50%,
        rgba(16, 185, 129, 0.02) 100%
    );
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Fancy Fading Backdrop - the key element! Creates blur effect */
.backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(0, 0, 0, 0.6) 20%,
        rgba(0, 0, 0, 0.9) 30%,
        rgb(0, 0, 0) 40%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(0, 0, 0, 0.6) 20%,
        rgba(0, 0, 0, 0.9) 30%,
        rgb(0, 0, 0) 40%
    );
}

footer > .container {
    position: relative;
    z-index: 1;
}

/* Dark Theme - Professional dark footer */
body.dark-theme footer {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 1) 15%, #0a0a0a 100%);
    color: #cbd5e1;
}

body.dark-theme footer::before {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.03) 0%,
        transparent 50%,
        rgba(52, 211, 153, 0.03) 100%
    );
}

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

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Brand Column */
.footer-brand {
    gap: 1.5rem;
}

.footer-logo-img {
    width: 180px;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.02);
}

body.dark-theme .footer-logo-img {
    filter: brightness(1.1);
}

.footer-tagline {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 350px;
    margin: 0;
}

body.dark-theme .footer-tagline {
    color: #94a3b8;
}

/* Footer CTA Button */
.footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(72, 145, 86, 0.25);
    width: fit-content;
}

.footer-cta-button i {
    font-size: 1.1rem;
}

.footer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(72, 145, 86, 0.35);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
}

body.dark-theme .footer-cta-button {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    box-shadow: 0 6px 20px rgba(72, 145, 86, 0.4);
}

body.dark-theme .footer-cta-button:hover {
    box-shadow: 0 8px 28px rgba(72, 145, 86, 0.5);
}

/* Column Headings */
.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-theme .footer-col h4 {
    color: #f1f5f9;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-links li {
    line-height: 1.5;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #10b981;
}

body.dark-theme .footer-links a {
    color: #94a3b8;
}

body.dark-theme .footer-links a:hover {
    color: #34d399;
}

/* Social Icons - Clean & Professional */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
    transform: none !important;
}

.footer-social a:hover {
    background: var(--primary-green);
    color: white;
    transform: none !important;
    box-shadow: none !important;
}

body.dark-theme .footer-social a {
    background: #1e293b;
    color: #94a3b8;
}

body.dark-theme .footer-social a:hover {
    background: var(--primary-green);
    color: white;
    transform: none !important;
    box-shadow: none !important;
}

/* Footer Bottom - Professional styling */
.footer-bottom {
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

body.dark-theme .footer-bottom {
    border-top: 1px solid #334155;
}

body.dark-theme .footer-bottom p {
    color: #94a3b8;
}

/* Legal Links - Professional hover effects */
.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    font-weight: 400;
}

.footer-legal a:hover {
    color: #10b981;
}

body.dark-theme .footer-legal a {
    color: #94a3b8;
}

body.dark-theme .footer-legal a:hover {
    color: #34d399;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    footer {
        padding: 120px 5% 50px;
        margin-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-col {
        gap: 1rem;
    }

    .footer-logo-img {
        width: 150px;
    }

    .footer-tagline {
        font-size: 0.9375rem;
    }

    .footer-cta-button {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 2rem;
        margin-top: 2rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-social {
        justify-content: flex-start;
    }
}
