/* =====================================================================
   DB COLOR PALETTE
   ===================================================================== */
/* 
Q1: #df3631
Q2: #814a98
Q3: #f4cd13
Q4: #57BBCE 

alternative blues 
#3498db
#1585f4

alternative purple
#cf15f4
*/

/* =====================================================================
   GLOBAL RESETS
   ===================================================================== */
/* Remove margin and padding from all elements, and use border-box for sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================================
   BODY STYLING
   ===================================================================== */
/* Set the primary font stack, base line-height, background, and body padding/margins */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #1e1e1e;
    padding: 20px;
    margin: 0;
    min-height: 100vh; /* Ensure the body fills viewport height */
}

/* =====================================================================
   MAIN CONTAINER
   ===================================================================== */
/* Center the main content, set max width and visual style */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #282a36;
    border: 2px solid #1585f4;
    padding: 40px;
}

/* =====================================================================
   HEADER STYLING
   ===================================================================== */
/* Header container: bottom margin and background image styling */
header {
    margin-bottom: 40px;
    background-image: url('/assets/header-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 40px;
    border-radius: 4px;
    position: relative;
}

/* Add an overlay to the header for contrast */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(40, 42, 54, 0.7);
    border-radius: 4px;
    z-index: 0;
}

/* Layout for header content (flexbox row, spacing, z-index above overlay) */
.header-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* =====================================================================
   PROFILE IMAGE SECTION
   ===================================================================== */
/* Profile image section container, with border color and centering */
.profile-section {
    width: 150px;
    min-width: 150px;
    height: 150px;
    border: 5px solid #1585f4;
    background-color: #282a36;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Larger, floated profile image on homepage */
main .profile-section.home-headshot {
    float: left !important;
    margin-right: 40px;
    margin-bottom: 20px;
    margin-top: 0;
    width: 300px !important;
    min-width: 300px !important;
    height: 300px !important;
}

/* Cover images: maintain aspect ratio, float left */
main .cover-image {
    float: left !important;
    margin-right: 40px;
    margin-bottom: 20px;
    margin-top: 0;
    width: 263px;
    height: 350px;
    border: 5px solid #1585f4;
    background-color: #282a36;
    overflow: hidden;
    display: block;
    border-radius: 4px;
    box-sizing: border-box;
}

main .cover-image a {
    display: block;
    width: 100%;
    height: 100%;
}

main .cover-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Profile image itself: fill container and cover, no distortion */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================================
   HEADER TEXT AND NAME
   ===================================================================== */
/* Header text area: vertical stacking, centered */
.header-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Name/title styling: large, bold, prominent color and background */
.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1585f4;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    display: inline-block;
    border-radius: 4px;
    width: fit-content;
}

/* Roles (e.g. MD PhD, Scientist): subtle color and padding */
.roles {
    font-size: 1.2rem;
    color: #1585f4;
    margin: 0;
    font-weight: 400;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    display: inline-block;
    border-radius: 4px;
    width: fit-content;
}

/* =====================================================================
   SITE NAVIGATION SECTIONS
   ===================================================================== */
/* Navigation area: background, rounded, inline-block for compact nav sections */
.nav-section {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    display: inline-block;
    border-radius: 4px;
    width: fit-content;
}

/* Nav label (e.g. "PAGES:", "CONNECT:"): bold yellow label */
.nav-label {
    color: #f4cd13;
    font-weight: 700;
    margin-right: 12px;
    font-size: 0.95rem;
}

/* Navigation links span: blue color and size */
.nav-links {
    color: #df3631;
    font-size: 0.95rem;
}

/* Individual navigation links: base color, remove underline */
.nav-links a {
    color: #df3631;
    text-decoration: none;
}

/* Underline links on hover for clarity */
.nav-links a:hover {
    text-decoration: underline;
}

/* =====================================================================
   MAIN CONTENT AND TYPOGRAPHY
   ===================================================================== */
/* Main content: set text color and remove default padding */
main {
    padding: 0;
    color: #f8f8f2;
}

/* H1 headline: size, color, underline style, margins */
h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #f4cd13;
}

/* H2: slightly smaller */
h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #df3631;
}

/* H3: smallest */
h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #814a98;
}

/* Paragraphs: bottom margin and readable text color */
p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #f8f8f2;
}

/* Lists: left padding and text color */
ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: #f8f8f2;
}

/* List items: bottom spacing and consistent color */
li {
    margin-bottom: 8px;
    color: #f8f8f2;
}

/* =====================================================================
   LINKS + UTILITY
   ===================================================================== */
/* All links: blue by default, no underline */
a {
    color: #1585f4;
    text-decoration: none;
}
/* Underline on hover for clarity */
a:hover {
    text-decoration: underline;
}

/* =====================================================================
   HORIZONTAL RULE & FOOTER
   ===================================================================== */
/* Divider line: thin and gold */
hr {
    border: none;
    border-top: 2px solid #f1c40f;
    margin: 32px 0;
}

/* Footer block: top margin, top border, centered text */
footer {
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    border-top: 2px solid #f4cd13;
}

/* Footer text: small and soft purple */
footer p {
    font-size: 0.9rem;
    color: #1585f4;
    margin: 0;
}

/* =====================================================================
   RESPONSIVE DESIGN
   ===================================================================== */
/* Adjust layout and sizing for tablets and mobile screens */
@media (max-width: 768px) {
    /* Stack header content vertically and center horizontally */
    .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Keep profile-section at smaller size on mobile and center it */
    .profile-section {
        width: 150px;
        min-width: 150px;
        height: 150px;
        margin-left: auto;
        margin-right: auto;
        float: none !important;
    }

    /* Decrease headline size for mobile and center */
    .name {
        font-size: 2rem;
        text-align: center;
    }

    /* Tighter container padding for smaller screens */
    .container {
        padding: 20px;
    }

    /* Home page headshot: display first, centered, text flows below */
    main .profile-section.home-headshot {
        float: none !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
        width: 200px !important;
        min-width: 200px !important;
        height: 200px !important;
    }
}
