body {
    margin: 0;
    font-family: Arial, sans-serif;
    transition: background-color 0.5s, color 0.5s;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fixed-section {
    width: 100%;
    background-color: #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.scroll-section {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
    overflow-y: auto;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.fixed-section h1 {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.contact-link {
    color: #333;
    text-decoration: none;
    margin: 5px 0;
    font-size: 16px;
}

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

.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 20px;
}

.icon {
    width: 24px;
    height: 24px;
    transition: fill 0.5s;
}

.icon.sun {
    margin-right: 5px;
}

.icon.moon {
    margin-left: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.dark-mode {
    background-color: #333;
    color: #fff;
}

.dark-mode .fixed-section {
    background-color: #444;
}

.dark-mode .contact-link {
    color: #ddd;
}

.dark-mode .contact-link:hover {
    color: #80BDFF;
}

.dark-mode .icon {
    filter: invert(1);
}

.dark-mode ul li {
    color: #fff;
}

ul {
    list-style-type: disc;
    padding-left: 40px;
}

/* Education Section */
.education-entry {
    margin: 20px 0;
    max-width: 600px;
    margin-left: 20px;
    margin-right: auto;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school {
    font-weight: bold;
}

.year {
    font-style: italic;
}

.degree {
    margin-top: 5px;
}


@media (min-width: 768px) {
    .container {
        flex-direction: row;
        height: 100vh;
    }

    .fixed-section {
        width: 250px;
        position: fixed;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .scroll-section {
        margin-left: 250px;
        overflow-y: scroll;
    }

    .switch-container {
        margin-top: auto;
        margin-bottom: 20px;
        justify-content: center;
    }

}