/* ===========================
   Contact page: picture with a card of social buttons over its lower part
   =========================== */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 3rem;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 1.5rem;
}

.contact-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.about-heading {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    text-align: center;
}

/* The card overlaps the bottom of the picture */
.about-card {
    position: relative;
    z-index: 2;
    margin-top: -140px;
    width: min(500px, calc(100% - 1rem));
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.social-btn {
    width: 200px;
}

.contact-email {
    font-size: 1.2rem;
    color: black;
    text-align: center;
    overflow-wrap: anywhere;
}

@media (max-width: 885px) {
    .about-heading {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .about-heading {
        font-size: 1.5rem;
    }

    .about-card {
        margin-top: -40px;
        padding: 12px;
    }

    .social-btn {
        width: 100%;
    }
}
