/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

   .about-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.about-content {
    padding: 2rem;
    position: relative;
    min-height: 850px;
}

/* ========================================
   PHOTO COLLAGE - Ring around text
   ======================================== */
.photo-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.collage-photo {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, z-index 0s;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    will-change: transform;
    z-index: 1;
}

/* Hover - pop in FRONT of text box (z-index higher than bio-section's 50) */
.collage-photo:hover {
    transform: scale(1.4) rotate(0deg) !important;
    z-index: 200 !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
    opacity: 1 !important;
}

.collage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   FLOAT ANIMATIONS
   ======================================== */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(var(--rot, -5deg)); }
    50% { transform: translateY(-8px) rotate(calc(var(--rot, -5deg) + 2deg)); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(var(--rot, 5deg)); }
    50% { transform: translateY(-10px) rotate(calc(var(--rot, 5deg) - 2deg)); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(var(--rot, 3deg)); }
    50% { transform: translateY(-7px) rotate(calc(var(--rot, 3deg) + 1deg)); }
}

/* ========================================
   BIO SECTION - On top with blur background
   Uses inherited colors from base.css
   ======================================== */
.bio-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 50;
    box-shadow: var(--shadow-lg);
}

.bio-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.bio-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.bio-text p:last-of-type {
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .collage-photo {
        width: 170px;
        height: 170px;
    }
}

/* Tablet and below - HIDE photos entirely, show only text */
@media (max-width: 968px) {
    .about-content {
        min-height: auto;
        padding: 1rem;
    }
    
    .bio-section {
        padding: 2rem;
    }
    
    /* Hide photo collage on mobile */
    .photo-collage {
        display: none;
    }
}

@media (max-width: 768px) {
    .bio-section {
        padding: 1.5rem;
        background: rgba(26, 26, 26, 0.95);
    }
    
    .bio-text h2 {
        font-size: 1.5rem;
    }
    
    .bio-text p {
        font-size: 1rem;
    }
}

/* ===== Photo Lightbox ===== */
.photo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox img {
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.photo-lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.photo-lightbox-close:hover {
    background: var(--secondary-color);
}