@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

:root {
    --main-color: #212121;
    --dark-color: #111111;
    --light-color: #ffffff;
    --alt-light-color: #f1f1f1;
    --dark-grey-color: #585858;
    --hover-color: #4285F4;
    --scroll-bg-color: #f1f1f1;
    --scroll-color: #888888;
    --scroll-hover-color: #555555;
    --primary-font: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-color);
    font-family: var(--primary-font);
    font-weight: 400;
}

.responsive-img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--hover-color);
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: flex-start;
    align-items: stretch;
}

aside {
    background-color: var(--main-color);
    color: var(--light-color);
    width: 400px;  
    border-top: 20px solid var(--light-color);
    border-bottom: 20px solid var(--light-color);
    border-left: 20px solid var(--light-color); 
    position: relative;
    padding: 30px 0;
}

main {
    background-color: var(--light-color);
    color: var(--main-color);
    width: calc(100% - 400px);  
    border-top: 20px solid var(--main-color);
    border-bottom: 20px solid var(--main-color);
    border-right: 20px solid var(--main-color); 
    padding: 30px;   
}

.section {
    margin-bottom: 50px;
}

main .section:last-child {
    margin-bottom: 0;
}

.section-title {
    text-transform: uppercase;
    color: var(--main-color);
    font-weight: 700;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 6px;
    margin: 0 0 30px;
}

.list a {
    color: var(--main-color);
}

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

/* Start - Aside */
    h1 {
        font-weight: 700;
        text-align: center;
        font-size: 36px;
        margin: 0 0 30px;
        border-bottom: 1px solid var(--alt-light-color);
        padding-bottom: 30px;
    }

    .sticky {
        position: fixed;
        height: calc(100vh - 90px);
        overflow-y: auto;
        padding: 0 20px 0 40px;
        top: 45px;
        bottom: 45px;
        width: 370px;
    }

    aside .profile-img-box {
        max-width: 260px;
        margin: 0 auto 20px;
    }

    aside h2 {
        margin: 0 0 20px;
    }

    aside ul {
        padding-left: 0;
        list-style-position: inside;
        padding-bottom: 32px;
        border-bottom: 1px solid var(--alt-light-color);
        margin: 0 0 40px;
    }

    aside ul li {
        margin-bottom: 4px;
    }

    aside a.info {
        color: var(--light-color);
        font-weight: 700;
        font-size: 18px;
        border: 1px solid var(--alt-light-color);
        margin: 0 auto 30px;
        text-align: center;
        padding: 12px 10px;  
        display: block;      
    }

    aside a.info i {
        margin-right: 6px;
    }

    aside a.info:hover {
        color: var(--hover-color);
        border: 1px solid var(--hover-color);
    }

    aside .call-to-action {
        display: block;
        text-align: center;
        font-weight: 700;
        font-size: 24px;
        padding: 12px 10px;
        background-color: var(--alt-light-color);
        color: var(--main-color);
    }

    aside .call-to-action:hover {
        background-color: var(--hover-color);
        color: var(--alt-light-color);
    }
/* End - Aside */

/* Start - Flex */
    .flex {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;       
    }

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

    .flex-justify-start {
        justify-content: flex-start;
    }

    .flex-align-content-start {
        align-content: flex-start;    
    }

    .flex-align-items-start {
        align-items: flex-start;    
    }

    .three-col-flex-item {
        width: 32%;
    }

    .four-col-flex-item {
        width: 22%;
    }
/* End - Flex */

/* Start - Timeline */
    .timeline {
        position: relative;
    }

    /* The actual timeline (the vertical ruler) */
    .timeline::after {
        content: '';
        position: absolute;
        width: 2px;
        background-color: var(--main-color);
        top: 16px;
        bottom: 0;
        left: 0;
        height: 90%;
    }

    /* Container around content */
    .timeline .container {
        padding: 10px 40px;
        position: relative;
        background-color: inherit;
    }

    /* The circles on the timeline */
    .timeline .container::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        background-color: var(--main-color);
        top: 14px;
        border-radius: 50%;
        z-index: 1;
    }

    /* Place the container to the right */
    .timeline .right {
        left: 0;
    }

    /* Fix the circle for containers on the right side */
    .timeline .right::after {
        left: -6px;
    }

    /* The actual content */
    .timeline .content {
        padding: 0px;
        position: relative;
        border-radius: 6px;
    }

    .timeline .content h3 {
        margin-top: 0;
    }
/* End - Timeline */

/* Start - Circle Progress Bars */
    .circle-progress-bar {
        position: relative;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        z-index: 1000;
        margin: 0 auto;
    } 
    
    .circle-progress-bar svg {
        position: relative;
        width: 150px;
        height: 150px;
        z-index: 1000;
    }

    .circle-progress-bar svg circle {
        width: 100%;
        height: 100%;
        fill: none;
        stroke-width: 6;
        stroke: var(--dark-grey-color);        
        stroke-linecap: round;       
    }

    .circle-progress-bar svg circle.percent-85 {
        stroke-dashoffset: calc(440 - (440 * 85)/100);
        stroke-dasharray: 440;
    }  
    
    .circle-progress-bar .text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    } 
    
    .circle-progress-bar .text .percent {
        font-weight: bold;
        font-size: 24px;
        color: var(--main-color);
    }

    .circle-progress-bar .text h3 {
        margin: 0 0 4px;
        color: var(--main-color);
        font-weight: 400;    
    }
/* End - Circle Progress Bars */

