/* fonts for the texts*/
.orbitron-heading {
  font-family: "Orbitron", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.orbitron-h2 {
  font-family: "Orbitron", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.dm-sans-normal {
  font-family: "DM Sans", serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.dm-sans-thick {
  font-family: "DM Sans", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.orbitron-normal {
  font-family: "Orbitron", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin-top: 10px;
  padding-left: 10px;
}

html {
  scroll-behavior: smooth;
}

/* background color of the body */
body {
  background-color: #191919;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  z-index: 1;
}

header p.orbitron-heading {
  color: #e73a3a;
  font-size: 1.3rem;
}

header h1.orbitron-heading {
  margin-right: 0;
}

nav {
  display: flex;
}

/* header links */
ul {
  list-style: none;
  margin-right: 2rem;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #d8d8d8;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  color: rgb(255, 7, 7);
}

/* main image at the top (hero) & text  */
.hero {
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  gap: 10px;
  height: 50vh;
  text-align: center;
  position: relative;
}

.hero img {
  width: 100%;
  height: 100%;
  opacity: 0.4;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero .content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  z-index: 1;
  text-align: left;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 2.5rem;
  animation: fadeIn 1.5s ease-in-out;
}

/* main */
.company-section {
  color: #edecec;
  padding: 3rem 2rem;
  padding-right: 9rem;
  text-align: left;
}

.company-text {
  max-width: 900px;
  margin: 0 auto;
}

.company-text h2 {
  font-size: 1.7rem;
  color: #ffc633;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.company-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.job-section {
  background-color: #303030;
  color: #edecec;
  padding: 3rem 2rem;
  text-align: left;
}

.job-text {
  max-width: 1000px;
  margin: 0 auto;
}

.job-text h2 {
  font-size: 1.7rem;
  color: #ffc633;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.job-did {
  color: #acaaaa;
  font-size: 1.2rem;
}

.job-text p {
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 300;
}

.bilder-section {
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.bilder-title {
  color: #ffc633;
  font-size: 1.8rem;
  font-weight: 700;
}

.bilder-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bilder-track-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0)
  );
  transition: height 0.5s ease-in-out;
}

.bilder-track {
  display: flex;
}

.bilder-slide {
  flex: 0 0 33.3333%;
  box-sizing: border-box;
  padding: 0.5rem;
}

.bilder-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.bilder-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 2;
}

.bilder-btn img {
  width: 2rem;
  height: 2rem;
}

.bilder-btn.left,
.bilder-btn.right {
  top: 50%;
  transform: translateY(-50%);
}

.bilder-btn.left {
  left: clamp(0.5rem, 2vw, 2rem);
}

.bilder-btn.right {
  right: clamp(0.5rem, 2vw, 2rem);
}

/* open up pictures and close */
/* Modal base styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  padding: 1rem;
  transition: color 0.3s ease;
  border-radius: 20px;
}

.nav-btn:hover {
  background-color: #ff4f4f;
}

.nav-btn.left {
  left: 2rem;
}

.nav-btn.right {
  right: 2rem;
}

/* fill in form */
.fill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 75vh;
  flex-wrap: wrap;
  padding-right: 14rem;
}

.fill-in {
  color: #ffc633;
  font-size: 1.8rem;
  font-weight: 700;
  padding-left: 8rem;
  padding-bottom: 10rem;
}

form {
  background: white;
  padding: 1rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 1rem;
  border: 1px solid #7e7a7a;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: #f9fafe;
  transition: border 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #1f1f21;
  outline: none;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  padding: 1rem;
  background: #b40b1f;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #ed808b;
}

/* footer */
footer {
  margin-top: auto;
  text-align: left;
  border-top: 1px solid black;
  color: #cecccc;
}

.contact-section {
  padding: 1rem 1rem;
}

h3 {
  color: #e73a3a;
  font-size: 1rem;
  padding-bottom: 2rem;
}

/* responsive design smaller screen */

@media screen and (max-width: 1500px) and (min-width: 1250px) {
  .bilder-slide {
    flex: 0 0 33.3333%; /* 3 images per view */
  }
}

