/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
  scroll-padding-top: 2rem;
  list-style: none;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}
:root {
  --main-color: black;
  --text-color: #2f2f2f;
  --home-background: #f1f1f1;
  --bg-color: white;
  --big-font: 3.2rem;
  --h2-font: 2rem;
}
section {
  padding: 50px 10%;
}
body {
  color: var(--text-color);
  background: var(--bg-color);
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 18px 10%;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--main-color);
}
.navbar {
  display: flex;
}
.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
}
.navbar a:hover {
  border-radius: 0px;
  background: var(--home-background); /* Changes the background color to grey on hover */
}
#menu-icon {
  font-size: 2rem;
  cursor: pointer;
  display: none;
}
.home {
  width: 100%;
  
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  background: var(--home-background);
  gap: 1.5rem;
}

.home-text h1 {
  font-size: var(--big-font);
}
.home-text span {
  color: var(--main-color);
}
.home-text p {
  max-width: 80%;
  margin: 1rem 0 1.1rem;
}
.btn {
  background: var(--main-color);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 2rem;
  color: #fff;
}
.btn:hover {
  background: #fc5552;
}
.heading {
  text-align: center;
}
.heading p {
  text-transform: uppercase;
  font-weight: 500;
  color: var(--main-color);
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, auto));
  gap: 1.5rem;
  margin-top: 4rem;
}
.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.box img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.box h2 {
  font-size: 1.2rem;
  margin: 1.7rem 0 1rem;
}
.diensten .diensten-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.diensten .diensten-container .diensten-box {
  position: relative;
  height: 420px;
  flex: 1 1 18rem;
  overflow: hidden;
}
.diensten .diensten-container .diensten-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.diensten .diensten-container .diensten-box .text {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  flex-direction: column; 
  display: flex;
  align-items: center; 
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(243, 243, 243, 0.78);
  transition: 0.5s;
}

.diensten .diensten-container .diensten-box.in-viewport .text {
  top: 0;
}
.diensten-box .text h2 {
  font-size: 1.2rem;
}
.diensten-box .text p {
  margin: 0.4rem 0 1rem;
}
.contact-form {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}
.contact-form form {
  display: flex;
  flex-direction: column;
}
.contact-form form input,
textarea {
  width: 400px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 0.5rem;
  border: none;
  outline: none;
  background: #fff4f3;
}
.contact-form form textarea {
  resize: none;
  height: 200px;
}
.contact-form form .contact-button {
  font-weight: 500;
  color: #fff;
  background: var(--main-color);
  cursor: pointer;
}
.contact-form form .contact-button:hover {
  background: #fc5552;
}
.copyright {
  padding: 20px;
  text-align: center;
}
@media (min-width: 991px) {
  .home {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ensures equal space for text and image */
    align-items: center;
    gap: 0; /* No extra space between the columns */
    height: 100vh; /* Full viewport height */
    margin: 0; /* Resets any outer spacing */
    padding: 0; /* Resets any inner spacing */
  }

  .home-img {
    position: relative; /* Allows positioning of the gradient overlay */
    height: 100%; /* Full height of the parent container */
    width: 100%; /* Full width of the column */
    overflow: hidden; /* Prevents image overflow */
  }

  .home-img img {
    height: 100%; /* Fills the entire height */
    width: 100%; /* Fills the entire width */
    object-fit: cover; /* Ensures the image doesn't stretch */
    display: block; /* Removes any inline gaps caused by images */
  }

  .home-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20%; /* Fades the left 20% */
    height: 100%; /* Full height of the container */
    background: linear-gradient(to right, #f1f1f1, transparent);
    pointer-events: none; /* Prevents interactions */
  }
  .home-text {
    margin-left: 3rem;
    padding: 2rem; /* Adds space around the text */
  }
  .navbar a:hover {
    border-radius: 2rem;
  }
  #promotext {
    font-size: 1.3rem;
  }
 
}

@media (max-width: 991px) {
  .home {
    grid-template-columns: 1fr;
    padding: 0;
  }
  #promotext {
    font-size: 1.1rem;
  }
  .home-img {
    padding-top: 0px;
    order: -1;
    width: 100%;
    margin: 0;
  }
  .home-img img {
    width: 100%;
    max-width: 100%;
    min-height: 280px;
    height: auto;
    object-fit: cover;
  }
  .home-text {
    display: center;
    text-align: center;
    padding: 2rem 1rem;
    margin: -3rem auto 0 auto;
  }
  .home-text p {
    max-width: 100%;
    margin: 1rem 0 1.1rem;
  }
  header {
    padding: 10px 4%;
  }
  section {
    padding: 50px 4%;
  }
  :root {
    --big-font: 2rem;
    --h2-font: 1.4rem;
  }
  #menu-icon {
    display: initial;
    color: var(--text-color);
  }
  header .navbar {
    position: absolute;
    top: -400px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: white;
    transition: 0.5s;
    z-index: -100;

  }
  .navbar.active {
    top: 100%;
  }
  .navbar a {
    padding: 1.5rem;
    display: block;
  }
  .home {
    grid-template-columns: 1fr;
  }
  .home-text {
    padding-top: 2rem;
  }
}
@media (max-width: 415px) {
  .contact-form form input,
  textarea {
    width: auto;
  }
}
