/* General reset */
body {
  margin: 0;
  font-size: 1.2rem;
  font-family: sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.7;
}


/* ================= Hero Area ================= */
/* Hero area styling */
#project-1-animation {
  min-height: 70vh; /* modern hero sizing */
  text-align: center;
  background: linear-gradient(to bottom, #fff, #f9f9f9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 100%;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #0065E6;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #444;
  margin-bottom: 2rem;
}

.hero-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: #0065E6;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background-color: #004bb5;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.text-animation-container {
  margin-top: 3rem;
  width: 100%;
  height: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.animated-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 5vw;
  color: #fff;
  opacity: 0;
  text-transform: uppercase;
  animation: change-text 8s linear infinite;
  letter-spacing: 0;
}

/* Animation mit wechselnden Begriffen */
@keyframes change-text {
  0%, 25%, 50%, 75%, 100% {
    opacity: 0;
    content: "";
    color: #fff;
    letter-spacing: 0;
  }
  10% {
    content: "Vigor";
    color: #0065E6;
    opacity: 1;
    letter-spacing: 0.5rem;
  }
  35% {
    content: "Engineering";
    color: #55B2FF;
    opacity: 1;
    letter-spacing: 0.5rem;
  }
  60% {
    content: "Environment";
    color: #0065E6;
    opacity: 1;
    letter-spacing: 0.5rem;
  }
  85% {
    content: "Management";
    color: #55B2FF;
    opacity: 1;
    letter-spacing: 0.5rem;
  }
}

/* Bereich für Bilderkarussell */
#project-2-carousel {
  position: relative;
  width: 100%;
  height: 50rem;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: auto;
}

.carousel-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  flex-shrink: 0;
}

.carousel-container img.active {
  opacity: 1;
  z-index: 1;
}

/* Gestaltende Balken in voller Breite */
.fullwidth-section {
  width: 100%;
  height: 6rem;
}

.light-blue {
  background-color: #55B2FF;
}

.dark-blue {
  background-color: #0065E6;
}

/* Überschrift für Kundenbereich */
.major-heading {
  text-align: center;
  font-size: 4rem;
  color: #0065E6;
  margin: 4rem 0 10rem;
}

/* Rasteranzeige für Kundenlogos */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10%;
  width: 100%;
  box-sizing: border-box;
  margin-top: 5%;
  margin-bottom: 18%;
}

.image-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.12);
  z-index: 1;
}

/* ================= NEW SERVICE SECTION FOR HOME PAGE ================= */

#services-home-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 2rem;
  text-align: center;
}

#services-home-title {
  font-size: 3rem;
  color: #0065E6;
  margin-bottom: 1rem;
}

#services-home-subtitle {
  color: #444;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.services-home-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-home-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  width: 300px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-home-card:hover {
  transform: translateY(-8px);
}

.service-home-icon {
  width: 50%;
  height: auto;
  margin-bottom: 1rem;
}

.services-home-btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2rem;
  background: #0065E6;
  color: #fff;
  border-radius: 40px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.services-home-btn:hover {
  background: #004bb5;
  transform: translateY(-3px);
}


/* ================= Responsive ================= */
@media (max-width: 48rem) {
  #project-1-animation {
    height: 15rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .major-heading {
    font-size: 3rem;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 100%;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-button {
    width: auto;
    max-width: 200px;
    padding: 1.8rem 1.2rem;
  }

  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 150%;
  }




  .text-animation-container {
    margin-top: 1.5rem;
  }


  .services-home-grid {
  flex-direction: column;
  align-items: center;
}
}
