/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* COLORS */
:root{
  --primary-default: #072AC8;
  --primary-hover: #a2d6f9;
  --primary-tapped: #d1edff;
  --neutral-dark: #292e47;
  --neutral-medium: #6b708d;
  --neutral-light: #f2f4fc;
  --neutral-lightBlue: #ecf7ff;
  --secondary: #ffc600;
  --accent: #43d2ff;
}

/* HEADINGS */
h1{
  font-size: 44px;
  line-height: 48px;
  font-weight: 700;
  color: var(--neutral-dark);
}
  h2{
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
}
  h3{
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--neutral-dark);
}
  h4{
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
}
body p{
  font-size: 20px;
  line-height: 30px;
  color: var(--neutral-medium);
}
body a{
  text-decoration: none;
  color: var(--neutral-medium);
}
@media screen and (min-width: 768px){
  h1{
    font-size: 60px;
    line-height: 70px;
  }
    h2{
    font-size: 50px;
    line-height: 52px;
  }
    h3{
    font-size: 40px;
    line-height: 42px;
  }
    h4{
    font-size: 24px;
    line-height: 24px;
  }
}

/* BUTTONS + LINKS */
.btn{
  border: 0;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 17px;
  line-height: 25px;
}
@media screen and (min-width: 768px){
  .btn{
    font-size: 20px;
  }
}

.btn.btn-simple{
  padding: 0;
}

.btn.btn-primary{
  background-color: var(--primary-default);
  font-weight: 700;
  color: #fff;
}
.btn.btn-primary:hover{
  background-color: var(--primary-hover);
  font-weight: 700;
  color: var(--neutral-dark);
}

a.primary{
  font-size: 17px;
  line-height: 25px;
  color: var(--primary-default);
}
@media screen and (min-width: 1024px){
  a.primary{
    padding: 10px;
    padding-left: 0;
  }
}

/* SECTION PADDINGS */
.bigP{
  padding: 3rem 2rem;
}
@media screen and (min-width:768px){
  header.bigP{
    padding: 1.5rem 3rem;
  }
}
@media screen and (min-width: 1024px){
  .bigP{
    padding: 3rem 50px;
  }
  header.bigP{
    padding: 3rem 50px;
  }
}
@media(min-width: 1200px){
.bigP{
    padding: 3em 170px;
  }
  header.bigP{
    padding: 3rem 170px;
  }
}

.smallP{
  width: 90%;
  margin: 3rem auto;
}
@media(min-width: 1024px){
  .smallP{
    margin: 5rem;
  }
}


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

html {
  scroll-behavior: smooth;
}

html, body{
  overflow-x: hidden !important;
}

body{
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 20px;
  position: relative;
  background-color: var(--neutral-light);
  color: var(--neutral-medium);
}

/* HEADER */
header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  padding-bottom: 0;
  z-index: 9999;
}
@media screen and (min-width: 1024px){
  header{
    padding: 20px 150px 10px;
  }
}

/* NAVBAR */
.navbar{
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 1rem;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--neutral-light);
  padding: 2rem;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
}
@media screen and (min-width: 1024px){
  .navbar{
    opacity: 1;
    visibility: visible;
    flex-direction: row;
    align-items: start;
    padding: 2rem;
    position: inherit;
    background-color: transparent;
    box-shadow: none;
  }
}
.navbar.visible{
  transition: opacity 0.4s; 
  -webkit-transition: opacity 0.4s; 
  opacity: 1; 
  visibility: visible;
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  background-color:var(--neutral-light);
  padding-top: 150px;
  z-index: 1000;
}

.navList{
  display:flex;
  list-style-type: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}
@media screen and (min-width: 1024px){
  .navList{
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }
}

.navList li a{
  color: var(--neutral-dark);
  font-weight: 700;
  font-size: 30px;
}
@media screen and (min-width: 1024px){
  .navList li a{
    color: var(--neutral-medium);
    font-weight: 400;
    font-size: 17px;
    line-height: 22px;
  }
}
.navList li a.active{
  color: var(--primary-default);
}

