:root {
  --color-body: #ebebeb;
  --color-paragraph: #6e6e6e;
  --color-primary: #ff0077;
  --color-secondary: #313131;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  color: var(--color-body);
  font-family: "Poppins", sans-serif;
  font-size: 2.4rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h5,
h3 {
  color: var(--color-primary);
  letter-spacing: 2px;
}
P {
  color: var(--color-paragraph);
  font-family: "Lora", serif;
}
/* Components */
.btn {
  border: 3px solid #5f5f5f;
  padding: 1.5rem 2.5rem;
  transition: border 0.5s ease-out;
  white-space: nowrap;
}

.btn:hover {
  border: 3px solid var(--color-primary);
}

.container {
  background-color: #111025;
  min-height: 100vh;
  padding: 0 8%;
  width: 100%;
}

/* Home section */
#home {
  display: flex;
  flex-direction: column;
  width: 100%;
}
/* Navbar */

.fa-bars {
  color: var(--color-primary);
  cursor: pointer;
  padding: 1.5rem 0;
  width: 2.5rem;
}
.logo {
  font-size: 2.3rem;
  letter-spacing: 5px;
  margin: 1rem 2rem;
}
#home {
  position: fixed;
  z-index: 1;
}
.hamburger,
nav {
  background: black;
  display: flex;
  max-width: 100%;
  padding-left: 2rem;
  width: 200px;
}
nav {
  display: none;
  height: 200px;
}
nav ul li {
  list-style: none;
}
nav ul li a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.7s;
}
nav ul li a.active {
  color: var(--color-primary);
}
nav ul li a:hover {
  color: var(--color-primary);
  margin-left: 10px;
}

/* */

/* Intro*/
#Intro {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90vh;
  text-align: center;
}
.intro-body {
  margin: auto;
}
.intro-body a {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-decoration: none;
}

.intro-body h1 {
  line-height: 4rem;
  margin-top: 1rem;
}
.icons {
  padding: 2rem 0;
}
.icons a {
  color: white;
  font-size: 2.5rem;
  padding: 0 1.5rem;
  transition: color 0.6s;
}
.icons a:hover {
  color: var(--color-primary);
}
.icons ul {
  display: flex;
  list-style: none;
  text-align: center;
  width: 100%;
}
.intro-position {
  color: white;
  font-family: "Lora", serif;
  font-size: 1.3rem;
  letter-spacing: 3px;
  line-height: 2.5rem;
  margin: 2rem 0 4rem 0;
}

@media screen and (min-width: 600px) {
  .intro-position .front::before,
  .intro-position span::after {
    content: " | ";
  }
  .intro-body h1 {
    font-size: 6.7rem;
    line-height: 6rem;
  }
}
@media screen and (min-width: 768px) {
  .intro-body h1 {
    font-size: 7rem;
    line-height: 6rem;
  }
  .intro-body a {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  .intro-position {
    font-size: 1.5rem;
  }
  .icons a {
    font-size: 3.2rem;
    padding-top: 0 2rem;
  }
}

/* About me section */

#About {
  background: #fff;
  padding: 11.2rem 5%;
}
.about-me {
  text-align: center;
}
.about-me h1 {
  color: var(--color-secondary);
  font-size: 2.2rem;
  font-weight: 600;
  font-weight: 600;
  line-height: 2.5rem;
}
.about-me h5 {
  font-size: 1.4rem;
}
.about-img {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-img img {
  border-radius: 50%;
  height: 102px;
  margin: 3rem 0;
  width: 100px;
}
.about-img p {
  font-size: 1.6rem;
  line-height: 1.8;
  text-align: center;
}

.profile p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-left: 0 !important;
  text-align: center;
}

.about-profile ul {
  list-style: none;
}
.about-profile strong {
  color: var(--color-secondary);
  font-size: 1.4rem;
  letter-spacing: 1px;
}
.about-profile span {
  color: #888;
  font-size: 1.4rem;
}
#About h3 {
  color: var(--color-secondary);
  font-size: 2rem;
  margin: 3rem 0;
  text-align: center;
}
.intro-list {
  margin-top: 2rem;
}
.box-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.box-icons .boxes {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 4px 6px 5px -1px rgba(0, 0, 0, 0.25);
  display: flex;
  height: 120px;
  justify-content: center;
  margin: 0.5rem 0.5rem;
  width: 120px;
}

