:root {
  --color-fondo: #111;
  --color-titulos: #cba6f7;
  --fuente-titulos: "Rubik Dirt";
  --color-texto: #dddddd;
  --fuente-texto: "Poppins";
  --color-letraBtn: #a3a3a3;
  --color-morado: #cba6f7;
  --color-botones: #2e0655;
  --titulos-proyectos: #fff;
}

*,
::before,
::after {
  box-sizing: border-box;
  font-family: var(--fuente-texto);
  color: var(--color-texto);
  margin: 0;
}

html,
body {
  scroll-behavior: smooth;
  background-color: var(--color-fondo);
}

.header {
  text-align: center;
  padding: 1rem;
}

.hero-title {
  padding-left: 1rem;
  color: var(--color-titulos);
  font-size: clamp(34px, 8vw, 94px);
  font-family: var(--fuente-titulos);
  font-weight: 400;
  margin: 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 2.25rem);
  margin: 1.5rem;
  color: var(--color-texto);
  text-align: center;
}

.section-title {
  font-family: var(--fuente-titulos);
  font-size: clamp(1rem, 8vw, 4rem);
  color: var(--color-titulos);
  text-align: center;
  font-weight: 400;
}

.section-subtitle {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--titulos-proyectos);
  text-align: center;
  margin-bottom: 1rem;
  margin: 0;
  font-weight: 300;
}

.section {
  padding: 2rem;
}

.skills {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.skills > img {
  width: 30px;
  margin: 0.3rem;
}

.section p {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  font-family: var(--fuente-texto);
  color: var(--color-texto);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 400;
}

.links {
  display: flex;
  justify-content: center;
}

.buttons a {
  text-decoration: none;
  color: var(--color-fondo);
  background-color: var(--color-titulos);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin: 0 0.25rem;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.buttons a:active {
  background: var(--color-botones);
  color: var(--titulos-proyectos);
}

.btn > a {
  display: inline-block;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 150px;
}

.btn-form {
  color: var(--color-fondo);
  background-color: var(--color-titulos);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin: 0 0.25rem;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
}

.btn-form:active {
  background: var(--color-botones);
  color: var(--titulos-proyectos);
}

.soft-skills {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.soft-skills > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

ul > li {
  font-size: 14px;
  color: #717671;
  padding: 0.2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 3px rgba(206, 202, 202, 0.9);
}

ul > li:active {
  box-shadow: 0 0 10px rgba(203, 166, 247, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
}

.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100vw;
  margin-bottom: 1rem;
}

.portada-container {
  width: 30vw;
}

.portada {
  width: 90%;
  border-radius: 1rem;
  height: auto;
  z-index: 2;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.portada-container:active .portada {
  box-shadow: 0px 10px 30px rgba(123, 23, 156, 0.8);
  transform: rotate(-5deg) scale(1.05);
}

.title-project {
  text-align: center;
  font-size: clamp(1rem, 8vw, 4rem);
  font-family: "Rubik Dirt";
  color: var(--color-morado);
  font-weight: 400;
  margin: 2rem;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.project-card {
  background-color: #222;
  border-radius: 1rem;
  width: 250px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.project-card:active {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0px 0px 30px rgba(123, 23, 156, 0.8);
}

.vinyl {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  position: relative;
}

.vinyl > img {
  width: 100%;
  border-radius: 1rem;
}

.project-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}
.project-desc {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.tech {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 1rem;
}

.icon-mail {
  position: fixed;
  right: 1vw;
  bottom: 1vh;
  background-color: var(--color-morado);
  width: 4rem;
  height: 4rem;
  border-radius: 100%;
  cursor: pointer;
}

.icon-mail > img {
  width: 4rem;
  padding: 0.2rem;
}

dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  border-radius: 1rem;
  z-index: 1000;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

dialog .wrapper {
  padding: 16px;
}

#form-dialog {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 0 40px rgba(203, 166, 247, 0.6);
  max-width: 90%;
  width: 400px;
  text-align: center;
}

.wrapper > form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.inputs {
  color: #111;
  border-radius: 0.5rem;
  width: 270px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.section-contact {
  display: none;
  flex-direction: column;
  text-align: center;
  margin-bottom: 1rem;
}

label {
  display: block;
  padding: 0.5rem;
}

.section-title {
  margin: 0;
}

.section-contact button {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  text-align: center;
  padding: 0;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

.icons-footer {
  margin-top: 1rem;
}

.github {
  width: 48px;
}

@media (max-width: 600px) {
  .header,
  .content,
  .icon-mail {
    display: none;
  }

  .section-contact {
    display: flex;
  }
}

@media (hover: hover) {
  .btn-form:hover,
   .buttons a:hover{
    background: var(--color-botones);
    color: var(--titulos-proyectos);
  }

  ul > li:hover {
    box-shadow: 0 0 10px rgba(203, 166, 247, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .portada-container:hover .portada {
    box-shadow: 0px 10px 30px rgba(123, 23, 156, 0.8);
    transform: rotate(-5deg) scale(1.05);
  }

   .project-card:hover {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0px 0px 30px rgba(123, 23, 156, 0.8);
  } 
}