/* BTNS CONTACT MOBILE/DESKTOP */
.navList li a#contactNav{
  display: inline;
}
.btn.btn-primary.btn-contact{
  display: none;
}
@media screen and (min-width: 1024px){
  .navList li a#contactNav{
    display: none;
  }
  .btn.btn-primary.btn-contact{
    display: inline;
    font-size: 17px;
  }
}

/* BTNS OPEN/CLOSE MENU MOBILE */
#openMenu,
#closeMenu{
  display: block;
  border: 0;
  font-size: 1.25rem;
  background-color: transparent;
  cursor: pointer;
  color: var(--neutral-dark);
}
#closeMenu{
  position: absolute;
  right: 2.5rem;
  top: 3rem;
}

@media screen and (min-width: 1024px){
  #openMenu,
  #closeMenu{
    display: none;
  }
}

/* FOOTER */
@media screen and (min-width: 768px){
  footer{
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-end;
  }
}

footer .info{
  font-size: 17px;
  line-height: 25px;
}
footer .info img{
  width: 100px;
}
footer .info p{
  margin-top: 30px;
}

footer .links{
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto ;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 30px;
}

@media screen and (min-width: 768px){
  footer > div{
    width: 50%;
  }  
}
@media screen and (min-width: 1024px){
  footer .links{
    justify-content: space-around;
    gap: 2rem;
    margin-top: 0;
  }
}

/* PROJECTS SECTION */
#projects h3{
  text-align: center;
}
@media screen and (min-width: 1024px){
  #projects h3{
    text-align: left;
  }
}

#projectsContainer{
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 40px;
  gap: 1rem;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
  padding: 0 24px;
}
@media screen and (min-width: 768px){
  #projectsContainer{
    align-items: stretch;
    overflow: visible;
    padding: 0;
  }
}
@media screen and (min-width: 1024px){
  #projectsContainer{
    margin-top: 70px;
    gap: 2rem;
  }
}

.project{
  display: flex;
  flex-flow: column nowrap;
  background-color: #fff;
  flex: 0 0 100%;
  scroll-snap-align: start;
}
@media screen and (min-width: 768px){
  .project{
    width: 25%;
    flex: 1 0 auto;
  }
}
@media screen and (min-width: 1024px){
  .project:hover{
    scale: 1.1;
    transition: scale 0.2s ease-in;
  }
}

.project > div{
  padding: 30px;
}
.project img{
  width: 100%;
  height: 200px;
  object-fit: cover;
}
@media screen and (min-width: 768px){
  .project img{
    height: 150px;
  }
}
@media screen and (min-width: 1024px){
  .project img{
    height: 240px;
  }
}

.project p.projectTitle{
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  color: var(--neutral-dark);
}

.project p.projectBody{
  font-size: 17px;
  line-height: 25px;
  margin: 10px 0 55px;
}


/* ERROR IMPORT PROJECTS */
#importProjectsKO{
  display: none; 
}
#importProjectsKO p{
  margin-top: 25px;
}

/* CONTACT SECTION */
#contact{
  padding: 5rem 3rem;
  background-color: var(--secondary);
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: space-around;
}
@media screen and (min-width: 1024px){
  #contact{
    padding: 140px 150px;
    margin: 5rem;
  }
}

#contact h3{
  text-align: center;
}
@media(min-width: 768px){
  #contact h3{
    text-align: left;
  }
}

#contact p{
  margin: 30px auto 50px;
  color: var(--neutral-dark);
  font-size: 20px;
  line-height: 30px;
}

#contact form#contactHome{
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
}
@media(min-width: 768px){
  #contact form#contactHome{
    flex-flow: row nowrap;
  }
}

#contact form#contactHome .inputGroup{
  display: flex;
  align-items: center;
  position: relative;
}

#contact form#contactHome input{
  width: 300px;
  height: 60px;
  padding: 15px 15px 15px 50px;
  font-size: 17px;
  border: 0;
}

#contact form#contactHome .icon{
  font-size: 17px;
  position: absolute;
  left: 20px;
}

#contact form#contactHome #btnSubscribe{
  font-size: 17px;
}