/* About Page Styles - Using Homepage Cover as Background */

.about-page {
    background: #a8c5a0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Image - Using xinyu-jiao-cover.jpg */
.about-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #a8c5a0;
    background-image: url('../../assets/figures/xinyu-jiao-cover.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.about-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, 0.75) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.75) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.75) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.75) 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
    z-index: 1;
}

.about-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.about-main {
    padding-top: 120px;
    padding-bottom: 6rem;
    position: relative;
    z-index: 3;
    min-height: 100vh;
}

.about-wrapper {
    max-width: 1400px;
    margin: 0;
    padding: 0 6rem 8rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    position: relative;
    align-items: start;
}

/* Hero Title */
.about-hero {
    grid-column: 1 / -1;
    text-align: left;
    margin-bottom: 2rem;
    padding-left: 0;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-greeting {
    font-size: 1em;
    font-weight: 400;
    font-style: italic;
    opacity: 1;
}

.about-name {
    font-size: 1em;
    font-style: italic;
}

.about-location {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    margin-bottom: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

/* Content Section */
.about-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    width: 100%;
}

/* Sections */
.about-section {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
}

.about-section:first-child {
    grid-column: 1 / -1;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
}

.about-section:nth-child(2) {
    grid-column: 1;
    align-self: start;
    padding-right: 3rem;
}

.about-section:nth-child(3) {
    grid-column: 2;
    align-self: start;
    padding-left: 3rem;
    padding-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    opacity: 0.8;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-left: 1.5rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    background: rgba(255, 255, 255, 0.4);
}

/* 确保两个section的高度和样式一致 */
.about-section:nth-child(2) .about-text,
.about-section:nth-child(3) .about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-section:nth-child(2) .section-title,
.about-section:nth-child(3) .section-title {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* 让两个section的顶部对齐 */
.about-section:nth-child(2),
.about-section:nth-child(3) {
    padding-top: 0;
    margin-top: 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    font-weight: 300;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
}

.about-section:first-child .about-text p:first-of-type {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: #ffffff;
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
    max-width: 85%;
}

.about-text p {
    margin-bottom: 1.8rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Skills List */
.skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.skill-tag {
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    font-size: 0.85rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-tag:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Navigation Active State */
.about-page .top-navbar {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-page .nav-logo {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.about-page .nav-logo::before,
.about-page .nav-logo::after {
    opacity: 0.6;
}

.about-page .nav-link {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.about-page .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-wrapper {
        padding: 0 4rem 6rem;
        gap: 4rem;
    }

    .about-content {
        gap: 4rem;
    }

    .about-title {
        font-size: 3rem;
    }
}

@media (max-width: 968px) {
    .about-main {
        padding-top: 100px;
    }

    .about-wrapper {
        padding: 0 3rem 4rem;
        gap: 3rem;
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-section:first-child,
    .about-section:nth-child(2),
    .about-section:nth-child(3) {
        grid-column: 1;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-text {
        font-size: 1.05rem;
    }

    .about-section:first-child .about-text p:first-of-type {
        font-size: 1.3rem;
        max-width: 100%;
    }

    .about-backdrop {
        background-attachment: scroll;
    }
}

@media (max-width: 640px) {
    .about-wrapper {
        padding: 0 1.5rem 3rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-text p:first-of-type {
        font-size: 1.2rem;
    }

    .about-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .skills-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section:nth-child(2),
    .about-section:nth-child(3) {
        padding-left: 0;
        padding-right: 0;
    }
}
