/* 1. Global Reset & Typography */
:root {
    /* Define a color palette for easy changes later */
    --text-color: #111;
    --background-color: #ffffff;
    --link-color: #0077b5; /* LinkedIn Blue for a professional touch */
    --light-gray: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 20px;
    display: flex; /* Centers the container */
    justify-content: center; /* Centers the container */
}

/* 2. Layout/Container */
.container {
    max-width: 600px; /* Keep the content narrow and focused */
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

/* 3. Header & Text Styles */
.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* New rule for the container holding the image and name */
.profile-header-container {
    display: flex; /* Enable Flexbox layout */
    align-items: center; /* Vertically center the image and the text */
    justify-content: center; /* Horizontally center the entire block */
    gap: 15px; /* Add some space between the image and the name */
    margin-bottom: 10px; /* Space below the name/image block */
}

/* Style the image */
.profile-pic {
    width: 80px; /* Set the size of the image */
    height: 80px; /* Keep it square */
    border-radius: 50%; /* Makes the image perfectly circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 2px solid var(--text-color); /* Optional: A small border around the picture */
}

/* Adjust the H1 to remove its default margin, which often clashes with Flexbox */
.profile-header-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0; /* Remove default margin so it aligns better with the picture */
}

.tagline {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray); /* Subtle divider */
}

/* 4. Firm Block Style */
.firm-block {
    margin: 30px auto; /* 'auto' for horizontal centering */
    padding: 25px; /* Slightly more padding for the card look */
    border: 1px solid var(--light-gray); /* Keep a subtle border */
    border-radius: 10px; /* More rounded corners for a softer card look */
    background-color: #ffffff; /* Explicitly white background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* A soft, elegant shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
    max-width: 450px; /* Optionally constrain card width for better aesthetics */
}

.firm-block {
    margin: 30px auto; /* 'auto' for horizontal centering */
    padding: 25px; /* Slightly more padding for the card look */
    border: 1px solid var(--light-gray); /* Keep a subtle border */
    border-radius: 10px; /* More rounded corners for a softer card look */
    background-color: #ffffff; /* Explicitly white background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* A soft, elegant shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
    max-width: 450px; /* Optionally constrain card width for better aesthetics */
}

.firm-description {
    font-size: 1rem; /* Slightly larger text */
    margin-bottom: 15px; /* More space below description */
    color: #444; /* Slightly softer text color for description */
}

.firm-link {
    display: inline-block;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600; /* Bolder link text */
    font-size: 1rem; /* Slightly larger link */
    padding: 5px 0; /* Add some vertical padding to make it click-friendly */
}

.firm-link:hover {
    text-decoration: underline;
    color: #00568f; /* Darker blue on hover */
}

.firm-block {
    margin: 30px auto; /* 'auto' for horizontal centering */
    padding: 25px; /* Slightly more padding for the card look */
    border: 1px solid var(--light-gray); /* Keep a subtle border */
    border-radius: 10px; /* More rounded corners for a softer card look */
    background-color: #ffffff; /* Explicitly white background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* A soft, elegant shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
    max-width: 450px; /* Optionally constrain card width for better aesthetics */
}

/* 6. X Feed Section Style */
.x-feed-section {
    margin: 40px 0; /* Add vertical space around the feed */
    padding: 20px 0;
}

.x-feed-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px; /* Space below the header, above the feed */
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

/* 5. Links Section */
.links-section h2 {
    margin-top: 40px;
    font-size: 1.5rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
    padding: 8px 15px;
    color: var(--background-color);
    background-color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: var(--link-color);
    color: #fff;
}