/* Start - Circle Box */
    .circle-box {
        text-align: center;
        border: 2px solid var(--dark-grey-color);
        border-radius: 50%;
        width: 120px;
        height: 120px;
        margin: 0 auto 20px;
    }

    .vh-centered {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .circle-box i {
        font-size: 28px;
        margin-bottom: 6px;
        color: var(--main-color);
    }

    .circle-box h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600; 
        color: var(--main-color);       
    }
/* End - Circle Box */

/* Start - Projects */
    .timeline .container:last-child .content .projects {
        margin-bottom: 0;
    }

    .projects {
        margin-bottom: 40px;
    }

    .project {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-content: center;
        align-items: stretch;
        line-height: 0;
        margin-bottom: 10px;
    }

    .project .project-img {
        width: 200px;
        border: 1px solid var(--main-color);
        border-right: 0;
    }

    .project .project-img img {
        line-height: 0;
        object-fit: fill;
        -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
        filter: grayscale(100%);        
    }

    .project .project-text {
        width: calc(100% - 200px);
        padding: 0 10px;
        line-height: 1;
        border: 1px solid var(--main-color);
    }

    .project .project-text .project-tehnologies {
        color: var(--dark-grey-color);
        font-weight: 400;
        font-size: 12px;
    }

    .project .project-text .project-tehnologies .project-tehnology {
        font-weight: 600;
    }

    .project .project-text .project-title {
        margin: 0 0 6px;
        font-size: 18px;
        color: var(--main-color);
    }

    .project:hover .project-text .project-title {
        color: var(--hover-color);
    }  
    
    .project:hover .project-img img {
        -webkit-filter: grayscale(0); /* Safari 6.0 - 9.0 */
        filter: grayscale(0);
    }
/* End - Projects */

/* Start - Custom ScrollBar */
    /* width */
    ::-webkit-scrollbar {
        width: 6px;
    }

    /* Track */
    ::-webkit-scrollbar-track {
        background: var(--scroll-bg-color); 
    }
    
    /* Handle */
    ::-webkit-scrollbar-thumb {
        background: var(--scroll-color); 
    }
    
    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: var(--scroll-hover-color); 
    }
/* End - Custom ScrollBar */    

/* Start - Responsive */
    @media (max-width: 980px) {
        aside {
            width: 330px;
            border-top: 10px solid var(--light-color);
            border-bottom: 10px solid var(--light-color);
            border-left: 10px solid var(--light-color);    
            padding: 20px 0;        
        }

        main {
            width: calc(100% - 330px);
            border-top: 10px solid var(--main-color);
            border-bottom: 10px solid var(--main-color);
            border-right: 10px solid var(--main-color);   
            padding: 20px 30px;         
        }

        .sticky {
            width: 300px;
            padding: 0 10px 0 20px;
            top: 34px;
            bottom: 34px;   
            height: calc(100vh - 68px);         
        }

        aside .profile-img-box {
            max-width: 180px;
            margin: 0 auto 14px;
        }

        aside ul {
            padding-bottom: 20px;
            margin: 0 0 30px;
        }

        aside a.info {
            margin: 0 auto 20px;
        }

        .section {
            margin-bottom: 40px;            
        }

        .section-title {
            margin: 0 0 20px;
        }

        .timeline .container {
            padding: 10px 24px;
        }

        .circle-progress-bar svg,
        .circle-progress-bar {
            width: 120px;
            height: 120px;
        }

        .circle-box {
            width: 100px;
            height: 100px;
        }

        h1 {
            font-size: 26px;
            padding-bottom: 16px;
            margin: 0 0 20px;
        }

        .circle-box i {
            font-size: 24px;
        }

        .section-title,
        .circle-progress-bar .text .percent,
        aside h2,
        aside .call-to-action {
            font-size: 20px;
        }    
        
        .circle-progress-bar .text h3,
        aside a.info {
            font-size: 16px;
        }

        aside ul li,
        .circle-box h3 {
            font-size: 14px;
        }

        .circle-progress-bar svg circle.percent-85 {
            stroke-dashoffset: calc(340 - (340 * 85)/100);
            stroke-dasharray: 340;
        }        
    }

    @media (max-width: 800px) {
        .four-col-flex-item {
            width: 33.33333333333333%;
        }

        .flex-justify-space-between {
            justify-content: start;
        }
    }

    @media (max-width: 767px) {
        .wrapper {
            flex-wrap: wrap;
        }

        aside, main {
            width: 100%;
            padding: 30px;
        }

        aside {
            border-right: 10px solid var(--light-color); 
        }

        main {
            border-left: 10px solid var(--main-color); 
        }        

        aside .sticky {
            position: static;
            width: 100%;
            height: auto;
            overflow: hidden;  
            padding: 0;                       
        }        
    }

    @media (max-width: 600px) {
        .project {
            flex-wrap: wrap;
            border: 1px solid var(--main-color);
            margin-bottom: 30px;
            padding: 20px 20px;
        }

        .project .project-img,
        .project .project-text {
            width: 100%;
            border: 0;
        }

        .project .project-img {
            text-align: center;
        }

        .project .project-img img {
            margin: 0 auto 10px;
        }
    }

    @media (max-width: 480px) {
        .timeline .content h3 {
            font-size: 16px;
        }
    
        .three-col-flex-item {
            width: 100%;
        }

        .four-col-flex-item {
            width: 50%;
        } 
        
        .circle-progress-bar {
            margin-bottom: 20px;
        }
    }    
/* End - Responsive */