@import url("../homepage/homepage.css");

/* Highlight the madi_head when we're on the About page, the same way
   .nav-link.active is treated, so MADI knows where she is. */
.nav-head.active-head img {
    filter: brightness(0.9) saturate(1.15);
    transform: scale(1.04);
}

.about-wrap {
    max-width: 760px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 8px 16px 40px;
}

/* Portrait: circular sticker-like crop, gently rotated so it feels
   hand-placed rather than dropped in by a layout engine. */
.about-portrait {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid #2b2b2b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.about-portrait:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text card: soft, paper-like, with a dashed border that echoes the
   handwritten Patrick Hand font. */
.about-card {
    position: relative;
    background: #fffdf7;
    border: 2px dashed #2b2b2b;
    border-radius: 14px;
    padding: 36px 40px 32px;
    max-width: 620px;
    text-align: center;
    color: #2b2b2b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.about-hello {
    font-family: 'Patrick Hand SC', 'Patrick Hand', cursive;
    font-weight: normal;
    font-size: 3rem;
    letter-spacing: 1px;
    margin-bottom: 14px;
    line-height: 1;
}

.about-card p {
    font-size: 1.45rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.about-card p:last-of-type {
    margin-bottom: 0;
}

.about-card .name {
    font-family: 'Patrick Hand SC', 'Patrick Hand', cursive;
    letter-spacing: 1px;
}

.about-card .thanks {
    margin-top: 18px;
    font-size: 1.6rem;
    font-family: 'Patrick Hand SC', 'Patrick Hand', cursive;
    letter-spacing: 1px;
}

/* Instagram handle: hand-drawn underline feel via dashed border-bottom.
   Color picks up the IG gradient endpoints without being a full gradient. */
.ig-link {
    color: #c13584;
    text-decoration: none;
    font-family: 'Patrick Hand SC', 'Patrick Hand', cursive;
    letter-spacing: 1px;
    border-bottom: 2px dashed #c13584;
    padding-bottom: 1px;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    display: inline-block;
}

.ig-link:hover {
    color: #833ab4;
    border-bottom-color: #833ab4;
    transform: translateY(-1px);
}

/* Responsive sizing — portrait shrinks on phones, text steps down. */
@media (max-width: 720px) {
    .about-portrait { width: 180px; height: 180px; }
    .about-card { padding: 28px 24px 24px; }
    .about-hello { font-size: 2.4rem; }
    .about-card p { font-size: 1.2rem; }
    .about-card .thanks { font-size: 1.35rem; }
}

@media (max-width: 420px) {
    .about-portrait { width: 150px; height: 150px; }
    .about-hello { font-size: 2rem; }
    .about-card p { font-size: 1.1rem; }
}