
.site_nav {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav_height);
}




.nav_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav_links {
  display: flex;
  gap: 92px;
}

.nav_links a {
  font-size: 26px;
  font-weight: 500;
  color: var(--bg_and_main);
  text-decoration: none;
}

.nav_links a:hover {
  color: var(--secondary);
}

#me,
#skills,
#projects,
#contact {
  scroll-margin-top: calc(2 * var(--nav_height));
}

.why_me_section,
.skills_section,
.projects_section,
.contact_section {
  margin-top: 104px;
}

.why_me_section,
.skills_section {
  padding: 0 124px;
}

.why_me_section,
.skills_section,
.projects_section {
  display: flex;
  flex-direction: column;
}

.section_title {
  font-size: 60px;
  color: var(--primary);
  text-align: center;
}

.why_me_grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 80px;
  color: var(--secondary);
  gap: 40px;
}

.why_me_location {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 30px;
  font-weight: 700;
  width: max(45%, 200px);
}

.why_me_location img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.section_cta_row {
  align-self: end;
  margin-top: 24px;
}

.why_me_text {
  width: 45%;
}

.why_me_text,
.reference_text {
  text-wrap: balance;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.references_section {
  margin-top: 80px;
  color: var(--secondary);
}

.references_title {
  margin: 0 0 56px;
  font-size: 32px;
  text-align: center;
  color: var(--primary);
}

.references_grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.references_grid .reference_card {
  width: 320px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex: 0 0 320px;
}

.references_grid .reference_card::before {
  display: none !important;
  content: none !important;
}

.reference_egg {
  position: relative;
  width: 320px;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reference_egg_bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/team_bevore.svg") no-repeat center center;
  background-size: contain;
  transition: transform 180ms ease, background-image 180ms ease;
  transform-origin: center;
  z-index: 0;
}

.reference_card:hover .reference_egg_bg {
  background-image: url("../assets/img/skill_shape_default_opac0.2.svg");
  transform: rotate(-8deg);
}

.reference_content {
  position: relative;
  z-index: 1;
  width: 72%;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.reference_content h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: #f6e7cf;
}

.reference_project {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #f6e7cf;
}

.reference_project .color_lightblue {
  color: var(--primary) !important;
}

.reference_text {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #f6e7cf;
  text-wrap: balance;
}

.reference_content a {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
}

.contact_section {
  max-inline-size: 920px;
  margin-inline: auto;
  position: relative;
}

.contact_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
  color: var(--secondary);
  margin-top: 40px;
}

.contact_details {
  display: flex;
  flex-direction: column;
  text-align: end;
  gap: 16px;
}

.contact_link {
  color: #f6e7cf;
  font-weight: 700;
  text-decoration: none;
}

.contact_form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-top: 40px;
}

.contact_form_field {
  display: flex;
  flex-direction: column;
}

.form_stretch {
  grid-column: 1 / -1;
}

.form_label {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 8px;
}

.form_group {
  width: 100%;
  min-height: 60px;
  border-radius: 30px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--secondary);
  padding: 16px 24px;
  outline: none;
}

.textarea_height {
  min-height: 140px;
  resize: none;
  border-radius: 28px;
}

.form_policy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form_checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form_policy_label {
  color: #f6e7cf;
  font-size: 14px;
  line-height: 1.4;
}

.form_policy_label a {
  color: var(--primary);
  text-decoration: underline;
}

.error_message_text {
  min-height: 20px;
  color: #f6e7cf;
  font-size: 14px;
}

.form_button_row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.form_button {
  min-width: 120px;
  height: 48px;
  border-radius: 30px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  transition: background-color 125ms ease-in-out, color 125ms ease-in-out;
  cursor: pointer;
}

.form_button:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.contact_btn_up {
  position: absolute;
  right: -90px;
  top: 80px;
  display: inline-flex;
}

.contact_btn_up .ignore_fill {
  fill: var(--primary);
}

@media (max-width: 1200px) {
  .why_me_section,
  .skills_section {
    padding: 0 56px;
  }

  .nav_links {
    gap: 48px;
  }
}

@media (max-width: 1100px) {
  .references_grid .reference_card {
    width: 290px;
    flex: 0 0 290px;
  }

  .reference_egg {
    width: 290px;
    height: 382px;
  }

  .reference_content {
    max-width: 200px;
  }

  .contact_btn_up {
    right: 0;
  }
}

@media (max-width: 960px) {
  .site_nav {
    display: none;
  }

  .why_me_section,
  .skills_section {
    padding: 0;
  }

  .why_me_grid {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .why_me_location,
  .why_me_text {
    width: 100%;
  }

  .section_cta_row {
    align-self: center;
  }

  .contact_grid {
    grid-template-columns: 1fr;
  }

  .contact_details {
    text-align: start;
  }

  .contact_form {
    grid-template-columns: 1fr;
  }

  .form_button_row {
    justify-content: center;
  }

  .contact_btn_up {
    position: static;
    margin-top: 32px;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .layout_container {
    padding: 0 20px;
  }

  .section_title {
    font-size: 42px;
  }

  .why_me_location {
    font-size: 20px;
  }

  .why_me_location img {
    width: 34px;
    height: 34px;
  }

  .references_title {
    font-size: 26px;
    margin-bottom: 36px;
  }

  .references_grid .reference_card {
    width: 250px;
    flex: 0 0 250px;
  }

  .reference_egg {
    width: 250px;
    height: 330px;
  }

  .reference_content {
    width: 72%;
    max-width: 170px;
    gap: 8px;
  }

  .reference_content h4 {
    font-size: 20px;
  }

  .reference_project {
    font-size: 14px;
  }

  .reference_text {
    font-size: 13px;
    line-height: 1.28;
  }

  .reference_content a {
    font-size: 14px;
  }
}

.hero_logo_block .brand_role.color_lightblue,
.hero_logo_mobile .brand_role.color_lightblue {
  color: #89BCD9 !important;
}


.nav_row {
  display: grid;
  grid-template-columns: 160px 1fr 88px;
  align-items: center;
  column-gap: 24px;
}

.nav_links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 92px;
}

.nav_language.language_switch_icon {
  position: relative;
  width: 88px;
  min-width: 88px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-self: end;
}

.nav_language .language_switch_egg {
  position: absolute;
  top: 50%;
  left: 68px;
  width: 34px;
  height: 24px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: left 180ms ease-in-out;
  z-index: 0;
  pointer-events: none;
}

.nav_language.language_switch_icon[data-active="de"] .language_switch_egg {
  left: 20px;
}

.nav_language.language_switch_icon[data-active="en"] .language_switch_egg {
  left: 68px;
}

.language_nav_tab {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--bg_and_main);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.language_nav_tab.active {
  color: var(--secondary);
}