/* Fons negre, lletra Roboto */
body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: rgb(0, 0, 0);
  font-family: 'Roboto';
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 1900px) {
    body {
        flex-direction: column;
        justify-content: center;
    }

}


/*FONS CONTAINER part 1 i 3*/
.container {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  background-image: radial-gradient(rgba(129, 128, 128, 0.158) 2px, transparent 0);
  background-size: 30px 30px;
  background-position: -5px -5px
}
/*FONS CONTAINER part 2*/
.container2 {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0ec;
  background-image: radial-gradient(rgba(190, 103, 175, 0.301) 2px, transparent 0);
  background-size: 30px 30px;
  background-position: -5px -5px
}


/*navvar idiomes*/
    .language-switcher {
  text-align: right;
  padding: 0.5rem 1rem;
  background-color: #b3b1b1ec;
  position: sticky;
  top: 0;
  z-index: 1100;

}

.language-switcher button {
  margin: 0 0.3rem;
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  color: rgb(0, 0, 0);
  transition: transform 0.2s;
}

.language-switcher button:hover {
  transform: scale(1.2);
      text-shadow: 2px 2px 2px #d4d4d4ec;

}


.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #b3b1b1f3;
  padding: 1rem 1rem;
  z-index: 1000;
  box-shadow:  #d5006e;
  user-select: none;
  min-height: 7rem;
  flex-wrap: wrap;
}

/* Logo Ailigrama */
.logo img {
  height: 60px;
    width: auto; 
  object-fit: contain;
}

#top-top-dis{
  height: 60px; 
  width: auto; 
  object-fit: contain;
}


/* MEDIA QUERIES */

@media (max-width: 1900px) {
    #top-top-dis {
        display: none; 
    }
    .nav-links {
        width: 100%;
        display: flex;
        justify-content: center; 
        gap: 1rem;
    }
    .logo, .navbar > div {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .logo img {
        height: 30px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        display: flex;
        flex-direction: column; 
        align-items: center;
        padding: 0.8rem 1.5rem;
        min-height: 5rem;
    }
    .logo img {
        display: none; 
    }
    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: row; 
        justify-content: center; 
        align-items: center;
        gap: 1rem; 
        flex-wrap: nowrap; 
    }
    .nav-links a {
        flex: 0 1 auto; 
        text-align: center;
    }
}


/*RESPONSIVE x tablets i mòbils // pantalles petites*/

@media (max-width: 1900px) {


  .card {
    width: 90%;
    height: auto;
  }

  .card2{
    width: 100%;
  }

  .card-title {
    font-size: 24px;
  }

  .pg-text {
    font-size: 18px;
  }
      .contactecontent {
        flex-direction: column;
    }

    .ubi, .contact-section {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #info-contacte{
      margin-bottom: 30px;
    }
}


/* Botons nav */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ffffff;
    transition: 1s;

}

.btn {
  font-size: 20px;
  background: transparent;
  border: none;
  padding: 1rem 1rem;
  text-transform: uppercase;
  position: relative;
  transition: 0.5s ease;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #d5006e;
  transition: 0.5s ease;
}

.btn:hover {
  color: #1e1e2b;
  transition-delay: 0.2s;
}

.btn:hover::before {
  width: 100%;
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background-color: #d5006e;
  transition: 0.4s ease;
  z-index: -1;
}

.btn:hover::after {
  height: 100%;
  transition-delay: 0.4s;
  color: aliceblue;
}

 /* SECCIONS */
.seccio {
   min-height: 80vh; /* només ocupa fins a un 60% iiif necessari */
  padding: 60px 20px; /*si scroll-margin-top no funciona, posar aquí: 120px 20px 60px 20px*/
    scroll-margin-top: 100px; /* ajusta segons l'alçada del navbar */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #f5bbe4;
}


/*SECCIÓ 1 - PORTADA*/

.boxes-portada {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10rem 10%;
  gap: 4rem;
  flex-wrap: wrap; /* per adaptar-se a pantalles petites */
}

.portada-text-container {
  flex: 1;
  text-align: left; /* ajusta a l’esquerra */
}

.portada-text1 {
  font-size: 45px;
  margin-block-start: 0;
  margin-bottom: 1rem;
  user-select: none;

}

.portada-text2 {
  font-size: 30px;
  font-weight: lighter;
  margin-block-start: 0;
  user-select: none;
}

/* foto */

#foto-portada{
  height: 300px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
    user-select: none;
  transition: transform 3s ease; 
}

#foto-portada:hover {
  transform: rotate(360deg);
}

/*SECCIÓ 2 - EMPRESA*/

.titolh5{
  text-align: center;
  font-size: 30px;
  margin: 0;
  padding-bottom: 5px; 
  user-select: none;
}

