@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
* {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    z-index: 2;
}

html {
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}


a {
    text-decoration: none;
}

section {
    transition: all 300ms ease;
    background-color: #fff;
}

nav {
    display: flex;
    max-width: 1280px;
    padding: 0 72px;
    margin: 0 auto;
    align-items: center;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}   

#landing-page {
    padding-top: 24px;
    min-height: 100vh;
}

header {
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    margin: 0 auto;
    margin-top: 96px;
    padding: 0 160px;
}

footer {
    background-color: #242424;
    height: 36vh;
    position: relative;
    z-index: 2;
}

input, textarea {
    width: 100%;
    background-color: #242424;
    outline: none;
    color: #fff;
    border: 3px solid #c0c4cc;
    border-top: none;
    border-right: none;
    border-left: none;
    height: 40px;
    transition: all 300ms ease;
}

textarea {
    resize: vertical;
    height: 100px;
    margin-top: 8px;
}

label {
    font-size: 14px;
    font-weight: bold;
  }
  
  input:hover, textarea:hover {
    border-color: #dcdfe6;
  }
  
  input:focus, textarea:focus {
    border-color: #373970;
  }

.click {
    cursor: pointer;
    transition: all 300ms ease;
  }

.click:hover {
    transform: scale(1.1);
}

.click:active {
    transform: scale(0.8);
}

.link__hover-effect:after {
    content: "";
    position: absolute;
    bottom: -3px;
    height: 3px;
    width: 0;
    right: 0;
    transition: all 300ms ease;
  }
  
  .link__hover-effect--white:after {
    background-color: #fff;
  }
  
  .link__hover-effect--black:after {
    background-color: #242424;
  }
  
  .link__hover-effect:hover:after {
    left: 0;
    width: 100%;
  }

.light-blue {
    color: #373970;
}

.container {
    width: 100%;
    padding: 50px 0;
}

.row {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

button {
    cursor: pointer;
}

nav,
.scroll,
header {
  opacity: 1;
  visibility: visible;
  transition: all 600ms 800ms;
}

.modal--active nav,
.modal--active .scroll,
.modal--active header {
  opacity: 0;
  visibility: hidden;
  transition: all 400ms ease;
}

/* NAV */

.logo {
    height: 72px;

}

.nav__link--list {
    display: flex;
    align-items: center;
    justify-content: end;
    text-align: end;
    width: 100%;
}

.nav__link {
    margin-left: 24px;
    font-size: 18px;
    font-weight: 700;
    
}

.nav__link--anchor {
    color: #242424;
    transition: all 300ms ease;

}

/* HEADER */

.title {
    font-size: 120px;
}

.social__list {
    display: flex;
    margin-top: 16px;
    align-items: center;
}

.header__para {
    max-width: 450px;
    font-size: 24px;
    line-height: 2;
    font-weight: 500;
}


.social__link {
    background-color: #373970;
    margin-right: 12px;
    padding: 6px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    height: 32px;
    width: 32px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MAIL */

.mail__btn {
    font-size: 32px;
    background-color: #242424;
    color: #fff;
    padding: 6px;
    border-radius: 50%;
    position: fixed;
    bottom: 24px;
    right: 40px;
    height: 72px;
    width: 72px;
    border: none;
    z-index: 100;
    box-shadow: 0 12px 30px 0 rgb(0, 0, 0, 0.28);
}

.modal--active .mail__btn {
    display: none;
 }

/* MODAL */

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    height: 700px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    visibility: hidden;
    z-index: -1;
    transition: visibility 1s, z-index 1s, box-shadow 0.5s ease;
}

.modal__exit {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 36px;
    z-index: 100;
}

.modal--active .modal {
    z-index: 60;
    box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.55);
    visibility: visible;
}

.modal__half {
    width: 50%;
    padding: 40px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 300ms ease-in;
}


.modal--active .modal__about,
.modal--active .modal__contact
{
    transform: translateX(0%);
    visibility: visible;
}

