@import url(./variables.css);

/* ===== About Section ===== */
.about {
    padding-top: 7rem;
    padding-bottom: 7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.about-text {
    flex: 1 1 400px;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.about-line {
    width: 0;
    height: 3px;
    background: var(--color-primary);
    margin-top: 0.2rem;
    border-radius: 2px;
}

.about-text p {
    font-size: 1.05rem;
    margin-top: 1rem;
    line-height: 1.75;
    opacity: 0.9;
    max-width: 675px;
}

.about-image {
    flex: 1 1 350px;
    max-width: 300px;
    max-height: 600px;
}

.about-image img {
    display: block;
    object-fit: cover;
    margin: auto;
    width: 100%;
    max-height: 350px;
    object-position: top center;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

@media (max-width: 850px) {
    .about {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-text,
    .about-image {
        flex: 1 1 100%;
        margin-bottom: 1rem;
    }

    .about-line {
        margin-left: auto;
        margin-right: auto;
    }

    @keyframes growLine {
        from {
            width: 0;
            opacity: 0;
        }

        to {
            width: 150px;
            opacity: 1;
        }
    }

    .about-image {
        width: 50%;
        height: 80%;
    }

    .about-image img {
        max-height: 280px;
    }
}