.about-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 8rem;
}
.about-btn a {
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-decoration: none;
}
.btns {
  border: 0;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 1rem auto;
  padding: 1rem 4rem;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn--outline {
  border: 3px solid var(--color-secondary);
  color: var(--color-secondary);
  transition: border 0.5s ease-out;
}
.btn--outline:hover {
  border: 3px solid var(--color-primary);
}
.btn--secondary {
  background: var(--color-secondary);
  color: white;
}
.btns--block {
  display: inline-block;
  max-width: 100%;
  width: 100%;
}
@media screen and (min-width: 600px) {
  .about-profile strong {
    font-size: 1.6rem;
  }
  .about-me h1 {
    font-size: 3.6rem;
  }
  .about-me h5 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  .about-me {
    text-align: center;
  }
  .about-img {
    flex-direction: row;
    margin-top: 4rem;
  }

  .about-img p,
  .about-profile p {
    font-size: 1.9rem;
    margin-left: 2rem;
    text-align: left;
  }
  .about-header {
    margin: auto;
    max-width: 1000px;
  }

  .about-profile h3 {
    font-size: 1.8rem;
    text-align: center;
  }
  .box-icons {
    margin: auto;
    width: 80%;
  }
}
@media only screen and (min-width: 578px) and (max-width: 619px) {
  .box-icons {
    margin: auto;
    width: 99%;
  }
}
@media screen and (min-width: 809px) {
  .about-profile {
    width: 50%;
  }
  .skills {
    width: 50%;
  }
  .col-2 {
    display: flex;
  }
  .about-btn {
    flex-direction: row;
    margin: 7rem auto;
    width: 600px;
  }
  .btns {
    margin-right: 2rem;
  }
}
@media screen and (min-width: 1084px) {
  .box-icons {
    margin: auto;
    width: 75%;
  }
}

/* Resume */
#Resume {
  background: var(--color-body);
  min-height: 100vh;
  padding: 11.2rem 5%;
}

#Resume h1 {
  color: var(--color-secondary);
  font-size: 4rem;
  font-weight: 600;
  font-weight: 600;
}
#Resume h5 {
  font-size: 1.4rem;
}
.resume-header {
  text-align: center;
}
.timeline-item h5 {
  text-align: left;
}
.timeline-items {
  display: flex;
  flex-wrap: wrap;
  margin: 10rem auto 0 auto;
  max-width: 1300px;
  position: relative;
}
.timeline-items::before {
  background: #d3d3d3;
  content: "";
  height: 100%;
  left: calc(50% - 0.1rem);
  position: absolute;
  width: 1px;
}
.timeline-item {
  margin-bottom: 4rem;
  position: relative;
  width: 100%;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 3rem);
  text-align: left;
}
.timeline-item:nth-child(odd) .timeline-date {
  text-align: right;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 3rem);
}
.timeline-dot {
  align-items: center;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  height: 50px;
  justify-content: center;
  left: calc(50% - 25px);
  position: absolute;
  width: 50px;
}
.timeline-dot i {
  font-size: 1.5rem;
}
.timeline-date {
  color: var(--color-secondary);
  font-weight: 600;
  margin: 0.6rem 2rem;
}
.timeline-content {
  border-radius: 8px;
  padding: 3rem;
}
.timeline-content h3 {
  color: var(--color-secondary);
  font-size: 2.5rem;
  margin: 0 0 1rem;
}
.timeline-content p {
  font-size: 1.8rem;
  line-height: 1.5;
}

@media screen and (max-width: 400px) {
  .timeline-dot {
    left: calc(1% - 15px);
  }
  .timeline-content {
    padding: 0 1rem;
  }
  .timeline-content h3 {
    font-size: 2rem;
  }
  .timeline-date {
    font-size: 1.5rem;
    margin: 1.5rem 1rem;
  }
}
@media screen and (max-width: 730px) {
  #Resume h1 {
    font-size: 2.6rem;
  }
  .timeline-items::before {
    left: 0.7rem;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 3.7rem;
  }
  .timeline-dot {
    left: calc(1% - 18px);
  }
  .timeline-item:nth-child(odd) .timeline-date {
    text-align: left;
  }
}
@media screen and (max-width: 1022px) {
  #Resume h1 {
    font-size: 2.6rem;
  }
  .timeline-content h3 {
    font-size: 1.9rem;
    margin: 0 0 1rem;
  }
  .timeline-content p {
    font-size: 1.5rem;
    line-height: 1.5;
  }
}

