html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.globe {
  width: 25px;
  margin-right: 50px;
  margin-top: -3px;
  margin-left: -15px;
}

.dropdown {
  background-color: white;
  position: absolute;
  width: 200px;
  height: 0;
  overflow: hidden;
  right: 0;
  top: 100%;
  opacity: 0;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.dropdown ul {
  list-style-type: none;
  padding: 0;
  margin: 10px;
}

.dropdown li {
  cursor: pointer;
  padding: 5px;
  transition: background-color 0.3s ease;
}

.dropdown ul li a {
  color: black;
  text-decoration: none;
}

.dropdown li:hover {
  background-color: #f1f1f1;
}

.dropdown-hover:hover .dropdown {
  height: 80px;
  opacity: 1;
}

.flag {
  width: 40px;
  margin-top: -5px;
  margin-right: 50px;
  margin-left: 10px;
}

.engl {
  border: 0.5px solid black;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  transition: background-color 0.5s ease;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  margin: 0 20px;
  position: relative;
}

.navbar-menu li a {
  color: black;
  text-decoration: none;
  font-weight: 100;
  font-size: 1.1rem;
  position: relative;
}

.navbar-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
}

.navbar-menu li a:hover::after {
  width: 100%;
}

.navbar ul li:last-child {
  margin-right: 50px;
}

.navbar-logo img {
  margin-left: 50px;
  width: 95px;
  cursor: pointer;
}

main {
  margin-left: 10%;
  margin-right: 10%;
}

h1 {
  font-weight: 500;
  font-size: 2.5rem;
  border-bottom: 1px solid black;
}

.gallery {
  display: flex;
  justify-content: center;
}

.gallery-images {
  display: flex;
}

.gallery-images img {
  width: 280px;
  height: 250px;
  object-fit: cover;
  margin-right: 10px;
  cursor: pointer;
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.gallery img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  margin-right: 10px;
  cursor: pointer;
  transition: filter 0.2s ease-in-out;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  margin-top: 5%;
}

.modal-content .slides {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.modal-content .slides .slide {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: 80vw;
  height: 80vh;
}

.close {
  color: #fff;
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.prev,
.next {
  color: #fff;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

@media screen and (max-width: 767px) {
  .row {
    flex-direction: column;
  }

  .gallery img {
    margin-bottom: 50px;
  }

  .section-portfolio h2 {
    margin-bottom: 10%;
    margin-top: 10%;
  }

  .gallery-images img {
    width: 100px;
    height: 70px;
  }

  .modal-content {
    margin-top: 30%;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img {
    margin: 20px;
    width: 330px;
    height: 400px;
  }

  .modal-content {
    margin-top: 15%;
  }
}

@media screen and (max-width: 767px) {
  .row {
    flex-direction: column;
  }

  .gallery img {
    margin-bottom: 30px;
  }

  .section-portfolio h2 {
    margin-bottom: 10%;
    margin-top: 10%;
  }

  .gallery-images img {
    width: 100px;
    height: 70px;
  }

  .modal-content {
    margin-top: 30%;
  }

  main {
    margin-top: 0%;
  }

  .navbar {
    display: none;
  }

  .close {
    top: 100px;
  }

  .prev {
    left: -5px;
  }

  .next {
    right: 0px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img {
    margin: 20px;
    width: 330px;
    height: 400px;
  }

  .modal-content {
    margin-top: 15%;
  }
}

#toggle {
  display: none;
}

.hamburger {
  position: absolute;
  top: 5em;
  right: 5%;
  margin-left: -2em;
  margin-top: -45px;
  width: 2em;
  height: 45px;
  z-index: 5;
}

.hamburger div {
  position: relative;
  width: 3em;
  height: 7px;
  border-radius: 3px;
  background-color: black;
  margin-top: 8px;
  transition: all 0.3s ease-in-out;
}

.nav {
  position: fixed;
  z-index: 3;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  top: -100%;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  transform: scale(0);
  text-align: center;
}

.nav-wrapper {
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  height: 100%;
  margin-top: 10%;
}

.nav-ham a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1.6rem;
  display: inline-block;
  margin-top: 1.25em;
  transition: color 0.2s ease-in-out;
  letter-spacing: 1px;
  font-weight: 100;
}

.nav-ham a:before {
  content: "";
  height: 0;
  position: absolute;
  width: 0.25em;
  background-color: white;
  left: -0.5em;
  transition: all 0.2s ease-in-out;
}

.nav-ham a:hover {
  color: white;
}

.nav-ham a:hover:before {
  height: 100%;
}

.logo-ham {
  margin-left: 20px;
  margin-top: 35px;
  width: 90px;
  cursor: pointer;
  z-index: 3;
  position: absolute;
}

.globe-ham {
  width: 30px;
  margin-bottom: -6px;
  margin-top: 20px;
}

#toggle:checked + .hamburger .top-bun {
  transform: rotate(-45deg);
  margin-top: 25px;
}

#toggle:checked + .hamburger .bottom-bun {
  opacity: 0;
  transform: rotate(45deg);
}

#toggle:checked + .hamburger .meat {
  transform: rotate(45deg);
  margin-top: -7px;
}

#toggle:checked + .hamburger + .nav {
  top: 0;
  transform: scale(1);
}

.hamburger-menü {
  display: none;
}

@media screen and (max-width: 768px) {
  .navbar {
    display: none;
  }

  .nav-wrapper {
    margin-top: 35%;
  }

  .hamburger-menü {
    display: block;
  }
}

@media screen and (min-width: 768px) and (max-width: 1300px) {
  .navbar {
    display: none;
  }

  .hamburger-menü {
    display: block;
  }

  .close {
    margin-top: 100px;
  }
}

.site-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.current-site {
  background-color: #27272a;
  color: #f1f1f1 !important;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 100%;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-navigation a {
  text-decoration: none;
  color: #27272a;
}

footer {
  background-color: #27272a;
  padding: 20px 20px 40px 20px;
}

.footer_container {
  display: flex;
  justify-content: flex-start;
  gap: 80px;
  margin: 0 5% 0 5%;
}

.footer_container img {
  width: 100px;
}

.optimalcars_container {
  width: 40%;
  margin-left: 50px;
}

.optimalcars_container p {
  color: white;
  font-weight: 100;
  margin-top: 30px;
  font-size: 0.7rem;
}

.footer_container h2 {
  color: white;
  font-size: 1.1rem;
}

.footer_container ul {
  padding: 0;
}

.footer_container ul li {
  list-style: none;
}

.footer_container ul li a {
  font-weight: 100;
  color: white;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .footer_container {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    margin: 0 5% 0 5%;
  }

  .optimalcars_container {
    margin-left: 0;
    width: 100%;
  }

  footer {
    padding: 20px 20px 40px 0px;
  }

  .nav-ham a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
    display: inline-block;
    margin-top: 1em;
    transition: color 0.2s ease-in-out;
    letter-spacing: 1px;
    font-weight: 100;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .optimalcars_container {
    width: 40%;
    margin-left: 0px;
  }
}
