hr, ol, ul {
    margin: 0;
}

.btn.btn-secondary {
    background-color: #535A5F;
}

.section h2 {
    margin-bottom: 40px;
    font-family: Roboto Mono, monospace;
}

.section {
    padding-bottom: 60px;
    padding-top: 60px;
}

.download-link {
    border-radius: 25px;
    padding: 15px;
    background-color:#5C47A9;
    border-color: #5C47A9;
    text-transform: uppercase;
    transition: opacity .3s;
    margin-top: 20px;
}

.download-link:hover {
    background-color:#5C47A9;
    border-color: #5C47A9;
    opacity: 0.8;
}

.download-link i {
    margin-right: 10px;
}

.menu {
    position: fixed;
    padding: 0;
    height: 0;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 70px;
    transition: all .5s;
    font-family: Roboto Mono, monospace;
}

.menu nav {
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.menu.active {
    background-color: white;
    box-shadow: 0 5px 8px 0 rgb(0 0 0 / 14%);
}

.menu .menu__wrapper {
    z-index: 1;
    margin-top: 50px;
    transition: all .3s;
}

@media screen and (max-width: 990px) {
    .menu {
        background-color: white;
        box-shadow: 0 5px 8px 0 rgb(0 0 0 / 14%);
    }

    .menu .menu__wrapper {
        margin-top: 25px;
    }
}

.menu.active .menu__wrapper {
    margin-top: 25px;
}

.menu__wrapper li {
    display: inline-block;
    font-weight: 800;
    margin-right: 50px;
}

.menu li a, .hover-underline {
    display: inline-block;
    position: relative;
    padding: 0.1em 0;
    overflow: hidden;
}

.menu li a::after,
.hover-underline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1em;
    background-color: white;
    transition: opacity 300ms, transform 300ms;
    opacity: 1;
    transform: translate3d(-101%, 0, 0);
}

.menu.active li a::after {
    background-color: black;
}

