/* General Styles */
:root {
    --color1: #394053;
    --color2: #BE3153;
    --color3: #EFE7DA;
}

body {
    font-family: cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--color1);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  header {
    background: transparent;
    color: var(--color1);
    text-align: center;
    display: flex;
    justify-content: space-between;
    padding: 10px 15%; /* Adjusted padding to avoid overflow */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out; /* Smooth transition */
  }

  header.scrolled {
    background-color: white; /* White background when scrolled */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a slight shadow */
  }
  
  header .logo {
    max-height: 120px;
    text-decoration: none;
    padding: 0;
  }
  
  nav ul {
    list-style: none;
    padding: 0 40px;
    margin: 0;
    display: flex;
  }
  
  nav ul li {
    display: inline;
    margin: 0 10px;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s ease-in-out;
  }

  /* Fix for pages with white background */
.white-bg nav ul li a {
  color: var(--color1); /* Dark text for visibility */
}
  
  nav ul li a[aria-current="page"] {
    font-weight: bold;
    text-decoration: none;
    color: var(--color2);
  }
  
  nav ul li a:hover {
    text-decoration: none;
    color: var(--color2);
  }

  header.scrolled nav ul li a {
    color: var(--color1); /* Dark text when scrolled */
  }

  /* Hamburger Menu Button */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.875rem;
  cursor: pointer;
  display: none; /* Hidden by default on larger screens */
  color: var(--color1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show button on smaller screens */
  }

  nav ul {
    display: none; /* Hide menu by default */
    flex-direction: column;
    position: absolute;
    top: 60px; /* Adjust based on header height */
    right: 15%;
    background: white;
    padding: 10px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
  }

  nav ul li {
    display: block;
    padding: 10px 0;
  }

  nav ul li a {
    color: var(--color1);
    display: block;
  }

  /* Show menu when active */
  nav.active ul {
    display: flex;
  }

 .services .service-grid {
    grid-template-columns: 1fr; /* Switch to a single column layout */
    gap: 2.5%;
    display: grid; /* Reduce gap for better spacing */
	padding: 8% 5% 5% 5%;
	margin-bottom: 65%;
  }

  main .hero p {
    font-size: 1.5rem;
  }
  
   main .hero h1 {
    font-size: 2.5rem;
    font-family: Fjalla One;
  }

  main .text-side h2, main .text-side1 h2 {
    font-size: 2rem;
    margin-bottom: 2%;
    color: #333;
  }

 main .text-side p,
 main .text-side1 p {
  font-size: 0.8rem;
}

 /* Stack image and text in a column */
 main .image-text-container, main .image-text-container1 {
   flex-direction: column; /* Switch from row to column */
   text-align: center; /* Center the text */
  }

 main .image-side, main .image-side1, 
 main .text-side, main .text-side1 {
    flex: none; /* Reset flex */
    width: 100%; /* Take full width */
 }

 main .text-side main .cta-button, main .text-side1 .cta-button {
   margin: 20px auto; /* Center the button */
  }


}


/* Main Styles */
main {
  padding: 0 0;
  margin-top: 0;
  
}

  .hero {
    background: url('images/workspace1.jpeg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    align-items: center; /* Horizontally center content */
    height: 100vh; /* Set height to 80% of the viewport height */
  }

  .hero p {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 5rem;
    font-family: Fjalla One;
  }

  .hero #typing-effect {
    color: var(--color1);
  }
  
  .cta-button {
    background: var(--color2);
    display: inline-block;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
  }
  
  .cta-button:hover {
    font-weight: bold;
  }

/* Services Section */
.services {
  padding: 5% 15%; /* Match main padding */
  background: #EFE7DA; /* Light background for contrast */
  margin: 0px;
}

.services h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 5%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Responsive grid */
  gap: 40px; /* Space between boxes */
}

.service-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  text-align: center;
  transition: transform 0.7s ease, box-shadow 0.5s ease;
}

.service-box:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
  background-color: #839073;
}

.service-box:hover h3,
.service-box:hover p {
  color: #EFE7DA; /* Change text color on hover */
}

.service-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;

}

.service-box p {
  font-size: 1rem;
  color: #666;
}

/* Image + Text Section */
.image-text-section, .image-text-section1 {
  padding: 5% 15%; /* Match main padding */
  background: #fff; /* White background */
}

.image-text-container, .image-text-container1 {
  display: flex;
  align-items: center; /* Vertically center image and text */
  gap: 5%; /* Space between image and text */
}

.image-side, .image-side1 {
  flex: 1; /* Take up 50% of the space */
}

.image-side img, .image-side1 img {
  width: 100%;
  height: auto;
  border-radius: 10px; /* Rounded corners for the image */
}

.text-side, .text-side1 {
  flex: 1; /* Take up 50% of the space */
}

.text-side h2, .text-side1 h2 {
  font-size: 3rem;
  margin-bottom: 2.5%;
  color: #333;
}

.text-side p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 2.5%;
}

.text-side .cta-button, .text-side1 .cta-button {
  background: var(--color2);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: block;
  width: fit-content;
  margin: 10px auto 0 auto;
  transition: background 0.3s ease;
}

.text-side .cta-button:hover {
  background: var(--color2);
}

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.location img {
  max-width: 100%; /* Ensures responsiveness */
  height: auto;
  border-radius: 15px;
}

.map-container h2 {
  text-align: center;
  font-size: 3rem;
}


/*Page explore.html */

h2 {
  text-align: center;
  font-size: 3rem;
  padding-top: 5%;
}

.swiper {
  margin-top: 3% auto;
  width: 100%;
  max-width: 1200px;
  height: 800px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  /*Page prices.html */

  .pricing .plans {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around;
    padding: 5% 15%;
    gap: 15px;
  }
  
  .pricing .plan {
    background: #839073;
    padding: 20px ;
    border-radius: 5px;
    text-align: center;
  }

  .plan ul {
    list-style-type: none;
  }

  .pricing h2 {
    margin-top: 5%;
  }
  
/*Page contact.html */

  .contact {
    background-color: #EFE7DA;
	padding-top: 0;
    
  }

  .contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .contact label {
    display: block;
    margin: 0 0 0 0;
    font-family: cantarell;
    
  }
  
  .contact input, .contact textarea {
    width: 95%;
    padding: 10px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
  }
  
  .contact button {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
  }
  
  .contact h2 {
    text-align: center;
    margin-top: 5%;
    font-size: 3rem;
    padding-top: 0;
  }

  /*footer*/
  footer {
    background: #fff;
    color: var(--color1);
    text-align: center;
    padding: 40px 0;
    margin-top: 0;
  }
  
  footer a {
    color: var(--color2);
    text-decoration: none;
  }

  footer nav ul {
    justify-content: center;
  }

  footer nav ul li a {
    color: var(--color1);
    text-decoration: none;
    font-size: 1.25rem;
  }


  /*scrolling effect*/
  .hidden {
    opacity: 0;
    transform: translateY(30px); /* Move down slightly */
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
  }
  
  .show {
    opacity: 1;
    transform: translateY(0);
  }

.imprint div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
  