/* Intro Section */

/* DESKTOP TOC & INTRO (unchanged) */
.TOC {
    opacity: 0;
    transform: translateX(200px);
    transition: all 0.5s ease;
}

.TOC ul {
    margin: 3rem auto;
    width: 80vw;
    padding: 5rem 0;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/*ul surrounding lines*/
.TOC ul::after, .TOC ul::before {
    content: '';
    position: absolute;
    height: 2px;
    background: var(--cadet-gray);
    width: 80vw;
    border-radius: 100px;
}

.TOC ul::before { top: 0; left: 0; }
.TOC ul::after { bottom: 0; left: 0; }

.TOC li { list-style: none; }

.TOC li a {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Knewave', 'Segoe UI', Arial, sans-serif;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 0 5px #00000055;
}

.TOC li a:hover {
    background: #143e59;
    transform: translateY(-2px);
}

.TOC li a span {
    font-family: 'Asimovian', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    color: #c2c2c2;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

#what-is-capstone {
    padding: 0;
    display: flex;
    flex-direction: row;
}

.intro-img{
    flex:1;
    background: url('https://blocks.astratic.com/img/general-img-portrait.png') no-repeat center center/cover;
    position: relative;
}

.intro-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #21363b51, transparent 50%);
}

.intro-text{
    flex:1;
    height: 31rem;
    padding: 1.5rem;
    font-family: 'Poppins', Helvetica, sans-serif;
    font-weight: 400;
}

.intro-text h2{
    font-family: 'Story Script', 'Segoe UI', Arial, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 0 10px #00000055;
    letter-spacing: 0.1rem;
}

.intro-text h2 span{
    font-family: 'Asimovian', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-right: 0.2rem;
    display: inline-block;
}

.intro-text h2::after{
    content: "";
    display: block;
    width: 33rem;
    height: 3px;
    background: var(--cadet-gray);
    margin-top: 0.5rem;
    margin-left: 0.1rem;
    border-radius: 2px;
}

.intro-text p, .intro-text ul {
    width: 36rem;
    font-family: 'Chiron GoRound TC', 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 2rem;
    color: #e3dddd;
}

.intro-text ul {
    list-style-position: inside;
    padding-left: 1rem;
    padding-top: .5rem;
    color: #e2dcdc;
}

.intro-text ul li{
    font-family: 'WDXL Lubrifont TC', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
}

.intro-text ul li a {
    text-decoration: none;
    color: #e2dcdc;
    transition: color 0.3s ease;
}

.intro-text ul li a:hover {
    color: #ffffff;
}

/* MOBILE RESPONSIVE */
@media screen and (max-width: 992px) {
    #what-is-capstone {
        flex-direction: column;
        padding: 1rem;
    }
    .intro-text h2 { font-size: 2rem; }
    .intro-text p, .intro-text ul li { font-size: 1.1rem; }
    .intro-text h2::after { width: 90%; }
    .timeline { padding-left: 1rem; }
    .timeline-item { padding-left: 2.5rem; }
}

@media screen and (max-width: 768px) {
    .intro-text h2 { font-size: 1.8rem; }
    .intro-text p, .intro-text ul li { font-size: 1rem; width: 100%; max-width: 100%; }
    .intro-img { width: 100%; min-height: 250px; margin-top: 1rem; }

    /* Mobile TOC adjustments */
    .TOC ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    .TOC li:not(:last-child)::after {
        content: '';
        display: block;
        width: 100px;
        height: 2px;
        background: var(--cadet-gray);
        margin: 0.5rem auto 0 auto;
        border-radius: 2px;
    }
    .TOC li a { font-size: 1.5rem; }
}

@media screen and (max-width: 480px) {
    .intro-text h2 { font-size: 1.5rem; }
    .intro-text p, .intro-text ul li { font-size: 0.95rem; line-height: 1.4rem; width: 100%; max-width: 100%; }
    .intro-text ul li a { font-size: 1.15rem; }
    .intro-img { min-height: 200px; }
    .timeline-item h3 { font-size: 1.3rem; }
    .timeline-item p { font-size: 0.9rem; }
}