.menu li a:hover::after,
.menu li a:focus::after,
.hover-underline:hover::after,
.hover-underline:focus::after {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.mobile-menu__button {
    color: white;
    opacity: 0.5;
    transition: all .3s;
    background-color: transparent;
    border: none;
}

.mobile-menu__close {
    border: none;
    color: white;
    background-color: transparent;
    position: absolute;
}

.mobile-menu__wrapper {
    height: 100%;
    text-transform: uppercase;
    font-weight: 700;
    margin: 20px 0;
}

.mobile-menu__wrapper ul li a {
    color: white;
    padding: 11px;
}

.mobile-menu__wrapper ul li {
    list-style: none;
    padding: 6px 0;
}

.mobile-menu__wrapper ul {
    padding: 30px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.mobile-menu .mobile-menu__close {
    top: 25px;
}

.menu .mobile-menu__button {
    color: #575757;
    opacity: 0.9;
}

.menu a {
    color: white;
    opacity: 1;
    text-decoration: none;
}
.menu.active a{
    color: #575757;
}

.mobile-menu {
    position: fixed;
    left: 0;
    transform: scaleY(0);
    transform-origin: top;
    width: 100%;
    overflow: hidden;
    text-align: center;
    z-index: 999;
    transition: all .3s ease;
    opacity: 0;
    padding: 0;
    background-color: white;
    border-top: 1px solid black;
    box-shadow: 0px 10px 5px 5px rgb(96 96 96 / 34%);
}

.mobile-menu.active {
    top: 70px;
    transform: scaleY(1);
    opacity: 1;
    display: block;
}

.main-header {
    background-color: #5C47A9;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: cover;
    position: relative;
    margin-bottom: 40px;
}

.main-header::before {
    background: linear-gradient(54deg, rgba(74,76,179,.95) 34%, hsla(0,34%,71%, .95));
    height: 100%;
    left: 0;
    right: 0;
    position: absolute;
    content: "";
    z-index: 0;
}

.background {
    background-image: linear-gradient(54deg, rgba(74,76,179,.95) 34%, hsla(0,34%,71%, .80)), url('../img/bg.jpg');
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: #fff;
}

.personal-profile {
    color: white;
    font-family: Roboto Mono, monospace;
    padding-top: 90px;
}

.personal-profile__name {
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 44px;
    font-weight: 800;
}

.personal-profile__avatar img {
    border-radius: 5px;
    box-shadow: 0 0 27px rgb(96 96 96 / 34%);
    width: 90%;
    height: 380px;
    object-fit: cover;
    margin-top: 10px;
    position: relative;
    top: 40px;
}

@media screen and (max-width: 990px) {
    .personal-profile__avatar {
        display: none;
    }

    .main-header {
        background-image: url(../img/avatar.jpg);
    }
}

.personal-profile__info {
    z-index: 1;
}
.personal-profile__info a {
    color: white;
}

.personal-profile__details {
    margin-top: 40px;
}

.personal-profile__details dt {
    float: left;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.4;
}

.personal-profile__info dd {
    padding-left: 100px;
    margin-bottom: 15px;
}

.personal-profile__social {
    font-size: 24px;
    margin-bottom: 40px;
}

.personal-profile__social i:hover {
    opacity: 1;
}

.personal-profile__social i {
    opacity: 0.4;
    color: white;
    transition: all .3s;
}

.resume-list {
    margin-bottom: 30px;
    position: relative;
}

.resume-list__block {
    border-left: 2px solid #5C47A9;
    padding-left: 25px;
    padding-bottom: 50px;

}
.resume-list__block::before {
    width: 12px;
    height: 12px;
    border: 2px solid #5C47A9;
    position: absolute;
    content: "";
    border-radius: 50%;
    background-color: #fff;
    left: 7px;
}

.resume-list__title {
    color: #575757;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.resume-list__block-title {
    text-transform: uppercase;
    color: #5C47A9;
    font-size: 0.9em;
    font-weight: 700;
    padding-bottom: 5px;
    margin: 0;
    font-family: Roboto Mono, monospace;
}
.resume-list__block-title a {
    color: inherit;
}

.resume-list__block-date {
    color: #575757;
    font-size: 0.8em;
    margin: 0;
    padding-bottom: 10px;
    font-family: Roboto Mono, monospace;
}


.testimonials {
    position: relative;
}


.testimonials__circle {
    height: 88px;
    width: 88px;
    border-radius: 50%;
    position: absolute;
    top: -44px;
    right: calc(50% - 44px);
    background-color: #fff;
    padding-top: 44px;
    text-align: center;
    color: #7b67c7;
}

.testimonial__name {
    text-transform: uppercase;
    font-family: Roboto Mono, monospace;
    font-size: 1.1em;
}

.testimonial__project {
    font-style: italic;
    font-size: 0.9em;
    opacity: .7;
}

.testimonial hr {
    margin-bottom: 20px;
    border-top: 1px solid #a98a79;
    opacity: 1;
}


.portfolio__menu {
    font-size: 0.9em;
    opacity: .7;
    margin: 40px 0 20px;

}

.portfolio__menu ul {
    list-style: none;
    padding: 0;
}

.portfolio__menu ul li {
    display: inline-block;
    margin: 0 20px 0 0;
}

.project-card {
    border: 1px solid rgba(153,153,153,0.2);
    margin-bottom: 20px;
    transition: box-shadow .2s;
    padding: 10px 0;
}

.project-card .btn-primary {
    background-color: #5C47A9;
    border-color: #5C47A9;
    transition: opacity .3s;
}
.project-card .btn-primary:hover {
    opacity: 0.9;
}

.project-card:hover {
    box-shadow: 3px 5px 10px 3px #575757;
}

.project-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card__title {
    font-size: 1.2em;
    text-transform: uppercase;
    font-family: Roboto Mono, monospace;
    font-weight: 700;
    line-height: 28px;
    margin: 20px 0;
}

.project-card__stack {
    text-transform: uppercase;
    font-family: Roboto Mono, monospace;
    font-weight: 700;
    font-size: 0.8em;
    margin-top: 40px;
}

.project-card__tags {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;

}

.project-card__tags li {
    box-shadow: 0 1px 4px rgb(0 0 0 / 14%);
    display: inline-block;
    padding: 5px;
    margin: 5px 2px;
    font-size: 0.8em;
}

.contact__buttons {
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

@media screen and (max-width: 500px) {
    .contact__buttons {
        flex-direction: column;
    }

    .contact__button {
        margin-bottom: 10px;
    }
}

.contact__buttons a {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.7em;
}


#testimonials::before, #portfolio::before, #resume::before {
    display: block; 
    content: " "; 
    margin-top: -200px; 
    height: 250px; 
    visibility: hidden; 
    pointer-events: none;
}