/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=Inter:wght@700&display=swap');

/* --- CSS Variables (Color Palette & Fonts) --- */
:root {
    --bg-color: #DCDFE4;
    --primary-dark: #121212;
    --primary-light: #F8F9FA;
    --accent-color: #3B5998;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* --- Main Content Card --- */
.container {
    background-color: var(--primary-light);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    width: 100%;
}

/* --- UPDATED: Card Header & Logo Alignment (Desktop) --- */
.card-header {
    display: flex; /* Still using flex for vertical alignment */
    align-items: center;
    position: relative; /* 1. Makes this a positioning context for the h1 */
    margin-bottom: 2.5rem;
    min-height: 80px; /* Ensures header has height even with absolute children */
}

.site-logo {
    height: 80px; 
    width: auto;
}

/* --- UPDATED: Main Heading Alignment --- */
h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin: 0;

    /* 2. Position the h1 absolutely within the header */
    position: absolute;
    left: 50%; /* 3. Move its left edge to the center */
    transform: translateX(-50%); /* 4. Pull it back by half its own width to be truly centered */
    
    /* Prevents the text from overlapping the logo on narrower screens */
    padding: 0 100px; /* Adds space on either side */
    white-space: nowrap; /* Prevents the text from wrapping */
}

/* --- Body Text --- */
.message {
    font-size: 1.1rem;
    color: var(--primary-dark);
    opacity: 0.8;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* --- LinkedIn Link & Icon --- */
.linkedin-link {
    display: inline-block;
    color: var(--primary-dark);
    transition: transform 0.3s ease, color 0.3s ease;
    text-align: center;
    width: 100%;
}

.linkedin-link:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.linkedin-icon {
    width: 40px;
    height: 40px;
}

/* --- Image Gallery --- */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.gallery-image {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(85%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-image:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    /* --- UPDATED: Mobile Header Alignment --- */
    .card-header {
        flex-direction: column; 
        justify-content: center; 
        align-items: center;
        gap: 15px;
        margin-bottom: 2rem;
        min-height: 0; /* Reset min-height */
        position: static; /* Reset the positioning for mobile */
    }

    .site-logo {
        height: 75px; 
    }

    h1 {
        position: static; /* Reset the positioning */
        transform: none; /* Reset the transform */
        padding: 0; /* Reset the padding */
        font-size: 2.2rem;
        text-align: center;
    }

    .message {
        font-size: 1rem;
    }
    
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-image {
        max-width: 100%;
    }
}