* {
  font-family: "Josefin Sans", sans-serif;
  color: #222222;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  scroll-behavior: smooth;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  padding: 2rem;
  line-height: 1.6;
  font-size: 16px;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
}

img {
  border-radius: 50%;
  border: 1px solid #222222;
  width: 140px;
  height: 140px;
  object-fit: cover;
  margin-bottom: 1rem;
}

h1 {
  color: rgb(195, 63, 63);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

h4 {
  color: #222222;
  font-weight: 200;
  font-style: italic;
}
.toggles {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;

  position: fixed;
  top: 1rem;
  left: 1rem;
}
#downloadCV {
  left: 6rem;
}

#lang {
  left: 1rem;
}

#lang,
#downloadCV {
  padding: 0.75rem 1.5rem;

  background-color: #ffffff;
  color: #555;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;

  min-width: fit-content;
  min-height: 40px;
}

#lang:hover,
#downloadCV:hover {
  background-color: #f5f5f5;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#lang:active,
#downloadCV:active {
  transform: translateY(1px);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.fade {
  opacity: 0;
  transition: opacity 0.01s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.navList {
  position: fixed;
  left: 2rem;
  top: 6rem;

  display: flex;
  flex-direction: column;
  align-items: start;
}

.navList a:hover {
  color: rgb(195, 63, 63);
}

.jobTitle {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.3rem;
  color: #666666;
  letter-spacing: 1px;
  font-style: italic;
}

.description {
  text-align: center;
  max-width: 60ch;
  padding: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  color: #555;
}

.section {
  width: 100%;
  max-width: 800px;
  text-align: left;
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  text-align: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.typeOf {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: flex-start;
  gap: 1rem;
}

.typeOfLeft h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.typeOfRight {
  font-size: 0.9rem;
  color: gray;
  font-style: italic;
  text-align: right;
}

p {
  font-weight: 300;
  color: #555;
  margin-bottom: 0.5rem;
}

a {
  font-weight: 400;
  color: #555;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.skillsHobbies {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1fr, 2); /* Automatically adjust columns */
  justify-content: center; /* Center align the grid */
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul li {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
  color: #555;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

ul li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.links a {
  text-decoration: none;
  color: #222222;
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.3s;
}

.links a:hover {
  color: rgb(195, 63, 63);
}

.jobDescrption {
  padding: 1rem 0 0 0;
  font-weight: 300;
  color: #555;
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 2rem 0 1rem;
}

canvas {
  z-index: -1;
  position: fixed;
  top: 0;
}

@media screen and (max-width: 768px) {
  .skillsHobbies {
    display: flex;
    flex-direction: column;
  }
  header img {
    display: none;
  }
  header {
    margin-top: 5rem;
  }

  .navList {
    display: none;
  }
  h1 {
    font-size: 2.5rem;
  }

  .jobTitle {
    font-size: 1.1rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  ul {
    display: block;
    gap: 1rem;
  }

  .links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
