/* General */
@import url('https://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext');

:root {
    --alwaysLight: #F6F6F6;
    --light: #F6F6F6;
    --dark: #2c2c2c;
    --darker: #151515;
    --green: #009667;
    --light-green: #03D996;
    --switchGreen: #03D996;
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 10px;
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Lato', 'sans-serif';
    height: 300vh;
    overflow: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 0;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

a, a:hover, a:visited, a:active {
    color: var(--switchGreen);
    text-decoration: none;
}

/* Overall */

span.second-color {
    color: var(--switchGreen);
}

.contact-button {
    z-index: 20;
    cursor: pointer;
    position: absolute;
    top: 3%;
    right: 3%;
  }
  
.contact-button .contact-text {
    font-size: 2rem;
    background-color: var(--light-green);
    border: none;
    border-radius: 1rem;
    color: var(--alwaysLight);
    padding: 15px 32px;
    text-align: center;
    display: inline-block;
    box-shadow: 4px 3px 8px 1px rgba(41, 221, 65, 0.3);
}

.dark-mode {
    cursor: pointer;
    position: fixed;
    bottom: 2%;
    right: 1%;
    z-index: 10;
}

.dark-mode .dark-mode {
    background-color: var(--dark);
    border: none;
    border-radius: 50%;
    color: var(--light);
    padding: 15px 15px;
    text-align: center;
    display: inline-block;
}

/* Hero */

.hero {
    width: 100%;
    height: 100vh;
    color: var(--alwaysLight);
    background-size: 100% 100%;
    background-color: var(--darker);
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url("/img/hero-background.jpg");
}

.hero .content {
    position: relative;
    padding-left: 12rem;
    padding-top: 12rem;
}

.hero .content .name {
    font-size: 12rem;
    letter-spacing: 1.0rem;
    display: block;
}

.hero .content .info span, .hero .content .icons {
    position: relative;
    float: left;
    clear: left;
}

.hero .content .name span {
    font-weight: bolder;
}

.hero .content .name span:nth-child(2) {
    color: var(--green);
}

.hero .content .info {
    font-size: 3rem;
    display: block;
    font-weight: 500;
}

.hero .content .info span {
    margin-top: 1rem;
}

.hero .content .info span:nth-child(1) {
    margin-top: 3rem;
}

.hero .content .icons {
    margin-top: 3rem;
}

.hero .content .icons .icon {
    color: var(--alwaysLight);
    margin-right: 1.3rem;
}

.scroll-down {
    position: absolute;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 3rem;
    height: 5rem;
    border: 2px solid #fff;
    border-radius: 2rem;
    margin-bottom: .5rem;
    display: flex;
}

.mouse span {
    width: 1rem;
    height: 1rem;
    display: block;
    background-color: #fff;
    border-radius: 50%;
    margin: auto;
    animation: move-wheel .8s linear infinite;
}

.arrow span {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    border: 2px solid transparent;
    border-right-color: #fff;
    border-bottom-color: #fff;
    transform: rotate(45deg);
    animation: arrow-down .4s alternate infinite;
}

@keyframes move-wheel {
    0% {
        opacity: 0;
        transform: translateY(-1.4rem);
    }
    100% {
        opacity: 1;
        transform: translateY(1.2rem);
    }
}

@keyframes arrow-down {
    0% {
        opacity: 0;
    }
    25% {
        opacity: .25;
    }
    50% {
        opacity: .5;
    }
    75% {
        opacity: .75;
    }
    100% {
        opacity: 1;
    }
}

@media only screen and (max-width: 640px) {
    .contact {
        cursor: pointer;
        top: 14rem;
        left: 1.5rem;
    }
}

@media only screen and (max-width: 1024px) {
    .hero {
        background-size: 100vh 100%;
    }

    .hero .content {
        padding-left: 3rem;
        padding-top: 3rem;
    }

    .hero .content .name {
        font-size: 4rem;
        letter-spacing: 0.5rem;
    }

    .hero .content .info {
        font-size: 2rem;
    }

    .scroll-down {
        bottom: 2rem;
    }
}

@media only screen and (min-width: 1024px) {
    .hero .content .name span {
        position: relative;
        float: left;
        clear: left;
    }

    .contact {
        position: fixed;
    }

    .dark-mode {
      bottom: 2%;
      right: -1.5%;
      z-index: 10;

      -webkit-transition: .3s ease-in-out;
      -moz-transition: .3s ease-in-out;
      -o-transition: .3s ease-in-out;
      transition: .3s ease-in-out;
    }

    .dark-mode:hover {
      transition-timing-function: ease-out;
      transform: translateX(-20px);
    }

    .dark-mode i {
      transform: scaleX(-1);
    }
}

/* About */
.about .content {
    height: 100vh;
    position: relative;
}

.about .content div {
    width: 100%;
    padding-left: 8rem;
    padding-top: 4rem;
    display: inline-block;
    word-wrap: normal;
}

.about .content .image {
    width: 30%;
}

.about .content .image img {
    margin-top: 3rem;
    width: 40rem;
    box-shadow: 1.2rem 1.2rem 0 0 var(--switchGreen);
}

.about .content .about-me {
    position: absolute;
    width: 60%;
}

.about .content .about-me h2 {
    font-size: 10rem;
}

.about .content .about-me p {
    font-size: 3rem;
}

@media only screen and (max-width: 640px) {
  .about .content {
    font-size: .6rem;
    height: 200vh;
  }

  .about .content .about-me h2 {
    font-size: 6rem;
  }

  .about .content .about-me p {
    font-size: 2rem;
  }
}


@media only screen and (max-width: 1024px) {
  .about .content {
    height: 120vh;
  }

  .about .content div {
      padding: 2rem 2rem 0rem 2rem;
      display: block;
  }

  .about .content .image img {
    width: 90vw;
  }

  .about .content .about-me {
    white-space: wrap;
    width: 100vw;
  }
}

@media only screen and (min-width: 1024px) {
  .about .content div {
    height: 80vh;
  }
}

/* Skills */
.skills .content {
    height: 100vh;
    position: relative;
}

.skills .content div {
    width: 100%;
    padding-left: 8rem;
    padding-top: 4rem;
    display: inline-block;
}

.skills .content h2 {
    text-align: center;
    font-size: 10rem;
    padding-bottom: 2rem;
}

.skills .content p {
    margin-left: 4rem;
    margin-right: 4rem;
    font-size: 3rem;
}

@media only screen and (max-width: 640px) {
  .skills .content {
    padding-left: 2rem;
    padding-top: 2rem;
    font-size: .6rem;
  }

  .skills .content h2 {
    text-align: left;
    font-size: 6rem;
  }

  .skills .content p {
    font-size: 2rem;
  }
}


@media only screen and (max-width: 1024px) {
  .skills .content {
    height: 200vh;
  }

  .skills .content div {
      padding: 2rem 2rem 0rem 2rem;
      display: block;
  }

  .skills .content {
    width: 90vw;
  }

  .skills .content {
    white-space: wrap;
    width: 100vw;
  }
}

@media only screen and (min-width: 1024px) {
  .skills .content div {
    height: 80vh;
  }
}

/* Timeline */

.timeline .content {
  padding-top: 2rem;
  position: relative;
  width: 100vw;
}

@media only screen and (max-width: 1024px) {
  .timeline .content {
    position: relative;
  }
}

/* Footer */

footer {
  bottom: 0;
	text-align: center;
  font-size: 2rem;
	padding: 1rem;
	background: var(--darker);
	color: var(--alwaysLight);
}

@media only screen and (max-width: 1024px) {
    footer { 
        font-size: 1.5rem;
    }
}


/* General Media Queries */
@media (prefers-reduced-motion) {
    .arrow span, .mouse span {
        animation: none;
    }

    .dark-mode {
      -webkit-transition: .0s;
      -moz-transition: .0s;
      -o-transition: .0s;
      transition: .0s;
    }
}

@media (prefers-color-scheme: dark) {
    html {
        background-color: var(--dark);
        color: var(--light);
    }

    .dark-mode .dark-mode {
        background-color: var(--light);
        color: var(--dark);
    }
}