@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&display=swap');

:root {
    --font-stack: 'Merriweather', serif;
    --bg-color: #f0f8ff;
    /* AliceBlue - soft clear blue */
    --text-color: #002b5c;
    /* Darker blue for text */
    --link-color: #0056b3;
    --heading-color: #001f3f;
    /* Even darker blue for headings */
    --max-width: 950px;
    /* Increased from 800px to narrow margins */
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0 auto;
    padding: 2rem 1rem;
    max-width: var(--max-width);
}

header {
    margin-bottom: 1.5rem;
    /* Reduced from 3rem */
    border-bottom: 1px solid #d0e0f0;
    padding-bottom: 1.5rem;
    /* Reduced from 2rem */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
}

.profile-img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
}

.header-text {
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c4a6b;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    /* Reduced from 1rem */
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    border-bottom: 1px solid #d0e0f0;
    padding-bottom: 0.25rem;
    /* Reduced from 0.5rem */
    display: inline-block;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
    /* Align with top of logo */
    color: #2c4a6b;
}

h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    margin-top: 1rem;
    font-weight: 700;
    color: #2c4a6b;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.contact-info p {
    margin: 0.25rem 0;
    color: #2c4a6b;
}

section {
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
}

section p {
    margin-top: 0;
    text-align: justify;
}

.meta {
    font-size: 0.9rem;
    color: #5a7b9c;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.role {
    margin-left: 1rem;
    border-left: 2px solid #d0e0f0;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.description {
    color: #444;
    /* Slightly darker for readability */
    font-style: italic;
    opacity: 0.7;
}

.experience-item,
.education-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.item-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
    margin-top: 0;
    /* Removed to align with text */
}

.item-content {
    flex: 1;
}

.contact-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.icon {
    color: #2c4a6b;
    /* Default icon color */
}

.linkedin-icon {
    color: #0077b5;
    /* LinkedIn Blue */
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    body {
        padding: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .experience-item,
    .education-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .role {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #d0e0f0;
        padding-top: 1rem;
    }

    .contact-link-wrapper {
        justify-content: center;
    }
}

/* Blog Section Styles */
.blog-list {
    list-style-type: none;
    padding-left: 0;
}

.blog-list li {
    margin-bottom: 0.75rem;
}

.blog-list .meta {
    display: inline-block;
    width: 120px;
    margin: 0;
}