/* Modern Footer Design System */
:root {
    --footer-bg: #0f172a;
    --footer-accent: #4361ee;
    --footer-text: #94a3b8;
    --footer-heading: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

.modern-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

/* Background Blobs for Atmosphere */
.modern-footer::before,
.modern-footer::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.modern-footer::before {
    top: -100px;
    right: -100px;
    background: var(--footer-accent);
}

.modern-footer::after {
    bottom: -100px;
    left: -100px;
    background: #4895ef;
}

.modern-footer .container {
    position: relative;
    z-index: 1;
}

.footer-brand .brand-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--footer-heading);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    display: block;
    text-decoration: none;
}

.footer-brand .brand-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 320px;
}

.footer-heading {
    color: var(--footer-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--footer-accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--footer-accent);
    transform: translateX(8px);
}

/* Newsletter Card */
.newsletter-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 2rem;
}

.newsletter-card h6 {
    color: var(--footer-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-input-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 6px;
    display: flex;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: var(--footer-accent);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}

.newsletter-input-group input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 20px;
    width: 100%;
    outline: none;
}

.newsletter-input-group button {
    background: var(--footer-accent);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-input-group button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.4);
}

/* Social Buttons */
.social-group {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
    background: var(--footer-accent);
    color: white;
    transform: translateY(-5px) rotate(8deg);
    border-color: var(--footer-accent);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.copyright-text {
    font-size: 0.95rem;
}

.legal-links {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.legal-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 991.98px) {
    .modern-footer {
        padding-top: 60px;
        text-align: center;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .legal-links {
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }
    .footer-brand {
        margin-bottom: 40px;
    }
    .footer-brand .brand-description {
        margin-left: auto;
        margin-right: auto;
    }
    .social-group {
        justify-content: center;
    }
    .newsletter-card {
        margin-top: 20px;
    }
}

/* Intermediate Tablet & Small Desktop Tweak */
@media (min-width: 992px) and (max-width: 1200px) {
    .modern-footer {
        padding-top: 80px;
    }
    
    .footer-brand .brand-logo {
        font-size: 2rem;
    }
    
    .newsletter-card {
        padding: 20px;
    }
}

/* Large screens padding */
@media (min-width: 1400px) {
    .modern-footer {
        padding-top: 120px;
    }
}
