.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    margin-top: auto;
    color: var(--text-main);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.footer-logo i {
    color: var(--primary-color);
    filter: drop-shadow(0 4px 6px rgba(var(--primary-rgb), 0.3));
}

.footer-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 450px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.6rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand, 
    .footer-links, 
    .footer-social {
        min-width: 100%;
    }

    .footer-desc {
        max-width: 100%;
    }
}