@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;800&family=Source+Code+Pro:wght@400;900&family=Source+Sans+Pro:wght@200;300;900&display=swap");
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ff-primary: "Source Sans Pro", sans-serif;
  --accent-color: #16e0bd;
  --dark-color: #3d3d3d;
  --fs-regular: 1.2rem;
  --fs-big: 2.5rem;
}
body {
  width: 100vw;
  font-family: var(--ff-primary);
  overflow-x: hidden;
}
ul {
  list-style: none;
}

section {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: center;
  position: relative;
}

a {
  text-decoration: none;
}
a:link,
a:visited {
  color: #fff;
}
.fw-regular {
  font-weight: 300;
}

.fw-strong {
  font-weight: 900;
}

.center-div {
  position: absolute;
  transform: translateY(-50%);
  width: 100%;
  top: 50%;
}

.title {
  font-family: var(--ff-primary);
  color: var(--accent-color);
  font-size: var(--fs-big);
  width: max-content;
  padding: 5px;
  margin: auto;
}
.title::after {
  content: "";
  display: block;
  width: 25%;
  height: 2px;
  background-color: white;
  margin: 0.5em auto 0;
  transition: 0.25s;
}

.title:hover::after {
  width: 100%;
  background-color: currentColor;
}

.subtitle {
  color: white;
  font-size: var(--fs-regular);
  width: max-content;
  margin: 10px auto;
  transition: 0.25s;
}
.subtitle:hover {
  color: var(--accent-color);
}

.container {
  height: 100vh;
  width: 100vw;
  overflow-y: scroll;
}
/* Intro */
.intro {
  overflow: hidden;
  background-color: var(--dark-color);
  background-image: url("./img/intro-bg.jpg");
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  color: white;
}

.intro-box {
  width: max-content;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.intro-box-flex {
  display: flex;
  font-size: var(--fs-regular);
}

.intro-box-flex img {
  max-width: 300px;
  max-height: 300px;
  box-shadow: 5px 10px 20px black;
}
.intro-text {
  margin-left: 20px;
}

.typing-text-box {
  background-color: var(--accent-color);
  text-align: right;
  position: relative;
  left: -14em;
  z-index: -1;
  font-family: "Source Code Pro", monospace;
  width: calc(100% + 14em);
  padding: 10px;
  color: var(--dark-color);
}

.contact-box {
  margin-top: 20px;
  text-align: center;
  font-size: var(--fs-regular);
}

.social-networks-btns {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 50%;
}

.link-btn {
  padding: 10px;
  background: none;
  outline: none;
  font-size: 2rem;
  text-align: center;
}

.link-btn:hover {
  width: 125%;
}

.github-btn {
  background: #000;
}

.linkedin-btn {
  background: #2980b9;
}

.contact-btn {
  position: absolute;
  left: 50%;
  bottom: 10%;
  padding: 10px;
  outline: none;
  border: 2px solid #16e0bd;
  cursor: pointer;
  transition: 0.25s;
  font-size: 1.5rem;
  font-family: "Source Sans Pro", sans-serif;
}

.contact-btn:hover {
  background: var(--accent-color);
}
/* Technologies  */
.technologies {
  background-color: var(--dark-color);
  background-image: url("./img/code-bg.jpg");
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  color: white;
}

.technologies-flexbox {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.technology {
  text-align: center;
}

.technology i {
  font-size: 3em;
  margin-bottom: 0.3em;
}

.technology h3 {
  font-size: 2em;
  margin-bottom: 0.3em;
}

.technology li {
  font-size: var(--fs-regular);
}

/* Work */
.work {
  background-color: var(--dark-color);
  background-image: url("./img/work-bg.jpg");
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  color: white;
  text-align: center;
}

.work-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-between;
  font-size: var(--fs-regular);
}

.work-container img {
  width: 80%;
  max-height: 80%;
  transition: 0.25s;
  object-fit: cover;
  margin-bottom: 10px;
}

.work-container img:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  height: 20%;
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  font-size: var(--fs-regular);
  padding: 30px;
}

/* Project details pages */
.project-details-container{
  padding: 20px 100px 100px 100px;
  font-size:var(--fs-regular);
}

.project-details-container p{
  line-height:2;
}

.project-details-container .title{
  margin-bottom:30px;
}

.project-details-container .title::after{
  background: var(--dark-color);
}

.project-details-container .title:hover::after{
  background: currentColor;
}

.carousel-container{
  top: 50px;
  position:relative;
  width:70%;
  margin:auto;
  overflow:hidden;
}

.image-slider{
  display:flex;
  width:100%;
}

.image-slider img{
  max-width:100%;
}

.arrow-btn{
  font-size:30px;
  z-index:1;
  position:absolute;
  color:white;
  opacity:.5;
  cursor:pointer;
  top:50%;
}
.dark-arrow{
  color: var(--dark-color);
}

#prevBtn{
  left:5%;
}

#nextBtn{
  right:5%
}

.project-details-container a{
  color: var(--accent-color);
}

@media (max-width: 749px) {
  :root {
    --fs-regular: 1rem;
    --fs-big: 2rem;
  }

  section {
    height: 900px;
    position: relative;
  }

  /* Intro */
  .intro {
    height: 100vh;
  }
  .intro-box-flex {
    display: block;
  }

  .intro-box-flex img {
    max-width: 200px;
    max-height: 200px;
    box-shadow: none;
  }
  .intro-text {
    margin-left: 0;
  }

  .typing-text-box {
    position: static;
    width: max-content;
  }

  .contact-box {
    margin-top: 20px;
    text-align: center;
  }

  .social-networks-btns {
    display: none;
  }
  /* Technologies  */
  .technologies-flexbox {
    margin-top: 50px;
    display: block;
  }

  .technology {
    text-align: center;
    margin-bottom: 50px;
  }
  /* Work */

  .work{
    height: auto;
    padding-bottom: 20px;
  }
  .work-container {
    display: block;
    transform: none;
    position: static;
    margin-top: 50px;
  }

  .project-container{
    margin-bottom: 50px;
  }

  .work-container img {
    width: 50%;
    max-height: 80%;
    transition: 0.25s;
    object-fit: cover;
    margin-bottom: 10px;
  }

  .work-container img:hover {
    transform: scale(1.1);
  }

  /* Project details pages */
  .project-details-container{
    padding: 20px 30px 100px 30px;
  }

  .carousel-container{
    width:90%;
  }
}