body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    background-color: #f8f9fa;
    color: #202124;
}

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

.profile-content {
    flex: 2;
    padding-left: 2rem;
}

.bachelor-image img {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.bachelor-content {
    flex: 2;
    padding-left: 2rem;
}

.master-image img {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.master-content {
    flex: 2;
    padding-left: 2rem;
}

.row {
    display: flex;
    align-items: center; 
    gap: 40px; 
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.row:nth-child(odd) {
    background-color: #f8f9fa;
}

/* Image & Details Container */
.project-image {
    flex: 1;
    min-width: 0;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-details {
    flex: 1; 
}

.project-details h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

.project-meta {
    font-size: 1.2rem;
    color: #5f6368;
    margin-bottom: 0.5rem;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #1764c2;
}

.project-right {
    flex-direction: row-reverse; /* Reverses the order of the flex items */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .project-row {
        flex-direction: column; /* Stacks items on top of each other */
        text-align: center;
    }
    .project-right {
        flex-direction: column; /* Ensure all rows stack */
    }
}

.timeline-container {
    width: 100%;
    margin: 0;
    padding: 0;
    height: calc(100vh - 80px);
    overflow-y: scroll; 
    scroll-snap-type: y proximity;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.timeline-container h1 {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    padding: 2rem 20px 1rem 20px;
    margin: 0;
    z-index: 100;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: #202124;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.timeline-event {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center; 
    padding: 20px;
    margin: 10vh 20px;
    opacity: 0.6;
    transition: all 0.5s ease-in-out;
}

.timeline-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 500px;
    height: 200px;
    border: 2px solid transparent;
    transition: all 0.5s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-event h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #666;
    transition: all 0.5s ease-in-out;
    font-weight: 300;
}

.timeline-event p {
    color: #666;
}

.timeline-date {
    font-style: italic;
    font-weight: 500;
    color: #888;
}

/* Active State (on scroll snap) */
.timeline-event:focus-within {
    opacity: 1;
}

.timeline-event:focus-within .timeline-content {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: #007bff;
}

.timeline-event:focus-within h2 {
    font-size: 3rem; 
    color: #007bff;
}

.timeline-content-job:focus-within h2 {
    font-size: 3rem; 
    color: #8c00ff;
}

/* Center timeline event highlighting */
.timeline-event.center {
    opacity: 1;
}

.timeline-event.center .timeline-content {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: #f8f9ff;
    background-color: #f8f9ff;
}

.timeline-event.center h2 {
    font-size: 2rem;
    color: #1a73e8;
    font-weight: 500;
}

.timeline-event.center .job h2 {
    color: #8c00ff;
}

/* Safari fix */
@supports (-webkit-touch-callout: none) {
    .timeline-container {
        scroll-snap-type: y proximity;
    }
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styling */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #5f6368;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1a73e8;
}

/* Main Content Styling */
main {
    padding: 2rem 0;
    text-align: center;
}

/* Uniform page titles */
h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #202124;
    margin: 2rem auto;
    padding: 1rem 20px;
    max-width: 1200px;
    text-align: center;
    line-height: 1.2;
}

p {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* Footer Styling */
footer {
    background-color: #f8f9fa;
    color: #70757a;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #dadce0;
}

/* Social Icons */
.social-icons a {
    color: #70757a;
    font-size: 1.75rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1a73e8;
}