/*===== GOOGLE FONTS =====*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
/*===== VARIABLES CSS =====*/
:root{
  --header-height: 5rem;

  /*===== Colors =====*/
  --first-color: #006794
  ;
  --first-color-dark: #666666 ;
  ;
  --text-color: #666666  ;
  --first-color-light: #57a5ba;
  --first-color-lighten: #dedceb;

  /*===== Font and typography =====*/
  --body-font: 'Montserrat', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*===== Font weight =====*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*===== Margenes =====*/
  --mb-1: .75rem;
  --mb-2: 1.5rem;
  --mb-3: 2rem;
  --mb-4: 2.5rem;
  --mb-5: 3.0rem;
  --mb-6: 3.5rem;

  /*===== z index =====*/
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}
  
@media screen and (min-width: 768px){
  :root{
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
  
}

/*===== BASE =====*/

 
*,::before,::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  content:"" ;
   /* stretch a fixed position to the whole screen */
  top:0;
  height:100vh ; /* fix for mobile browser address bar appearing disappearing */
  left:0;
  right:0;
  z-index:-1 ; /* needed to keep in the background */
  background: url(/assets/img/bg.jpg);
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  text-align: center;
}

body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  line-height: 1.6;
  background-color:transparent;
}

h1,h2,h3 {
  line-height: 1.3;
}

h1,h2,h3,ul,p{
  margin: 0;
}

h2,h3{
  font-weight: var(--font-semi-bold);
}

ul{
  padding: 0;
}

li::marker {
  color: var(--first-color-light);
}

strong {
  font-weight: bold;
}

a{
  text-decoration: none;
  text-decoration:inherit;
  color: inherit;
}

a[href^=tel] {
  text-decoration:inherit;
  color: inherit;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}
e
/*===== CLASS CSS =====*/


.section  {
  padding: 4rem 0 2rem;
  
}

.section-title, .section-subtitle {
  text-align: center;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-3);
  color: var(--first-color-light);
  text-align: center;
  padding-bottom: 1.5rem;
  font-size: 24px;
}

.section-subtitle{
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

/*===== LAYOUT =====*/
.bd-container {
  max-width: 1024px;
  width: calc(100%-2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
  
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: transparent;
}

/*===== NAV =====*/

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  -webkit-animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
          opacity: 0;
  animation-delay: 2.5s;
}

@-webkit-keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-1000px);
            transform: translateY(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-1000px);
            transform: translateY(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}


.nav__item {
  text-transform: uppercase;
  margin-bottom: var(--mb-3);
  list-style: none;
}

.nav__link {
  transition: all 0.5s ease-in-out;
  color: var(--first-color-light);
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}

.nav__link:hover{
  color: var(--first-color-dark);
  text-decoration: none;
}

.nav__logo, .nav__toggle {
  color: var(--first-color-light);
}

.nav__toggle {
  cursor: pointer;
  z-index: 10;
}

/* Active menu */
.active-link {
  position: relative;
}

.active-link::after {
  content: "";
  position: absolute;
  bottom: -0.7rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--first-color-light);
}

/* Change background header */

.scroll-header {
  /* border-bottom: 1px solid darkblue;
  background-color: transparent;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
}

.scroll-header .nav__logo, .scroll-header .nav__toggle, .scroll-header .nav__link{
  color: var(--first-color-dark);
}

.scroll-header .nav__menu {
  background-color: transparent;
}


/*===== SCROLL TOP =====*/

.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .5rem;
  background: rgba(123, 111, 113, 0.7);
  
  z-index: var(--z-tooltip);
  transition: .4s;
  -webkit-transition: .4s;
  -moz-transition: .4s;
  -ms-transition: .4s;
  -o-transition: .4s;
  visibility: hidden; 

}

.scrolltop:hover{
  background-color: var(--first-color);
}

.scrolltop__icon {
  font-size: 2rem;
  color: var(--first-color-lighten);
}

/* Show scroll top */

.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/*===== HOME =====*/

.home {
  overflow: hidden;
  background-color: transparent;
}

.home__container {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  grid-template-rows: repeat(2, max-content);
  align-content: space-around;
  row-gap: 2rem;
}

.intro {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
    align-items: center;
    color: var(--first-color-light);
  margin: 0 5%;
}



.intro > * {
  flex: 1 1 250px;
  margin-bottom: 3rem;
}

.intro-image {
  width:250px;
  height: 375px;
  display:flex;
  justify-content:center;
  align-items: center;
  -webkit-animation: fade2 2.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
  animation: fade2 2.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
opacity: 0;
animation-delay: .5s;
}

