body {
	background-image: linear-gradient(white,ghostwhite,white,whitesmoke,darkblue);	
	margin-left: 20px;
	margin-right: 20px;
	margin-top: 20px;
	margin-bottom: 200px;

}

h1{
	font-family: "Poppins", sans-serif;
  font-weight: 600;
	font-size: 11vw;
	letter-spacing: -0.1em;
	text-align: center;
	color: black;
	margin-bottom: 0%;
	margin-top: 2%;

	
}

h1.lightgrey{
	font-family: "Poppins", sans-serif;
  font-weight: 600;
	font-size: 11vw;
	letter-spacing: -0.1em;
	text-align: center;
	color: lightgrey;
	margin-bottom: 0%;
	margin-top: 2%;

	
}

h1.lux{
	font-family: "Luxurious Script", cursive;
  font-weight: 400;
  font-style: normal;
	font-size: 24vw;
	letter-spacing: 0em;
	text-align: center;
	color: black;
	margin-bottom: 0%;
	margin-top: -16%;
	transition: transform 0.5s ease;
}

h1.lux:hover{
	color: blue;
	transform: scale(1.05);
}

h2{
	font-family: "Poppins", sans-serif;
  font-weight: 500;
	font-size: 3vw;
	letter-spacing: -0.05em;
	text-align: left;
	color: black;
	margin-bottom: 0%;
	margin-top: 2%;
}

h2.projects{
	font-family: "Poppins", sans-serif;
  font-weight: 500;
	font-size: 3vw;
	letter-spacing: -0.05em;
	text-align: left;
	color: black;
	margin-bottom: 0%;
	margin-top: -3%;
}

h3{
	font-family: "Poppins", sans-serif;
  font-weight: 400;
	font-size: 2vw;
	letter-spacing: -0.05em;
	text-align: left;
	color: black;
	margin-bottom: 0%;
	margin-top: 0%;
}	

h3.white{
	font-family: "Poppins", sans-serif;
  font-weight: 400;
	font-size: 3vw;
	letter-spacing: -0.05em;
	text-align: left;
	color: white;
	margin-bottom: 0%;
	margin-top: -3%;
}	

h3.projects{
	font-family: "Poppins", sans-serif;
  font-weight: 300;
	font-size: 2vw;
	letter-spacing: -0.05em;
	text-align: left;
	color: black;
	margin-bottom: 0%;
	margin-top: -0.5em;
}	

h4{
	font-family: "Poppins", sans-serif;
  font-weight: 100;
	font-size: clamp(10px, 1.5vw, 24px);
	letter-spacing: -0.04em;
	text-align: left;
	color: black;
	margin-bottom: 2%;
	margin-top: -1%;
}



p.header{
	font-family: "Poppins", sans-serif;
	font-weight: 300;
	font-size: clamp(10px, 1.5vw, 16px);
	text-align: center;
	color: black;
}

p.subtitle{
	font-family: "Poppins", sans-serif;
	font-weight: 300;
	font-size: clamp(12px, 1.5vw, 24px);
	text-align: center;
	color: black;
	line-height: 1.3em;
}

p.detalles{
	font-family: "Poppins", sans-serif;
	font-weight: 200;
	font-size: clamp(10px, 1.5vw, 18px);
	text-align: center;
	color: black;
	line-height: 1.3em;
	margin-top: 5%;
}

p.base{
	font-family: "Poppins", sans-serif;
	font-weight: 200;
	font-size: clamp(10px, 1.5vw, 16px);
	text-align: left;
	color: black;
	line-height: 1.3em;
	margin-top: 0%;
	margin-bottom: 0%;
}

p.white{
	font-family: "Poppins", sans-serif;
	font-weight: 200;
	font-size: clamp(10px, 1.5vw, 16px);
	text-align: left;
	color: whitesmoke;
	line-height: 1.3em;
	margin-top: 0%;
	margin-bottom: 0%;
}

div.header {
	display: flex;
	justify-content: space-between;
}

div.flexbox {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-left: 10%;
	margin-right: 10%;
}

div.principal {
	display: flex;
	flex-direction: column;
	gap: 0px;
	margin-left: 10%;
	margin-right: 10%;
	margin-bottom: 1.2em;
	background-color:rgba(191, 191, 191, 0.4);
	border-radius: 10px;
	padding: 20px;
}

/* Experiència CV */
div.dues-columnes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;  
	margin-left: 10%;
	margin-right: 10%;
}


.col-esquerra, .col-dreta {
  background-color:rgba(191, 191, 191, 0.4);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 1.2em;
}
  .black{
	background-color: black;
	border-radius: 10px;
	padding: 20px;
  }

  @media (max-width: 768px) {
  div.dues-columnes {
  grid-template-columns: 1fr; 
  gap: 0px;
  }
}

img.aina {
	display: block;
	width:200px;
	margin: auto;
  max-width: 200px;   
  height: auto;
  transition: transform 0.2s ease;
  }

img.aina:hover {
	transform: scale(2.05);
}

strong.thin {
	font-family: "Poppins", sans-serif;
	font-style: normal;
	font-size: 70px;
  font-weight: 700;
}

a {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: blue;
}

a.white {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.white:hover {
  color: yellow;
}

/* Imatge meva emergent */
.modal {
  display: none;
  position: center;
  inset: 0;
  background: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal img {
  max-width: 25%;
  max-height: 25%;
  border-radius: 10px;
}

.modal:target {
  display: flex;
}

.tancar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: black;
  text-decoration: none;
  font-size: 32px;
}

/* mini imatges aptitudes */
.galeria {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  justify-items: center;
  margin: 20px auto;
  max-width: 800px;
}

.galeria img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.galeria img:hover {
  transform: scale(1.05);
}

@media (max-width: 800px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* imatges presentació portfoli scroll lateral */
.carousel {
  --w: clamp(180px, 14vw, 300px);
  --h: var(--w);

  --gap: clamp(4px, 1vw, 16px);
  
  overflow: hidden;
  padding: 40px 0;
}

.carousel .track{
  display: flex;
  gap: var(--gap);
  will-change: transform;
  animation: scroll 15s linear infinite;
}

.carousel:hover .track{ animation-play-state: paused; }

.carousel .item{
  flex: 0 0 var(--w);
  width: var(--w);
  height: var(--h);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-left: 0px;
  margin-right: 0px;
}

.carousel .item img,
.carousel .item video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel img{ max-width: none; }

@media (min-width: 1090px){
  .carousel{ --w: 300px; }
}

@keyframes scroll{
  from{ transform: translateX(0); }
  to  { transform: translateX(calc(-1 * (var(--w) + var(--gap)) * 8)); }
}

/* dues columnes projectes portfoli */
.text-imatge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin: 20px 0%;
}

.text {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 0px;
  color: black;
  margin-top: 0px;
}

.imatge img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  max-width: 800px;
  transition: transform 0.2s ease;
}

.imatge video{
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.imatge img:hover {
  transform: scale(1.05);
}

.imatge video:hover {
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .text-imatge {
    grid-template-columns: 1fr;
  }
}

/* botó per toranar a l'inici portfoli */
.backtotop {
  text-align: center;
  margin-top: 300px;
  margin-bottom: 40px;
}

.backtotop a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.backtotop .fletxa {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.backtotop .text {
  font-size: clamp(10px, 1.5vw, 16px);
  font-weight: 500;
  margin-top: 6px;
  color: white;
}

.backtotop a:hover .fletxa {
  transform: translateY(-6px);
}

.backtotop a:hover {
  color: yellow;
}









