/* About Page - Card Overlap Design */

html:has(.about-body),
html:has(.about-body) body,
.about-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.about-body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Background */
.about-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Header with Logo */
.about-header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.header-logo {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

/* Main Layout - Desktop Side by Side */
.about-main {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
    padding: 200px 40px 100px;
    gap: 40px;
}

/* Portrait Container */
.portrait-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.valentina-portrait {
    height: 70vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
    border-radius: 12px;
}

/* Bio Container - Desktop */
.bio-container {
    width: calc(70vh * 0.44);
    height: 70vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Keep text inside */
}

/* Valentina Name */
.valentina-name {
    font-family: 'Pacifico', cursive;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--colombia-yellow);
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Bio Text */
.bio-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 15px;
}

.bio-text strong {
    color: var(--colombia-yellow);
    font-weight: 600;
}

/* Back Home Button */
.back-home-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--colombia-yellow) 0%, #E5B800 100%);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.3);
    text-align: center;
    align-self: center;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(252, 209, 22, 0.5);
}

/* Footer */
.about-footer {
    position: relative;
    padding: 20px;
    text-align: center;
    z-index: 10;
    color: var(--white);
    font-size: 0.75rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* ===================== */
/* Mobile - Card Overlap Layout */
/* ===================== */
@media (max-width: 900px) {
    .about-main {
        flex-direction: column;
        align-items: center;
        padding: 160px 20px 80px;
        gap: 0; /* Remove gap for overlap */
    }

    .portrait-container {
        order: 1;
        z-index: 2;
        margin-bottom: -60px; /* Overlap into bio container */
    }

    .valentina-portrait {
        height: auto;
        width: 280px;
        max-width: 80vw;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .bio-container {
        order: 2;
        z-index: 1;
        width: 320px;
        max-width: 90vw;
        height: auto;
        min-height: auto;
        padding: 80px 25px 25px 25px; /* Extra top padding for overlap */
        border-radius: 16px;
    }

    .valentina-name {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .bio-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .back-home-btn {
        margin-top: 15px;
    }
}

@media (max-width: 500px) {
    .about-main {
        padding: 140px 15px 60px;
    }

    .portrait-container {
        margin-bottom: -50px;
    }

    .valentina-portrait {
        width: 240px;
    }

    .bio-container {
        width: 280px;
        padding: 70px 20px 20px 20px;
    }

    .valentina-name {
        font-size: 1.3rem;
    }

    .bio-text {
        font-size: 0.8rem;
    }

    .back-home-btn {
        font-size: 0.75rem;
        padding: 8px 20px;
    }

    .about-footer {
        font-size: 0.6rem;
    }
}

@media (max-width: 375px) {
    .about-main {
        padding: 130px 10px 50px;
    }

    .portrait-container {
        margin-bottom: -40px;
    }

    .valentina-portrait {
        width: 220px;
    }

    .bio-container {
        width: 260px;
        padding: 60px 18px 18px 18px;
    }

    .valentina-name {
        font-size: 1.2rem;
    }

    .bio-text {
        font-size: 0.75rem;
    }
}
