/* Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General Styles */
body {
  font-family: Arial, sans-serif;
  color: #ffffff;
  line-height: 1.6;
}

/* Bubble Menu Styles */
.bubble-menu {
  position: fixed;
  top: 10vh;
  right: 1vw;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4vh;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.bubble-menu.visible {
  opacity: 1;
  transform: translateX(0);
}

.bubble {
  width: 8vh;
  height: 8vh;
  background-color: rgba(51, 51, 51, 0.9);
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hidden state for content */
.content.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state for content */
.content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax */
.parallax {
  position: relative;
  background: none;
  z-index: 2;
}

/* Home Section Styles */
#home {
  background-color: rgba(51, 51, 51, 0.9);
  margin-top: 5vh;
  min-height: 90vh;
}

#home .content {
  display: flex;
  width: 90%;
  justify-content: space-between;
  gap: 10vw;
  align-items: center;
  margin: 0 auto; /* Center the content */
 
}
#home-text-block {
  margin-bottom: 90px;
  text-align: left;
  font-size: 2vh;
}

#home-text-block h1 {
  margin-bottom: 20px; /* Adds space below the h1 */
  font-size: 5vh; /* Adjust font size if needed */
}

#home-logo img {
  width: 25vw;
  max-width: 700px;
  height: auto;
}

/* About Section Styles */
#about {
  background-color: rgba(51, 51, 51, 0.9);
  padding: 30px;
  align-items: center;
  min-height: 90vh;
}

#about .content {
  display: flex;
  width: 90%;
  flex-direction: row;
  gap: 10vw;
  align-items: center;
  margin: 0 auto;
}

#about-text-block {
  margin-bottom: 90px;
  text-align: left;
  font-size: 2vh;
  
}

#about-text-block h2 {
  margin-bottom: 20px; /* Adds space below the h1 */
  font-size: 5vh; /* Adjust font size if needed */
}

#about-image {
  height: 80%;
  width: auto;
  display: flex;
  align-items: flex-end;
}

/* Services Section */
#services {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  height: 90vh;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  
}

.service-block {
  background-color: #264242;
  opacity: 0.8;
  border-radius: 15px;
  padding: 10px;
  width: 30%;
  height: auto;
  min-height: 30vh;
  margin: 1%;
  text-align: center;
  color: #fff;
  transition: transform 0.5s ease-out, background-color 0.5s ease-out;
  transform: translateY(50px);
  cursor: pointer;
  position: relative;
}

.service-block.active {
  opacity: 1;
  transform: translateY(0);
}

.service-block img {
  width: 60%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.service-block h3 {
  margin-top: 15px;
  transition: font-size 0.3s ease;
}

.service-block .description {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  margin-top: 10px;
}

.service-block:hover .description {
  display: block;
  opacity: 1;
  height: fit-content;
}

.service-block:hover img {
  transform: scale(1.5);
}

.service-block:hover h3 {
  font-size: 1.5em;
}

#contact {
  min-height: 90vh;
}

/* Section Styles */
section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80vw;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
  background-color: transparent;
  margin: 0 auto;
  margin-bottom: 10vh;
  border-radius: 4vw;
}

section .content {
  text-align: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

section.active .content {
  opacity: 1;
  transform: translateY(0);
}

/* Canvas for Three.js */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: antiquewhite;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  /* Adjust the bubble size */
  .bubble-menu {
    visibility: hidden; /* Removed the misplaced semicolon */
  }

  /* Stack the home section content */
  #home .content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #home-logo img {
    width: 90%;
    margin-top: 20px;
  }
  #about .content {
    display: flex;
    flex-direction: column;
    
  }

  #about-text-block {
    margin-bottom: 20px;
    text-align: left;
  }

  #about-image {
    max-width: 80%;
    margin: 20px auto;
  }

  #about-image img {
    width: 100%;
    height: auto;
  }

  /* Adjust service blocks */
  #services {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3000px;
    padding: 40px 20px; /* Increase padding for more spacing */
  }
  .service-block {
    width: 100%;
    margin-bottom: 20px;
  }

  .service-block.active .description {
    display: block;
    opacity: 1;
    max-height: none;
  }

  .service-block.active img {
    transform: scale(1.2);
  }

  .service-block.active h3 {
    font-size: 1.8em;
  }

  /* Adjust section width and padding */
  section {
    width: 100%;
    padding: 40px 10px;
    margin-bottom: 10vh;
    border-radius: 4vw;
    height: fit-content;
  }

  /* Adjust headings and text */
  h2 {
    font-size: 2em;
    margin: 20px;
  }

  p {
    margin: 10px;
  }

  ul,
  ol {
    margin: 20px;
  }

  li {
    margin-bottom: 5px;
  }
}