.modal__about {
    background-color: #fff;
    transform: translateX(-110%);
}

.modal__languages {
    display: flex;
    flex-wrap: wrap;
}

.modal__language {
    width: 33%;
    padding: 16px;
    position: relative;
    display: flex;
    transition: all 300ms ease;
    flex-direction: column;
    align-items: center;
}

.modal__language:hover .language__name {
    transform: scale(1);
}

.modal__language:hover {
    filter: brightness(80%);
    transform: scale(0.9);
}

.modal__language--img {
    width: 100%;
}

.language__name {
    position: absolute;
    bottom: -10px;
    transform: scale(0);
    transition: all 300ms ease;
}

.modal__contact {
    transform: translateX(100%);
    background-color: #242424;
    color: white;
    visibility: hidden;
}

.modal__title {
    font-size: 24px;
}

.modal__sub-title {
    margin: 14px 0 20px 0;
    font-size: 14px;
}

.modal__para {
    margin-bottom: 48px;
    line-height: 1.75;
}

.form__item {
    margin-bottom: 20px;
}

.form__submit {
    background-color: #373970;
    border: 2px solid #373970;
    color: white;
    font-weight: 700;
    width: 100%;
    max-width: 240px;
    padding: 12px 24px;
    font-size: 20px;
    transition: all 300ms ease;
}

.form__submit:hover {
    border-color: #fff;
    background-color: transparent;
}

.form__submit:active {
    border-color: #373970;
    color: #373970;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: -1;
  }
  
  .modal__overlay--loading {
    background-color: #242424;
    font-size: 80px;
  }
  
  .modal__overlay--success {
    background-color: #4bb543;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    padding: 28px;
  }
  
  .modal__overlay--visible {
    z-index: 101;
    display: flex;
  }
  
  .fa-spinner {
    animation: spinner 750ms infinite linear;
  }
  
  @keyframes spinner {
    0% {
      transform: rotate(0);
    }
  
    100% {
      transform: rotate(360deg);
    }
  }

/* SCROLL */

.scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;

}

.scroll__icon {
    border: 2px solid #242424;
    width: 20px;
    height: 30px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll__icon:after {
    content: "";
    width: 4px;
    height: 6px;
    background-color: #242424;
    border-radius: 2px;
    animation: scroll 1000ms infinite alternate-reverse;
}

@keyframes scroll {
    0% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(-3px);
    }
}

/* BACKGROUND SHAPES */

.shape {
    position: fixed;
    z-index: 1;
}

.shape--0 {
    top: 160px;
}

.shape--1 {
    right: 24px;
    top: 160px;
}

.shape--2 {
    left: 12px;
    bottom: 120px;
}

.shape--3 {
    left: 240px;
    top: 480px;
}

.shape--4 {
    right: 400px;
    top: 200px;
}

.shape--5 {
    right: 500px;
    top: 500px;
}

.shape--6 {
    right: 800px;
    top: 700px;
}

.shape--7 {
    right: 200px;
    top: 600px;
}

.shape--8 {
    right: 1000px;
    top: 80px;
}

/* PROJECTS */

#projects {
    
}

.section__title {
    text-align: center;
    font-weight: 700;
    font-size: 46px;
    margin-bottom: 56px;
}

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

}

.project {
    margin-bottom: 120px;
}

.project__wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.45);
}

.project__img {
    max-width: 1000px;
    transition: all 600ms ease;
}

.project__description {
    position: absolute;
    top: 50%;
    left: 10%;
    visibility: hidden;
    transition: opacity 300ms, transform 450ms ease;
    transform: translateY(100%);
    color: #fff;
    max-width: 480px;
}

.project__description--title {
    font-size: 48px;
    font-weight: 700;
    padding-bottom: 8px;
}

.project__description--sub-title {
    padding-bottom: 8px;
}

.project__description--para {
    padding-bottom: 16px;
}

.fa-link {
    color: #fff;
    font-size: 20px;
}

