/* ==========================
   FONTS
   ========================== */
@font-face {
  font-family: 'TTInterphases';
  src: url('font/TTRegular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'TTInterphases';
  src: url('font/TTLight.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'TTInterphases';
  src: url('font/TTMedium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'TTInterphases';
  src: url('font/TTExtraBold.ttf') format('truetype');
  font-weight: 700;
}

/* ==========================
   VARIABLES 
   ========================== */
:root {
  --side-padding: 60px; 
  --content-max: 1200px;
}

/* ==========================
   BASE
   ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'TTInterphases', sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.4;
}

/* ==========================
   HEADER FIXE
   ========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--side-padding);
  border-bottom: 1px solid #eee;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 22px;

  a {
  color: inherit;          /* usa el color del text del contenidor, no blau */
  text-decoration: none;   /* treu el subratllat */
  }
}

nav a {
  text-decoration: none;
  color: #000;
  margin-left: 25px;
  font-weight: 400;
}

nav a.active {
  font-weight: 700;
}

nav a.lang {
  color: gold;
}

/* ==========================
   SECCIÓ 1 - INICI
   ========================== */
.section-1 {
  background: #fff;
  padding: 140px var(--side-padding) 60px;
}

.section-1 .container {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.section-1 .text {
  flex: 1;
  min-width: 0;
}

.section-1 .text h1 {
  font-size: 70px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -3px; /* acosta les lletres */
  /* animació */
  animation: expandir 1.2s ease-out forwards;
}

.section-1 .text h1 strong {
  font-weight: 700;
}

.section-1 .highlight {
  color: gold;
  font-weight: 300;
  font-size: 35px;
  /* animació */
  animation: expandir 1.2s ease-out forwards;
}

.section-1 .highlight a {
  color: inherit;             /* Manté el color gold */
  text-decoration: none;      /* Treu el subratllat */
  cursor: pointer;            /* Cursor de mà */
  display: inline-block;      /* Garanteix zona clicable */
  position: relative;         /* Evita que sigui tapat per altres elements */
  z-index: 5;                 /* Dona prioritat visual */
}

.section-1 .highlight a:hover {
  opacity: 0.8;               /* petit efecte hover, opcional */
}


/* ===== IMATGE ===== */
.section-1 .image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  margin-right: -480px;
  /* perspectiva de càmera */
  perspective: 1000px;
  perspective-origin: center right;
  transform-style: preserve-3d;
  overflow: visible;
}

/* IMATGE BASE */
.section-1 .image img {
  width: clamp(280px, 70vw, 900px);
  height: auto;
  display: block;
  object-fit: contain;
  backface-visibility: hidden;
  transform-origin: center right;
  transform-style: preserve-3d;
  transition: transform 3.5s cubic-bezier(0.25, 1, 0.3, 1);
}


/* ==========================
   SECCIÓ 2 - SERVEIS 
   ========================== */
.section-2 {
  background-color: #fff;
  padding: 120px var(--side-padding);
  margin-top: -50px;
}

.section-2 .container {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-2 h2,
.section-2 .intro {
  text-align: left;
  margin-left: 0;
}

.section-2 h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-2 .intro {
  font-size: 20px;
  color: #000000;
  margin-bottom: 60px;
  max-width: 500px;
}

.services {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.service-card {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 40px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-card img {
  display: block;
  margin: 0 auto;
  width: 80px;
  height: auto;
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.service-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  text-align: center;
}

/* ==========================
   SECCIÓ 3 - EQUIP
   ========================== */
.section-3 {
  background-color: #fff;
  padding: 120px var(--side-padding);
  margin-top: 0px;
}

.section-3 .container {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.section-3 h2,
.section-3 .intro {
  text-align: left;
  margin-left: 0;
}

.section-3 h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 50px;
}

.section-3 .projects {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: 350px;   
}

.section-3 .project-item {
  width: 270px;
  text-align: center;
}

.section-3 .project-image {
  width: 270px; 
  aspect-ratio: 3 / 4;
  background-color: #e0e0e0;
  border-radius: 0px;
  margin-bottom: 20px;
}

.section-3 .project-item h3 { 
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 10px;
  text-align: center;
  margin-bottom: 10px;
}

.section-3 .intro {
  font-size: 20px;
  color: #000000;
  margin-top: 0px;
  margin-bottom: 60px;
  max-width: 500px;
  text-align: left;
}

/* Imatges del team */
.section-3 .project-item:nth-child(1) .project-image {
  background-image: url("3_Team_Images/maxx.JPG");
}

.section-3 .project-item:nth-child(2) .project-image {
  background-image: url("3_Team_Images/alba.jpg");
  background-size: 250%;
}

.section-3 .project-item:nth-child(3) .project-image {
  background-image: url("3_Team_Images/berta.jpg");
  background-size: 250%;
}

/* Ajusta l’aparença general de les imatges */
.section-3 .project-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e0e0e0; /* per si falta alguna imatge */
  border-radius: 0px; /* mantens el teu estil rectangular */
}




/* ==========================
   SECCIÓN 4 - TREBALL PRIMERA COLUMNA
   ========================== */
.section-4 {
  background-color: #fff;
  padding: 0 var(--side-padding);
  margin-top: 40px;
  position:relative;
}

.section-4 .container {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alineació superior text-imatge*/
  gap: 210px; /* espai entre text i mockup */
  padding-top: 0;
  padding-bottom: 0;
}

/* perquè puguin estar a la mateixa línea horitzontal OurWork i Mockup */
.section-4 .work-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;           
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-4 .text {
  flex: 1;
}

.section-4 h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
  white-space: nowrap; /* impedeix que faci salt de línia */
}

.section-4 .intro {
  font-size: 20px;
  color: #000000;
  margin-bottom: 0px;
  max-width: 500px;
  text-align: left;
  white-space: nowrap; /* impedeix que faci salt de línia */
}


.section-4 .main-image {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  margin-bottom: 0px;
}

.section-4 .main-image img {
  width: clamp(600px, 45vw, 900px);
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
  padding-bottom: 0;
}


.section-4 .video-text {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: clamp(610px, 45vw, 900px); /* mateixa amplada que la imatge */
  margin-left: auto; /* alineat amb marge esquerre de la imatge */
  margin-top: -150px; /* ajust fi per pujar sota la imatge */
  margin-bottom: 0;
  position: relative;
  z-index: 2; /* per assegurar que quedi a sobre si hi ha solapament */
}

.section-4 .video-text video {
  width: 345px;
  height: 455px;
  background-color: #ddd;
  object-fit: cover;
  border-radius: 0;
  display: block;
  margin-bottom: 0;
}

.section-4 .video-text .text {
  flex: 1;
  max-width: 340px;
  color: #000;
  margin-bottom: 0;
}

.section-4 .video-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-4 .video-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

.section-4 .highlight {
  color: gold;
  font-size: 16px;
}

/* Assegura que l'enllaç hereti el color groc */
.section-4 .highlight a {
  color: gold !important;
  text-decoration: none;
  cursor: pointer;
}

/* Opcional: efecte hover elegant */
.section-4 .highlight a:hover {
  opacity: 0.8;           /* lleuger enfosquiment */
  text-decoration: underline;
}


/* ===== SEGON BLOC: Intellia ===== */
.section-4 .video-text-2 {
  display: flex;
  flex-direction: column; /* imatge a dalt, després vídeo+text */
  align-items: flex-start;
  width: 100%;
  margin-top: -300px; /* menys espai respecte al bloc anterior */
  gap: 40px; /* espai entre la imatge i el bloc de vídeo+text */
}

/* Imatge superior */
.section-4 .video-text-2 .image-left {
  width: var(--side-padding);
  margin-left: 0;
}

.section-4 .video-text-2 .image-left img {
  width: clamp(600px, 45vw, 800px);
  aspect-ratio: 1 / 1; /* quadrada */
  object-fit: cover;
  display: block;
  transform: scale(1.60); /* 15% més gran */
  transform-origin: left;
  margin-bottom: 110px;
}

/* Bloc inferior: vídeo + text */
.section-4 .video-text-2 .video-text-block {
  display: flex;
  flex-direction: row;       /* ✅ posa el vídeo i el text en fila */
  align-items: flex-start;   /* alinea el text amb la part superior del vídeo */
  justify-content: space-between;
  width: clamp(800px, 70vw, 1100px);
  margin-left: 0;
  gap: 2rem;
  position: relative;
}

/* Vídeo */
.section-4 .video-text-2 .video-text-block video {
  width: 890px;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background-color: #ddd;
  margin-bottom: 0;
}

/* Text */
.section-4 .video-text-2 .video-text-block .text {
  flex: 0 0 340px; /* ✅ amplada fixa */
  color: #000;
}

.section-4 .video-text-2 .video-text-block h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-4 .video-text-2 .video-text-block p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}



/* ==========================
   SECCIÓN 4 - TREBALL SEGONA COLUMNA
   ========================== */
.video-text-2 {
  display: flex;
  gap: 40px;
  margin-top: 60px;
}

/* Columna esquerra: imatges o vídeos */
.video-text-2 .image-left {
  flex: 0 0 auto; 
  display: flex;
  flex-direction: column;
  gap: 20px; 
}


.video-text-2 .image-left img {
  max-width: 300px;
  height: auto;  
  object-fit: cover;
  display: block;
}

.video-text-2 .image-left video {
  max-width: 300px;
  height: auto; 
  object-fit: cover;
  display: block;
}

.video-text-2 {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
  align-items: flex-end; /* ✅ Alinea el fons del vídeo amb el text (p) */
}

/* Bloc de text: al costat dret */
.video-text-2 .video-text-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* ✅ Alinea el text amb la part baixa del vídeo */
  max-width: 340px;
}

