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

/* General Styles */
body {
  font-family: 'Tomorrow', sans-serif;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100vw;
}

html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Bubble Menu Styles */
.bubble-menu {
  position: fixed;
  top: 7.5vh;
  right: 2.5vw;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3vh;
  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;
  text-shadow: 0 0 3px #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

#home .content {
  display: flex;
  width: 90%;
  justify-content: space-between;
  gap: 2vw;
  align-items: center;
  max-height: 100%;
  height: 100%;  overflow: hidden; /* Ensures content doesn't overflow */
}

#home-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-height: 100%;
  max-width: 30vw;
  font-size: 1em; /* Base font size for the block */
  transition: opacity 1.5s ease-in-out 0.5s, transform 1.5s ease-in-out 0.5s; /* Add a delay of 0.5s */
  
}

/* Responsive font size for the heading */
#home-text-block h1 {
  margin-bottom: 0.5em;
  font-size: clamp(2.2vh,5em,2.2vh);
  text-align: center;
  font-family: 'Tomorrow', sans-serif;
}

/* Responsive font size for the paragraphs */
#home-text-block p {
  font-size: clamp(1.6vh,3em,1.6vh);
  margin: 0.2em;
}

#home-logo img {
  width: 35vw;
  max-width: 800px;
  height: auto;
}

/* About Section */
#about {
  background-color: rgba(51, 51, 51, 0.9);
  height: 90vh;
}

#about .content {
  display: flex;
  width: 90%;
  justify-content: space-between;
  gap: 1vw;
  align-items: center;
  max-height: 100%;
  height: 100%;
  overflow: hidden; /* Ensures content doesn't overflow */
}

/* Text block for About Section */
#about-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-height: 100%;
  max-width: 30vw;
  font-size: 1em; /* Base font size for the block */
  opacity: 0; /* Initial state for animation */
  transform: translateX(-100px); /* Text slides in from the left */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Responsive font size for the heading */
#about-text-block h2 {
  margin-bottom: 0.5em;
  font-size: clamp(2.2vh,5em,2.2vh);
  text-align: center;
  font-family: 'Tomorrow', sans-serif;
}

/* Responsive font size for the paragraphs */
#about-text-block p {
  font-size: clamp(1.6vh,3em,1.6vh);
  margin: 0.2em;
}

/* Responsive font size for the paragraphs */
#about-text-block li {
  font-size: clamp(1.2vh,1.5em,1.2vh);
  margin: 0.2em;
}

/* When the section becomes active (animation trigger) */
#about.active #about-text-block {
  opacity: 1;
  transform: translateX(0); /* Animates into its original position */
}

/* Image animation and styles for About Section */
#about-image img {
  opacity: 0;
  transform: translateX(100px); /* Image slides in from the right */
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  width: 35vw;
  max-width: 800px;
  height: auto;
  border-radius: 2vw;
}

#about.active #about-image img {
  opacity: 0.85;
  transform: translateX(0); /* Animates into its original position */
}


/*Approach Section */

#approach {
  background-color: rgba(51, 51, 51, 0.9);
  height: 90vh;
}

#approach .content {
  display: flex;
  width: 90%;
  justify-content: space-between;
  gap: 2vw;
  align-items: center;
  max-height: 100%;
  height: 100%;
  overflow: visible; /* Ensures content doesn't overflow */
}

/* Text block for About Section */
#approach-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-height: 100%;
  max-width: 30vw;
  font-size: 1em; /* Base font size for the block */
  opacity: 0; /* Initial state for animation */
  transform: translateX(10vw); /* Text slides in from the left */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

#approach-text-block h3 {
  margin-bottom: 0.5em;
  font-size: clamp(2.2vh,5em,2.2vh);
  text-align: center;
  font-family: 'Tomorrow', sans-serif;
}

/* Responsive font size for the paragraphs */
#approach-text-block p {
  font-size: clamp(1.6vh,3em,1.6vh);
  margin: 0.2em;
}

/* Image animation and styles for About Section */
#approach-image img {
  opacity: 0;
  transform: translateX(-10vw); /* Image slides in from the right */
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  width: 35vw;
  max-width: 800px;
  height: auto;
  border-radius: 2vw;
}
#approach.active #approach-text-block {
  opacity: 1;
  transform: translateX(0); /* Animates into its original position */
  
}

#approach.active #approach-image img {
  opacity: 0.85;
  transform: translateX(0); /* Animates into its original position */
}

/* Services Section */
#services {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  height: 80vh;
  opacity: 0.9;
  font-family: 'Tomorrow', sans-serif;
}

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

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


