.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5em 0em 2em 0em;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.cardbg {
  background-color: rgba(65, 60, 70, 0.4);
  border-radius: 1.2em;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  align-self: center;
}
.cardbg ul {
  padding: 1em;
}

.workitems {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5em 0em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.workitems h2 {
  padding: 1em;
}
.workitems p {
  padding: 1em;
}

.contactez-bttn {
  display: inline;
  font-weight: bold;
  border-radius: 0.5em;
  padding: 0.5em 2em;
}
.contactez-bttn:hover {
  transform: scale(0.98);
}

.contactez-bttn {
  background-color: #8A53E9;
  color: #f7f7f7 !important;
}
.contactez-bttn:hover {
  background-color: #f7f7f7;
  color: #070707 !important;
}
.contactez-bttn:active {
  background-color: #8A53E9;
  color: #f7f7f7 !important;
  color: rgb(64.6958762887, 18.4845360825, 144.5154639175);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #f7f7f7;
  background-color: #12121A;
}
body p {
  color: #cecece;
}
body li {
  color: #cecece;
}

.homepage {
  background-image: linear-gradient(to right, rgba(127, 179, 213, 0.3) 0%, rgba(92, 125, 168, 0.3) 40%, rgba(47, 63, 115, 0.3) 70%, rgba(13, 12, 59, 0.3) 100%), url("/img/black.png");
}

a {
  text-decoration: none;
  font-size: 0.9em;
}

h1, h2, h3 {
  font-family: "Orbitron", sans-serif;
}

h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8em;
  line-height: 1.6;
  padding-bottom: 1em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.show-case {
  padding: 2em 2em;
}
.show-case nav {
  width: 30em;
  padding: 0.6em;
  background-color: #070707;
  align-content: center;
  border-radius: 1em;
  text-align: center;
}
.show-case nav ul {
  list-style-type: none;
}
.show-case nav li {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.show-case nav a {
  color: #f7f7f7;
  font-weight: bold;
  padding: 1em;
}
.show-case nav a:hover {
  background-color: #8A53E9;
  color: #f7f7f7;
  padding: 1em;
  border-radius: 1em;
  transform: scale(0.98);
}
.show-case nav a:active {
  color: #8A53E9;
}
.show-case nav img {
  max-width: 1.5em;
}
.show-case-navbar {
  padding-top: 1em !important;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
.show-case-hero {
  padding-top: 15em;
  display: flex;
  justify-content: space-between;
}
.show-case-hero span {
  font-size: 1.2em;
  font-weight: 200;
}
.show-case-hero p {
  font-size: 2em;
  font-weight: 400;
}
.show-case-hero h1 {
  font-optical-sizing: 1em;
  letter-spacing: 0.15em;
  font-style: normal;
  font-size: 4em;
  font-weight: 900;
  line-height: 1.5;
}
.show-case-hero img {
  width: 20em;
  height: auto;
}

.cardbg {
  padding: 3em;
}
.cardbg .card-content {
  max-width: 50%;
  max-height: 75%;
  padding: 1em;
}
.cardbg .card-content h3 {
  font-size: 1.8em;
}
.cardbg .card-content p {
  font-size: 1.1em;
  width: 85%;
  margin: 1em 0;
}
.cardbg .card-content span {
  line-height: 4;
  word-spacing: 30px;
  padding: 1em;
  border: solid 2px #cecece;
  border-radius: 0.5em;
}
.cardbg .card-content a {
  margin-top: 10em;
  padding: 1em 2em;
}
.cardbg .card-content .hometext {
  padding: 1em 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.projects-grid a {
  overflow: hidden;
}
.projects-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.projects-grid img:hover {
  transform: scale(1.1);
}

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

footer {
  margin-top: 8em;
  background-color: black;
}
footer .container {
  max-width: 300px;
  padding: 2em;
  justify-content: space-evenly;
}
footer .logofot {
  max-width: 7em;
}

.navbar.scrolled {
  background: rgba(17, 24, 39, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .cardbg {
    flex-direction: column;
    height: unset;
    padding: 1em 0.5em;
  }
  .cardbg .card-content {
    max-width: 100%;
  }
  .cardbg .card-content .hometext span {
    margin: 0.2em;
    line-height: 3;
    padding: 0.5em;
    border: solid 1px #f7f7f7;
  }
  .container {
    padding: 1rem !important;
  }
  h1 {
    font-size: clamp(2rem, 5vw, 4rem);
  }
  nav ul li {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .show-case-hero {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .projects-grid {
    display: flex;
    flex-direction: column;
  }
  .burger {
    display: block;
    padding: 0em 1em;
    margin: auto;
  }
  .nav-menu {
    display: none !important;
  }
  .nav-menu.active {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
    margin: auto;
    max-width: 80%;
  }
  .show-case-navbar {
    padding: 0em !important;
    margin-bottom: 1em;
    position: fixed;
    top: 0px;
    transform: translateX(-50%);
    z-index: 1000;
  }
  .workitems {
    padding: 2em 0em;
  }
  .show-case {
    padding-top: 4em;
  }
}