* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
:root {
  --background-color: #fffafa;
  --text-color: #212225;
  --titles-color: #0d0f10;
  --primary-color: #eff0f0;
  --secondary-color-background: #444;
  --hover-color: #bd0057;
  --header-color: #ffffff;
  --menu-color: #0d0f10;
  --card-background: #444;
  --font-family: "Mooli", "Reboto", sans-serif;
}
body.color-change {
  --background-color: #212225;
  --text-color: #d7d7d7;
  --titles-color: #d7d7d7;
  --primary-color: #1b1b1b;
  --hover-color: #f6ae2d;
  --secondary-color-background: #1b1b1b;
  --header-color: #030303;
  --menu-color: #f6ae2d;
  --card-background: #1b1b1b;
  --font-family: "Mooli", "Reboto", sans-serif;
}
/* ---------------------------------------body--------------------------------------------------------- */
body {
  display: grid;
  height: 100vh;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  font-family: var(--font-family);
  text-align: center;
  background-color: var(--background-color);
}
/* ---------------------------------------header--------------------------------------------------------- */
header {
  background: var(--header-color);
  padding: 2rem;
  grid-column: 1 / 3;
  height: 80px;
  display: grid;
}
nav {
  grid-column: 1 / 3;
  background-color: var(--primary-color);
  padding: 1rem;
  border: 1px solid #d0d3d3;
}
a {
  text-decoration: none;
  color: var(--text-color);
}
a:hover {
  color: var(--hover-color);
}
.box1 {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  margin-right: 5%;
  margin-top: 0.8%;
}
.box1 > div {
  margin-right: 30px;
}
.box1 i {
  font-size: 24px;
  color: var(--text-color);
  transition: 0.3s ease-in-out;
}
.box1 i:hover {
  color: var(--hover-color);
}
.btd,
.bty {
  border: none;
  margin: 0;
  padding: 0;
  width: auto;
  overflow: visible;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: inherit;
  cursor: pointer;
}
.dropdown {
  position: absolute;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  width: fit-content;
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.dropdown-content a:hover {
  background-color: #ddd;
}
.dropdown:hover .dropdown-content {
  display: block;
}
#menu-icon {
  display: none;
}
/* ---------------------------------------main--------------------------------------------------------- */
main {
  background: var(--background-color);
  height: 100%;
  padding: 1rem;
}
li {
  padding: 5px;
  list-style: armenian;
  color: var(--text-color);
}
li a {
  color: var(--text-color);
}
h2 {
  padding-top: 30px;
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--titles-color);
}
.github-info section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
  margin: 1rem auto;
  padding: 1rem;
  background-color: var(--primary-color);
  border: 1px solid #d0d3d3;
  width: 70%;
  height: auto;
  border-radius: 24px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.h3-git {
  padding-right: 70%;
  padding-bottom: 4%;
  text-decoration: underline;
  color: var(--text-color);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  margin: 0 auto;
}
.gallery img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s;
  border-radius: 5px;
  border: 1px solid #bbb;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.gallery img:hover {
  transform: scale(1.1);
  cursor: pointer;
}
.image-title {
  text-align: center;
  padding: 10px;
  color: var(--text-color);
}
.content {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}
.content .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.right {
  height: 100%;
  width: 55%;
  padding: 5vw 4vw;
}
.right h1 {
  font-size: 4vw;
  line-height: 4.4vw;
  text-align: left;
  color: var(--titles-color);
}
.right h1 span {
  color: var(--hover-color);
}
.right p {
  font-size: 1.2vw;
  color: var(--text-color);
  width: 80%;
  margin-top: 2vw;
  margin-bottom: 2vw;
}
.left {
  height: 100%;
  width: 45%;
  padding: 5vw 4vw;
}
.left img {
  height: 80%;
  width: 80%;
  object-fit: contain;
}
/* ---------------------------------------footer--------------------------------------------------------- */
footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 2rem;
  text-align: center;
  grid-column: 1 / 3;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
footer div {
  background-color: var(--primary-color);
  width: 100vw;
  padding: 10px;
}
footer i {
  font-size: 24px;
  margin-left: 20px;
}
/* ---------------------------------------hero--------------------------------------------------------- */
.banner {
  grid-column: 1/3;
  background: url("images/homepage-hero.webp");
  position: relative;
  width: 100%;
  height: 50vh;
  background-size: cover;
  background-position: center;
}
.homepage-hero {
  margin: 0;
  padding: 7%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 22, 40, 0.6);
}
.homepage-hero h2 {
  font-size: clamp(2.5rem, 3.5rem, 4.5rem);
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  letter-spacing: 10px;
  color: #ffffff;
}
.homepage-hero p {
  font-size: 18px;
  padding-top: 3%;
  color: #fff;
  line-height: 1.5;
}
.box1-movile {
  display: none;
}
/* ---------------------------------------class selectors--------------------------------------------------------- */
.name {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 2px;
  text-align: left;
  margin-left: 2%;
  color: var(--titles-color);
}
.nav-a {
  padding: 2%;
  margin-left: 2%;
}
.center-hr {
  display: flex;
  justify-content: center;
}
.custom-hr {
  width: 10%;
  border: none;
  height: 2px;
  background-color: var(--titles-color);
}
.github-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.card {
  position: relative;
  flex: 1;
  max-width: 400px;
  height: 140px;
  background-color: var(--primary-color);
  border: 1px solid #d0d3d3;
  margin: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}