/* Títol */
.video-text-2 .video-text-block .text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px; /* lleuger espai abans del p */
  margin-top: 0;
}

/* Paràgraf */
.video-text-2 .video-text-block .text p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0; /* ✅ així la base del p s’alinea amb la base del vídeo */
}



/* ==========================
   SECCIÓ 5 - PROCÉS
   ========================== */


.section-5 {
  background-color: #fff;
  padding: 120px var(--side-padding);
  margin-top: 60px;
}

.section-5 .container {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-5 h2,
.section-5 .intro {
  text-align: left;
  margin-left: 0;
}

.section-5 h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-5 .intro {
  font-size: 20px;
  color: #000000;
  margin-bottom: 60px;
  max-width: 600px;
}

.features {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-card {
  flex: 1 1 200px; 
  min-width: 200px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 40px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-card img {
  display: block;
  margin: 0 auto;
  width: 80px;
  height: auto;
  margin-bottom: 25px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.feature-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  text-align: center;
}



/* ==========================
   SECCIÓ 6 - CONTACTE
   ========================== */

.section-6 {
  background-color: #fff;
  padding: 120px var(--side-padding);
}

/* Contenidor general (dues columnes) */
.section-6 .container {
  display: flex;
  justify-content: space-between; /* títol/text a l'esquerra, formulari a la dreta */
  align-items: flex-start;        /* alineats per la part superior */
  gap: 80px;
}

/* 🟨 Columna esquerra (títol + text) */
.section-6 .text-block {
  flex: 1;
  max-width: 500px;
}

.section-6 h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-left: 70px;
  text-align: left;
  line-height: 1.2;
  letter-spacing: -3px; /* acosta les lletres */
}

.section-6 .intro {
  font-size: 20px;
  color: #000;
  text-align: left;
  margin-left: 70px;
}

.section-6 .extra-text {
  font-size: 28px;
  color: #000000;
  margin-top: 140px;
  text-align: left;
  margin-left: 70px;
  margin-bottom: -40px;
}

/* Columna dreta (formulari) */
.contact-content {
  flex: 1;
  max-width: 600px;
  display: flex;
  justify-content: flex-end;
  margin-right: 70px;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Etiquetes */
.contact-form label {
  font-weight: 500;
  font-size: 16px;
}

/* Camps */
.contact-form input,
.contact-form textarea {
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  font-size: 16px;
  font-family: 'TT Interphases', sans-serif;
  background: transparent;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom: 1px solid #000;
}

/* Botó */
.contact-form button {
  align-self: flex-start;
  padding: 15px 30px;
  font-size: 16px;
  background-color: #ffd500;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #e6c800;
}



/* ===============
       FOOTER              
 =============== */
footer {
  width: 100%;
  padding: 30px var(--side-padding);
  background: #fff;
  color: #000;
  font-family: "Inter", sans-serif;
  margin-top: 0;
}

/* Estructura principal */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* fa que s’adapti en pantalles petites */
  gap: 40px;
}

.footer-left {
  position: relative;
  padding-right: 40px; /* espai entre el text i la línia */
  margin-right: 40px;  /* espai entre la línia i el següent bloc */
}

/* Columna esquerra (logo) */
.footer-left h2 {
  margin-top: 30px;
  font-weight: 00;
  font-size: 22px;
}

.footer-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 15px;
  width: 1px;            /* gruix de la línia */
  height: 100%;          /* alçada igual que el bloc */
  background-color: #000; /* color de la línia */
  opacity: 1;          /* subtil com a la imatge */
}

/* Columna central */
.footer-center {
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

.footer-center .brand {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-center .links a {
  color: #000;
  text-decoration: none;
  margin: 0;
}

.footer-center .links a:hover {
  text-decoration: underline;
}

.footer-center .rights {
  color: #555;
  font-size: 13px;
  margin-top: 6px;
}

/* Columna dreta */
.footer-right {
  margin-top: 10px;
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
}

.footer-right strong {
  font-weight: 600;
}



