/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(18, 95%, 55%);
    --second-color: hsl(42, 98%, 52%);
    --first-gradient: linear-gradient(90deg,
            #046561);
    --first-gradient-lighten: linear-gradient(90deg,
            #7a9695);
    --title-color: hsl(255, 12%, 12%);
    --text-color: hsl(225, 12%, 24%);
    --text-color-light: hsl(255, 4%, 70%);
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(0, 0%, 100%);
    --white-color: hsl(0, 0%, 100%);
    --black-color: hsl(255, 20%, 10%);
    --gray-border: hsl(255, 6%, 90%);
    --black-border: hsl(255, 10%, 20%);
    --border-color: hsl(228, 99%, 98%);


    --hue: 245;
    /* --first-color: hsl(var(--hue), 55%, 55%); */
    /* --first-color-light: hsl(var(--hue), 55%, 65%);
  --first-color-alt: hsl(var(--hue), 50%, 50%);
  --title-color: hsl(var(--hue), 30%, 95%);
  --text-color: hsl(var(--hue), 20%, 80%);
  --text-color-light: hsl(var(--hue), 20%, 70%); */
    --body-color: #1B1839;
    /* --container-color: hsl(var(--hue), 40%, 20%); */

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Syne", sans-serif;
    --biggest-font-size: 3rem;
    --big-font-size: 1.5rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;


    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --big-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
    :root {
        --big-font-size: 3.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.footer {
    padding-block: 5rem 1rem;
}

.section__title,
.section__subtitle {
    text-align: center;
}

.section__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    margin-bottom: 1.5rem;
}

.section__subtitle {
    display: block;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--second-color);
    margin-bottom: .5rem;
}

.main {
    overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
    /* position: fixed; */
    width: 100%;
    top: 0%;
    left: 0%;
    background-color: transparent;
    z-index: var(--z-fixed);
    transition: background-color .4s;
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    column-gap: .25rem;
}

.nav__logo span {
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

.nav__logo i {
    color: var(--first-color);
    font-size: 1.5rem;
}

.nav__toogle,
.nav__close {
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
    transition: color .4s;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: var(--black-color);
        width: 80%;
        height: 100%;
        padding: 7.5rem 3.5rem 0;
        border-left: 2px solid var(--black-border);
        transition: right .4s;
    }


}

.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 4rem;
}

.nav__link {
    position: relative;
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
}

.nav__link::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--white-color);
    position: absolute;
    left: 0%;
    bottom: -.5rem;
    transition: width .4s;
}

.nav__link:hover::after {
    width: 70%;

}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/* Show menu */
.show-menu {
    right: 0;
}

/* Change background header */
/* .bg-header {
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, .1);

}

.bg-header .nav__logo span,
.bg-header .nav__toogle,
.bg-header .nav__link {
  color: var(--title-color);
}
 */

/* ACTIVE LINK */
.active-link::after {
    width: 60%;
}


.background-clip {
    position: absolute;
    right: 0%;
    bottom: 0%;
    z-index: -1;
}

@media (min-aspect-ratio:16/9) {
    .background-clip {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio:16/9) {
    .background-clip {
        width: auto;
        height: 100%;
    }
}


/* Dark overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* Adjust darkness here */
    z-index: -1;
}


/*=============== HOME ===============*/
.bg__background_img {
    position: relative;
    width: 100%;
    height: 500px;
    /* full screen */
    background-image: url("../img/contact.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

.home__content {
    row-gap: 2.5rem;
}

.home__data {
    text-align: center;
}

.home__title {
    color: var(--white-color);
    font-size: 3.0rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.home__description {
    margin-bottom: 2.5rem;
    color: var(--white-color);
    font-weight: var(--font-bold);
}

.home__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.home__info {
    display: flex;
    justify-content: center;
    column-gap: 4.5rem;
}

.home__info-title {
    color: var(--second-color);
    font-size: var(--big-font-size);
    font-weight: var(--font-bold);
    margin-bottom: .5rem;
}

.home__info-description {
    font-size: var(--small-font-size);
    color: var(--white-color);
}

.home__images {
    position: relative;
    justify-self: center;
}

.home__img-1 {
    width: 250px;
    margin-left: 3.5rem;
}

.home__img-2 {
    width: 150px;
    border: 5px solid var(--black-color);
    position: absolute;
    left: 0;
    bottom: -3.5rem;
}

.home__lines {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.home__title_h3 {
    color: var(--white-color);

}

/*=============== BUTTON ===============*/
.button {
    background: var(--first-gradient);
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    padding: 1rem 2rem;
    transition: box-shadow .4s;
}

/* .button {
  display: inline-flex;
  background: var(--first-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: box-shadow .4s;
} */

.button:hover {
    box-shadow: 0 8px 32px hsla(18, 95%, 55%, .3);
    color: var(--white-color);
}

.button__link {
    display: flex;
    align-items: center;
    column-gap: .25rem;
    color: var(--first-color);
}

.button__link span {
    font-weight: var(--font-semi-bold);
}

.button__link i {
    font-size: 1.5rem;
    transition: transform .4s;
}

.button__link:hover i {
    transform: translateX(.25rem);
}































/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--black-color);
    width: 80%;
    height: 100%;
    padding: 7.5rem 3.5rem 0;
    border-left: 2px solid var(--black-border);
    transition: right .4s;
  }


}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
}

