/* Home Footer Section */
.main-footer {
    position: relative;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(248, 250, 252, 0.88) 24%,
        rgba(241, 245, 249, 0.96) 100%
    );
    padding: 0;
    margin-top: 7rem;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 460px;
    background: radial-gradient(ellipse at top,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(236, 72, 153, 0.05) 32%,
        rgba(245, 158, 11, 0.03) 62%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    padding: 4.4rem 0 3rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.footer-brand .brand-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.9rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.footer-brand .brand-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.82;
    margin: 0;
    max-width: 340px;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-social-item {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.28s ease;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.footer-social-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.footer-social-item i {
    position: relative;
    z-index: 1;
    transition: transform 0.28s ease;
}

.footer-social-item:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.09);
}

.footer-social-item:hover::before {
    opacity: 1;
}

.footer-social-item:hover i {
    color: white;
    transform: scale(1.08);
}

.footer-social-item:focus-visible,
.footer-link:focus-visible,
.footer-section a:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.45);
    outline-offset: 4px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.footer-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.7rem 0;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 22px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.footer-section a {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.24s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
    line-height: 1.5;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: -8px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.24s ease;
    opacity: 0;
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 12px;
}

.footer-section a:hover::before {
    width: 4px;
    opacity: 1;
}

.footer-contact .contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
}

.footer-contact .contact-row i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.86rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-contact .contact-row span {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.bottom-info {
    padding: 1.45rem 0;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-row {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
}

.copyright {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.certification-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.84rem;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    padding: 0.42rem 0.72rem;
    transition: all 0.24s ease;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-link:hover {
    color: var(--primary-700);
    border-color: rgba(99, 102, 241, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        margin-top: 4.3rem;
    }

    .footer-container,
    .bottom-row {
        padding: 0 1.25rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0 2rem;
    }

    .footer-brand {
        gap: 1rem;
    }

    .footer-brand .brand-info h2 {
        font-size: 1.55rem;
        margin-bottom: 0.7rem;
    }

    .footer-brand .brand-desc {
        font-size: 0.92rem;
        line-height: 1.72;
        max-width: 100%;
    }

    .footer-social-links {
        gap: 0.65rem;
        flex-wrap: wrap;
    }

    .footer-social-item {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .footer-section {
        gap: 0.75rem;
    }

    .footer-section h3 {
        margin-bottom: 0.45rem;
    }

    .footer-section ul {
        gap: 0.55rem;
    }

    .footer-section a,
    .footer-contact .contact-row span {
        font-size: 0.89rem;
    }

    .footer-contact .contact-row {
        gap: 0.65rem;
        padding: 0.28rem 0;
    }

    .bottom-info {
        padding: 1.15rem 0;
    }

    .bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .certification-links {
        gap: 0.5rem;
    }

    .footer-link {
        font-size: 0.78rem;
        padding: 0.36rem 0.62rem;
    }
}