.service-block img {
  max-width: 100%;
  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;
}

.service-block:hover .description {
  display: block;
  opacity: 1;
  z-index: 100;
  padding: 20px;
}

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

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

#block-1 {
  transform: translateX(-100vw); /* Initially off the screen to the left */
  transition: transform 1.2s ease-in-out, opacity 1s ease-in-out;
}

#block-1.active {
  transform: translateX(0); /* Slides into position */
  opacity: 0.9;
}

#block-4 {
  transform: translateX(-100vw); /* Initially off the screen to the left */
  transition: transform 1.5s ease-in-out, opacity 1s ease-in-out;
}

#block-4.active {
  transform: translateX(0); /* Slides into position */
  opacity: 0.9;
}

#block-2 {
  transform: translateX(0); /* Initially off the screen to the left */
  transition: transform 1.2s ease-in-out, opacity 1s ease-in-out;
}

#block-2.active {
  transform: translateX(0); /* Slides into position */
  opacity: 0.9;
}

#block-5 {
  transform: translateX(0vw); /* Initially off the screen to the left */
  transition: transform 1.2s ease-in-out, opacity 1s ease-in-out;
}

#block-5.active {
  transform: translateX(0); /* Slides into position */
  opacity: 0.9;
}

/* Block 3: Slide in from the right */
#block-3 {
  transform: translateX(100vw); /* Initially off the screen to the right */
  transition: transform 1.2s ease-in-out, opacity 1s ease-in-out;
}

#block-3.active {
  transform: translateX(0); /* Slides into position */
  opacity: 0.9;
}

/* Block 3: Slide in from the right */
#block-6 {
  transform: translateX(100vw); /* Initially off the screen to the right */
  transition: transform 1.2s ease-in-out, opacity 1s ease-in-out;
}

#block-6.active {
  transform: translateX(0); /* Slides into position */
  opacity: 0.9;
}

/* Contact Section */
#contact {
  min-height: 80vh;
  border-radius: 2vw;
  opacity: 1;
 
}


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

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

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

/* Canvas (Three.js) */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-image: url('../images/background.jpg');
}

/* Media Queries */
@media (max-width: 840px) {
  .bubble-menu {
    visibility: hidden;
  }


  #home .content {
    flex-direction: column;
   
  }
  
  #home-text-block {
    margin-bottom: 3vh;
    text-align: center;
    
  }

  #home-text-block h1 {
    margin-bottom: 3vh;
    font-size: clamp(2vh,2em,2vh)
  }

  #home-text-block p {
    font-size: clamp(1.5vh,2em,1.5vh);
    width: 70vw;
    align-self: center;
    text-align: left;
  }

  #home-logo img {
    width: 100%;
  }

 /* About Section (Mobile) */


#about .content {
  flex-direction: column; /* Stack content vertically */
}

#about-text-block {
  margin-bottom: 5vh; /* Same as home */
  width: 100%;
  text-align: center; /* Centered text alignment like home */
}

#about-text-block h2 {
  margin-bottom: 3vh;
  font-size: clamp(2vh,2em,2vh)
}

#about-text-block p {
  font-size: clamp(1.5vh,2em,1.5vh);
  width: 70vw;
  align-self: center;
  text-align: left;
}

#about-text-block li {
  font-size: clamp(2vh,1.2vh,2vh);

}

#about-image img {
  width: 100%; /* Same as home */
  max-width: 100%;
  margin: 0 auto; /* Center the image */
  border-radius: 1rem; /* Same styling as home */
}

#approach .content {
  flex-direction: column; /* Stack content vertically */
}

#approach-text-block h3 {
  margin-bottom: 3vh;
  font-size: clamp(2vh,2em,2vh);
  text-align: center;
  
  
}

#approach-image img {
  width: 90%; /* Same as home */
  max-width: 100%;
  margin: 0 auto; /* Center the image */
  border-radius: 1rem; /* Same styling as home */
}


#approach-text-block ul {
  font-size: clamp(1.4vh,2em,1.4vh);
  width: 70vw; /* Same width as home */
  align-self: center;
  text-align: left;
  
}

  #services {
    height: fit-content;
    padding: 40px 20px;
  }

  .service-block {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 6vw;
  }

  .service-block.active {
    position: relative;
    opacity: 1;
    transform: translateY(20%);
    z-index: 100;
  }

  #contact {
   
    opacity: 1;
   
  }

  section {
    width: 90vw;
    padding: 40px 10px;
    border-radius: 6vw;

  }
}