/* Portfolio */
#Portfolio {
  min-height: 100vh;
  padding: 11.2rem 5%;
}
.section-intro h1,
h5 {
  text-align: center;
}
.section-intro h1 {
  color: var(--color-secondary);
  font-size: 2.6rem;
  line-height: 2.3rem;
}
.section-intro h5 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8rem;
}
.proj-box {
  margin: 0.5rem 0.5rem;
  position: relative;
  width: 500px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.proj-box img {
  border-radius: 5px;
  display: block;
  min-height: 100%;
  width: 100%;
}

.proj-btn {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.proj-btn a {
  text-decoration: none;
  color: var(--color-secondary);
  font-size: 1.3rem;
  transition: all 0.35s;
  letter-spacing: 1px;
}
.proj-btn a:hover {
  background: var(--color-primary);
  color: white;
}
.img-overlay {
  background: rgba(0, 0, 0, 0.815);
  color: white;
  display: flex;
  flex-direction: column;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.35s;
  width: 100%;
}

.img-overlay:hover {
  border-radius: 5px;
  cursor: pointer;
  opacity: 1;
}
.img-overlay > * {
  transform: translateX(-20px);
  transition: transform 0.35s;
}
.img-overlay:hover > * {
  transform: translateX(0);
}
.proj-description {
  margin: auto;
  max-width: 100%;
  padding: 0.5rem 2rem;
}
.proj-description a {
  border: 1px solid var(--color-primary);
  color: white;
  font-size: 1rem;
  font-weight: normal;
  padding: 0.3rem 2rem;
  text-decoration: none;
  transition: background 0.25s;
}
.proj-description a:hover {
  background: var(--color-primary);
}
.proj-description .img-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
}
.proj-description p {
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.2rem;
}

@media screen and (min-width: 500px) {
  .proj-description .img-title {
    font-size: 3rem;
  }
  .section-intro h1 {
    font-size: 4rem;
    line-height: 3.5rem;
  }
  .proj-description p {
    font-size: 1.3rem;
    line-height: 1.8rem;
    margin: 1rem 0;
  }
  .proj-description a {
    font-size: 1.5rem;
    padding: 0.5rem 3rem;
  }
}

/* Footer */
#Footer {
  background: #151515;
  min-height: 60vh;
  padding: 11.2rem 5% 3rem 5%;
}
#Footer h1 {
  color: white;
  margin-top: 1rem;
}
#Footer p {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
}
#Footer h5 {
  margin: 0;
}
.container-3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 5rem;
  text-align: center;
}
.email-me,
.call-me {
  margin-top: 3rem;
}
.container-2 {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  margin-top: 5rem;
}
.container-2 span {
  color: var(--color-paragraph);
  font-size: 1.4rem;
  font-weight: normal;
}
.container-2 .dyoll {
  letter-spacing: 1px;
}

.footer-icons .intro-social {
  display: flex;
  list-style: none;
}
.footer-icons .intro-social li {
  padding: 0 1rem;
}
.footer-icons .intro-social li a {
  color: white;
  font-size: 2rem;
}
@media screen and (min-width: 772px) {
  #Footer {
    padding-bottom: 2rem;
  }
  .container-2 {
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 650px;
  }
  #Footer h5 {
    font-size: 1.3rem;
  }
  #Footer p {
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
  }
  .container-3 {
    flex-direction: row;
    justify-content: space-evenly;
    margin: 5rem auto;
    max-width: 1000px;
  }
  .email-me,
  .call-me {
    margin-top: 0;
  }
}
@media screen and (min-width: 1023px) {
  .container-3 i {
    font-size: 2.8rem;
  }
  #Footer h5 {
    margin: 1.5rem;
  }
  .container-2 {
    max-width: 700px;
  }
}
@media screen and (min-width: 1026px) {
  .container-2 {
    max-width: 400px;
  }

  .container-3 i {
    font-size: 3rem;
  }
  #Footer h5 {
    margin: 1.5rem;
  }
}

/* To top button */
.to-top {
  align-items: center;
  background: var(--color-primary);
  bottom: 0px;
  color: white;
  display: flex;
  font-size: 1.5rem;
  height: 6.6rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0px;
  text-decoration: none;
  transition: all 0.35s;
  width: 6.6rem;
}
.to-top:hover {
  background: black;
}
.to-top.active {
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}

/* loader */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #111025;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
}

#splash-logo path:nth-child(1) {
  stroke-dasharray: 518;
  stroke-dashoffset: 518;
  animation: line-anim 2s ease forwards;
}
#splash-logo path:nth-child(2) {
  stroke-dasharray: 392;
  stroke-dashoffset: 392;
  animation: line-anim 2s ease forwards 0.12s;
}
#splash-logo path:nth-child(3) {
  stroke-dasharray: 506;
  stroke-dashoffset: 506;
  animation: line-anim 2s ease forwards 0.6s;
}
#splash-logo path:nth-child(4) {
  stroke-dasharray: 315;
  stroke-dashoffset: 315;
  animation: line-anim 2s ease forwards 0.9s;
}
#splash-logo path:nth-child(5) {
  stroke-dasharray: 315;
  stroke-dashoffset: 315;
  animation: line-anim 2s ease forwards 0.12s;
}

@keyframes line-anim {
  to {
    stroke-dashoffset: 0;
  }
}

@media screen and (max-width: 600px) {
  #splash-logo {
    width: 150px;
  }
}

@media screen and (min-width: 601px) and (max-width: 1020px) {
  #splash-logo {
    width: 300px;
  }
}
