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

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

/* Logo Styles */
#logo {
  display: flex;
  align-items: center;
  align-content: center;
  margin-right: 15px;
  position: relative;
  left: 100px;
}

#logo img {
  height: 150px;
  width: auto;
  display: block;
}

/* Language Switcher */
#language-switcher {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

#language-switcher button {
  margin: 0 5px;
  padding: 5px 10px;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 4px;
}

#language-switcher button:hover {
  background-color: #fff;
  color: #333;
}

/* Hamburger Menu */
#hamburger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
}

#hamburger-menu span {
  display: block;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

/* Navigation Styles */
#main-nav {
  position: relative;
  height: 20vh;
  align-items: center; /* Vertical alignment */
  justify-content: center; /* Horizontal alignment */
  top: 0;
  width: 80vw;
  margin: 0 auto;
  background-color: #264242;
  z-index: 999;
  padding: 10px 20px;
  border-radius: 50px;
}

#main-nav .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

#main-nav ul {
  display: flex;
  justify-content: center; /* Center-align menu items */
  list-style: none;
  align-items: center;
  flex-grow: 1;
}

#main-nav ul li {
  margin: 0 15px;
}

#main-nav ul li a {
  display: inline-block; /* Allows for padding and button styles */
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  border-radius: 5px; /* Rounded corners for buttons */
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#main-nav ul li a:hover {
  background-color: #6a6565; /* Darken button color on hover */
}

#main-nav ul li a:active {
  background-color: #cdc2c1; /* Darker color on click */
}

/* Section Styles */
section {
  height: 80vh;
  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: 20vh; /* Space between sections */
  border-radius: 120px;
}

section .content {
  max-width: 800px;
  text-align: center;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.7s ease-in-out;
}

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

/* Remove background color from .parallax */
.parallax {
  position: relative;
  background: none;
}

#home {
  background-color: rgba(51, 51, 51, 0.9);
}

#contact {
  background-color: rgba(51, 51, 51, 0.9);
}

#about {
  background-color: rgba(51, 51, 51, 0.9);
}

#footer {
  height: 20vh;
  background-color: aqua;
  margin-bottom: 0;
}

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

/* Our Services Section */
#services .services-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%; /* Ensure the container takes up the full width of the viewport */
  max-width: 2500px;
  margin: 0 auto;
  border: 1px solid #fff;
  color: #fff;
  }

.service-block {
  background-color: #264242;
  opacity: 0.8;
  border-radius: 8px;
  padding: 20px;
  width: 22%;
  margin: 1%;
  text-align: center;
  color: #fff;
}

.service-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.service-block h3 {
  margin-top: 15px;
}

.service-block p {
  margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  #main-nav ul {
    margin-left: 20px;
  }

  #main-nav .nav-container {
    padding: 0;
  }

  .service-block {
    width: 48%;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  /* Show hamburger menu */
  #hamburger-menu {
    display: flex;
  }

  /* Hide the main navigation links */
  #main-nav ul {
    display: none;
    flex-direction: column;
    background-color: rgba(51, 51, 51, 0.9);
    position: fixed;
    top: 60px;
    right: 0;
    width: 200px;
    height: calc(100% - 60px);
    padding-top: 20px;
  }


  /* Show navigation when menu is active */
  #main-nav ul.active {
    display: flex;
  }

  #logo {
    justify-content: center;
  }

  #main-nav ul li {
    margin: 10px 0;
  }

  #main-nav .nav-container {
    justify-content: space-between;
  }

  #language-switcher {
    margin-left: 10px;
  }

  .service-block {
    width: 100%;
    margin-bottom: 20px;
  }
}
