* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  padding-top: 90px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #f4f4f4;
  /* Gris claro */
  padding: 15px 30px;
  /* Más espacio para que se vea mejor */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  /* Sombra sutil */
  border-bottom: 3px solid #5A2FC8;
  /* Línea inferior violeta/lila */
  z-index: 1000;
  /* Para que siempre esté por encima del contenido */
}

.logo {
  display: flex;
  align-items: center;
}

.foto-logo {
  border-radius: 100%;
  margin-right: 10px;
  width: 50px;
  height: 50px;
}

.nav-titulos {
  font-size: 1.2rem;
  text-decoration: none;
  color: #5A2FC8;
  /* Violeta/lila */
  cursor: pointer;
  margin: 0 15px;
  /* Más espacio entre elementos */
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.nav-titulos:hover {
  color: #7843E9;
  /* Color más intenso al pasar el mouse */
}

.navegador {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-right: 40px;
}

p {
  letter-spacing: 1.2px;
  word-spacing: 2px;
  padding: 10px;
}

.div-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.titol-skill {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.titol-segment {
  padding: 60px;
  display: flex;
  justify-content: center;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
}

.skill {
  background-color: #C0A6FF; /* Morado */
  color: black; /* Blanco */
  font-weight: bold;
  font-size: 14px;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  cursor: default;
  transition: background 0.3s ease;
}

.skill:hover {
  color: white;
  background-color: #5a0999; /* Un morado un poco más oscuro al pasar el cursor */
}

.linia-temps {
  max-width: 600px;
  margin: auto;
  position: relative;
}

.element-temps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.element-temps::before {
  content: " ";
  background: #333;
  display: inline-block;
  position: absolute;
  left: 0px;
  width: 1px;
  top: 4px;
  height: 100%;
  z-index: 1;
}

.icona-temps {
  content: " ";
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  border: 2px solid #333;
  left: -7px;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  z-index: 2;
}

.contingut {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
  width: 100%;
  margin-left: 20px;
}

.titol {
  font-size: 20px;
  font-weight: bold;
}

.titol-contingut {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 10px;
}

/* .titulo-div {
  background-image: url("/image/background-gris.png");
} */

.cv {
  display: flex;
  justify-content: center;
  margin: 10px;
}

.container {
  display: grid;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-bottom: 65px;
  grid-template-columns: 1fr 0.80fr;
}

.proyecte-div {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
}

.image {
  border-radius: 15px;
  box-shadow: 0 60px 123px -25px hsla(225, 2%, 62%, 0.42),
    0 35px 75px -35px hsla(225, 2%, 62%, 0.08);
  -webkit-filter: blur(0);
  filter: blur(0);
  height: 398px;
  opacity: 1;
  -webkit-transform: perspective(800px) rotateY(25deg) scale(0.8) rotateX(10deg);
  transform: perspective(800px) rotateY(25deg) scale(0.8) rotateX(10deg);
  transition-behavior: normal;
  transition-duration: 0.6s;
  transition-timing-function: ease;
  transition-delay: 0s;
  transition-property: all;
  width: 700px;
}

.image:hover {
  box-shadow: 0 19px 67px -38px hsla(225, 2%, 62%, 0.8);
  -webkit-filter: blur(0.2px);
  filter: blur(0.2px);
  opacity: 1;
  -webkit-transform: perspective(800px) rotateY(-15deg) translateY(-50px) rotateX(10deg) scale(1);
  transform: perspective(800px) rotateY(-15deg) translateY(-50px) rotateX(10deg) scale(1);
}

.button {
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 18px;
  color: #008f5d;
  background: transparent;
  border: 2px solid #008f5d;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
}

/* Animació de l'efecte de resplendor */
.button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 3px solid rgba(20, 233, 86, 0.6);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  animation: ring 2s infinite ease-in-out;
}

.buttons {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-around;
  width: 100%;
}

.button-project {
  display: flex;
  align-items: center;
  border-radius: 9999px;
  /* rounded-full */
  background-color: rgba(38, 198, 218, 0.3);
  /* bg-teal-400/10 */
  padding: 0.25rem 0.75rem;
  /* px-3 py-1 */
  font-size: 0.75rem;
  /* text-xs */
  font-weight: 500;
  /* font-medium */
  line-height: 1.25rem;
  /* leading-5 */
  color: #1b5f5d;
  /* text-teal-500, per un color més fosc per contrast */
  border: 2px solid rgba(38, 198, 218, 0.3);
  /* afegir un borda més visible */
}

.footer {
  background-color: #2c2c2c;
  /* Color de fons fosc */
  color: #ffffff;
  /* Text en blanc per contrast */
  text-align: center;
  padding: 20px 0;
}

.social {
  margin-bottom: 15px;
}

.social a {
  color: #ffffff;
  font-size: 24px;
  margin: 0 10px;
  transition: color 0.3s;
}

.social a:hover {
  color: #7843E9;
  /* Color quan es passa el ratolí per sobre */
}

.list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.list li {
  display: inline;
}

.list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.list a:hover {
  color: #7843E9;
}

.copyright {
  font-size: 14px;
  opacity: 0.8;
}


@keyframes ring {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }

  100% {
    opacity: 0;
  }
}