.d-none {
  display: none;
}

.green-bg {
  background-color: rgb(101, 126, 46, 0.9);
}

.yellow-bg {
  background-color: rgb(179, 99, 9, 0.9);
}

.grey-bg {
  background-color: rgba(139, 131, 120, 0.8);
}

.green-knit-bg {
  background-image: url("/assets/green-knit-2a681835.jpg");
  background-size: cover;
}

.yellow-knit-bg {
  background-image: url("/assets/yellow-knit-f3131fe7.jpg");
  background-size: cover;
  padding: 10px;
}

.grey-knit-bg {
  background-image: url("/assets/grey-knit-489d049d.jpg");
  background-size: cover;
  padding: 10px;
}

.portfolio-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

#name {
  color: white;
  font-size: 7em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.subheading {
  color: white;
  font-size: 2.5em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-top: 0;
  font-style: italic;
}

.contact-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.navigation-icon {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  display: flex;
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  display: flex;
}

.contact-label {
  color: white;
  font-size: 0.9em;
  margin-top: 5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 15px;
}

.block {
  position: relative;
  z-index: 1;
  height: 90vh;
  display: flex;
  width: 90vw;
  margin: auto auto;
  margin-top: 5vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.inverted {
  filter: invert(100%);
}

.project-image {
  width: 100px;
  height: auto;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-card {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 10px;
  border: solid 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.section[data-anchor="projects"] > .slide {
  display: none;
}

@media (min-width: 769px) {
  .section[data-anchor="projects"] {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-projects {
    display: flex;
  }
  .mobile-projects {
    display: none !important;
  }
}

.project-slide {
  justify-content: flex-start;
  box-sizing: border-box;
  padding-top: 72px;
  padding-bottom: 72px;
}

.project-slide-content {
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: space-around;
  gap: 12px;
}

.projects-title {
  color: white;
  font-size: 2rem;
  text-align: center;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.project-slide-caret {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
  padding: 6px;
}

.project-slide-caret-left {
  left: 8px;
}

.project-slide-caret-right {
  right: 8px;
}

.project-slide .vertical-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.project-slide .up-arrow {
  top: 16px;
}
.project-slide .down-arrow {
  bottom: 16px;
}

.project-slide .section-nav-link[aria-label="Previous section"],
.project-slide .section-nav-link[aria-label="Next section"] {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
}
.project-slide .section-nav-link[aria-label="Previous section"] {
  top: 16px;
}
.project-slide .section-nav-link[aria-label="Next section"] {
  bottom: 16px;
}

.vertical-arrow {
  position: absolute;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
  .portfolio-section {
    flex-direction: column;
    padding: 10px;
  }

  .desktop-projects {
    display: none !important;
  }

  .mobile-projects {
    display: flex;
    width: 100%;
  }

  .section[data-anchor="projects"] {
    min-height: 80vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  #name {
    font-size: 4em;
  }

  .subheading {
    font-size: 1.5em;
    text-align: center;
  }

  .contact-icons {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    margin: 10px 0;
  }

  .project-card {
    width: 60vw;
    margin: 10px auto;
  }

  .projects-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding-bottom: 24px;
  }

  .section[data-anchor="projects"] > .slide {
    display: flex;
  }

  .block {
    height: auto;
    min-height: 80vh;
    margin: 0;
  }

  .vertical-arrow {
    position: relative;
  }

  .desktop-only {
    display: none !important;
  }

  .contact-icon {
    width: 30px;
    height: 30px;
  }

  #resume-link {
    margin-bottom: 30px;
  }

  #name {
    margin-bottom: 10px;
    text-align: center;
    font-size: 3em;
  }
}
