@import url("https://fonts.googleapis.com/css2?family=Tinos:wght@400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');

/*----- VARIABLES CSS -----*/
/*Varibles en general*/
:root {
  /* Colors */
  --first-color: #692907;
  --second-color: #ffffff;
  --white-color: #ffffff;
  --text-color: #1a1a1a;
  /* Font and typography */
  --header-font: "Syne", sans-serif;
  --body-font: "Outfit", system-ui;
  --h1-font-size: 2.3rem;
  --h2-font-size: 2.3rem;
  --normal-font-size: 0.93rem;
  --big-font-size: 5rem;
  --smaller-font-size: 0.75rem;
  /* z index */
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --h1-font-size: 4.5rem;
    --h2-font-size: 3.56rem;
    --normal-font-size: 1rem;
    --big-font-size: 10rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 3.5rem 0 0 0;
  font-family: var(--body-font);
  font-weight: initial;
  background: #ffffff;

  /* overflow: hidden; */
}

h1,
h2 {
  margin: 0;
  font-weight: initial;
}

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

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  font-size: var(--normal-font-size);
}

/*----- LAYOUT -----*/
.bd-grid {
  max-width: 1100px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  /* background: #923909; */
  color: var(--white-color);
  z-index: var(--z-fixed);
}

/*----- PAGES -----*/
/*Nav*/
.nav {
  height: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.nav__logo {
  font-size: 20px;
  font-family: var(--header-font);
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 3.5rem;
    left: -100%;
    background-color: rgba(0, 0, 0, 0.8);
    width: 80%;
    height: 100vh;
    margin: auto;
    padding: 2rem;
    z-index: var(--z-fixed);
    transition: .5s;
  }


  .l-header {
    background: #923909;
  }

  .exp {
    height: 100%;
    position: relative;
    top: 100%;
    bottom: 0;
  }
}

.nav__list {
  text-align: center;
}

.nav__item {
  margin-bottom: 2rem;
}

.nav__link {
  padding: .5rem;
  color: #000;
  font-weight: 500;
  font-size: 13px;
  font-family: var(--body-font);
}

.nav__logo {
  color: var(--white-color);
}

.nav__toggle {
  font-size: 2rem;
  cursor: pointer;
}

.nav__icon-git {
  font-size: 1.3rem;
  text-align: right;
}

/*Aparecer menu*/
.show {
  left: 0;
}

/*Home*/
.home {
  position: relative;
  display: grid;
  grid-template-rows: 3fr 1fr;
  height: calc(100vh - 3.5rem);
  overflow: hidden;
}

.home__primary {
  width: 0;
  /*Animation*/
  /* background: linear-gradient(45deg, #b3450a, #923909 100%); */
  background: linear-gradient(45deg, #9a3412 50%, #ee7f44 20%, #d3520d 50%);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.home__title {
  font-size: 30px;
  font-family: var(--header-font);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--white-color);
}

.home__img {
  width: 255px;
  height: auto;
}

.home__secondary {
  width: 0;
  /*Animation*/
  background-color: var(--second-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.home__scroll {
  display: none;
  position: absolute;
  left: 0;
  bottom: 15%;
  font-size: var(--smaller-font-size);
  transform: rotate(270deg);
  color: var(--first-color);
}

.home__scroll a {
  padding-right: 10px;
  color: var(--first-color);
  font-size: 18px;
}

.home__scroll::after {
  content: '';
  position: absolute;
  top: 45%;
  left: -10%;
  width: 38px;
  height: 1px;
  background-color: var(--first-color);
  margin-left: -2.5rem;
}

.home__year {
  font-size: 30px;
  /* -webkit-text-stroke: 2.3px #b3450a; */
  color: #b3450a;
  font-family: var(--header-font);

}


.header-bg {
  background-color: #fff;
  color: #fff;
  box-shadow: 0 2px 4px rgba(11, 45, 65, 0.2);
  transition: .5s;
  overflow: hidden;
}

.header-bg .nav__link {
  padding: .5rem;
  color: #666;
}

.header-bg .nav__logo {
  color: #666;
}

.header-bg .nav__toggle {
  color: #666;
}

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

  .l-header {
    /* background-color: transparent; */
    transition: .5s;
  }

  .nav {
    display: grid;
    grid-template-columns: 3fr 2fr;
  }

  .nav__list {
    display: flex;
  }

  .nav__item {
    margin-right: 3rem;
    margin-bottom: 0;
  }

  .nav__toggle {
    display: none;
  }

  .home {
    grid-template-columns: 4fr 3fr;
    grid-template-rows: 1fr;
    height: 100vh;
  }

  .home__title {
    font-size: 45px;
    font-weight: 600;
  }

  .home__primary {
    justify-content: center;
  }

  .home__img img {
    position: absolute;
    width: 420px;
    top: 8%;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.4));
  }

  .home__scroll {
    color: var(--white-color);
    display: block;
  }

  .home__scroll a {
    color: var(--white-color);
  }

  .home__scroll::after {
    background-color: var(--white-color);
  }

  .home__year {
    writing-mode: vertical-rl;
    margin-left: 5rem;
    font-size: 50px;
    font-weight: 700;
  }

  .home__year i {
    writing-mode: vertical-rl;
    /* transform: rotate(180deg
    
    ); */
  }
}

