/* ==============================================
   BIO & CONTACT PAGE - FINAL UNIFIED STYLES
   ============================================== */

/* ----------------------------------
   1. "About Me" Section (Unchanged)
   ---------------------------------- */
.bio-page .bio-section {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 2.5rem;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    margin: 0 auto; /* Sets top/bottom margin and centers left/right */
    margin-bottom: 3rem;
    overflow: hidden;
    max-width: 1300px;
}
.bio-page .bio-heading { grid-column: 1 / -1; margin-bottom: 0; }
.bio-page .bio-heading h2 { color: #2c3e50; font-size: 1.8rem; margin-bottom: 0.5rem; font-weight: 600; }
.bio-page .heading-decoration { width: 138px; height: 4px; background: linear-gradient(to right, #005fa3, #2c3e50); }
.bio-page .bio-text { line-height: 1.7; }
.bio-page .bio-text p {
    margin-bottom: 1.3rem;
    text-align: left;
    font-size: 1.05rem; }
.bio-page .bio-photo {
    width: 100%; /* This tells the image to fill 100% of its parent container */
    height: auto; /* Ensures the image scales proportionally */
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid #e0e0e0; }


/* ========================================================
   2. FINAL - Unified Contact Section
   ======================================================== */
.bio-page .contact-section {
/*    padding: 3rem 0;*/
}

.contact-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Two equal columns */
}

/* --- Column 1: Get in Touch --- */
.contact-info {
    padding: 2.5rem;
    background-color: #f8f9fa; /* A subtle background for the info side */
    border-right: 1px solid #e0e0e0;
}
.contact-info h2 { font-size: 1.8rem; color: #2c3e50; margin-bottom: 1rem; }
.contact-info p { line-height: 1.7; color: #555; margin-bottom: 2rem; }

.contact-group { margin-top: 1.5rem; }
.contact-group h4 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; color: #95a5a6; letter-spacing: 0.5px; margin-bottom: 1rem; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; align-items: flex-start; margin-bottom: 0.75rem; }
.contact-list i { width: 24px; margin-top: 4px; text-align: center; margin-right: 0.75rem; color: var(--accent-color-hover); }
.contact-list span, .contact-list a { line-height: 1.6; }

/* -- Bigger Social Icons with Brand Colors -- */
.social-links { display: flex; gap: 1rem; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;  /* Bigger */
    height: 50px; /* Bigger */
    border-radius: 50%;
    font-size: 35px; /* Bigger icon inside */
    color: #fff;     /* White icon for better contrast */
    transition: all 0.2s ease-in-out;
}
.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    /* ADD THIS LINE to disable the default underline */
    text-decoration: none;
}
/* -- Official Brand Colors -- */
.social-icon.linkedin { background-color: #0A66C2; }
.social-icon.x-twitter { background-color: #000000; }
.social-icon.facebook { background-color: #1877F2; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }


/* --- Column 2: Collaboration & Popup Form --- */
.collaboration-info {
    padding: 2.5rem;
}
.collaboration-info h2 { font-size: 1.8rem; color: #2c3e50; margin-bottom: 1rem; }
.collaboration-info p { line-height: 1.7; color: #555; margin-bottom: 1.5rem; }

.contact-trigger-button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}
.contact-trigger-button:hover {
    background: #005fa3;
    transform: scale(1.05);
}

/* -- Popup Form Styles -- */
.contact-form {
    display: none; /* Hidden by default */
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}
.contact-form.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-group { margin-bottom: 1rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #333; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--accent-color-hover); box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.2); }
.contact-form button[type="submit"] { width: 100%; background: #005fa3; color: white; border: none; padding: 12px; border-radius: 4px; cursor: pointer; font-size: 16px; margin-top: 0.5rem; transition: background 0.3s; }
.contact-form button[type="submit"]:hover { background: #004d80; }
.form-status { margin-top: 1rem; padding: 10px; border-radius: 4px; display: none; }
.form-status.success { background: #e6ffed; color: #1a7f37; }
.form-status.error { background: #ffebee; color: #c62828; }

/* ================================
   3. Responsive Design
   ================================ */
@media (max-width: 900px) {
    
    /* --- Mobile Layout for "About Me" Section --- */
    .bio-page .bio-section {
        /* Switch from Grid to Flexbox for easier re-ordering */
        display: flex;
        flex-direction: column; /* Stack all items vertically */
        align-items: center;    /* Center-align items horizontally */
        padding: 2rem;
    }

    /* --- Set the Display Order for "About Me" --- */
    /* Lower numbers come first. */
    .bio-page .bio-heading {
        order: 1; /* First item */
        width: 100%; /* Ensure heading takes full width */
    }
    .bio-page .bio-photo {
        order: 2; /* Second item */
        width: 200px; /* A good size for mobile */
        margin-bottom: 1.5rem; /* Add space below the photo */
    }
    .bio-page .bio-text {
        order: 3; /* Third item */
        text-align: left; /* Left-align text for readability */
    }

    /* --- Mobile Layout for the Contact Section --- */
    .bio-page .contact-grid {
        /* Switch from Grid to Flexbox on mobile for easy re-ordering */
        display: flex;
        flex-direction: column;
    }

    /* --- Set the NEW Stacking Order for Contact --- */
    .bio-page .contact-info {
        /* This is the "Get in Touch" column with address/social links */
        order: 2; /* Make this the SECOND item */
        
        /* Remove the side border and add a top border for separation */
        border-right: none;
        border-top: 1px solid #e0e0e0;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .bio-page .collaboration-info {
        /* This is the "Collaborate with Me" column with the form */
        order: 1; /* Make this the FIRST item */
    }
}

}