@-webkit-keyframes fade2 {
  0% {
    transform: translateX(-50%);
    opacity: 0;
  }
  40% {
    transform: translateX(-50%);
    opacity: 0;
  }
  80% {
    transform: translateX(-50%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

.intro-image img {
  width: 350px;
  height: auto;
  margin: 0 auto;
  border-radius: 50%;
}

.intro-info {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items:center;
  height: 70%;
  text-align: center;
  letter-spacing: .1rem;
  -webkit-animation: fade 2.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
	        animation: fade 2.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
  opacity: 0;
  animation-delay: 0.5s;
}


@-webkit-keyframes fade {
  0% {
    transform: translateX(-50%);
    opacity: 0;
  }
  40% {
    transform: translateX(-50%);
    opacity: 1;
  }
  80% {
    transform: translateX(-50%);
    opacity: 1;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

.intro-info p {
  -webkit-animation: slide-in-bottom .5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-bottom .5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  opacity: 0;
  animation-delay: 2.5s;
  font-size: 1.1rem;
}



@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

.intro-info img {
  width: 250px;
  height: auto;
}

.intro-info h3 {
  padding: 1.5rem 0;
  letter-spacing: .2rem;
  text-transform: uppercase;
  font-size: 18px;
}

.intro-info h1 {
  font-size: var(--h1-font-size);
  padding-bottom: 1.5rem;
}


/*BUTTONS*/

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--first-color-lighten);
  padding: .75rem 1rem;
  
  transition: .3s;
  -webkit-transition: .3s;
  -moz-transition: .3s;
  -ms-transition: .3s;
  -o-transition: .3s;
}

.button:hover {
  background-color: var(--first-color-dark);
}

.button-light {
  background-color: var(--first-color-light);
}

.button-white{
  background-color: var(--first-color-lighten);
  color: var(--first-color-dark);
}

.button-white:hover{
  background-color: var(--first-color-lighten);
}

.button-link{
  background: none;
  color: var(--first-color);
  padding: 0;
}

.button-link:hover{
  background: none;
}

/*===== ABOUT =====*/

.quote {
  min-width: 250px;
  min-height: 250px;
  margin: 0 auto;
  text-align: center;
  display:flex;
  justify-content:center;
  align-items: center;
  flex-direction: column;
  color: var(--first-color-light);
}

.quote span {
  font-size: 50px;
  line-height: 0px;
  vertical-align: bottom;
}

.quote h1 {
  padding: 1rem;
  color: var(--first-color-dark);
  font-size: 20px;
}


/*===== WELCOME =====*/

.block {
  text-align: justify;
 /* border: 1px solid var(--first-color-light);*/
 background-color: rgba(255, 255, 255, 0.3);
  padding: 3rem 6rem;
  margin: 50px;
}

.block h1 {
  color: var(--first-color-light);
  text-align: center;
  padding-bottom: 1.5rem;
  font-size: 24px;
}

.block p {
  color: var(--first-color-dark);
  padding-bottom: 1rem;
}

.block-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex: 1;
}

.block-block > * {
  padding: 0 1rem;
  flex: 1 1 300px;
}

.block h2 {
  text-align: left;
  padding: 1rem 0;
  font-weight: bold;
  overflow:hidden;
  font-size: 14px;
  color: var(--first-color-light);
}

.block h3 {
  padding: 0.5rem 0;
  font-size: medium;
}

.block-left li, .block-right li {
  text-align: left;
  margin-left: .5rem;
}


@media (max-width: 900px) {
  .intro {
    margin: 50px 0 0 0;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }

  .intro-info img {
    max-width: 150px;
  }

  .intro-image img {
    max-width: 250px;
  }

  .block {
    text-align: justify;
  }


 
}

@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


/*===== CONTACTME =====*/

.contact__container {
  row-gap: 2.5rem;
  margin-bottom: 2rem;
}

.contact__content{
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
}

.contact__box {
  background-color: transparent;
  color: var(--first-color-dark);
  padding: 1.5rem;
  text-align: center;
  /* box-shadow: 0 4px 6px rgba(174,190,205,.3);*/
  border: 1px solid var(--first-color-light);
}

.contact__icon, .contact__title{
  color: var(--first-color-light);
  
}

.contact__icon{
  font-size: 2rem;
}

.contact__title{
  color: var(--first-color-light);
  text-align: center;
  padding-bottom: 1.5rem;
  font-size: 18px;
}

.contact__social {
  color: var(--first-color-dark);
  font-size: 1.5rem;
  margin: 0 var(--mb-1)
}

.contact__box:hover {
  box-shadow: 0 5px 8px rgba(174,190,205,.5);
}

.contact__inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
}

.contact__input, .contact__button{

  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

.contact__input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--first-color-light);
  color: var(--first-color);
  
  margin-bottom: var(--mb-1);
}