@media screen and (min-width: 1200px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .nav {
    height: calc(3.5rem + 1.5rem);
  }
}



/* About */


.about {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  font-family: var(--body-font);
}

.about-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  align-items: center;
}

.about-grid-img {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.about-grid-img img {
  width: 100%;
}

.about-experience {
  background: #d3520d;
  padding: 20px 40px;
  /* width: 20%; */
  position: absolute;
  bottom: 5px;
  right: 0;
}

.about-experience h1 {
  font-size: 60px;
  color: var(--second-color);
  font-family: var(--header-font);
}

.about-experience span {
  color: var(--second-color);
}

.about-grid-content span {
  color: #d3520d;
}

.about-grid-content span img {
  width: 20px;
}

.about-grid-content h2 {
  font-size: 35px;
  font-weight: 700;
  font-family: var(--header-font);
  padding-top: 10px;
  /* padding-bottom: 10px; */
}

.about-grid-content p {
  font-weight: 300;
  /* padding-top: 10px; */
  padding-bottom: 10px;
}


.about-grid-experience {
  display: flex;
  /* gap: 30px; */
  justify-content: space-between;
  padding-top: 20px;
  margin-bottom: 70px;
}

.about-exp {
  text-align: center;
}

.about-exp h1 {
  font-size: 40px;
  font-weight: 500;
  font-family: var(--header-font);
  color: #d3520d;
}

.about-exp span {
  color: #666;
}


.about-button {
  background: linear-gradient(45deg, #9a3412 50%, #ee7f44 20%, #d3520d 50%);
  color: var(--white-color);
  padding: 15px 24px;
  border-radius: 20px 0;
  transition: .5s;
}

.about-button:hover {
  border-radius: 0 20px;
}





/* Skills */

.skills {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
  font-family: var(--body-font);
}

.skills-header {
  text-align: center;
  position: relative;
  font-family: var(--header-font);
}

.skills-header h2 {
  font-size: 50px;
  font-weight: 600;
  opacity: 0.1;

}

.skills-header h3 {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  font-weight: 700;
}

.skills-header .line {
  height: 4px;
  width: 50px;
  background: #d3520d;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.skills-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-top: 100px;
}

.skills-grid {
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: #cccccc4d;
  padding: 40px 20px;
  border-radius: 40px 0;
  transition: .5s;
}

.skills-img {
  width: 100px;
  height: 100px;
  /* background: rgba(0, 0, 0, 0.1); */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40%;
}

.skills-img img {
  width: 60px;
  transition: .5s;
}

.skills-grid span:nth-child(2) {
  color: #838383;
  padding-top: 5px;
  padding-bottom: 5px;
}

.skills-grid:hover {
  transform: translateY(-10px);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.skills-grid:hover .skills-img img {
  animation: bounce-skills .8s;
}


@keyframes bounce-skills {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translateY(-6px);
  }

  40% {
    transform: translate(0);
  }

  60% {
    transform: translateY(-3px);
  }

  80% {
    transform: translate(0);
  }
}




/* Services */

.services {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
  font-family: var(--body-font);
}

.services-header {
  text-align: center;
  position: relative;
  font-family: var(--header-font);
}

.services-header h2 {
  font-size: 50px;
  font-weight: 600;
  opacity: 0.1;

}

.services-header h3 {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  font-weight: 700;
}

.services-header .line {
  height: 4px;
  width: 50px;
  background: #d3520d;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-top: 100px;
}

.services-card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background: #cccccc4d;
  border-radius: 40px 0;
  transition: .5s;
}

.services-card i {
  color: #b3450a;
  font-size: 50px;
  transition: .5s;
}

.services-card h3 {
  font-size: 25px;
  font-weight: 500;
  font-family: var(--header-font);
  color: #666;
  transition: .5s;
}

.services-card:hover {
  background: #b3450a;
  color: #ffffff;
  transform: translateY(-10px);
  border-radius: 0 40px;
}

.services-card:hover i,
.services-card:hover h3 {
  color: #ffffff;
}

.services-card:hover .moon {
  opacity: 1;
}



/* Experience */

.experience {
  position: relative;
  /* overflow: hidden; */
  padding-top: 100px;
  padding-bottom: 100px;
  font-family: var(--body-font);
}

.exp {
  height: max-content;
  position: sticky;
  top: 10rem;
  bottom: 0;
}

.experience-header {
  text-align: center;
  position: relative;
  font-family: var(--header-font);
}

.experience-header h2 {
  font-size: 50px;
  font-weight: 600;
  opacity: 0.1;

}

.experience-header h3 {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  font-weight: 700;
}

.experience-header .line {
  height: 4px;
  width: 50px;
  background: #d3520d;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.exp p {
  text-align: center;
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* align-items: center; */
  gap: 30px;
}

.experience-cards-2 {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experience-card {
  padding: 20px 40px;
  /* background: #cccccc4d; */
  border: 3px dotted #c2c1c1;
  border-radius: 40px 0;
  transition: .5s;
}

.experience-card img {
  width: 100px;
  padding-bottom: -30px;
}

.experience-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.experience-title h3 {
  font-size: 25px;
  font-weight: 500;
  font-family: var(--header-font);
}

.experience-date {
  background: #b3450a;
  color: #ffffff;
  padding: 5px 10px;
}

.company-name {
  color: #b3450a;
}

.experience-card:hover {
  transform: translateY(-10px);
}



/* Projects */

.projects {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  font-family: var(--body-font);
}

.projects-header {
  text-align: center;
  position: relative;
  font-family: var(--header-font);
}

.projects-header h2 {
  font-size: 50px;
  font-weight: 600;
  opacity: 0.1;

}

.projects-header h3 {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  font-weight: 700;
}

.projects-header .line {
  height: 4px;
  width: 50px;
  background: #d3520d;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.projects-cards {
  padding-top: 100px;
  padding-bottom: 100px;
}

.swiper {
  width: 100%;
  /* height: 100%; */
}

.project-card {
  /* background: #cccccc4d;
  padding: 20px;
  border-radius: 40px 0; */
  transition: .5s;
}

.project-img {
  width: 100%;
  padding-bottom: 20px;
  border-radius: 20px 0;
}

.project-card span {
  color: #838383;
}

.project-card h2 {
  padding-top: 10px;
  padding-bottom: 0;
  font-family: var(--header-font);
  font-weight: 600;
}

.project-card p {
  color: #838383;
}

.project-techs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.project-tech {
  display: flex;
  align-items: center;
  gap: 30px;
}


.project-demo a {
  color: #838383;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #d3520d;
}





.cta {
  padding: 100px 0;
  overflow: hidden;
  position: relative;
  font-family: var(--body-font);
}

.cta-background {
  position: relative;
  background: linear-gradient(45deg, #9a3412 50%, #ee7f44 10%, #d3520d 50%);
  padding: 100px 0;
  border-radius: 40px 0;
}

.cta-header {
  text-align: center;
}

.cta-header h1 {
  font-size: 50px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  font-family: var(--header-font);
}

.cta-header a {
  color: #d3520d;
  background: #fff;
  padding: 12px 30px;
  border-radius: 20px 0;
  transition: .5s;
}

.cta-header a:hover {
  border-radius: 0 20px;
}

.cta-background img {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0 20px 20px 0;
  animation: rotateImg 20s linear infinite;
}

@keyframes rotateImg {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}



.contact {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
  font-family: var(--body-font);
}

.contact-header {
  text-align: center;
  position: relative;
  font-family: var(--header-font);
}

.contact-header h2 {
  font-size: 50px;
  font-weight: 600;
  opacity: 0.1;

}

.contact-header h3 {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  font-weight: 700;
}

.contact-header .line {
  height: 4px;
  width: 50px;
  background: #d3520d;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}


.contact-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-top: 100px;
}

.contact-grid p {
  color: #666;
}

.contact-details {
  padding-top: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-detail i {
  font-size: 25px;
  color: #d3520d;
}

.contact-detail h3 {
  margin-bottom: -10px;
  color: #666;
  font-weight: 400;
}


.contact-social {
  padding-top: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-social-link {
  background: #b3450a;
  color: #fff;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 0;
  transition: all .5s;
}

.contact-social-link i {
  font-size: 20px;
}

.contact-social-link:hover {
  background: #cccccc4d;
  color: #b3450a;
}


.contact-message h3 {
  color: #666;
  font-weight: 500;
}

.contact__form {
  padding-top: 40px;
  position: relative;
}

.contact-form-div {
  border: 1px solid #666;
  padding: 20px;
  position: relative;
  margin-bottom: 30px;
  border-radius: 20px 0;
  height: 100%;
}

.contact__form-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  padding: 5px 10px;
  margin-top: -15px;
}

.contact__form-input {
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
}

.contact__form-input::placeholder {
  color: #666;
  font-family: var(--body-font);
}

.contact__form-area {
  height: 10rem;
}

.contact-form-div textarea {
  resize: none;
  height: 100%;
}

.contact__button {
  background: linear-gradient(45deg, #9a3412 50%, #ee7f44 20%, #d3520d 50%);
  color: #fff;
  padding: 15px 25px;
  border: none;
  outline: none;
  font-family: var(--body-font);
  border-radius: 20px 0;
  font-size: 18px;
}


.contact__message {
  font-size: var(--small-font-size);
  position: absolute;
  bottom: 2.8rem;
  left: 1.25rem;
}

/* status color */

.color-red {
  color: #da3125;
}

.color-green {
  color: hsl(145, 56%, 45%);
}







.footer {
  background: #b3450a;
  font-family: var(--body-font);
}

.footer-header {
  text-align: center;
  padding: 50px 0;
}

.footer-header h2 {
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  padding-bottom: 20px;
  font-family: var(--header-font);
}

.footer-header p {
  color: #fff;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
}

.footer-social a {
  background: #fff;
  color: #b3450a;
  height: 40px;
  width: 40px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 0;
}

.copyright {
  text-align: center;
  font-family: var(--body-font);
  padding: 30px 0;
}


.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--white-color);
  box-shadow: 0 4px 12px hsl(207, 24%, 35%, .15);
  color: var(--first-color);
  display: inline-flex;
  padding: .35rem;
  border-radius: .25rem;
  font-size: 1.1rem;
  transition: bottom .3s, transform .3s;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.scrollup:hover {
  transform: translateY(-.25rem);
}

.show-scroll {
  bottom: 7.5rem;
}







@media screen and (max-width: 915px) {
  .about-grids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    align-items: center;
  }

  .experience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
  }

  .exp {
    height: 100%;
    position: relative;
    top: 0;
    bottom: 0;
  }

  .contact-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  padding-top: 100px;
}
}




@media screen and (max-width: 768px) {
  .exp {
    height: 100%;
    position: relative;
    top: 0;
    bottom: 0;
  }

  .skills-header h2,
  .services-header h2,
  .project-header h2,
  .experience-header h2,
  .contact-header h2 {
    font-size: 30px;
  }

  .skills-header .line,
  .services-header .line,
  .projects-header .line,
  .experience-header .line,
  .contact-header .line {
    position: absolute;
    top: 170%;
  }

  .exp p {
    margin-top: 50px;
  }

  .cta-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
  }

  .cta-background img {
    width: 70px;
  }
}

@media screen and (max-width: 515px) {
  .about-grids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    align-items: center;
  }

  .experience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .contact-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding-top: 100px;
}

.experience-card {
  padding: 20px;
  /* background: #cccccc4d; */
  border: 3px dotted #c2c1c1;
  border-radius: 40px 0;
  transition: .5s;
}

}