/* ==========================================================================
   O MNE (About subpage)
   Sections: intro (photo + bio), quote banner, education, references.
   Mobile-first layout.
   ========================================================================== */

/* ----- SECTION 1: INTRO ----- */

.about-page {
    background-color: var(--color-pink-light);
    overflow: hidden;
}

/* Mobile: hide decorative leaf */
.about-page__leaf {
    display: none;
}

.about-intro {
    padding: var(--space-xl) var(--space-md) var(--space-2xl) var(--space-md);
}

.about-intro__title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.about-intro__hero {
    font-size: var(--text-body);
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.about-intro__photo {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin: 0 auto var(--space-lg);
}

/* Circular photo */
.about-intro__photo-img {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-intro__text {
    font-size: var(--text-body-small);
    line-height: var(--lh-body);
}

.about-intro__quote {
    font-style: italic;
}

.about-intro__text p {
    margin-bottom: var(--space-md);
}

/* ----- SECTION 2: QUOTE BANNER ----- */

/* .about-quote {
    background-color: var(--color-pink-accent);
    padding: var(--space-md) var(--space-md);
    transform: rotate(-5deg);
    margin: 0 calc(-2 * var(--space-md));
    position: relative;
    z-index: 1;
}


.about-quote__text {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    text-align: center;
    color: var(--color-primary-dark);
} */

.about-quote {
    background-color: var(--color-pink-accent);
    padding: var(--space-sm) var(--space-xl);
    transform: rotate(-5deg);
    margin: 0 calc(-2 * var(--space-md));
    position: relative;
    z-index: 1;
}

.about-quote__text {
    font-family: var(--font-heading);
    font-size: var(--text-body);
    font-weight: 700;
    text-align: center;
    color: var(--color-primary-dark);
}



/* ----- SECTION 3: EDUCATION ----- */

.about-edu {
    padding: var(--space-xl) var(--space-md);
}

.about-edu__title {
    font-family: var(--font-body);
    font-size: var(--text-h3);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
}


.about-edu__text {
    font-size: var(--text-body-small);
    line-height: var(--lh-body);
}


.about-edu__list {
    list-style: disc;
    padding-left: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-edu__item {
    margin-bottom: var(--space-md);
}


/* ----- SECTION 4: REFERENCES (overrides for about page) ----- */

.references--about {
    padding: var(--space-xl) var(--space-md) calc(var(--space-xl) * 2) var(--space-md);
}

.references--about .references__subtitle {
    text-align: center;
    font-size: var(--text-body);
    margin-bottom: var(--space-lg);
}

.references--about .references__card {
    background-color: var(--color-pink-medium);
}


/* ==========================================================================
   DESKTOP (768px+)
   Intro uses two-column layout: photo left, text right.
   ========================================================================== */

@media (min-width: 768px) {

    .about-quote__text {
        font-size: var(--text-h3);
    }

    .about-intro {
        padding: var(--space-2xl) var(--space-md) var(--space-2xl) var(--space-md);
    }

    .about-intro__hero {
        margin-bottom: var(--space-2xl);
        position: relative;
        z-index: 2;
    }

    /* Two-column: photo left, text right */
    .about-intro__content {
        display: flex;
        gap: var(--space-xl);
        max-width: 1200px;
        margin: 0 auto;
    }

    /* .about-intro__photo {
        position: relative;
        z-index: 2;
        flex: 0 0 400px;
        margin: 0;
    } */

    .about-intro__photo {
        position: relative;
        z-index: 2;
        flex: 0 0 400px;
        height: 400px;
        aspect-ratio: auto;
        margin: 0;
    }


    /* .about-intro__text {
        flex: 1;
    } */

    /* Decorative rotating text SVG around the photo */
    /* .about-intro__photo-text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    } */

    /* Hover: rotate SVG text */
    /* .about-intro__photo:hover .about-intro__photo-text {
        animation: rotate-text 10s linear infinite;
    }

    @keyframes rotate-text {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    } */

    /* Education: centered, narrower on desktop */
    .about-edu {
        padding: var(--space-2xl) var(--space-md) var(--space-xl) var(--space-md);
    }

    .about-edu__text {
        max-width: 400;
        margin: 0 auto;
    }

    .about-page__leaf {
        display: block;
        position: absolute;
        top: 40%;
        left: -20%;
        width: 55vw;
        max-width: 750px;
        height: auto;
        transform: rotate(105deg);
        z-index: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease;
    }

    .about-page__leaf {
        content: url('/static/images/green_leaf_v2.webp');
    }

    .about-intro__title {
        position: relative;
        z-index: 2;
    }
    
}