/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

header {
  position: relative;
  background: url("assets/hero.jpg") no-repeat center center/cover;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
}

.hero h1 {
  text-align: center;
  margin-right: 5px;
  margin-left: 5px;
}

.header-title {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 2.5rem;
}

/* Navigation Styles */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: rgb(75, 75, 77);
  padding: 20px 50px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav .logo {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.cta-btn {
  padding: 10px 30px;
  background: #f4a261;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
}

nav .nav-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.language-select {
  display: flex;
  align-items: center;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: auto;
  min-width: 150px;
  max-width: 300px;
  height: 100%;
  background: rgb(75, 75, 77);
  transition: right 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 60px;
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer ul {
  list-style: none;
  padding-left: 0;
}

.nav-drawer ul li {
  padding: 15px 20px;
}

.nav-drawer ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.drawer-language-select {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 20px;
}

.drawer-language-select .flag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
  object-fit: cover;
  border: 1px solid transparent;
  transition: border 0.3s;
}

.drawer-language-select .flag:hover {
  border: 1px solid #333;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Section Styles */
.section {
  padding: 50px 20px;
  text-align: center;
}

#about img {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

.services-container{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
}


/* Service Section */
.services-container .service-item,
.project-item {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Language Select Styles */
.language-select .flag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  object-fit: cover;
  border: 1px solid transparent;
  transition: border 0.3s;
}

.language-select .flag:hover {
  border: 1px solid #333;
}

#language-select {
  margin-right: 20px;
  padding: 5px;
}

/* Footer Styles */
footer {
  background: rgb(75, 75, 77);
  color: white;
  padding: 10px 0;
  text-align: center;
}

/* Contacts Section Styles */
#contacts .contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

#contacts .contact-container .service-item {
  flex: 1;
  max-width: 45%;
}

#contacts .contact-container .contact-photo {
  flex: 1;
  max-width: 45%;
}

#contacts .contact-container .contact-photo img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contacts .service-item {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 100%;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.services-container .service-item {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 30%;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contacts h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#contacts .service-item p {
  margin: 8px 0;
  font-size: 1.1rem;
  text-align: left;
  width: 100%;
  max-width: 400px;
}

.carousel {
  max-width: 1650px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel__items {
  display: flex;
  animation: carousel 15s linear infinite;
}

.carousel__item {
  width: 300px; /* Width of each item */
  height: 300px; /* Height of each item to make it square */
  object-fit: cover;
  border-radius: 15px;
  margin: 10px;
}

@keyframes carousel
{
  0% {
    transform: translateX(0px);
  }

  100%
  {
    transform: translateX(-1200px);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul, nav .nav-left {
    display: none;
  }
  .services-container {
    flex-direction: column;
  }
  .project-item {
    width: 100%;
    height: auto;
  }

  #contacts .contact-container {
    flex-direction: column;
    align-items: center;
  }
  #contacts .contact-container .contact-photo {
    order: -1;
    max-width: 100%;
    margin-bottom: 20px;
  }
  #contacts .contact-container .contact-photo img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  #contacts .contact-container .service-item {
    max-width: 100%;
  }
}
