/* =============================================
   MODERN FOOTER - Space/Futuristic Dark Theme
   ============================================= */

/* Footer Base - Dark gradient background */
.footer-modern {
    position: relative;
    background: linear-gradient(180deg, var(--primary-dark, #0c0a1d) 0%, #050208 100%);
    color: #f1f5f9;
    /* Slate 100 for high contrast */
    padding-bottom: 60px;
    margin-top: 0;
    overflow: hidden;
}

/* Glow effect on top border */
.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.5) 20%,
            rgba(236, 72, 153, 0.5) 50%,
            rgba(249, 115, 22, 0.3) 80%,
            transparent 100%);
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(139, 92, 246, 0.1);
}

/* Ambient glow background effect */
.footer-modern::after {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center,
            rgba(139, 92, 246, 0.08) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Footer curve - smooth transition */
.footer-curve {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 101px;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.footer-curve svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-content-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

/* =============================================
   CTA CARD - Glassmorphism Effect
   ============================================= */

.footer-cta-card {
    background: rgba(30, 26, 58, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl, 32px);
    padding: 60px 48px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-80px);
    margin-bottom: 0;
    overflow: hidden;
}

/* Glass shimmer effect */
.footer-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    animation: glass-shimmer 8s ease-in-out infinite;
}

@keyframes glass-shimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-main, #f8fafc);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-body, #a5b4c8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn-primary {
    background: var(--accent, #8b5cf6);
    color: white;
    padding: 16px 36px;
    border-radius: var(--radius-md, 16px);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    box-shadow:
        0 4px 14px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2);
}

.cta-content .btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent-dark, #7c3aed);
    box-shadow:
        0 8px 25px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
}

/* Decorative Shapes - Subtle for dark theme */
.shape {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
}

.shape-1 {
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: var(--accent, #8b5cf6);
    border-radius: 0 40px 0 0;
    transform: rotate(-15deg);
}

.shape-2 {
    bottom: -30px;
    right: 10%;
    width: 60px;
    height: 60px;
    background: var(--secondary, #f97316);
    border-radius: 50%;
    opacity: 0.1;
}

.shape-3 {
    top: 25%;
    right: -40px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--tertiary, #ec4899);
    transform: rotate(15deg);
}

.shape-4 {
    bottom: 25%;
    left: -30px;
    width: 50px;
    height: 50px;
    background: var(--accent-light, #a78bfa);
    transform: rotate(45deg);
    opacity: 0.1;
}

/* =============================================
   FOOTER GRID - CSS Grid Layout
   ============================================= */

.footer-modern .footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    padding-top: 40px;
}

.footer-modern .footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    /* Pure white for headers */
    position: relative;
}

/* Accent underline for column headers */
.footer-modern .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent, #8b5cf6);
    border-radius: 1px;
}

.footer-modern .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-modern .footer-col ul li {
    margin-bottom: 14px;
}

.footer-modern .footer-col ul li a {
    font-family: 'Inter', sans-serif;
    color: #cbd5e1;
    /* Slate 300 - much brighter than previous text-body */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-modern .footer-col ul li a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
    transform: translateX(4px);
}

/* Focus state for accessibility */
.footer-modern .footer-col ul li a:focus-visible {
    outline: 2px solid var(--accent, #8b5cf6);
    outline-offset: 4px;
    border-radius: 4px;
}

/* =============================================
   FOOTER BOTTOM - Brand & Social
   ============================================= */

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-area {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main, #f8fafc);
    letter-spacing: -0.02em;
}

/* Social Links with Glow */
.footer-modern .social-links {
    display: flex;
    gap: 16px;
}

.footer-modern .social-links a {
    color: var(--text-body, #a5b4c8);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-modern .social-links a:hover {
    color: var(--accent, #8b5cf6);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.footer-modern .social-links a:focus-visible {
    outline: 2px solid var(--accent, #8b5cf6);
    outline-offset: 2px;
}

/* Footer Legal */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
}

.footer-legal p {
    margin: 0;
}

.footer-legal a {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--accent, #8b5cf6);
}

.footer-legal a:focus-visible {
    outline: 2px solid var(--accent, #8b5cf6);
    outline-offset: 4px;
    border-radius: 4px;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet - Large */
@media (max-width: 1024px) {
    .footer-modern .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .footer-cta-card {
        margin-left: 24px;
        margin-right: 24px;
        padding: 48px 36px;
    }
}

/* Tablet - Small / Mobile */
@media (max-width: 768px) {
    .footer-modern .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }

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

    .footer-brand-area {
        flex-direction: column;
        gap: 20px;
    }

    .footer-cta-card {
        margin-left: 16px;
        margin-right: 16px;
        padding: 40px 24px;
        transform: translateY(-60px);
        border-radius: var(--radius-lg, 24px);
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .footer-modern {
        padding-bottom: 48px;
    }

    .footer-content-wrapper {
        padding-top: 40px;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* Mobile - Small */
@media (max-width: 480px) {
    .footer-modern .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-modern .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-cta-card {
        margin-left: 12px;
        margin-right: 12px;
        padding: 32px 20px;
        transform: translateY(-40px);
    }

    .cta-content .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .footer-modern .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .footer-cta-card::before {
        animation: none;
    }

    .footer-modern .footer-col ul li a:hover,
    .footer-modern .social-links a:hover,
    .cta-content .btn-primary:hover {
        transform: none;
    }
}