/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Arial, sans-serif; /* Standard web-safe font */
    background-color: #f8f8f8;
    margin: 20px; /* Sets uniform margin for top, right, bottom, left */
    max-width: 1200px;
    padding: 0 1em; /* Add padding instead of margin for left and right */
    margin-left: auto;
    margin-right: auto;
}

.top-section {
    display: flex;
    align-items: center;
    margin-bottom: 2em;
    flex-direction: column; /* Start with mobile-first approach */
    justify-content: center;
}

.headshot-container,
.resume-headshot {
    border-radius: 50%;
    margin-bottom: 1em; /* Adjust for mobile-first */
}

.headshot-container {
    flex: 0 0 auto;
}

.contact-info {
    flex: 1;
    text-align: left;
}

.resume-headshot {
    width: 100px;
    height: 100px;
    border: 4px solid #05026c;
    object-fit: cover;
    display: block; 
}

.resume-section {
    margin-bottom: 2em;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    will-change: transform;
    background-color: #fff; /* Ensures the box appearance is maintained */
}

.resume-section h2,
.timeline-date {
    font-weight: bold;
}

.resume-section h2 {
    margin-bottom: 0.5em;
    background-color: #05026c;
    border-radius: 4px;
    color: white;
    padding: 5px 10px;
    display: inline-block;
    font-size: 1.2em;
}

ul {
    padding-left: 20px;
    list-style: disc; /* Style for list bullets */
}

li {
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.degree,
.school {
    font-weight: bold;
    margin-bottom: 0.3em;
    display: block;
}

.degree {
    margin-top: 20px;
}

#education p,
.timeline-content p {
    font-style: italic;
    color: #555;
}

/* Timeline Styles */
.timeline {
    border-left: 3px solid #05026c;
    padding-left: 20px;
    margin-left: 20px;
    position: relative;
}

.timeline-entry {
    margin-top: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.timeline-entry:hover {
    background-color: #f0f0f0;
}

.timeline-content h3,
.timeline-content li {
    margin: 5px 0;
    color: #333;
}

/* Start with all timeline entries hidden */
.timeline-content {
    display: none;
}

/* Space out timeline entries */
.timeline-entry:not(:first-child) {
    margin-top: 20px;
}

/* Style for tasks, features, and tools & technologies sections */
.timeline-entry .tasks h4,
.timeline-entry .features h4,
.timeline-entry .tools-tech h4 {
    font-weight: bold;
}

.timeline-headline {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #05026c;
}

.timeline-entry .tasks ul,
.timeline-entry .features ul,
.timeline-entry .tools-tech ul {
    margin-top: 5px;
    margin-left: 20px; /* Adjust if necessary for proper indentation */
    font-weight: normal; /* Ensure text is not bold */
    list-style-type: circle; /* Style for list bullets */
}

.timeline-entry .features ul li {
    font-weight: normal; /* Features list items should be normal weight */
}

/* Responsive Styles */
@media (max-width: 768px) {
    body, html {
        margin: 20px 0; /* Remove left and right margin for smaller screens */
        padding: 0 10px; /* Add some padding instead */
    }

    .top-section {
        align-items: flex-start;
    }
    
    .headshot-container {
        margin: 0 0 1em 0;
    }
    
    .timeline {
        margin-left: 10px;
        padding-left: 15px;
    }
    
    .resume-section h2 {
        font-size: 1em;
    }

    .resume-section {
        margin: 1em 0; /* Adjust margins for mobile */
        padding: 1em; /* Ensure padding is consistent */
    }
}