:root {
  --main-color: linear-gradient(90deg, #57c589, #259145);
  --black: #13131a;
  --bg: #47937ad1;
  --color_text: linear-gradient(#eee, #333);
  --color_2: #31d35c;
}

* {
  font-family: "Kanit", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 9rem;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 5rem;
}

body {
  background: radial-gradient(
    circle at 10% 20%,
    rgb(4, 159, 108) 0%,
    rgb(194, 254, 113) 90.1%
  );
}

/* BUTTONS */
.btn {
  margin-top: 1rem;
  display: inline-block;
  border-radius: 50px;
  padding: 0.9rem 3rem;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(to right, #31d35c, #2bb7da);
  cursor: pointer;
}
.btn:hover {
  letter-spacing: 0.2rem;
}

/* SECTIONS */
section {
  padding: 3rem 10%;
  display: flex;
}

/* HEADER */
.header {
  background: radial-gradient(
    circle at 10% 20%,
    rgb(4, 159, 108) 0%,
    rgb(194, 254, 113) 90.1%
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 7%;
  border-bottom: var(--bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.header .logo img {
  height: 6rem;
}
.header .navbar a {
  margin: 1 5rem;
  font-size: 1.9rem;
  color: #fff;
}
.header .navbar a:hover {
  color: var(--color_2);
  border-bottom: 0.1rem solid var(--color_2);
  padding-bottom: 0.5rem;
}
.header .icons div {
  color: #fff;
  cursor: pointer;
  font-size: 2.5rem;
  margin-left: 2rem;
}
.header .icons div:hover {
  color: var(--main-color);
}

#menu {
  display: none; /* Will appear on smaller screens */
}

/* HOME */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.video-background {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.5;
}
.home .container {
  max-width: 100rem;
}
.home .container h3 {
  font-size: 6rem;
  margin-top: 40px;
  text-transform: uppercase;
  background: radial-gradient(
    328px at 2.9% 15%,
    rgb(191, 224, 251) 0%,
    rgb(232, 233, 251) 25.8%,
    rgb(252, 239, 250) 50.8%,
    rgb(234, 251, 251) 77.6%,
    rgb(240, 251, 244) 100.7%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.home .container p {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
  padding: 1rem 0;
  background: linear-gradient(60deg, #abecd6 0%, #fbed96 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* PRODUCTS */
.products {
  padding: 3rem 10%;
  background: radial-gradient(
    circle at 10% 20%,
    rgb(4, 159, 108) 0%,
    rgb(194, 254, 113) 90.1%
  );
  text-align: center;
}
.products .heading {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #fff;
}
.products .heading span {
  color: var(--color_2);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.product-item {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.product-item:hover {
  transform: scale(1.05);
}
.product-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: left;
}
.product-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.product-description {
  font-size: 1rem;
  line-height: 1.5;
}

/* SLIDER (example) */
.container {
  top: 50%;
  left: 50%;
  width: 1000px;
  transform: translate(0%, 0%);
  background: #cccccc00;
  box-shadow: 0 30px 50px #dbdbdb00;
  margin: 0 auto;
}
.container .slide .item {
  width: 200px;
  height: 300px;
  position: absolute;
  top: 50%;
  transform: translate(0, -20%);
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
  background-position: 50% 50%;
  background-size: cover;
  display: inline-block;
  transition: 0.5s;
}
.item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  width: 300px;
  text-align: left;
  color: #eeeeee;
  transform: translate(0, -50%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  display: none;
}
.slide .item:nth-child(2) .content {
  display: block;
}

/* Keyframes for animations */
@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

/* FEATURE */
.feature {
  background: radial-gradient(
    circle at 10% 20%,
    rgb(4, 159, 108) 0%,
    rgb(194, 254, 113) 90.1%
  );
  text-align: center;
}
@media (min-width: 40em) {
  .feature {
    text-align: left;
  }
}
.feature__content container container--pall {
  padding-top: 4.375rem;
  padding-right: 1.5rem;
  padding-bottom: 4.375rem;
  padding-left: 1.5rem;
}
.feature__intro {
  margin-bottom: 1.75rem;
}
.feature__intro h2 {
  font-weight: 900;
  font-size: 4rem;
  line-height: 1.15;
  color: #2d314d;
  margin-bottom: 1.5625rem;
}
.feature__intro p {
  font-weight: 900;
  font-size: 1.295rem;
  line-height: 1.5;
  margin-bottom: 2.25rem;
}
@media (min-width: 40em) {
  .feature__grid {
    display: flex;
    flex-wrap: wrap;
  }
}
.feature__item {
  position: relative;
  padding: 1em;
}
@media (min-width: 40em) {
  .feature__item {
    flex: 0 0 50%;
  }
}
@media (min-width: 64em) {
  .feature__item {
    flex: 1;
  }
}
.feature__icon {
  margin-bottom: 1.875rem;
  justify-content: center;
  align-items: center;
}
.feature__icon img {
  max-width: 100%;
  height: auto;
  border-radius: 5%;
  max-height: 180px;
}
.feature__title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: #2d314d;
  margin-bottom: 1rem;
}
@media (min-width: 64em) {
  .feature__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}
.feature__description {
  font-size: 1.175rem;
  line-height: 1.5;
}

/* ARTICLES */
.articles {
  background: radial-gradient(
    circle at 10% 20%,
    rgb(4, 159, 108) 0%,
    rgb(194, 254, 113) 90.1%
  );
}
.article__content container container--pall {
  padding-top: 4.375rem;
  padding-right: 1.5rem;
  padding-bottom: 4.375rem;
  padding-left: 1.5rem;
}
.articles h2 {
  font-weight: 900;
  font-size: 3rem;
  line-height: 1.15;
  color: #2d314d;
  margin-top: 0px;
}
.article__grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 40px;
  gap: 1.875rem;
}
@media (min-width: 40em) {
  .article__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .article__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.article__item {
  border-radius: 0.3125rem;
  overflow: hidden;
  background-color: white;
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 150ms ease-in-out;
}
.article__item:hover {
  transform: scale(1.05);
}
.article__item a {
  text-decoration: none;
}
.article__image {
  height: 12.5rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.article__text {
  padding: 1.875rem 1.875rem 2.5rem 1.875rem;
  color: #9698a6;
}
@media (min-width: 40em) {
  .article__text {
    padding: 1.875rem 1.5625rem;
  }
}
.article__author {
  font-size: 0.625rem;
  margin-bottom: 0.75rem;
}
.article__title {
  font-size: 1.0625rem;
  line-height: 1.2;
  color: #2d314d;
  margin-bottom: 0.5rem;
}
.article__description {
  font-size: 0.8125rem;
}

/* CONTACT */
.contact {
  background: radial-gradient(
    circle at 10% 20%,
    rgb(4, 159, 108) 0%,
    rgb(194, 254, 113) 90.1%
  );
}
.contact_form {
  padding: 4.375rem 1.5rem 4.375rem 2.5rem;
}
.contact h2 {
  font-weight: 900;
  font-size: 3rem;
  line-height: 1.15;
  color: #2d314d;
  margin-top: 0px;
  margin-left: -2.7%;
}
.cont_img img {
  margin-top: 20%;
  margin-left: 50%;
  width: 50%;
}
.contact .row {
  display: flex;
  width: 300px;
  padding: 2% 5%;
}
.contact .row .map {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}
iframe {
  width: auto;
  height: 100%;
  border: none;
}
.contact .row .formulario {
  flex: none;
  margin-left: 140%;
  margin-top: 20px;
}
.contact .row .formulario h3 {
  font-size: 2rem;
  color: var(--main-color);
}
.contact .row .formulario p {
  font-size: 1.6rem;
  color: #fff;
  margin-top: 10px;
}
.contact .row .formulario .g-recaptcha {
  margin-left: 38%;
  margin-right: 50%;
}
.status {
  font-size: 15px;
  color: var(--main-color);
}
form {
  max-width: 100%;
  margin-top: 10px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-size: 1.4rem;
  color: #fff;
}
input {
  display: block;
  margin-bottom: 10px;
  width: 100%;
  height: 40px;
  font-size: 1.4rem;
}
textarea {
  display: block;
  margin-bottom: 10px;
  width: 100%;
  height: 40px;
  font-size: 1.4rem;
}
.message {
  width: 100%;
  height: 200px;
  resize: vertical;
}

/* FOOTER */
.footer {
  background: radial-gradient(
    circle at 10% 20%,
    rgb(4, 159, 108) 0%,
    rgb(194, 254, 113) 90.1%
  );
  text-align: center;
}
.footer .container {
  width: 100%;
  height: 5vh;
}
.footer .container p {
  text-transform: uppercase;
  font-size: 1rem;
  color: #fff;
}

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

/* -----------------------------------
   Up to ~991px (tablet sizes, etc.)
----------------------------------- */
@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  .header {
    padding: 1.5rem 2rem;
  }
  
  /*section {
    padding: 1rem;
  }*/

  /* Show mobile menu icon */
  #menu {
    display: inline-block;
  }

  /* Make navbar slide in from the right */
  .header .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    background: radial-gradient(circle, rgba(19, 91, 51) 0%, rgba(15,60,48,1) 54%);
    width: 30rem;
    height: calc(60vh - 9.5rem);
    transition: right 0.3s;
  }
  .header .navbar.active {
    right: 0;
  }
  .header .navbar a {
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
    background: radial-gradient(circle, rgba(19, 91, 51) 0%, rgba(15,60,48,1) 54%);
  }

  /* Contact section flex direction */
  .contact .row {
    flex-direction: column;
    padding: 2% 2%;
    width: 100%; /* let it be fluid */
  }
  .contact .row .map,
  .contact .row .formulario {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
  }
  .contact .row .formulario {
    margin-top: 10px;
  }
}

/* -----------------------------------
   Up to ~768px
----------------------------------- */
@media (max-width: 768px) {
  /* Products layout => 1 column */
  .products .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Features layout => stacked */
  .feature__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Articles layout => 1 column */
  .article__grid {
    grid-template-columns: 1fr;
  }

  /* Contact row => column if not already handled by bigger query */
  .contact .row {
    flex-direction: column;
  }
  .contact .row .map {
    width: 100%;
  }
  .contact .row .formulario {
    margin: 0;
    width: 100%;
  }

  /* Header -> show/hide menu */
  .header .navbar {
    display: none; /* hidden by default, unless active */
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg);
    z-index: 999;
  }
  .header .navbar.active {
    display: flex;
  }
  .header .icons #menu {
    display: block;
  }

  /* Home text scaling */
  .home .container h3 {
    font-size: 4rem;
  }
  .home .container p {
    font-size: 1.5rem;
  }

  /* Buttons smaller */
  .btn {
    padding: 0.7rem 2rem;
    font-size: 1.5rem;
  }
}

/* -----------------------------------
   Up to ~480px (small phones, etc.)
----------------------------------- */
@media (max-width: 480px) {
  html {
    font-size: 50%;
  }

  .header .navbar a {
    font-size: 1.8rem;
  }

  .contact h2 {
    font-size: 2.5rem;
  }
}