.nav__link {
  position: relative;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

.nav__link::after {
  content: '';
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  position: absolute;
  left: 0%;
  bottom: -.5rem;
  transition: width .4s;
}

.nav__link:hover::after {
  width: 70%;

}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change background header */
/* .bg-header {
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, .1);

}

.bg-header .nav__logo span,
.bg-header .nav__toogle,
.bg-header .nav__link {
  color: var(--title-color);
}
 */

/* ACTIVE LINK */
.active-link::after {
  width: 60%;
}


.background-clip {
  position: absolute;
  right: 0%;
  bottom: 0%;
  z-index: -1;
}

@media (min-aspect-ratio:16/9) {
  .background-clip {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio:16/9) {
  .background-clip {
    width: auto;
    height: 100%;
  }
}


/* Dark overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  /* Adjust darkness here */
  z-index: -1;
}


/*=============== HOME ===============*/
.home__content {
  row-gap: 2.5rem;
}

.home__data {
  text-align: center;
}

.home__title {
  color: var(--white-color);
  font-size: 3.0rem;
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.home__description {
  margin-bottom: 2.5rem;
  color: var(--white-color);
  font-weight: var(--font-bold);
}

.home__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home__info {
  display: flex;
  justify-content: center;
  column-gap: 4.5rem;
}

.home__info-title {
  color: var(--second-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: .5rem;
}

.home__info-description {
  font-size: var(--small-font-size);
  color: var(--white-color);
}

.home__images {
  position: relative;
  justify-self: center;
}

.home__img-1 {
  width: 250px;
  margin-left: 3.5rem;
}

.home__img-2 {
  width: 150px;
  border: 5px solid var(--black-color);
  position: absolute;
  left: 0;
  bottom: -3.5rem;
}

.home__lines {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}

.home__title_h3 {
  color: var(--white-color);

}

.button:hover {
  box-shadow: 0 8px 32px hsla(18, 95%, 55%, .3);
  color: var(--white-color);
}

.button__link {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--first-color);
}

.button__link span {
  font-weight: var(--font-semi-bold);
}

.button__link i {
  font-size: 1.5rem;
  transition: transform .4s;
}

.button__link:hover i {
  transform: translateX(.25rem);
}

/*=============== PROJECTS ===============*/
.projects {
    background-color: var(--white-color);
}

.projects .section__title {
    color: var(--white-color);
}

.projects__container {
    padding-block: 1.5rem 3rem;
}

.projects__card {
    background-color: #FAF5EF;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: border-color .4s;
}

.projects__data img {
    width: 60px;
}

.projects__card:hover {
    border-color: var(--first-gradient);
}

.projects__data {
    padding: 1.5rem 1rem 3rem;
}

.project__title {
    font-size: var(--h2-font-size);
    margin-block: .5rem;
}

.projects__date {
    display: flex;
    font-weight: var(--font-medium);
    color: var(--title-color);
    margin-bottom: 1.5rem;
}

.pojects__title {
    font-size: calc(var(--h3-font-size) + .2rem);
}

.project_img {
    fill: #ff6600;
}

.projects__card {
    align-items: center;
    justify-content: center;
    display: flex;
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 4rem;
}

.contact__group,
.contact__form {
  gap: 1rem;
}

.contact__form {
  position: relative;
}

.contact__input {
  padding: 1.25rem;
  padding: 1.25rem;
  background-color: var(--container-color);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  border: none;
  border-radius: 5px;
}

.contact__input::placeholder {
  color: var(--text-color-light);
}

.contact__area {
  height: 10rem;
  resize: none;
}

.contact__button {
  margin-top: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

.contact__social {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  column-gap: 3rem;
}

.contact__social-link {
  color: var(--title-color);
  display: inline-flex;
  column-gap: .25rem;
  align-items: center;
  transition: color .4s;
}

.contact__social-link i {
  font-size: 3rem;
}

.contact__social-link span {
  font-size: font;
  font-weight: var(--font-semi-bold);
}

.contact__social-link:hover {
  color: var(--first-color-light);
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: -2rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

/*=============== FOOTER ===============*/
.footer__container {
    row-gap: 2.5rem;
}

.footer__logo {
    color: var(--white-color);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    margin-bottom: .75rem;
}

.footer__logo i {
    font-size: 1.25rem;
}

.footer__description,
.footer__link {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--white-color);
}

.footer__content,
.footer__links {
    display: grid;
}

.footer__content {
    grid-template-columns: repeat(2, max-content);
    gap: 2.5rem 4rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    color: var(--white-color);
}

.footer__links {
    row-gap: .5rem;
}

.footer__link {
    color: var(--white-color);
    transition: .3s;
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__social {
    display: flex;
    column-gap: 1rem;
}

.footer__social-link {
    font-size: 1.25rem;
    color: var(--text-color);
    transition: .3s;
}

.footer__social-link:hover {
    color: var(--title-color);
}

.footer__info,
.footer__privacy {
    display: flex;
}

.footer__info {
    padding-bottom: 6rem;
    margin-top: 5.5rem;
    flex-direction: column;
    text-align: center;
    row-gap: 1.5rem;
}

.footer__copy,
.footer__privacy {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
}

.footer__privacy {
    justify-content: center;
    column-gap: 1.25rem;
}

.footer {
    background-color: #0E0F11;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(228, 8%, 76%);
}

::-webkit-scrollbar-thumb {
    border-radius: .5rem;
    background-color: hsl(228, 8%, 64%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(228, 8%, 54%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: #25D366;
    box-shadow: 0 8px 12px hsla(228, 66%, 45%, .1);
    display: inline-flex;
    padding: .35rem;
    border-radius: 1rem;
    color: var(--title-color);
    font-size: 3rem;
    z-index: var(--z-tooltip);
    transition: .3s;
}

.scrollup:hover {
    transform: translateY(-.25rem);
    /* color: var(--first-color); */
}

/* Show Scroll Up*/
.show-scroll {
    bottom: 8rem;
}




















@media (max-width: 768px) {
    .home__title {
        text-align: center;
        padding-right: 250px;
        padding-top: 100px;
        width: 400px;
        font-size: var(--h1-font-size);
    }

    .bg__background_img {
        height: 40vh;
    }

    .footer__logo,
    .footer__description {
        text-align: left;
    }

     .contact__button {
    width: max-content;
    justify-self: center;
    margin-top: 1.5rem;
    background-color: #046561;
  }
  
  .section__title {
    margin-top: 30px;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .contact__container {
    grid-template-columns: 350px;
    justify-content: center;
  }
}


/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toogle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    width: initial;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 3rem;
    margin-right: 10rem;
  }

  .nav__menu a {
    color: var(--white-color);
  }

  /* .bg__header .nav__link {
    color: var(--text-color);
  }

  .bg-header .active-link,
  .bg-header .nav__link:hover {
    color: var(--black-color);
  }

  .bg-header .button,
  .bg-header .button:hover {
    color: var(--white-color);
  } */


  .home__data {
    text-align: initial;
  }


  .home__buttons {
    justify-content: initial;
    column-gap: 3rem;

  }

  .home__info {
    justify-content: initial;
    column-gap: 5.5rem;
  }

  .home__info-description {
    font-size: var(--normal-font-size);
  }

  .home__img-1 {
    width: 550px;
    margin-left: 0;
  }

  .home__img-2 {
    width: 350px;
    border-width: 10px;
    left: -7rem;
    bottom: -8rem;
  }

  .home__lines {
    object-position: center;
  }

  .projects__container {
        grid-template-columns: repeat(3, 350px);
        column-gap: 2rem;
        padding-block: 5rem 4rem;
    }

    .projects__card {
        border-width: 3px;
    }

    .projects__data {
        padding: 2rem 1.5rem 2rem;
    }

    .contact__container {
    grid-template-columns: 580px;
  }

  .contact__group {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__area {
    height: 15rem;
  }

  .contact__button {
    width: max-content;
    justify-self: center;
    margin-top: 1.5rem;
    background-color: #046561;
  }

  .contact__message {
    bottom: 4.5rem;
  }

  .contact__social {
    grid-template-columns: repeat(3, max-content);
    column-gap: 5rem;
  }
}


@media screen and (min-width: 1023px) {
    .footer__container {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .footer__content {
        justify-self: end;
    }


    .footer__content {
        grid-template-columns: repeat(4, max-content);
    }

    .footer__title {
        margin-bottom: 1.5rem;
    }

    .footer__link {
        row-gap: 1rem;
    }

    .footer__info {
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 2rem;
    }

    .show-scroll {
        bottom: 3rem;
        right: 3rem;
    }

}



html,
body {
    overflow-x: hidden !important;
}