/* Basic Styles */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
}

/* Header */
header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.title {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.bio {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent content from spilling out during resize */
}

.bio-text {
    font-size: clamp(0.9rem, 1.8vh, 1.1rem);
}

.bio h3 {
    font-size: clamp(1.1rem, 2.2vh, 1.4rem);
    margin-bottom: 0.5rem;
}

.photo {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.social-media {
    margin-top: auto;
}
.social-media ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-media a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    font-size: 2rem; /* Adjust size as needed */
}



/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Timeline Styles */
:root {
    --timeline-padding: 3rem;
    --timeline-line-left-pos: 1.5rem;
}

.timeline {
    position: relative;
    padding-left: var(--timeline-padding);
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: var(--timeline-line-left-pos);
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #555;
    transform: translateX(-50%); /* Center the line */
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(var(--timeline-line-left-pos) - var(--timeline-padding));
    top: 5px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transform: translateX(-50%); /* Center the dot on the line */
}

.timeline-item h4 {
    margin: 0 0 0.25rem 0;
    color: #fff;
    font-size: clamp(1rem, 2vh, 1.2rem);
}

.timeline-item h5 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(0.9rem, 1.8vh, 1.1rem);  /* Larger */
    color: #e0e0e0;                         /* Brighter */
    font-weight: 600;                         /* Bolder */
}

.timeline-description {
    margin: 0;
    font-size: clamp(0.85rem, 1.7vh, 1rem); /* Smaller */
    color: #aaa;                            /* Dimmer */
}

/* Education Timeline Specifics */
.education-timeline .timeline-item::before {
    display: none; /* Hide the default dot */
}

.education-timeline .timeline-logo {
    position: absolute;
    left: calc(var(--timeline-line-left-pos) - var(--timeline-padding));
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    transform: translateX(-50%); /* Center the logo on the line */
    object-fit: contain;
    padding: 2px;
}


/* Responsive Design */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        padding-left: 1rem; /* Add some padding back for aesthetics */
        padding-right: 1rem;
    }

    .title {
        order: 1;
    }

    .photo {
        order: 2;
        margin-bottom: 2rem;
    }

    .bio {
        order: 3;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    /* Adjust timeline for tablets */
    .timeline {
        --timeline-padding: 2.75rem;
        --timeline-line-left-pos: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Adjust timeline for mobile */
    .timeline {
        --timeline-padding: 2.5rem;
        --timeline-line-left-pos: 1rem;
    }
}