/* Custom styles for single-page resume */

/* Header adjustments - no menu button */
.header-contact {
    width: 40%;
}
header.style1 .logo {
    width: 20%;
}
header.style1 .head-social {
    width: 38%;
}

/* Language switcher */
.language-area .lang-btn {
    color: #999;
    font-family: Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 20px;
}
.language-area .lang-btn:hover,
.language-area .lang-btn.active {
    background: #646fcb;
    color: #fff;
    border-color: #646fcb;
}

/* Banner layout */
.banner-section .gap {
    padding: 0;
}
.banner-content {
    display: flex;
    align-items: flex-end;
    padding: 60px 0 40px;
    min-height: 220px;
    position: relative;
}
.banner-photo {
    flex-shrink: 0;
    margin-right: 40px;
    margin-bottom: -40px;
    z-index: 2;
}
.banner-photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #646fcb;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.banner-text {
    flex: 1;
    padding-bottom: 10px;
}
.banner-text .selector {
    padding: 0;
}
.banner-text .selector h3 {
    margin: 0;
    color: #333;
}

/* Content box spacing */
.content-box {
    margin-top: 0;
}

/* Tab navigation */
.tab-nav {
    display: flex;
    gap: 0;
    margin-top: 15px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}
.tab-link {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.tab-link:hover {
    color: #646fcb;
    background: #e8e8f8;
}
.tab-link.active {
    color: #fff;
    background: #646fcb;
}

/* Tab panels */
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* Resume sections */
.resume-section {
    padding: 25px 30px 10px;
}
.resume-section + .resume-section {
    border-top: 1px solid #eee;
}

/* Info tags */
.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
}
.info-tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tag-label {
    background: #646fcb;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.tag-value {
    color: #555;
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e0e0e0;
}
.timeline-item {
    position: relative;
    padding-left: 25px;
    padding-bottom: 30px;
}
.timeline-item:last-child {
    padding-bottom: 10px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -19px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #646fcb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #646fcb;
}
.timeline-date {
    font-size: 13px;
    color: #646fcb;
    font-weight: 600;
    margin-bottom: 6px;
}
.timeline-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.timeline-content .company {
    font-size: 14px;
    color: #888;
    display: block;
    margin-bottom: 10px;
}
.timeline-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.timeline-content ul li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    color: #666;
    line-height: 22px;
    margin-bottom: 6px;
}
.timeline-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bbb;
}

/* Project cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.project-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}
.project-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.project-card h6 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.project-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 0;
}

/* WeChat QR modal */
.qr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999999;
    justify-content: center;
    align-items: center;
}
.qr-overlay.show {
    display: flex;
}
.qr-modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    max-width: 300px;
    animation: fadeIn 0.3s ease;
}
.qr-modal img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
}
.qr-modal p {
    margin: 15px 0 0;
    font-size: 14px;
    color: #666;
}
.qr-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 24px;
    color: #999;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}
.qr-close:hover {
    color: #333;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .header-contact {
        width: 100%;
        line-height: initial;
        padding: 8px 0;
    }
    header.style1 .logo {
        display: none;
    }
    header.style1 .head-social {
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
        line-height: initial;
    }
    .banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 15px 30px;
    }
    .banner-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .banner-photo img {
        width: 120px;
        height: 120px;
    }
    .banner-text {
        width: 100%;
        text-align: center;
    }
    .tab-nav {
        justify-content: center;
    }
    .tab-link {
        padding: 10px 20px;
        font-size: 13px;
    }
    .resume-section {
        padding: 20px 15px 10px;
    }
    .info-tags {
        flex-direction: column;
        gap: 12px;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 480px) {
    .banner-photo img {
        width: 100px;
        height: 100px;
    }
    .language-area .lang-btn {
        font-size: 12px;
        padding: 3px 10px;
    }
    .tab-link {
        padding: 8px 16px;
        font-size: 12px;
    }
    .timeline-content h6 {
        font-size: 14px;
    }
    .timeline-content ul li {
        font-size: 12px;
    }
}
