/* Section 2: About Section Styles */
.section-about {
    position: relative;
    overflow: hidden;
}

.section-about .content-placeholder {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stage One Layout */
.stage-one {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Computer Container */
.computer-container {
    position: absolute;
    left: 25%;
    top: 33vh;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    z-index: 9999;
    transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1), top 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 40.8% 33.4%;
}

.computer-img {
    width: 400px;
    height: 300px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Stage One Text */
.stage-one-text {
    position: absolute;
    right: 30%;
    top: 33vh;
    transform: translate(50%, -50%);
    text-align: left;
    max-width: 50vw;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-medium);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.main-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.5em;
}

.main-title .word:first-child {
    opacity: 0;
    transform: translateY(20px);
    color: var(--primary-dark);
    transition: opacity 0.8s ease, transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* 渐变填充 */
    background: linear-gradient(45deg,
            #8a2be2,
            #9370db,
            #9932cc,
            #ba55d3,
            #da70d6,
            #ee82ee,
            #d8bfd8,
            #8a2be2);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* 渐变动画 */
    animation: gradient-shift 4s ease infinite;
}

.sub-text {
    font-size: 3rem;
    color: var(--primary-medium);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 40vh;



    /* 渐变填充 */
    background: linear-gradient(45deg,
            #8a2be2,
            #9370db,
            #9932cc,
            #ba55d3,
            #da70d6,
            #ee82ee,
            #d8bfd8,
            #8a2be2);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* 渐变动画 */
    animation: gradient-shift 8s ease infinite;
}

/* Internal Content (Stage 2) */
.internal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    width: 100%;
    height: 80vh;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.internal-img {
    width: 100%;
    max-width: 60vw;
    height: auto;
    margin-top: 2rem;
    margin-bottom: 5rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.internal-text {
    font-size: 2rem;
    color: var(--primary-medium);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
    margin: 3rem auto 1rem auto;
    line-height: 1.6;
    text-align: center;
}

/* Animation States */
.section-about.stage-one-active .computer-img {
    opacity: 1;
}

.section-about.stage-one-active .main-title .word {
    opacity: 1;
    transform: translateY(0);
}

.section-about.stage-one-active .sub-text {
    opacity: 1;
    transform: translateY(0);
}

.section-about.stage-two-active .stage-one-text {
    opacity: 0;
    transform: translate(50%, -50%) scale(0.9);
    transition: all 0.6s ease;
}

.section-about.stage-two-active .sub-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}



.section-about.stage-two-active .computer-container {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(7);
    opacity: 0;
    transition: opacity 1.2s ease 0.3s, transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), left 1.5s cubic-bezier(0.4, 0, 0.2, 1), top 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-about.stage-two-active .internal-content {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.8s ease 1.8s;
}

.section-about.stage-two-active .internal-img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1.8s;
}

.section-about.stage-two-active .internal-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 2.1s;
}

/* Utility class to skip animations */
.skip-animation,
.skip-animation * {
    transition: none !important;
    animation: none !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .computer-container {
        left: 20%;
        width: 350px;
        height: 260px;
    }

    .stage-one-text {
        right: 20%;
    }

    .main-title {
        font-size: 2rem;
    }

    .sub-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .stage-one {
        flex-direction: column;
    }

    .computer-container {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 2rem;
    }

    .stage-one-text {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        text-align: center;
    }
}