* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}
html {
  scroll-behavior: smooth;
}

body {
  background: #f9f9f9;
  color: #333;
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #111;
  color: #fff;
  position: fixed;
  width: 100%;
  z-index: 50;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
#logoimg {
  margin: auto;
  border-radius: 50%;
  position: absolute;
  right: 11rem;
}
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://www.lista-office.com/fileadmin/lo/lo-business-solutions/kompetenzen/faas/LO_furniture-as-a-service_header_2_3600x1800px.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  position: relative;
  top: 4rem;
  margin-bottom: 5rem;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.animated-text {
  font-size: 18px;
  color: #ffcc00;
  margin-bottom: 15px;
  position: relative;
  height: 30px;
  overflow: hidden;
}

.animated-text p {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
}

#text1 {
  animation: move 12s ease-in-out infinite;
}
#text2 {
  animation: move 12s ease-in-out infinite;
  animation-delay: 3s;
}
#text3 {
  animation: move 12s ease-in-out infinite;
  animation-delay: 6s;
}
#text4 {
  animation: move 12s ease-in-out infinite;
  animation-delay: 9s;
}

@keyframes move {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  10% {
    opacity: 1;
    transform: translateX(0);
  }

  25% {
    opacity: 1;
    transform: translateX(0);
  }

  35% {
    opacity: 0;
    transform: translateX(-50%);
  }

  100% {
    opacity: 0;
  }
}

.buttons a {
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-primary {
  background: white;
  color: #000;
}

.btn-secondary {
  background: #25d366;
  color: #fff;
}

section {
  padding: 60px 40px;
  text-align: center;
}

.features,
.services,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer {
  background: #111;
  color: #fff;
  padding: 20px;
  text-align: center;
}

@media (max-width: 570px) {
  h2 {
    position: relative;
    left: 1rem;
  }
  #logoimg {
    position: absolute;
    left: 1rem;
  }
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 22px;
    line-height: 1.4;
  }

  .hero p {
    font-size: 14px;
  }

  .buttons a {
    display: block;
    width: 80%;
    margin: 10px auto;
  }

  .animated-text {
    font-size: 16px;
  }
}
