@font-face {
  font-family: "Inter";
  src: url(fonts/Inter-Regular.ttf);
  font-weight: normal;
}

@font-face {
font-family: "Inter";
src: url(fonts/Inter-Medium.ttf);
font-weight: medium;
}

@font-face {
font-family: "Inter";
src: url(fonts/Inter-Bold.ttf);
font-weight: bold;
}

@font-face {
  font-family: "Space Grotesk";
  src: url(fonts/SpaceGrotesk-Light.ttf);
  font-weight: light;
}

@font-face {
  font-family: "Space Grotesk";
  src: url(fonts/SpaceGrotesk-Regular.ttf);
  font-weight: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url(fonts/SpaceGrotesk-Medium.ttf);
  font-weight: medium;
}

@font-face {
  font-family: "Space Grotesk";
  src: url(fonts/SpaceGrotesk-SemiBold.ttf);
  font-weight: semibold;
}

@font-face {
  font-family: "Space Grotesk";
  src: url(fonts/SpaceGrotesk-Bold.ttf);
  font-weight: bold;
}

:root {
  --min-width: 640px;
  --med-width: 960px;
  --max-width: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  padding: 24px;
  font-family: "Inter";
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: center;
  align-items: center;
  /*   border: 2px solid #dadada;
    padding: 24px;
    border-radius: 12px; */
}

.header-items-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.profile-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.profile-container > a {
  text-decoration: none;
}

.profile-container > a:first-child {
  color: black;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.5px;
  font-size: clamp(1rem, 0.9565rem + 0.2174vi, 1.125rem);
}

.profile-name {
  font-weight: bold;
}

.profile-job {
  color: #7d7d7d;
}

nav {
  display: flex;
  background-color: #f3f3f3;
  border-radius: 12px;
  padding: 8px;
}

nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  list-style-type: none;
  gap: 8px;
}

nav ul li {
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul a {
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  color: #7d7d7d;
  padding: 8px 12px;
  text-align: center;
}

nav > ul > li:last-child {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

main {
  margin-block: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-container {
  width: 100%;
  max-width: var(--med-width);
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 24px;
}

.about-container > img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 3/4;
  transition: transform .2s;
}

.about-container > img:hover {
    transform: rotate(-2deg);
}

.about-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-text {
  font-size: 20px;
  margin-bottom: 24px;
  line-height: 160%;
  color: #828282;
}

.info-text h1 {
  margin-bottom: 24px;
}

.link svg {
  fill: orange;
}

.link a {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-block: 8px;
  font-weight: bold;
  color: orange;
  text-decoration: none;
}

.link {
  border-bottom: 1px solid #dddddd;
}

.link:last-child {
  border-bottom: none;
}

.link > a > svg {
  width: 20px;
  height: 20px;
}

/* .link-mail a {
  color: black;
}

.link-mail svg {
  fill: black;
} */

.cv {
  width: 100%;
  max-width: var(--med-width);
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 24px;
  margin-top: 60px;
}

.cv h2 {
  margin-bottom: 24px;
  color: #828282;
  font-size: 30px;

}

/* .education {
    grid-column: span 1;
} */

.experience {
  grid-column: 2 / span 2;
}

.education-info-container {
  margin-bottom: 36px;
}

.education-info-container span {
  display: block;
  margin-bottom: 2px;
}

.education-info-container span:first-child {
  font-weight: bold;
}

.education-info-container span:nth-child(2) {
  font-weight: bold;
  color: #7d7d7d;
}

.education-info-container span:nth-child(3) {
  font-weight: 200;
}

.experience-first-line {
  margin-bottom: 4px;
}

.experience-first-line span:first-child {
  font-weight: bold;
  display: inline;
}

.experience-first-line span:nth-child(2) {
  font-weight: bold;
  color: #7d7d7d;
  display: inline;
}

.experience-info-container > span {
  display: block;
  margin-bottom: 4px;
}

.experience-info-container > span:nth-child(2) {
  font-weight: 200;
}

.experience-info-container {
  margin-bottom: 36px;
}

footer span {
  display: block;
  margin-top: 48px;
  font-size: 14px;
  color: #7d7d7d;
  text-align: center;
}

footer a {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #7d7d7d;
  text-align: center;
}

@media (max-width: 900px) {
  .about-container {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cv {
    display: grid;
    grid-template-columns: 1fr;
  }

  .experience {
    grid-column: 1;
  }
}

@media (max-width: 750px) {
  .header-items-container {
    display: flex;
    flex-direction: column;
  }

  header {
    height: auto;
  }

  nav {
    margin-top: 24px;
    justify-content: center;
  }

  nav ul {
    width: -webkit-fill-available;
  }

}
