body {
  margin: 0px;
  background-color: #cdf0ea;
  text-align: center;
  font-family: "Merriweather", "Trebuchet MS", Verdana, sans-serif;
  color: #40514e;
}

a {
  color: #11999e;
  margin: 10px 20px;
  text-decoration: none;
}

a:hover {
  color: #eaf6f6;
}

.copyright {
  color: #eaf6f6;
  font-size: 0.75rem;
  padding: 20px 0;
}

hr {
  border: none;
  border-color: #eaf6f6;
  border-top-style: dotted;
  width: 6%;
  height: 1px;
  border-width: 14px;
  margin: 60px auto;
}

h1 {
  /* recenters the h1*/
  margin: 50px auto 0 auto;
  font-size: 90px;
  font-family: "Sacramento", Arial, sans-serif;
  color: #66bfbf;
  line-height: 2;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  color: #66bfbf;
  font-weight: normal;
}

h3 {
  font-family: "Montserrat", sans-serif;
  color: #11999e;
}

.programming-photo {
  padding-top: 6%;
  width: 27%;
  float: left;
  margin-right: 30px;
  margin-bottom: 30px;
}

.profile {
  width: 50%;
  /*  Stets the text to be in the center of the page  */
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

.profile-photo {
  width: 50%;
}

.tkd-photo {
  width: 27%;
  float: left;
  margin-right: 30%;
  padding-top: 6%;
}

.programming-photo,
.tkd-photo {
  display: block;
  transition:
    transform 0.28s ease,
    filter 0.28s ease,
    opacity 0.28s ease;
  will-change: transform;
}

.skill-row-hovered .programming-photo,
.skill-row-hovered .tkd-photo {
  transform: translateY(-10px) scale(1.1);
  filter:
    saturate(1.12)
    brightness(1.02)
    drop-shadow(0 20px 38px rgba(64, 81, 78, 0.2));
}

.skill {
  color: #11999e;
}

.web-photo {
  width: 27%;
  float: right;
  margin-left: 30px;
  padding-top: 6%;
}

.top-container {
  background-color: #e4f9f5;
  position: relative;
  padding-top: 100px;
}

.middle-container {
  line-height: 2;
}

.bottom-container {
  background-color: #66bfbf;
  padding: 50px 0 20px;
  font-family: "Montserrat", sans-serif;
}

.skill-row {
  width: 50%;
  margin: 100px auto;
  text-align: left;
  line-height: 2;
}

.projects {
  width: 70%;
  margin: 0 auto 80px;
}

.projects-intro {
  width: 70%;
  margin: 0 auto 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  text-align: left;
  align-items: start;
}

.project-card {
  position: relative;
  background-color: #e4f9f5;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(17, 153, 158, 0.08);
  box-shadow: 0 6px 16px rgba(64, 81, 78, 0.08);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(17, 153, 158, 0.12), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 60%);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 0;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 150px;
  height: 150px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card.tech-java::after {
  background-image: url("../images/java_img.png");
  transform: translate(-50%, -50%) scale(0.86);
}

.project-card.tech-java:hover::after {
  transform: translate(-50%, -50%) scale(1.16);
}

.project-card.tech-c::after {
  background-image: url("../images/c_img.png");
}

.project-card.tech-prolog::after {
  background-image: url("../images/prolog_img.webp");
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(17, 153, 158, 0.18);
  box-shadow: 0 18px 34px rgba(64, 81, 78, 0.14);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover::after {
  opacity: 0.11;
  transform: translate(-50%, -50%) scale(1);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.project-card p {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.project-meta {
  margin-top: 0;
  margin-bottom: 18px;
}

.project-meta i {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(17, 153, 158, 0.08);
  color: rgba(64, 81, 78, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.project-summary {
  min-height: 7.5em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.project-details {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.project-details summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #11999e;
  list-style: none;
  padding: 10px 14px;
  border-radius: 999px;
  background-color: rgba(17, 153, 158, 0.08);
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.project-details summary::-webkit-details-marker {
  display: none;
}

.project-details summary:hover {
  background-color: rgba(17, 153, 158, 0.14);
  transform: translateY(-1px);
}

.project-details summary::after {
  content: "+";
  margin-left: 8px;
  font-size: 1rem;
  transition: transform 0.22s ease;
}

.project-details.is-open summary::after,
.project-details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.project-details-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    height 0.32s ease,
    opacity 0.24s ease;
}

.project-details.is-open .project-details-content,
.project-details[open] .project-details-content {
  opacity: 1;
}

.project-details p {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .projects {
    width: 86%;
  }

  .projects-intro {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .project-card {
    min-height: auto;
  }

  .project-summary {
    min-height: auto;
  }

  .project-card::after {
    width: 120px;
    height: 120px;
  }

  .project-card.tech-java::after {
    transform: translate(-50%, -50%) scale(0.9);
  }

  .project-card.tech-java:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.top-cloud {
  position: absolute;
  right: 300px;
  top: 50px;
}

.bottom-cloud {
  position: absolute;
  left: 300px;
  bottom: 300px;
}

/*  Code for the button to the end of the code  */

.btn {
  background: #11cdd4;
  background-image: -webkit-linear-gradient(top, #11cdd4, #11999e);
  background-image: -moz-linear-gradient(top, #11cdd4, #11999e);
  background-image: -ms-linear-gradient(top, #11cdd4, #11999e);
  background-image: -o-linear-gradient(top, #11cdd4, #11999e);
  background-image: linear-gradient(to bottom, #11cdd4, #11999e);
  -webkit-border-radius: 8;
  -moz-border-radius: 8;
  border-radius: 8px;
  font-family: Arial;
  color: #ffffff;
  font-size: 20px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
}

.btn:hover {
  background: #30e3cb;
  background-image: -webkit-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -moz-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -ms-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -o-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: linear-gradient(to bottom, #30e3cb, #2bc4ad);
  text-decoration: none;
}
