/* =========================================================
   🔹 DANSA Lab — BIOGRAPHY PAGE STYLES (FINAL RESPONSIVE FIX)
   
   ✅ FIX: Corrects header collision by aggressively increasing top padding on mobile/tablet.
   ✅ FIX: Ensures profile photo is centered within the circular mask (background-position: center).
   ✅ FIX: Adds a white glow on photo hover.
   ✅ NEW FIX: Keeps the image static while resizing and zooms smoothly on screen change.
   ========================================================= */


/* Base styles for the main biography section */

.section.bio-hero {
    /* Base padding */
    padding: 4rem 0;
    background-color: #0b0c0f;
    color: #ffffff;
}


/* 💥 FIX: AGGRESSIVE PADDING TO CLEAR FIXED HEADER AND LARGE PHOTO */

.section.bio-hero {
    padding-top: 150px !important;
    padding-bottom: 48px;
}


/* Desktop Layout (Default: Side-by-Side) */

.container.bio-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    align-items: flex-start;
}


/* =========================================================
   ✅ FIXED PHOTO BEHAVIOR (STATIC + ZOOM RESPONSIVE)
   ========================================================= */

.bio-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--brand-600);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    margin: 0 auto;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0;
    position: relative;
}


/* ✅ FIX: keep image static, centered, and scale smoothly on resize */

.bio-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: center center;
    transition: transform 0.3s ease;
}


/* ✅ Zoom levels for different screens — no shifting */

@media (max-width: 1024px) {
    .bio-photo img {
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    .bio-photo img {
        transform: scale(0.9);
    }
}


/* 💥 NEW FIX: WHITE GLOW ON PHOTO HOVER */

.bio-photo:hover {
    box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.5), 0 0 80px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}


/* Headings and Main Text */

.bio-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.bio-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-600);
    margin-bottom: 1.5rem;
}


/* Bio Details Box Look (Affiliation, Research, DBLP list) */

.bio-meta {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    /* Box Styling */
    border: 1px solid var(--soft, #333);
    border-radius: 12px;
    background: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.bio-meta li {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1));
}

.bio-meta li:last-child {
    border-bottom: none;
}

.bio-meta strong {
    color: var(--brand-600);
    display: inline;
    margin-right: 10px;
}

.bio-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text);
}


/* Links within the bio text or details */

.bio-text a,
.bio-details a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bio-text a:hover,
.bio-details a:hover {
    color: #00e0ff;
    text-decoration: underline;
}


/* =========================================================
   MEDIA QUERIES FOR RESPONSIVENESS
   ========================================================= */


/* Tablet and Mobile Layout (Stacks content) */

@media (max-width: 1024px) {
    /* FIX: Switch to single column stacking */
    .container.bio-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 30px;
    }
    /* FIX: Photo centering and sizing */
    .bio-photo {
        width: 250px;
        height: 250px;
        margin: 0 auto 1.5rem;
        /* Centers the photo block itself */
    }
    /* Text alignment - Center content block text on mobile */
    .bio-title,
    .bio-role {
        text-align: center;
    }
    /* Bio Details Box Look on Tablet/Mobile */
    .bio-meta {
        width: 100%;
        margin: 20px auto;
        text-align: left;
    }
    .bio-meta strong {
        /* FIX: Stack label and value for cleaner mobile list */
        display: block;
        margin-bottom: 0.2rem;
    }
    .bio-text {
        padding: 0 10px;
        font-size: 0.95rem;
    }
}


/* Mobile Phones (max-width: 768px) */

@media (max-width: 768px) {
    .container.bio-wrap {
        padding: 0 15px;
        gap: 1.5rem;
    }
    /* FIX: Photo centering and smaller size for mobile */
    .bio-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem;
    }
    .bio-title {
        font-size: 1.8rem;
    }
    .bio-role {
        font-size: 1rem;
    }
    .bio-meta {
        width: 100%;
        margin: 15px 0;
    }
    .bio-meta li {
        padding: 12px 15px;
    }
    .bio-text {
        padding: 0;
    }
}