/* 
  about.css
  About Me Section Styles
*/

/* ========================================= */
/* About Me Section Styles                   */
/* ========================================= */
.about-content {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.about-image-wrapper {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 800px;
    z-index: 1;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Soft rectangular edges blending into background */
    -webkit-mask-image: linear-gradient(to top, transparent, black 15%, black 85%, transparent),
        linear-gradient(to left, transparent, black 25%, black 75%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to top, transparent, black 15%, black 85%, transparent),
        linear-gradient(to left, transparent, black 25%, black 75%, transparent);
    mask-composite: intersect;
    opacity: 0.9;
}

.about-text-wrapper {
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

.about-text-wrapper h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text-wrapper p {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.6;
}

/* ========================================= */
/* Mobile Responsive                         */
/* ========================================= */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        padding-top: 10vh;
        scrollbar-width: none;
    }

    .about-content::-webkit-scrollbar {
        display: none;
    }

    .about-image-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 80%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 3/4;
        margin-bottom: 20px;
        flex-shrink: 0;
    }

    .about-text-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 90%;
        text-align: center;
        padding-bottom: 7.5vh;
    }

    .about-text-wrapper h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .about-text-wrapper p {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
}