.project__wrapper--bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1c1d25;
    opacity: 0;
    visibility: hidden;
    transition: all 450ms ease;
}

.project__wrapper:hover .project__wrapper--bg {
    opacity: 0.7;
    visibility: visible;
}

.project__wrapper:hover .project__img {
    transform: scale(1.2);
    filter: blur(4px);
}

.project__wrapper:hover .project__description {
    visibility: visible;
    transform: translateY(-50%);
}

/* FOOTER */

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

.footer__logo {
    width: 72px;
    filter: invert(1);
}

.footer__logo--popper {
    visibility: hidden;
    transition: all 300ms ease;
}

.footer__list {
    display: flex;
    margin-bottom: 24px;
}

.footer__list-item {
    padding: 0 24px;
    
}

.footer__list-anchor {
    color: #fff;

}

.footer__copyright {
    color: #fff;
}


/* DARK THEME */


.dark-theme .title,
.dark-theme .section__title,
.dark-theme .section__sub-title,
.dark-theme .nav__link--anchor,
.dark-theme .fa-adjust,
.dark-theme .header__para
{
  color: white;
}
.dark-theme section {
  background-color: #000000;
  z-index: 0;
}
.dark-theme #personal-logo {
  filter: none;
}
.dark-theme .scroll__icon {
  border-color: white;
}
.dark-theme .scroll__icon:after,
.dark-theme .link__hover-effect--black:after {
  background-color: white;
}
.dark-theme .mail__btn {
  background-color: white;
  color: #242424;
}

.dark-theme .logo {
    filter: invert(1);
}

.dark-theme .light-blue {
    color:#373970;
}

@media (max-width: 1280px) {


    .project__img {
        max-width: 80vw;
        
    }

    .title {
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 72px;
    }
    
    .header__para {
        font-size: 20px;
      }
      .modal {
        top: 0;
        left: 5%;
        transform: none;
        height: auto;
        width: 90%;
        flex-direction: column-reverse;
        border-radius: 5px;
        
        

      }
      .modal__half {
        width: 100%;
      }
     .modal--active html{
        
        height: 100%;
        overflow: hidden;
      }

    .modal--active nav, .modal--active footer,
    .modal--active header, .modal--active #projects {
        display: none;
    }
    .project__description--para {
        display: none;
      }
      nav {
        display: flex;
        padding: 0px;
        align-items: center;
       
    }
    header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
        margin-top: 24px;
        margin: 0 auto;
    }
     #section-landing {
        padding-top: 24px;
        min-height: 120px;
        max-height: 0px;
     } 
     body {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 480px) {
    
    .title {
        font-size: 56px;
    }

    .header__para {
        font-size: 14px;
    }
    .project__description--para {
        display: none;
      }
      .project__description {
        left: 0;
        padding: 0;
        width: 100%;
        text-align: center;
      }
      .project__description--sub-title {
        margin-bottom: 8px;
      }
      .modal {
        top: 0;
        left: 5%;
        transform: none;
        height: auto;
        width: 90%;
        flex-direction: column-reverse;
        border-radius: 5px;
        margin: 8px;
      }
      .modal__half {
        width: 100%;
      }
      
     .modal--active html{
        
        height: 100%;
        overflow: hidden;
      }
     .modal--active .mail__btn {
        display: none;
     }

    .modal--active nav, .modal--active footer,
    .modal--active header, .modal--active #projects {
        display: none;
    }

    nav {
        display: flex;
        max-width: 360px;
        
        align-items: center;
        margin: 0 auto;
    }
   
    header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
        margin-top: 24px;
        margin: 0 auto;
    }
    .mail__btn {
        display: none;
    }
    .scroll__icon, .scroll{
        display: none;
    }

    footer {
        width: auto;
        height: auto;
    }

    html {
        margin: 0;
        padding: 0;
    }
    body {
        margin: 0;
        padding: 0;
    }

    #landing-page {
        padding-top: 24px;
        min-height: 360px;
    }
}