@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

:root {
    --background-color: #f4f4f4;
    --text-color: #333333;
    --second-text-color: #595959;
    --sidebar-background-color: #54545480;
    --sidebar-hover-background-color: #545454;
    --sidebar-text-color: #f3f3f3;
    --primary-color: #6F00FF;
    --secondary-color: #090018;
    --accent-color: #A8A8A8;

    font-size: 14px;
}

/* defaults */
body {
    font-family: 'Montserrat', sans-serif;

    h1, h2, h3, h4, h5, h6, p {
        line-height: 1.5em;
        margin-bottom: 0.5em;
    }

    /* h3 */
    .title {
        font-size: 1.5rem;
    }

    /* h4 */
    .subtitle {
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .subtitle span {
        color: var(--secondary-color);
    }

    .date-location {
        font-size: 0.8rem;
        margin-top: 0;
        color: var(--accent-color);
    }

    .date-location span {
        color: var(--second-text-color)
    }

    h5 {
        font-size: 1rem;
        margin-top: 0;
    }

    h6 {
        font-size: 0.7rem;
        margin-top: 1em;
    }

    p {
        font-size: 1rem;
    }

    a {
        font-size: 1rem;
        line-height: 1.5em;
        color: var(--text-color);
    }

    /* Buttons */
    button {
        font-size: 1rem;
        text-decoration: none;
        color: var(--text-color);
        background-color: var(--background-color);
        padding: 0.4em 1em;
        margin: auto 0;
        border: 2px solid var(--primary-color);
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
        transition-duration: 0.4s;
    }

    button:hover {
        color: var(--background-color);
        background-color: var(--primary-color);
        box-shadow: 0 0 0.5em var(--primary-color), 0 0 1em var(--primary-color), 0 0 2em var(--primary-color);
    }
}

/* main styles */
.main {
    display: flex;
    flex-direction: row-reverse;
    width: 1200px;
    margin: auto;
}

/* main content */
main {
    width: 830px;
    color: var(--text-color);
    background-color: var(--background-color);
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 80px;
}

/* about styles */
.about {
    h2 {
        font-size: 0.9rem;
        line-height: 1.5em;
        margin-bottom: 0.5em;
    }

    h1 {
        font-size: 3rem;
        line-height: 1.5em;
        margin: 10px 0 0.5em 0;
    }

    hr {
        border: 0;
        height: 1px;
        background-color: var(--accent-color);
        margin: 0.5em 0.5em;
    }

    #about {
        margin-left: 1.5em;
    }
}

/* education styles */
.education {
    > *:not(:first-child) {
        margin-top: 1em;
    }

    .topic {
        display: flex;
        justify-content: space-between;
    }

    .topic h4 {
        margin-top: 0.5em;
    }

    h5 span {
        color: var(--second-text-color);
    }

    dt {
        font-size: 1rem;
        margin-left: 10px;
    }

    dd {
        margin-left: 20px;
    }

    h6 {
        display: flex;
        justify-content: space-between;
        white-space: nowrap;
        content: '';
        flex-grow: 1;
        border-bottom: 1px dotted var(--accent-color);
    }
}

/* projects styles */
.projects {
    ol {
        font-size: 1rem;
        line-height: 1.5em;
        padding: 0;
        margin: 0 1em 0 20px;
    }

    span {
        display: flex;
        align-items: center;
        color: var(--second-text-color);
    }

    a {
        font-size: 1.1rem;
    }

    span span span {
        font-weight: 700;
    }

    .dots {
        flex-grow: 1;
        border-bottom: 2px dotted var(--accent-color);
        margin: 0 10px;
    }
}

/* work styles */
.experience {
    ul {
        font-size: 0.9rem;
        line-height: 1.5em;
        color: var(--second-text-color);
    }
}

/* hobbies and interests styles */
.hobbies-and-interests {
    dd {
        font-size: 0.9rem;
        line-height: 1.5em;
        margin-bottom: 0.5em;
        margin-left: 20px;
        color: var(--second-text-color);
    }
}

/* sidebar styles */
.sidebar {
    padding: 40px 0;
    background-color: var(--sidebar-background-color);
    width: 370px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background-color 0.5s;

    .photo {
        width: 370px;
    }

    .sidebar-text {
        color: var(--sidebar-text-color);
        margin-left: 40px;
    }

    ul {
        font-size: 1rem;
        line-height: 1.5em;
        padding: 0;
        margin-left: 20px;
        color: var(--primary-color);
    }

    a {
        transition: color 0.5s;
    }

    span {
        color: var(--sidebar-text-color);
    }
}

.sidebar:hover {
    background-color: var(--sidebar-hover-background-color);
}

.sidebar:hover .sidebar-text a {
    color: var(--sidebar-text-color);
}

/* Footer */
footer {
    display: none;
}

/* Fade-In Animation*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Fade-Out Animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}
