body {
    background-color: #f8f8f8;
    color: #222;
    font-family: "IBM Plex Sans", sans-serif;
    margin: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}



/* === HEADING STYLES === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.3s;
}

.header img {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    border-radius: 50%;
}

.header .nav a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.3s;
    position: relative;
}

.header .nav a:hover {
    color: gray;
}

/* navigation links underlining */
.nav a::after {
    opacity: 0.5;
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: gray;
    border-radius: 3px;
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

.nav a:hover::after {
    width: 100%;
    left: 0;
}

.nav a.disabled::after {
    width: 100%;
    left: 0;
}



/* === MAIN CONTENT STYLES === */
.main-content {
    max-width: 800px;
    width: 100%;
    margin-top: 40px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.text {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    transition: color 0.3s;
}



/* === LINK STYLES === */
a {
    color: #0077ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #004ecc;
    text-decoration: underline;
}



/* === LIST STYLES === */
.regular-list {
    list-style: none;
    /*padding: 0;*/
    /*margin: 0;*/
}

.regular-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.regular-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #0077ff;
    font-size: 18px;
    font-weight: bold;
}

.regular-list .nested {
    margin-top: 8px;
    padding-left: 20px;
}

.regular-list .nested li {
    font-size: 0.95em;
}

.regular-list .nested::before {
    content: "";
}

.date-list {
    list-style: none;
    /*padding: 0;*/
    /*margin: 0;*/
}

.date-list li {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(150, 150, 150, 0.3);
}

.date-list .text {
    flex: 1;
    min-width: 50%;
}

.date-list .year {
    color: #0077ff;
    text-align: right;
    white-space: nowrap;
    min-width: 100px;
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(150, 150, 150, 0.3);
}

.projects-list .project-title {
    font-size: 18px;
    color: #222;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.projects-list .project-description {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.projects-list li:hover {
    background-color: rgba(0, 119, 255, 0.05);
    transition: background-color 0.2s ease-in-out;
}



/* === CONTACT STYLES === */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    border-left: 3px solid #222;
}

.contact-link {
    text-decoration: none;
    color: #222;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.contact-link:hover {
    color: #0077ff;
    transform: translateX(5px);
}

.contact-label {
    font-weight: 600;
    margin-right: 10px;
    color: #444;
}



/* === DARK MODE STYLES === */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ddd;
    }

    .header {
        border-color: #444;
    }

    .header .nav a {
        color: #ddd;
    }

    .text {
        color: #bbb;
    }

    .projects-list .project-title {
        color: #ffffff;
    }

    .projects-list .project-description {
        color: #b0b0b0;
    }

    .projects-list li:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .contact-container {
        border-left: 3px solid rgba(255, 255, 255, 0.3);
    }

    .contact-link {
        color: #e0e0e0;
    }

    .contact-link:hover {
        color: #66aaff;
    }

    .contact-label {
        color: #bbb;
    }
}



/* === MOBILE SCREEN STYLES === */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 10px;
    }

    .header .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .header .nav a {
        margin: 5px 10px;
    }

    .main-content {
        max-width: 90%;
        font-size: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .text {
        font-size: 16px;
    }

    .regular-list li {
        padding-left: 15px;
    }

    .projects-list .project-title {
        font-size: 16px;
    }

    .projects-list .project-description {
        font-size: 14px;
    }

    .date-list li {
        flex-direction: column;
    }
    .date-list .year {
        text-align: left;
        margin-top: 5px;
    }
}

@media (max-width: 400px) {
    .header .nav a {
        margin: 5px;
    }

    body {
        padding: 30px;
    }
}