.pg-text {
    font-family: 'Roboto';
  text-align: center;
  font-size: 20px;
  padding: 10px 10px 10px 10px;
  margin-top: 10px;
  user-select: none;
  transition: transform 0.3s ease-in-out; 
}

.pg-text:hover {
  transform: scale(1.07); 
}


.h2 {
    color: #000000;
    font-size: 55px;
    user-select: none;
}


.h2:hover {
 transition: all .5s;
 color: #d5006e;

}

/*ICONA MOVIMENT EMPRESA*/
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  position: relative;
}

.loader:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
}

.loader-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.loader-block {
  display: inline-block;
  width: 8px;
  height: 10px;
  margin: 2px;
  background-color: #d5006e;

  box-shadow: #d5006e;
  animation: loader 5s infinite;
}

.loader-block:nth-child(1) {
  animation-delay: 0.2s;
}

.loader-block:nth-child(2) {
  animation-delay: 0.4s;
}

.loader-block:nth-child(3) {
  animation-delay: 0.6s;
}

.loader-block:nth-child(4) {
  animation-delay: 0.8s;
}

.loader-block:nth-child(5) {
  animation-delay: 1s;
}

.loader-block:nth-child(6) {
  animation-delay: 1.2s;
}

.loader-block:nth-child(7) {
  animation-delay: 1.4s;
}

.loader-block:nth-child(8) {
  animation-delay: 1.6s;
}

.loader-block:nth-child(9) {
  animation-delay: 1.8s;
}

.loader-block:nth-child(10) {
  animation-delay: 2s;
}

.loader-block:nth-child(11) {
  animation-delay: 2.2s;
}

.loader-block:nth-child(12) {
  animation-delay: 2.4s;
}

.loader-block:nth-child(13) {
  animation-delay: 2.6s;
}

.loader-block:nth-child(14) {
  animation-delay: 2.8s;
}

.loader-block:nth-child(15) {
  animation-delay: 3s;
}

.loader-block:nth-child(16) {
  animation-delay: 3.2s;
}

.loader-block:nth-child(17) {
  animation-delay: 3.4s;
}

.loader-block:nth-child(18) {
  animation-delay: 3.6s;
}

.loader-block:nth-child(19) {
  animation-delay: 3.8s;
}

.loader-block:nth-child(20) {
  animation-delay: 4s;
}

.loader-block:nth-child(21) {
  animation-delay: 4.2s;
}

.loader-block:nth-child(22) {
  animation-delay: 4.4s;
}

.loader-block:nth-child(23) {
  animation-delay: 4.6s;
}

.loader-block:nth-child(24) {
  animation-delay: 4.8s;
}

@keyframes loader {
  0% {
    transform: scale(1);
    box-shadow: #d5006e;
  }

  13% {
    transform: scale(1, 4);
    box-shadow: #d5006e;
  }

  26% {
    transform: scale(1);
    box-shadow: #d5006e;
  }
}


#engi-photo{
  height: 220px; 
  width: auto;  
  object-fit: contain;
  margin: 0;
  padding: 0;
}


.glitch-container {
  position: relative;
  display: inline-block;
}

.glitch-img {
  height: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

.glitch-container::before,
.glitch-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./imgatges/connection.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
}

.glitch-container:hover::before {
  animation: glitch1 0.3s infinite;
  opacity: 0.6;
  filter: hue-rotate(90deg);
}

.glitch-container:hover::after {
  animation: glitch2 0.3s infinite;
  opacity: 0.6;
  filter: hue-rotate(270deg);
}

