html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #1b1b1d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s;
}

header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 20px;
  transition: background-color 0.3s;
}

.logo {
  position: absolute;
  left: 2%;
  top: 27%;
  width: 100px;
}

.logo_link {
  color: white;
  margin-top: -100px;
}

.link {
  color: black;
  font-weight: 200;
  text-decoration: none;
  margin-left: 40px;
  font-size: 1.1rem;
}

.link {
  position: relative;
  overflow: hidden;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.3s;
}

.link:hover::before {
  width: 100%;
}

.link.scroll_effect::before {
  background-color: white;
}

#toggle {
  display: none;
}

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

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

.white-bun {
  background-color: white !important;
}

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

.nav-wrapper {
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  height: 100%;
  margin-top: 40%;
  flex-direction: column;
}

.nav-ham a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1.6rem;
  display: inline-block;
  flex-direction: column;
  margin-top: 1em;
  transition: color 0.2s ease-in-out;
  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%;
}

#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;
}

.ham-link {
  color: white !important;
}

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

  .language-switch {
    display: none;
  }

  .globe_icon {
    display: none;
  }

  .hamburger-menü {
    display: block;
  }

  header nav {
    padding: 45px;
  }

  header nav {
    display: block;
    justify-content: flex-end;
    align-items: center;
    transition: background-color 0.3s;
  }

  .nav-ham a {
    display: block;
  }

  .logo {
    width: 130px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  header nav {
    padding: 50px;
  }

  header nav {
    padding: 45px;
  }

  header nav {
    display: block;
    justify-content: flex-end;
    align-items: center;
    transition: background-color 0.3s;
  }

  .nav-ham a {
    display: block;
  }

  .hamburger-menü {
    display: block;
  }

  .link {
    display: none;
  }
}

main {
  margin-top: 15%;
  margin-left: 5%;
  margin-right: 5%;
}

h1 {
  color: white;
  margin-top: 5%;
  font-weight: 500;
  font-size: 2.5rem;
}

.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;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.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: 80px;
  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: 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: 30%;
    text-align: center;
  }

  .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%;
  }
}
