@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* Variables */

:root {
    --font: "Raleway", sans-serif;
    --weight: 250;
    --black: #171717;
    --white: #FFFFFF;
    --green: #22311D;
    --grey: #848884;
}

/* Elements */

html {
    font-size: 16px;
}

body {
    background-color: #f0f0f0;
    font-family: var(--font);
    font-weight: var(--weight);
}

header {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--black);
}

nav {
    align-content: center;
}

code {
    background-color: #cbcfd1;
    padding: 4px;
    border-radius: 4px;
    font-weight: normal;
}

/* Classes */

/* Header */

.header-text {
    flex: 1;
    color: var(--black);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    align-self: center;
}

.header-bar {
    display: flex;
    flex: 1.5;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 22.5%;
}

.header-bar a {
    width: fit-content;
    color: var(--black);
    text-align: center;
    text-decoration: none;
}

.header-logos {
    display: flex;
    flex: 1;
    flex-wrap:wrap;
    align-items: center;
    justify-content: center;
}

/* Home */

.home-text {
    position: absolute;
    display: flex;
    justify-content: center;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 4.2rem;
    font-weight: var(--weight);
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 1.5;
}

.home-container {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 1500px;
    height: 95%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.home-img {
    position: relative;
    transform: translateY(-50%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* About & Contact */

.info-container {
    position: absolute;
    display: flex;
    justify-content: space-between;
    gap: 5%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80%;
    width: 85%;
}

.info-img {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    height: 90%;
    border-radius: 30px;
}

.info-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1.5;
}

.info-email {
    position: relative;
    font-size: 2.2rem;
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--green);
    text-decoration: none;
    animation: twist 2s ease-in-out infinite;
}

/* Experiences */

.experience-intro {
    position: absolute;
    top: 350px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    text-align: center;
    font-size: 6rem;
}

#experience-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 80%;
    height: fit-content;
    top: 1100px;
    left: 50%;
    transform: translateX(-50%);
}

.experience {
    position: relative;
    display: flex;
    width: 80%;
    height: fit-content;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 25px 0 25px 0;
}

.experience:last-child {
    margin-bottom: 120px;
}

.experience img {
    position: relative;
    max-height: 350px;
    max-width: 80%;
    margin: 10px;
    border-radius: 10px;
}

.experience-text {
    position: relative;
}

.experience-text h2 {
    position: relative;
    margin: 0;
    font-size: 2.7rem;
}

.experience-text p {
    position: relative;
    margin: 0 0 10px 0;
    color: var(--grey);
    font-size: 1.8rem;
    font-weight: 350;
}

.experience-text ul {
    position: relative;
    text-align: left;
    font-size: 1.5rem;
    margin: 0;
}

.experience-path {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 500px;
    width: 50%;
}

.experience-dash {
    position: absolute;
    transform: translateX(25%);
    fill: none;
    stroke: var(--black);
    stroke-width: 3;
    stroke-dasharray: 5, 5;
}

.experience-footer {
    position: relative;
    width: 100%;
    height: 200px;
}

/* Dropdown Menu */

.dropdown-button {
    position: absolute;
    flex-direction: column;
    justify-content: space-between;
    height: 40px;
    width: 40px;
    top: 1%;
    right: 5%;
    transform: translateX(-50%);
    z-index: 2;
}

.dropdown-bar {
  height: 5px;
  width: 100%;
  background-color: black;
  transition: all 0.25s ease-in-out;
}

.dropdown-x:nth-of-type(1) {
  transform: rotate(45deg) translateY(-50%);
  transform-origin: top left;
  width: 56.56854px;
  background-color: var(--white);
}

.dropdown-x:nth-of-type(2) {
  transform-origin: center;
  width: 0;
}

.dropdown-x:nth-of-type(3) {
  transform: rotate(-45deg) translateY(50%);
  transform-origin: bottom left;
  width: 56.56854px;
  background-color: var(--white);
}

.dropdown-content {
    position: fixed;
    flex-direction: column;
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    padding-top: 65px;
    background-color: var(--green);
    z-index: 1;
}

.dropdown-content a {
    position: relative;
    display: flex;
    width: 100%;
    height: calc(1/5 * 100%);
    left: 50%;
    border-top: 2px solid var(--black);
    justify-content: center;
    align-items: center;
    transform: translateX(-50%);
    color: var(--white);
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 0;
}

#dropdown-header {
    position: relative;
    width: 50%;
    font-size: 1.5rem;
    z-index: 2;
}

.dropdown-content, .dropdown-button, #dropdown-header  {
    display: none;
}

/* Typewriter */

.cursor {
    font-weight: bold;
    animation: blink 0.7s infinite;
}

/* Arrow */

.arrow {
    position: relative;
    left: 50%;
    animation: bob-down 2s ease-in-out infinite;
}

/* Media Queries */

@media(max-width: 1500px) {
    .home-container {
        width: 100%;
    }
}

@media(max-width: 1250px), (min-width: 2000px){
    .home-text {
        top: 150px;
        width: 85%;
    }

    .home-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 55vw);
        grid-template-areas:
        "bridge hat"
        "catch wind"
        "catch wind";
        top: 300px;
        width: 85%;
        height: fit-content;
    }

    .home-img {
        top: 50% !important;
        left: 50%;
        transform: translate(-50%,-50%);
        height: auto !important;
        width: 90%;
    }
}

@media(max-width: 1050px) {
    .info-container {
        justify-content: space-evenly !important;
        flex-direction: column;
        width: 95%;
        top: 400px;
        gap: 0;
    }

    .info-img {
        height: auto;
        width: 350px;
        left: 50%;
        top: 3%;
        transform: translateX(-50%);
    }

    .info-text {
        text-align: center;
    }

    .info-email {
        font-size: 4vw;
    }

    .experience {
        align-self: center !important;
        flex-direction: column;
    }

    .experience-intro {
        font-size: 4rem;
    }
}

@media(max-width: 680px) {
    .home-text {
        font-size: 1.8rem;
    }

    header {
        display: none;
    }

    #dropdown-header {
        display: block;
    }

    .dropdown-button {
        display: flex;
    }
}

@media(max-width: 400px) {
    .dropdown-content a{
        font-size: 1.5rem;
    }

    .dropdown-button {
        height: 30px;
    }

    .dropdown-bar {
        height: 3px;
    }

    .dropdown-x:nth-of-type(1) {
      transform: rotate(36.87deg) translateY(-50%);
      width: 50px;
    }

    .dropdown-x:nth-of-type(3) {
      transform: rotate(-36.87deg) translateY(50%);
      width: 50px;
    }

    .info-img {
        width: 80%;
    }
}

/* Hover */

.dropdown-button:hover,
.info-email:hover,
.arrow:hover {
    cursor: pointer;
}

/* Animations */

@keyframes twist {
    0%, 100% {
        transform: rotate(-2.5deg);
    }
    50% {
        transform: rotate(2.5deg);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes bob-down {
    0%, 100% {
        transform: translate(-50%,-50%) rotate(90deg);
    }
    50% {
        transform: translate(-50%,-35%) rotate(90deg);
    }
}

@keyframes bob-up {
    0%, 100% {
        transform: translate(-50%,-50%) rotate(-90deg);
    }
    50% {
        transform: translate(-50%,-35%) rotate(-90deg);
    }
}