@media screen and (max-width: 1250px) and (min-width: 720px) {
  header {
    margin-bottom: 2.2rem;
  }

  header p.orbitron-heading {
    font-size: 1.7rem;
  }

  nav a {
    padding-top: 0.5rem;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 1250px) and (min-width: 541px) {
  .bilder-slide {
    flex: 0 0 50%; /* 2 images per view */
  }

  .hero {
    display: grid;
    place-items: center;
    grid-template-columns: 1fr;
    height: 30vh;
    text-align: center;
    padding: 1rem;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .hero .content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    padding: 1rem;
    max-width: 100%;
  }

  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
  }

  .hero h1 {
    font-size: 2rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .company-section {
    padding: 2rem 1rem;
    text-align: center;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .company-text {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 1rem;
  }

  .company-text p {
    font-size: 1.5rem;
  }

  .company-text h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }

  .job-section {
    padding: 2rem 1rem;
    text-align: center;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .job-text {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 1rem;
  }

  .job-text h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }

  .job-did,
  .job-text p {
    font-size: 1.6rem;
    line-height: 1.4;
  }
}

@media screen and (max-width: 720px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  header * {
    max-width: 100%;
    text-align: center;
  }

  nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  header p.orbitron-heading {
    font-size: 2rem;
  }

  nav a {
    font-size: 1.6rem;
  }
}

/* min size for a screen */
@media screen and (min-width: 370px) and (max-width: 540px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  header * {
    max-width: 100%;
    text-align: center;
  }

  nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  header p.orbitron-heading {
    font-size: 1.5rem;
  }

  nav a {
    font-size: 1rem;
  }

  .hero {
    display: grid;
    place-items: center;
    grid-template-columns: 1fr;
    height: 40vh;
    text-align: center;
    padding: 1rem;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .hero .content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    padding: 1rem;
    max-width: 100%;
  }

  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
  }

  .hero h1 {
    font-size: 2rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .company-section {
    padding: 2rem 1rem;
    text-align: center;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .company-text {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 1rem;
  }

  .company-text h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .job-section {
    padding: 2rem 1rem;
    text-align: center;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .job-text {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 1rem;
  }

  .job-text h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .job-did,
  .job-text p {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .bilder-slide {
    flex: 0 0 100%;
  }

  .bilder-title {
    justify-content: center;
  }

  .fill {
    flex-direction: column;
    align-items: center;
    padding-right: 1rem;
    min-height: auto;
  }

  .fill-in {
    padding-left: 0;
    padding-bottom: 3rem;
    text-align: center;
    font-size: 1.6rem;
    max-width: 90%;
  }

  form {
    max-width: 100%;
    width: 90vw;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 540px) {
  .bilder-container,
  .bilder-track-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
  }
}

@media screen and (max-width: 490px) {
  .bilder-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    right: 1.5rem;
  }
}

@media screen and (max-width: 452px) {
  .bilder-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    right: 1.7rem;
  }
}

@media screen and (max-width: 420px) {
  .bilder-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    right: 2.4rem;
  }
}

@media screen and (max-width: 410px) {
  .bilder-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    right: 2.9rem;
  }
}

@media screen and (max-width: 390px) {
  .bilder-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    right: 3.5rem;
  }
}

@media screen and (min-width: 560px) and (max-width: 1280px) {
  .fill {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding-right: 4rem;
    min-height: auto;
    gap: 2rem;
    flex-wrap: nowrap;
  }

  .fill-in {
    padding-left: 0;
    padding-bottom: 0;
    text-align: left;
    font-size: 1.6rem;
    max-width: 45%;
  }

  form {
    max-width: 420px;
    width: 45%;
    box-sizing: border-box;
  }
}

@media screen and (min-width: 370px) and (max-width: 620px) {
  .fill {
    flex-direction: column;
    align-items: center;
    padding-right: 1rem;
    min-height: auto;
  }

  .fill-in {
    padding-left: 0;
    padding-bottom: 3rem;
    text-align: center;
    font-size: 1.6rem;
    max-width: 90%;
  }

  form {
    max-width: 100%;
    width: 90vw;
    box-sizing: border-box;
  }
}

@media screen and (min-width: 621px) and (max-width: 1300px) {
  .fill {
    flex-direction: column;
    align-items: center;
    padding-right: 1rem;
    min-height: auto;
  }

  .fill-in {
    padding-left: 0;
    padding-bottom: 3rem;
    text-align: center;
    font-size: 1.6rem;
    max-width: 90%;
  }

  form {
    max-width: 100%;
    width: 70vw;
    box-sizing: border-box;
  }
}

@media screen and (min-width: 370px) and (max-width: 1300px) {
  .contact-section p {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }
}
