@import url('./vendor/normalize.css');
@import url('./fonts/fonts.css');

.page {
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    display: flex;
    background: radial-gradient(ellipse at center, #fffeea 0%, #fffff8 65%, #ffbfbf 100%);
    overflow: hidden;
}

.main {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    justify-content: space-evenly;
    justify-items: center;
    align-content: space-evenly;
    align-items: center;
    margin: auto;
    flex-direction: row;
    flex-wrap: wrap;
}

.main>section {
    border: 2.5px solid rgb(204, 92, 92);
    box-sizing: border-box;
    border-radius: 5px;
    margin: 5px;
}

.title {
    font-style: normal;
    font-weight: 900;
    font-size: 24px;
    line-height: 29px;
    font-family: "Inter";
    color: #000000;
    margin: 0;
    max-width: 90%;
    align-self: center;
    margin: 2.5%;
}

.title::first-letter {
    color: #cd5c5c;
}

.subtitle {
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    font-family: "Inter";
    color: #000000;
    margin: 0;
    margin-top: 12px;
    margin-bottom: 10px;
    max-width: 90%;
    align-self: center;
}

.underline {
    width: 50%;
    border: 1px solid black;
    opacity: 25%;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: 2px;
}

.about {
    grid-area: about;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
    height: 45%;
}

.about__wrapper {
    margin-left: auto;
    margin-right: 0;
    width: 96%;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    margin-top: 0;
    margin-bottom: 2.5%;
}

.about__article {
    font-weight: 500;
    font-size: 100%;
    line-height: 24px;
    font-family: "Inter";
    margin: 0;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.photo {
    grid-area: photo;
    box-sizing: border-box;
    display: flex;
    width: 20%;
    height: 45%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    justify-content: center;
    align-items: flex-end;
}

.photo__img {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
    z-index: 1;
}
 
.photo__popup-bar {
    position: absolute;
    width: 100%;
    height: 50%;
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 85%;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 100%);
}

.photo__popup-caption {
    position: absolute;
    color: #ffffff;
    margin: 0;
    margin-top: 12px;
    margin-bottom: 10px;
    max-width: 90%;
    align-self: center;
    opacity: 90%;
    z-index: 3;
    bottom: 1%;
}

.profile {
    grid-area: about;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    height: 45%;
}

.profile__wrapper {
    margin-left: auto;
    margin-right: 0;
    width: 96%;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    margin-bottom: 2.5%;
}

.profile__item-wrapper {
    width: 95%;
    margin-left: 5%;
}

.profile__item-wrapper:first-child {
  margin-bottom: 10px;
}

.profile__contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    width: 95%;

}

.profile__contact {
    width: 100%;
    margin: 2.5px;
    margin: 5px;
}

.profile__contact-href {
    font-style: normal;
    font-weight: 500;
    font-size: 1.5vw;
    line-height: 24px;
    font-family: "Inter";
    color: #000000;
    margin: 0;
    align-self: center;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.profile__contact-href:hover {
    text-decoration: underline;
}

.profile__contacts-title {

}

.profile__skills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.profile__skill-break {
    flex-basis: 100%;
}

.profile__skill {
    margin: 2.5px;
    display: flex;
    width: 15%;
    height: auto;
}

.profile__skill-bar {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
}

.profile__contact-bar {
    width: 100%;
    object-fit: contain;
}

.profile__contact-bar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7.5%;
    height: auto;
    margin-right: 10px;
    margin-left: 10px;
}

.portfolio {
    grid-area: portfolio;
    box-sizing: border-box;
    width: 100%;
    height: 48%;
}

.portfolio__title {
    margin: 10px
}

.portfolio__wrapper {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    overflow-x: scroll;
    height: 100%;
}

.portfolio__item {
    color: #d9d9d9;
    scroll-snap-align: center;
    list-style: none;
    height: 95%;
    margin: 0.5%;
    aspect-ratio: auto 1 / 1;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio__image {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
    z-index: 1;
}

.portfolio__item-title {
  margin-top: 35px;
}

.portfolio__image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-sizing: border-box;
    clip-path: polygon(95% 5%, 95% 95%, 5% 95%, 5% 5%);
    opacity: 0%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
    filter: blur(10px) grayscale(50%);
}

.portfolio__item-bar {
    position: absolute;
    width: 95%;
    height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-sizing: border-box;
    opacity: 0%;
    border: 2.5px solid rgb(0, 0, 0);
    transition: opacity 0.3s ease-in-out;
    background-color: #ffffff;
}

.portfolio__item-caption-wrapper {
    position: absolute;
    width: 95%;
    height: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-sizing: border-box;
    z-index: 5;
    transition: opacity 0.3s ease-in-out;
    opacity: 0%;
}

.portfolio__item-article {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    font-family: "Inter";
    color: #000000;
    margin: 0;
    margin-top: 12px;
    margin-bottom: 10px;
    max-width: 80%;
    align-self: center;
    z-index: 3;
}

.portfolio__item:hover .portfolio__item-bar {
    opacity: 75%;

}

.portfolio__item:hover .portfolio__image-overlay {
    opacity: 95%;

}