@keyframes glitch1 {
  0% {
    transform: translate(0px, 0px);
  }
  20% {
    transform: translate(-2px, -2px);
  }
  40% {
    transform: translate(2px, 2px);
  }
  60% {
    transform: translate(-1px, 1px);
  }
  80% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

@keyframes glitch2 {
  0% {
    transform: translate(0px, 0px);
  }
  20% {
    transform: translate(2px, -2px);
  }
  40% {
    transform: translate(-2px, 2px);
  }
  60% {
    transform: translate(1px, -1px);
  }
  80% {
    transform: translate(-1px, 1px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

/*SECCIÓ 3 - SOLUCIONS*/
 /* CARDS */
  .cards-container {
  display: flex;
  gap: 40px; 
  justify-content: center; 
  flex-wrap: wrap; 
  margin-top: 40px;
    align-items: flex-start;
}

.card {
 width: 500px;
 height: 350px;
 background-image: linear-gradient(163deg, #a5a4a4 0%, #d5006e 100%);
 border-radius: 15px;
 transition: all .3s;
}

.card2 {
  width: 500px;
  height: 350px;
  background-color: #ffffff;
  border-radius: 15px;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px; 
  box-sizing: border-box;
  user-select: none;
}

.card2:hover {
 transform: scale(0.98);
 border-radius: 20px;
 user-select: none;
}

.card:hover {
 box-shadow: 0px 0px 30px 1px #d5006e(0, 255, 117, 0.30);
}

.card-title {
  text-align: center;
  font-size: 30px;
  margin: 0;
  padding-bottom: 5px; 
  user-select: none;
}

.card-text {
  text-align: justify;
  font-size: 20px;
  padding: 10px;
  padding-left: 10px;
  margin-top: 10px;
  user-select: none;
}
.connection-img {
 color: #d5006e;
}

/*ICONA BOLA MOV*/
#pilota {
  transform: translateY(70px); 
}

.ball {
  position: relative;
  bottom: 50px;
  left: calc(100% - 20px);
  width: 50px;
  height: 50px;
  background: #d5006e;
  border-radius: 50%;
  animation: ball-move8234 3s ease-in-out 1s infinite alternate;
}


.bar {
  width: 300px;
  height: 12.5px;
  background: #504f4f;
  border-radius: 30px;
  transform: rotate(-15deg);
  animation: up-down6123 3s ease-in-out 1s infinite alternate;

}

@keyframes up-down6123 {
  from {
    transform: rotate(-15deg);
  }

  to {
    transform: rotate(15deg);
  }
}

@keyframes ball-move8234 {
  from {
    left: calc(100% - 40px);
    transform: rotate(360deg);
  }

  to {
    left: calc(0% - 20px);
    transform: rotate(0deg);
  }
}

/*SECCIÓ 4 - CONTACTAR*/

.h2-contactar
{
    color: #363636dc;
    font-size: 55px;
    user-select: none;
}


.h2-contactar:hover {
 transition: all .5s;
 color: #d5006e;
 user-select: none;

}

#contacte {
    padding: 20px;
}

.contactecontent {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px; 
    width: 95%;
}

.ubi {
    flex: 0 0 60%;
    max-width: 55%;
    border: 1px solid #ffffff;
    border-radius: 5px;
    
}

.ubi iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 5px;
    padding: 0;
}

.contact-section {
    flex: 0 0 40%; 
    max-width: 40%;
    padding: 20px;
  background-color: #f0f0f0ec;
    border: 1px solid #d5006e;
    border-radius: 10px;

}
#ailigrama-contact{
    font-size: 30px;
}

#info-contacte{
  margin: 0 auto; 
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.contact-section h2 {
  font-size: 30px;
    margin-bottom: 15px;
    color: rgb(0, 0, 0);
}

.contact-section p {
    margin: 10px 0;
    color: rgb(0, 0, 0);
}

#ailigrama-contact{
    font-size: 30px;
}

 .contact-button {
  font-size: 17px;
  background: transparent;
  border: none;
  padding: 1em 1.5em;
  text-transform: uppercase;
  position: relative;
  transition: 0.5s ease;
  cursor: pointer;
  color: rgb(0, 0, 0);
}

.contact-button::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #d5006e;
  transition: 0.5s ease;
}

.contact-button:hover {
  color: #d5006e;
  transition-delay: 0.2s;
}

.contact-button:hover::before {
  width: 100%;
}

.contact-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background-color: #d5006e;
  transition: 0.4s ease;
  z-index: -1;
}

.contact-button:hover::after {
  height: 100%;
  transition-delay: 0.4s;
  color: aliceblue;
}


@media (max-width: 1900px) {
    .contactecontent {
        flex-direction: column;
        justify-content: center;
    }

    .ubi, .contact-section {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.link-contact{
  color: #d5006e;
}

/*UBI ICONA MOVE*/
.ubi-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 20px auto;
  box-sizing: border-box;
  position: relative;
}

.ubi-icon::after {
  content: '';
  width: 48px;
  height: 48px;
  left: 0;
  bottom: 0;
  position: absolute;
  border-radius: 50% 50% 0;
  color: #d5006e;
  border: 15px solid ;
  transform: rotate(45deg) translate(0, 0);
  box-sizing: border-box;
  animation: animMarker 0.4s ease-in-out infinite alternate;
}

.ubi-icon::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 150%;
  width: 24px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  animation: animShadow 0.4s ease-in-out infinite alternate;
}

@keyframes animMarker {
  0% {
    transform: rotate(45deg) translate(5px, 5px);
  }

  100% {
    transform: rotate(45deg) translate(-5px, -5px);
  }
}

@keyframes animShadow {
  0% {
    transform: scale(0.5);
  }

  100% {
    transform: scale(1);
  }
}
    
/* Footer fixe */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #b3b1b1;
  color: rgb(18, 19, 19);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  user-select: none;
}

footer:hover {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #cfcdcd;
  color: #d5006e;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
   transition: all .5s;
}

