/* Footer Styles */
#footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-top: 3px solid var(--border-tertiary);
    box-shadow: 0 -5px 15px var(--shadow-primary);
}

#footer_top_content {
    max-width: 1200px;
    margin: 0 auto;
    height: 200px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#footer_social {
    text-align: center;
    flex: 0 1 auto;
    padding-bottom: 26px;
}

#footer_social h3 {
    color: var(--text-primary);
    font-size: 1.4em;
    font-weight: bold;
    margin: 16px 0;
    padding-bottom: 4px;
    display: inline-block;
}

#social_icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social_icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
    padding: 8px;
    background: var(--social-bg);
}

.social_icon:hover {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.2);
    background: var(--social-bg-hover);
}

#footer_portrait {
    text-align: center;
    transform: scale(0.7);
    flex: 0 1 auto;
}

#portrait_box_frame {
    border: 10px solid var(--bg-secondary);
    overflow: hidden;
    margin: 0 auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    box-shadow: 10px 10px 20px var(--shadow-secondary);
}

#portrait_box {
    border: 10px solid var(--border-secondary);
    overflow: hidden;
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

#portrait_img {
    width: 310px;
    margin-top: -13px;
    margin-left: -57px;
}


#footer_email_link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1em;
    background: var(--social-bg);
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#footer_email_link:hover {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.2);
    background: var(--social-bg-hover);
}

.email_icon {
    width: 40px;
    height: 40px;
    padding: 8px;
}

#footer_email_link span {
    padding-left: 6px;
    padding-right: 16px;
    font-size: 1.05em;
}

#footer_bottom_content {
    margin: 0 auto;
    padding: 5px 20px;
    text-align: center;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-secondary);
}


#footer_bottom_content p {
    color: var(--text-tertiary);
    margin: 8px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

#footer_bottom_content p:first-child {
    color: var(--text-muted);
    font-weight: bold;
}

#footer_bottom_content p:nth-child(2) {
    color: var(--accent-primary);
    font-style: italic;
    margin-bottom: 15px;
}

#footer_bottom_links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.footer_link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer_link:hover {
    color: var(--accent-primary);
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.footer_separator {
    color: var(--text-muted);
    font-weight: bold;
    margin: 0 5px;
}

@media (max-width: 720px) {
    #footer {
        padding: 40px 0 20px 0;
    }

    #footer_top_content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 16px;
        margin-bottom: 40px;
    }

    #footer_social {
        width: 100%;
    }

    #footer_portrait {
        width: 100%;
    }

    #footer_email_section {
        max-width: 100%;
        padding: 0 16px;
        margin-bottom: 40px;
    }

    #portrait_box_frame {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    #portrait_box {
        width: 160px;
        height: 160px;
    }

    #portrait_img {
        width: 240px;
        margin-top: -10px;
        margin-left: -40px;
    }

    #footer_bottom_content {
        padding: 20px 12px;
    }
}