.portfolio__item:hover .portfolio__item-caption-wrapper {
    opacity: 100%;

}

.portfolio__description-wrapper {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.portfolio__links {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    width: 95%;
}

.portfolio__links:before {
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background: #CD5C5C;
    left: 82%;
    top: 92%;
    position: absolute;
  }

  .portfolio__links:after {
    content: "";
    display: block;
    width: 50px;
    height: 10px;
    background: rgb(204, 92, 92);
    left: 8%;
    top: 16%;
    position: absolute;
  }

.portfolio__link-item {
    width: 40%;
    height: 30px;
    margin: 2.5px;
    padding: 0;
}

.portfolio__link-href {
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    font-family: "Inter";
    color: #000000;
    margin: 0;
    align-self: center;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: max-content;
    height: 100%;
    text-decoration: none;
}

.portfolio__link-href:hover {
    text-decoration: underline;
}

.portfolio__link-bar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 100%;
    margin-right: 5px;
    margin-left: 5px;
    border-radius: 50%;
    box-shadow: 12px 12px 16px 0 rgba(0, 0, 0, 0.1),
    -8px -8px 12px 0 rgba(248, 248, 248, 0.1);
    background: linear-gradient(-45deg, rgba(0,0,0,0.1), rgba(247, 247, 247, 0.1));
}

.portfolio__link-bar {
    width: auto;
    height: 50%;
    object-fit: contain;
}

.portfolio__techs-wrapper {
  width: 50%;
  height: 10%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  list-style: none;
  padding: 0;
}

.portfolio__tech {
  margin: 0;
  padding: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  height: 25px;
  width: max-content;
  margin: 2.5px;
}

.portfolio__tech-img {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
    filter: drop-shadow(1px 1px 1px black);
}


@media screen and (max-width: 320px) {

    .page {
        height: max-content;
        width: 100%;
        overflow: auto;
    }

    .photo {
      width: 95%;
    }

    .about {
        width: 95%;
    }

    .about__wrapper {
        overflow: auto;
    }

	.profile { 
        width: 95%;
    }

    .profile__wrapper {
      overflow-y: auto;
    }

    .profile__item-wrapper {
        display: flex;
        flex-direction: column;
        width: 90%;
        margin-left: 10px;
    }

    .profile__contacts {
        width: 100%;
    }
    
    .profile__wrapper {
        width: 100%;
    }

    .profile__contact-href {
        font-size: 14px;
    }

    .portfolio {
        width: 95%; 
        height: 400px;
    }
 }

@media screen and (min-width: 321px) and (max-width: 768px) {
    
    .page {
        height: max-content;
        width: 100%;
        overflow: auto;
    }

	.profile { 
        width: 95%;
    }

    .profile__wrapper {
        margin-top: 0;
        flex-direction: column;
        overflow-y: auto;
    }

    .profile__item-wrapper {
        width: 95%;
        margin-left: 0;
    }

    .profile__contact-href {
        font-size: calc(90% + 2.5px);
    }

    .profile__contact-bar-wrapper {
        width: 15px;
    }

    .photo {
        width: 50%;
    }

    .about {
        width: 95%;
    }

    .about__wrapper {
        overflow-y: hidden;
    }

    .profile__wrapper {
        margin-top: 0;
        flex-direction: column;
        overflow-y: auto;
    }
    
    .portfolio__title {
        width: 100%;
    }

    .portfolio {
        width: 95%; 
        height: 400px;
    }

    .profile__skill {
        width: 10%;
    }
 }

@media screen and (min-width: 769px) and (max-width: 1024px) {

    .page {
        height: max-content;
        width: 100%;
        overflow: auto;
    }

    .about {
        height: max-content;
        width: 70%;
        overflow-y: none;
    }

    .about__wrapper {
        overflow-y: hidden;
    }

	.profile { 
        width: 95%; 
    }

    .profile__wrapper {
        margin-top: 0;
        flex-direction: row;
        overflow-y: auto;
    }

    .profile__item-wrapper {
        width: 45%;
    }

    .profile__contact-href {
        font-size: calc(90% + 2.5px);
    }
    
    .portfolio__title {
        width: 100%;
    }

    .portfolio {
        width: 90%; 
        height: 400px;
    }

 }

@media screen and (min-width: 1025px) and (max-width: 1280px) {

    .page {
        height: max-content;
        width: 100%;
        overflow: auto;
    }

    .photo {
        width: 20%;
    }

    .about {
        width: 60%;

    }

    .about__wrapper {
        overflow-y: auto;
    }

	.profile { 
        width: 90%; 
    }

    .portfolio {
        width: 90%; 
        height: 400px;
    }

    .profile__wrapper {
        margin-top: 0;
        flex-direction: row;
        overflow-y: auto;
    }

    .profile__item-wrapper {
        width: 40%;
    }

    .underline {
        display: none;
    }

 }

 @media screen and (min-width: 1281px) {
	.profile { 
        width: 35%; 
    }

    .profile__contact-href {
        font-size: 16px;
    }

    .profile__skill {
        width: 55px;
    }
 }