.icon {
  font-size: 32px;
  color: var(--text-color);
  transition: 0.3s linear;
}
.card:hover .icon {
  transform: scale(4);
  opacity: 0;
}
.card-content h3,
.card-content span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  opacity: 0;
}
.card-content h3 {
  top: 20px;
  text-transform: uppercase;
  color: var(--text-color);
}
.card-content span {
  bottom: 20px;
  color: var(--text-color);
  font-weight: 500;
}
.card:hover h3 {
  opacity: 1;
  top: 46px;
  transition: 0.3s linear 0.3s;
}
.card:hover span {
  opacity: 1;
  bottom: 46px;
  transition: 0.3s linear 0.3s;
}
/* ---------------------------------------descripcion de proyectos--------------------------------------------------------- */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.popup {
  background-color: #fff;
  padding: 50px;
  border-radius: 5px;
  text-align: center;
  margin-top: -20%;
  width: 50%;
}
.popup p {
  line-height: 1.5;
}
.popup a {
  text-decoration: underline;
  color: #030303;
}
.popup img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.close-btn {
  cursor: pointer;
  color: #fff;
  font-size: 40px;
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 999999;
}
/* contact info */
.contact-div {
  display: flex;
  color: var(--text-color);
}
.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.contact-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  text-align: left;
}
.contact-item i {
  margin-right: 30px;
  font-size: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d0d3d3;
}
.contact-item i:hover,
footer i:hover {
  color: var(--hover-color);
  cursor: pointer;
}
.contact-form {
  display: flex;
  justify-content: left;
  align-items: center;
  width: 100%;
}
.form-group {
  width: 100%;
  margin-bottom: 20px;
}
.form-group label {
  text-align: left;
  display: block;
  margin-bottom: 5px;
  margin-left: 10px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form-group textarea {
  resize: vertical;
}
button[type="submit"] {
  padding: 10px 25px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button[type="submit"]:hover {
  background-color: #0056b3;
}
.group-one {
  display: flex;
  gap: 10px;
}
form {
  min-width: 570px;
}
/* ---------------------------------------skills--------------------------------------------------------- */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.skills-figure {
  position: relative;
  text-align: center;
  margin: 20px;
  transition: transform 0.3s;
}
.skills-img {
  width: 100px;
  height: auto;
}
.skills-name {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s, top 0.3s;
}
.skills-figure:hover .skills-name {
  opacity: 1;
  top: -45px;
}
.skills-figure:hover {
  transform: translateY(-5px);
}
#product-detail-container {
  background-color: var(--background-color);
  color: var(--text-color);
  display: grid;
  place-items: left;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: left;
}
#product-detail-container h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: left !important;
}
#product-detail-container img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

#product-detail-container p {
  line-height: 1.6;
  margin: 20px;
  width: 100%;
  margin-left: 10px;
}

#product-detail-container div {
  margin-bottom: 10px;
}

#product-detail-container button {
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#product-detail-container a {
  color: #fff;
  font-size: 16px;
}
#product-detail-container button:hover {
  background-color: #0056b3;
}
.buttons-container{
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 10px;
}
/* ---------------------------------------media selectors--------------------------------------------------------- */
@media (max-width: 840px) {
  section {
    width: 80%;
    height: auto;
  }
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
  }
  footer span {
    padding: 2%;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    margin: 0 auto;
  }
  .card {
    flex: 100%;
    max-width: 500px;
  }
  .homepage-hero h2 {
    font-size: 2rem;
    letter-spacing: 5px;
  }
  .homepage-hero p {
    font-size: 14px;
  }
  .box1 {
    margin-right: 12%;
    margin-top: 1.7%;
  }
  #menu-icon {
    display: block;
    text-align: center;
  }
  #menu-icon i {
    font-size: 28px;
    cursor: pointer;
    color: var(--menu-color);
  }
  .navbar a {
    display: none;
  }
  .navbar.show a,
  .navbar.show {
    display: block;
  }
  .navbar.show {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .gallery img:hover {
    transform: none;
  }
  .banner {
    height: fit-content;
  }
  .popup {
    width: 80%;
  }
  .contact-div,
  .contact-form {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .contact-div div {
    margin-bottom: 4%;
  }
  form {
    min-width: 0px;
  }
  #product-detail-container p {
    width: 100%;
    margin-left: 0%;
  }
  .content {
    flex-direction: column;
  }
  .right {
    width: 100%;
    height: 45%;
    padding: 4vw 6vw;
  }
  .right h1 {
    font-size: 9vw;
    line-height: 9vw;
  }
  .right p {
    font-size: 4vw;
    width: 100%;
    margin: 5vw 0;
  }
  .left {
    width: 100%;
    height: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .left img {
    height: 70%;
    width: 70%;
    object-fit: contain;
  }
}
@media (max-width: 640px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 10px;
    margin: 0 auto;
  }
  .github-info {
    display: grid;
    grid-template-columns: 1fr;
  }
  .box1 {
    margin-right: 11%;
    margin-top: 5%;
  }
  .box1 i {
    font-size: 20px;
  }
}
@media (max-width: 400px) {
  .box1 {
    display: none;
  }
  body {
    min-width: 400px;
  }
}