.contact::placeholder{
  color: var(--first-color-light);
  font-family: var(--body-font);
  font-weight: var(--font-semi-bold);
}

.contact__button{
  cursor: pointer;
  border: none;
  
  background-color: var(--first-color-dark);
  color: var(--first-color-lighten);
}

.contact__button:hover{
  background-color: var(--first-color-light);
  color: var(--first-color-dark);
}

/*===== FOOTER =====*/
.footer{
  margin-top: 5rem;
  background-color: transparent;
  border-top: 1px solid var(--first-color);
  color: var(--first-color-light);
  text-align: center;
}

.footer__container {
  padding: 3rem 0;
}

.footer__title{
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-semi-bold);
  color: var(--first-color-light);
}

.footer__description{
  margin-bottom: var(--mb-3);

}

.footer__social {
  margin-bottom: var(--mb-6);
}

.footer__link{
  font-size: 1.4rem;
  color: var(--first-color-lighten);
  margin: 0 var(--mb-1);
  transition: .3s;
  -webkit-transition: .3s;
  -moz-transition: .3s;
  -ms-transition: .3s;
  -o-transition: .3s;
}

.footer__link:hover{
  color: var(--first-color-light);
}

.footer__copy{
  font-size: var(--small-font-size);
  color: var(--first-color-light);
}

.footer__copy a {
  text-decoration: none;
  list-style: none;
  color: var(--first-color-light);
}

#block-list li {
  padding: 0.5rem 0 0.5rem 1rem;
}

/*===== MEDIA QUERIES =====*/

@media screen and (min-width: 576px){
  .home__img img{
    width: 330px;
  }

  .about__container, 
  .qualification__container, 
  .services__container, 
  .portfolio__container
  {
    grid-template-columns: repeat(2,1fr);
  }

  .contact__form{
    width: 450px;
    justify-self: center;
  }
}

@media screen and (min-width: 769px){
  body{
    margin: 0;
  }

  section{
    padding-top: 6rem;
  }

  .section-title{
    margin-bottom: var(--mb-5);
  }

  .nav {
    height: calc(var(--header-height) + .5rem);
  }

  .nav__list{
    display: flex;
  }
  .nav__item{
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }

  .nav__toggle{
    display: none;
  }

  .home__container {
    height: 100vh;
    grid-template-rows: max-content .5fr;
    align-content: flex-end;
  }

  .home__greeting {
    font-size: 1.25rem;
  }

  .home__profession{
    font-size: 2rem;
  }

  .home__social {
    flex-direction: row;
    align-items: center;
  }

  .home__social-icon{
    margin-right: var(--mb-4);
    margin-bottom: 0;
  }

  .home__img img{
    width: 440px;
  }

  .about__description{
    text-align: initial;
  }

  .about__img{
    width: 330px;
  }

  .qualification__box{
    display: flex;
    justify-content: space-between;
  }

  .services__container,
  .portfolio__container{
    grid-template-columns: repeat(3,1fr);
  }

  .project__container{
    padding: 4.5rem 0;
  }

  .project__data{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }

  .project__icon, .project__title, .project__description{
    margin-bottom: 0%;
  }

  .project__icon{
    font-size: 6rem;
  }

  .project__title{
    font-size: 2.5rem;
  }
}
  @media screen and (min-width: 1176px){
   .bd-container {
     margin-left: auto;
     margin-right: auto;
   }

   .qualification__container{
     column-gap: 6rem;
   }
  }

  

  @media screen and (max-width: 769px){
    .nav__menu {
      position: fixed;
      top: -100%;
      left: 0;
      width: 100%;
      padding-top: 1.5rem;
      text-align: center;
      background-color: #ebe4dc;
      transition: 0.4s;
      -webkit-transition: 0.4s;
      -moz-transition: 0.4s;
      -ms-transition: 0.4s;
      -o-transition: 0.4s;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
	        animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
      opacity: 0;
  }
  
  .nav {
    -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
    opacity: 1;
  }
  
  .intro-image, .intro-info {
    -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
    opacity: 1;
  }
  
  .block {
    margin: 2rem 0;
    padding: 10vh 10vw;
  }

  .block h1 {
    font-size: 18px;
  }
  
  .scroll-header .nav__menu {
    background-color: white;
  }

  .intro-info p {
    -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
    opacity: 1;
    font-size:0.9rem;
  }

  .intro-info h3 {
    font-size: 14px;
  }

  .intro-info h1 {
    font-size: 18px;
  }

  .intro-image img {
    max-width: 200px;
  }
  
  
  }

/* Show menu */

.show-menu{
  top: 0;
  opacity: 1;
}

.language-selector {
  position: fixed;
  right: 2rem;
  top: 6rem;
  z-index: 10;
}
