.header {
  background-color: var(--primary);
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-around;
  margin: 0 auto;
  padding: 2rem;
}

.nav ul,
.contacts ul {
  display: flex;
  gap: 1rem;
}

.nav a {
  font-size: 1.2rem;
  position: relative;
}

/*underline effect*/
.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--primary-light);
  font-family: 'Geist Medium', Arial, Helvetica, sans-serif;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
  min-height: 100vh;
}

.image_container {
  align-self: center;
  border-radius: 50%;
  height: 300px;
  overflow: hidden;
  width: 300px;
}

.card_image_container {
  align-self: center;
  border: 4px solid var(--border);
  height: 300px;
  overflow: hidden;
  width: 300px;
}

/*ORDER OF CSS MATTERS HERE*/
.image_container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*ORDER OF CSS MATTERS HERE*/
.card_image_container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.intro_content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding: 1rem 1.5rem;
}

.intro_name {
  letter-spacing: 0.2rem;
  margin: 1rem 0rem;
  text-transform: uppercase;
}

.intro_title {
  letter-spacing: 0.2rem;
  margin: 0;
}

.intro_description {
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.btn {
  border-radius: 4px;
  padding: 1rem;
  text-decoration: none;
}

.btn_project {
  background: var(--primary-light);
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
}

.btn_project:hover {
  background: var(--primary-dark);
  color: var(--background);
}

.btn_contact {
  border: 1px solid var(--primary-dark);
  color: var(--primary-dark)
}

.intro_visuals {
  align-items: center;
  background: linear-gradient(135deg, #f5a3a3, #9b8cff);
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 60vh;
  overflow: hidden;
  position: relative;
}

.intro_blob {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.654);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: float 8s ease-in-out infinite;
}

.main {
  margin: 0 auto;
  padding: 2rem;
}

.about,
.projects,
.skills {
  margin-bottom: 2rem;
}

.section_title {
  letter-spacing: 0.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.section_title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-dark);
  margin-top: 0.5rem;
}

.about p {
  text-align: justify;
}

.about_wrapper,
.skills_container,
.contacts_contents {
  margin: 1.5rem 1rem;
}

.skills_container,
.contacts_contents {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-around;
}

.skills_container h3 {
  margin-top: 0;
}

.card {
  background-color: var(--primary-light);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-bottom: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card_name {
  font-size: 1.3rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.card_description {
  margin-top: 1rem;
  text-align: center;
}

.card_tech,
.highlights {
  margin-left: 0.5rem;
}

.label {
  font-size: 1.1rem;
  margin: 0.7rem 0rem;
}

.view_repo:hover,
.view_demo:hover {
  color: var(--primary);
}

.skills_card {
  gap: 0.5rem;
}

.skills_card h4,
.skills_card ul {
  margin-bottom: 0.5rem;
}

.skills_card li {
  margin-bottom: 0.5rem;
  margin-left: 1rem;
}

.contacts ul {
  margin-top: 1rem;
}

.contact_buttons,
.card_actions_wrapper {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.contact_buttons a {
  background-color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  color: var(--background);
  font-size: 1rem;
  letter-spacing: 0.1rem;
  padding: 1rem;
  text-transform: uppercase;
}

.contact_buttons a:hover {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-light);
  color: var(--background);
  cursor: pointer;
}

.form {
  padding: 1rem;
  text-align: left;
}

.form input:required:focus {
  border: 5px solid var(--error);
}

.user_input {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.form textarea {
  height: 30vh;
  width: 100%;
}

.submit {
  background-color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
  color: var(--background);
  cursor: pointer;
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
}

.submit:hover {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-light);

}

.form_status {
  margin-top: 1rem;
  font-size: 1rem;
}

.success {
  color: var(--primary-dark)
}

.loading_container {
  color: var(--primary-dark);
  text-align: center;
}

.hidden {
  display: none;
}

.footer {
  background-color: var(--primary);
  border-top: 1px solid var(--border);
  color: var(--text-dark);
  padding: 2rem;
  text-align: center;
}

.state_container {
  text-align: center;
}

.error {
  color: #8d0801;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

@media screen and (min-width:769px) {
  .nav {
    justify-content: flex-end;
  }

  .nav ul {
    gap: 2rem;
  }

  .intro,
  .skills_container,
  .contacts_contents {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact_buttons {
    flex-direction: row;
  }

  .form {
    margin: 0.5rem 1rem;
  }

  .left_contents {
    flex: 2;
  }

  .right_contents {
    flex: 1;
    align-self: center;
  }

  .intro_content {
    padding: 1.5rem;
  }

  .intro_visuals {
    min-height: 100vh;
  }

  .btn {
    padding: 1rem 1.5rem;
  }

  .main {
    padding: 3rem;
  }

  .about_wrapper {
    margin: 1rem 6rem;
  }

  .card {
    margin: 2rem 1.5rem;
  }

  .card_image_container {
    width: 650px;
    height: 500px;
  }

  .skills_card {
    gap: 2rem;
  }

  .skills_card li {
    margin-left: 0;
  }

}