:root {
    --color-one:  #04D960;
    --color-two: #04D9B2;
    --color-three: #E6E6E6;
    
    --background-primary: #272727;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    max-width: 1600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-between;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(39,39,39,1) 0%, rgba(39,39,39,1) 30%, rgb(10, 10, 10) 100%); 
}

* {
    box-sizing: border-box;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none;
}

/* Typography */

html {
    font-size: 62.5%;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

h1, h2, h3 {
    color: var(--color-one);
    font-weight: 300;
    margin: 2rem;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.5rem;

}

.jump-in {
    display: flex;
    align-items: center;
    justify-content: center;
}

p {
    font-size: 1.5rem;
    color: var(--color-three);
    line-height: 1.2;
    text-indent: 40px;
    margin: 2rem;
}


/* Links */

a {
    text-decoration: none;
    color: inherit;
    transition: color .4s ease-in;
}

.menu a:hover {
    color: var(--color-three);
}


/* Navigation */

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--background-primary);
    color: #FFF;
    padding: 2rem;
    border-radius: 30px;
    margin: 10px 20px;
}



.menu > li {
    color: #04D960;
    overflow: hidden;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}
  
.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 3px;
    width: 30px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}
  
.menu-button::before {
    content: '';
    margin-top: -8px;
}
  
.menu-button::after {
    content: '';
    margin-top: 8px;
}
  
#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}
  
#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}
  
#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

.menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 90px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 5rem;
    padding: 0.5em;
    transition: height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    background-color: var(--background-primary);
    font-size: 2.5rem;
    color: var(--color-one);
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }

  .nav-logo {
      height: 40px;
      transition: scale 0.5s ease-in-out;
  }

  .nav-logo:hover {
    scale: 1.15;
  }

  #theme-label {
    margin-right: 14px;
  }
@media screen and (min-width: 768px) {


    .nav-logo {
        height: 60px;
    }
    
    .menu {
        display: flex;
        flex-direction: row;
        justify-content: end;
        position: relative;
        gap: 1rem;
        margin: 0;
    }
     
    .menu-button-container {
        display: none;
    }


    .menu > li {
        margin: 0 1rem;
        font-size: 1.5rem;
        display: contents;
    }

    #theme-label {
        display: none;
    }

}



/* Grid */

.grid-1x2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media screen and (min-width: 1100px) {
    .grid-1x2 {
        align-items: end;
        display: grid;
        grid-template-columns: repeat(2 , 1fr);
        margin-bottom: 80px;
    }
}

/* Hero */


.name {
    color: var(--color-one);
    font-weight: 600;
}

.hero__img {
    margin-left: 30px;
    margin-right: 20px;
}

.hero__img img {
    width: 100%;
    clip-path: polygon(0% 0%, 70% 0%, 100% 50%, 70% 100%, 0% 100%);
    filter: grayscale();
    opacity: 0.8;
    max-width: 700px;
}


.hero__text h1 {
    margin: 40px;
    color: var(--color-three);
}



/* Card */

.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    width: 80%;
    margin: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #4444445d;
    border-radius: 20px;
    box-shadow: 0px 0px 20px -5px #111;
    padding-bottom: 20px;
    max-width: 600px;
}

.card__row {
    display: flex;
    align-items: center;
    font-size: 2.8rem;
    color: var(--color-three);
    padding: 1rem;
}

.card__text {
    max-width: 640px;
}

.icon {
    margin: 10px;
    height: 40px;
    width: 40px;
    fill: var(--color-one);
}

@media screen and (min-width: 768px) {
    
    .card__row {
        font-size: 1.8rem;
    }

}

/* About */

.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about__container {
    max-width: 768px;
    display: flex;
    flex-direction: column;
    align-items: center;  
}

/* Resume */

.experience {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.experience > .card {
    max-width: 640px;
}

.work_list {
    font-size: 1.5rem;
    color: var(--color-three);
    list-style: inside;
    margin: 20px;
    line-height: 2;
}

.about__work > h2 > span {
    font-size: 2rem;
    color: var(--color-three);
    margin-left: 40px;
}

.card_title {
    margin-top: 40px;
}

/* Form */


.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
    margin: 20px;
    margin-bottom: 100px;
    width: 90%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    width: 100%;
    max-width: 540px;
    margin: 20px;
    border: 1px solid #4444445d;
    border-radius: 20px;
    box-shadow: 0px 0px 20px -5px #111;
    font-size: 1.5rem;
    padding: 10px;
}

.contact__label {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-three);
    padding: 10px 0;
    margin-left: 22px;
}

.contact__input {
    border: 0;
    margin: 0 10px;
    border-radius: 10px;
    height: 40px;
    background-color: var(--background-primary);
    border: 1px solid var(--color-three);
    color: var(--color-three);
    font-size: 1.5rem;
    text-indent: 10px;
}


.contact__message {
    height: 340px;
    padding-top: 10px;
}

.contact__input:focus {
    outline: none;
    border: 1px solid var(--color-one);
    background-color: var(--background-primary);
}

.contact__input::placeholder {
    color: var(--color-one);
}

.form__button {
    outline: none;
    border: none;
    background: var(--color-one);
    margin: 20px;
    height: 60px;
    border-radius: 20px;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--background-primary);
    cursor: pointer;
}


/* Gallery */

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px 0px;
}

.gallery__item {
    display: flex;
    align-items: center;
    justify-content: center;
}


.gallery__img {
    width: 320px;
    height: 360px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 3px #111;
    filter: grayscale();
    transition: filter 0.7s ease-in;
}

.gallery__img:hover {
    filter: none;
}

.gallery_item_description {
    width: 320px;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery_item_description p {
    text-indent: 0;
}

@media screen and (min-width: 768px) {
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1160px) {
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Theme checkbox */

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: var(--color-one);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px var(--color-one);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
  }
  