/*--------------------------------------------------------------
# Index/Home Page Styles
--------------------------------------------------------------*/

/* First Section */
.hero .first-section {
  width: 100%;
  min-height: 600px;
  position: relative;
  padding-top: 8vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-background);
  height: 80vh;
}

.hero .first-section .hero-text{
  text-align: center;
  max-width: 76vw;
}

.hero .first-section .hero-text p {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 3rem;
  max-width: 70vw;
  margin: auto;
}


.hero .first-section .hero-text h1 {
  color: var(--heading-color);
  padding: 0rem 1rem 1rem;
  font-size: 6rem;
  font-family: var(--logo-font);
}

/* Second Section */
.hero .second-section {
  width: 100%;
  margin: auto;
  align-items: center;
  text-align: center;
  max-width: 60vw;
}

.hero .second-section h2 {
  color: var(--heading-color);
  padding-bottom: 2rem;
  font-size: 3.5rem;
  font-family: var(--heading-font);
  font-weight: 700;
  max-width: 60vw;
  margin: auto;
  text-align: center;
}

.hero .second-section .imatge {
  display: flex;
  align-items: center; /* centra verticalment la imatge i el text */
  justify-content: center; /* opcional: centra horitzontalment si vols */
  gap: 2rem; /* espai entre la imatge i el text */
  text-align: left; /* perquè el text no estigui centrat quan està al costat */
}

.hero .second-section .img-profile {
  flex-shrink: 0; /* evita que la imatge es redueixi */
  width: 40%; /* o la mida que vulguis */
  height: auto; 
  object-fit: cover;
  border-radius: 8px; /* opcional, per arrodonir cantonades */
}

.hero .second-section p {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 3rem;
  text-align: justify;
  margin: auto;
}

/* Third Section */
.hero .third-section {
  width: 100%;
  position: relative;
  margin: auto;
  align-items: center;
  max-width: 60vw;
}

.hero .third-section h3 {
  color: var(--heading-color);
  font-size: 2.5rem;
  text-align: center;
  font-family: var(--heading-font);
  font-weight: 700;
}

.hero .third-section p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 2.5rem;
  text-align: justify;
}

.hero .third-section h4 {
  font-size: 1.375rem;
  font-weight: 600;
}

.hero .third-section .definition {
  font-size: 1rem;
  font-weight: 400;
  line-height: 2rem;
  text-align: center;
}

.hero .third-section .service-box {
  display: flex;
}

.hero .third-section .service-box .title-two {
  color: var(--accent-color);
  font-size: 22px;
  font-family: var(--heading-font);
}

/* Fourth Section */
.hero .fourth-section {
  width: 100%;
  position: relative;
  margin: auto;
  align-items: center;
  max-width: 50vw;
}

.hero .fourth-section h3 {
  color: var(--heading-color);
  font-size: 2.5rem;
  text-align: center;
  font-family: var(--heading-font);
  font-weight: 700;
}

.hero .fourth-section p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 2.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero {
    min-height: calc(100vh - 68px);
  }
  .hero .first-section {
    height: calc(100vh - 68px);
  }
}

@media screen and (max-width: 767px) {
  .hero .first-section {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero .first-section .hero-text {
    max-width: 100%;
  }

  .hero .first-section .title {
    font-size: 1.8rem;
    line-height: 1.4;
  }

}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }
    .hero .first-section .hero-text h1 {
  color: var(--heading-color);
  padding: 0rem 1rem 2rem;
  font-size: 4.5rem;
  font-family: var(--logo-font);
  margin: 5rem 0 0;
  }
}

@media (max-width: 430px) {
  .hero .first-section .hero-text h1 {
  color: var(--heading-color);
  padding: 2rem 1rem 2rem;
  font-size: 3rem;
  font-family: var(--logo-font);
  margin: 3rem 0 0;
  }
}

@media (max-width: 400px) {
  .hero .first-section .hero-text h1 {
  color: var(--heading-color);
  padding: 2rem 1rem 2rem;
  font-size: 3rem;
  font-family: var(--logo-font);
  margin: 18rem 0 0;
  }
}

@media (max-width: 768px) {
  .hero .second-section .imatge {
    flex-direction: column;
    text-align: center;
  }

  .hero .second-section .img-profile {
    width: 50%;
    margin-bottom: 1rem;
  }
}
