/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    font-size: 16px;
}

.container {
    width: 100%;
    padding: 4rem 1.5rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles - Match React version exactly */
.header {
    width: 100%;
    max-width: 330px;
    margin: 0 auto 3rem;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-image {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.title {
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.25;
}

.website {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    word-break: break-all;
}

.website:hover {
    color: #1d4ed8;
}

.about-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2rem;
}

.bio {
    color: #374151;
    line-height: 1.6;
    font-size: 0.875rem;
    max-width: 48rem;
}

.bio a {
    color: inherit; /* Uses the same color as the parent text (#374151) */
    text-decoration: none; /* Removes default underline */
}

.bio a:hover {
    text-decoration: underline; /* Adds underline only on hover */
}

/* Section styles - Match React grid layout */
.section {
    width: 100%;
    max-width: 330px;
    margin: 0 auto 3rem;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: start;
}

.item-date {
    font-size: 0.875rem;
    color: #6D6D6D;
    font-weight: 500;
    padding-top: 0.25rem;
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    min-width: 0;
}

.item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111111;
    line-height: 1.25;
    word-break: break-words;
}

.item-title-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.25;
    word-break: break-words;
    transition: all 0.2s ease;
}

.item-title-link:hover {
    text-decoration: underline;
    text-decoration-color: #000000;
}

.item-title-link svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.item-company {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.25;
    margin-top: 0.25rem;
    word-break: break-words;
}

.item-description {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.6;
    word-break: break-words;
}

/* Image styles - Match React responsive layout */
.item-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

.image-container {
    flex-shrink: 0;
}

.portfolio-image {
    max-width: 150px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.portfolio-image:hover {
    opacity: 0.9;
}

/* Contact section styles */
.contact-section-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: center;
}

.contact-platform {
    color: #6D6D6D;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-link-wrapper {
    text-align: left;
    min-width: 0;
}

.contact-link {
    color: #111827;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    word-break: break-all;
}

.contact-link:hover {
    text-decoration: underline;
    text-decoration-color: #111827;
}

.contact-link svg {
    color: #9ca3af;
    flex-shrink: 0;
}

/* Image Overlay - Match React version */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    backdrop-filter: blur(4px);
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.overlay-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.overlay-caption {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Responsive design - Match React breakpoints */
@media (min-width: 768px) {
    .container {
        padding: 4rem 2rem 6rem;
    }
    
    .header {
        max-width: 600px;
    }
    
    .section {
        max-width: 600px;
    }
    
    .section-item, .contact-item {
        grid-template-columns: 140px 1fr;
        gap: 2rem;
    }
    
    .item-images {
        gap: 0.75rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 2rem 1.5rem 6rem;
    }
    
    .profile-section {
        gap: 1rem;
    }
    
    .profile-image {
        width: 6rem;
        height: 6rem;
    }
    
    .section-item, .contact-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }
    
    .item-images {
        gap: 0.5rem;
    }
}
