/* ===========================
   MODERN FOOTER REDESIGN
   Mobile-First, Professional, Animated
=========================== */

.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

/* Animated Background Pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(90, 154, 154, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(90, 154, 154, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: footerGlow 15s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Main Footer Layout */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Brand Section */
.footer-brand {
    animation: fadeInUp 0.8s ease-out;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateX(5px);
}

.footer-logo svg {
    width: 32px;
    height: 32px;
    color: #5a9a9a;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    max-width: 400px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(90, 154, 154, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon:hover {
    background: #5a9a9a;
    border-color: #5a9a9a;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(90, 154, 154, 0.3);
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-family: var(--font-ui);
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #5a9a9a;
    transition: width 0.3s ease;
}

.footer-column:hover .footer-heading::after {
    width: 50px;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    white-space: nowrap;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #5a9a9a;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-link:hover::before {
    width: 100%;
}

.footer-link svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.footer-link:hover svg {
    color: #5a9a9a;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.footer-copyright {
    font-family: var(--font-ui);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-powered:hover {
    color: #fff;
    background: rgba(90, 154, 154, 0.2);
    border-color: rgba(90, 154, 154, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 154, 154, 0.2);
}

.footer-powered strong {
    font-weight: 600;
    color: #5a9a9a;
    transition: color 0.3s ease;
}

.footer-powered:hover strong {
    color: #fff;
}

.footer-powered svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.footer-powered:hover svg {
    transform: translateX(3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .footer {
        padding: 80px 0 0;
    }

    .footer-main {
        grid-template-columns: 1.5fr 1fr;
        gap: 60px;
        margin-bottom: 50px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        padding: 30px 0;
    }

    .footer-copyright {
        text-align: left;
    }

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

/* Large Desktop */
@media (min-width: 1024px) {
    .footer {
        padding: 100px 0 0;
    }

    .footer-main {
        grid-template-columns: 1.5fr 1.5fr;
        gap: 80px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }

    .footer-tagline {
        font-size: 16px;
        max-width: 500px;
    }

    .footer-logo {
        font-size: 32px;
    }

    .footer-logo svg {
        width: 36px;
        height: 36px;
    }
}

/* Mobile Optimization - Compact Footer */
@media (max-width: 767px) {
    .footer {
        padding: 50px 0 0;
    }

    .footer-main {
        gap: 36px;
        margin-bottom: 36px;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-logo {
        justify-content: flex-start;
        font-size: 26px;
        margin-bottom: 12px;
    }

    .footer-tagline {
        text-align: left;
        margin: 0 0 20px 0;
        font-size: 14px;
        line-height: 1.5;
    }

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

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }

    .footer-column {
        text-align: left;
        gap: 10px;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-heading {
        font-size: 12px;
        margin-bottom: 10px;
        letter-spacing: 0.8px;
    }

    .footer-heading::after {
        left: 0;
        transform: none;
        width: 25px;
    }

    .footer-link {
        font-size: 14px;
        padding: 2px 0;
    }

    .footer-bottom {
        padding: 24px 0 20px;
        gap: 10px;
    }

    .footer-copyright,
    .footer-powered {
        font-size: 12px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }
}

/* Extra Small Phones */
@media (max-width: 375px) {
    .footer {
        padding: 40px 0 0;
    }

    .footer-main {
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-tagline {
        font-size: 13px;
        line-height: 1.4;
    }

    .footer-links-grid {
        gap: 28px 20px;
    }

    .footer-column {
        gap: 8px;
    }

    .footer-heading {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .footer-link {
        font-size: 13px;
        padding: 1px 0;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding: 20px 0 16px;
    }

    .footer-copyright,
    .footer-powered {
        font-size: 11px;
    }
}

