* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  box-sizing: border-box;
}

header {
  display: flex;
  width: 80%;
  margin-left: 18%;
}

/* font for name */
.teko-main {
  font-family: "Teko", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.landing {
  background-color: #0f4c75;
  height: 100vh;
}

.projects {
  background-color: #27374d;
  padding: 3rem;
}

.contact {
  background-color: #53354a;
  padding: 3rem;
}

.links-container {
  padding-top: 1.5rem;
  margin-left: 65%;
  width: 25%;
  display: flex;
  justify-content: space-around;
}

.link {
  color: #cd9e65;
  font-family: sans-serif;
  text-decoration: none;
  font-size: 0.9rem;
}

.link:hover {
  color: #dad7cf;
}

.projects-header {
  display: flex;
  justify-content: center;
}

.about {
  width: 40%;
  margin-top: 10%;
  margin-left: 50%;
}

.picture-and-name {
  display: flex;
  justify-content: end;
  align-items: end;
}

.image {
  height: 12rem;
  width: 12rem;
  border-radius: 50%;
}

.name {
  color: #dad7cf;
  margin-left: 1rem;
  font-size: 6rem;
  position: relative;
  bottom: -2rem;
}

.about-paragraph {
  color: #dad7cf;
  font-family: sans-serif;
  margin-top: 2rem;
  display: block;
  line-height: 2rem;
  text-align: justify;
}

.projects-heading {
  transition: opacity 0.5s ease-in-out; /* Apply a smooth transition */
  color: #dad7cf;
  font-size: 5rem;
  margin-left: 5rem;
  margin-bottom: 4rem;
}

.contact {
  display: flex;
}

.contact-heading {
  color: #dad7cf;
  font-size: 5rem;
  margin-left: 5rem;
  font-weight: 400;
}

.contact-items {
  margin-left: 5rem;
  margin-top: 1.4rem;
}

.contact-item {
  color: #dad7cf;
  margin-bottom: 0.5rem;
  font-family: sans-serif;
  font-size: 1rem;
}

.projects-container {
  display: flex;
  justify-content: space-around;
  margin-left: 5rem;
  margin-right: 5rem;
}

.project-container {
  height: 480px;
  margin-bottom: 5rem;
}

.project-image {
  height: 30rem;
  width: 30rem;
  cursor: pointer;
}

.project-image:hover {
  opacity: 8%;
}

.overlay-text {
  position: relative;
  margin-left: 1.5rem;
  top: -10rem;
  left: 0;
  background: transparent;
  color: #cd9e65; /* Text color */
  font-size: 2rem; /* Text size */
  font-weight: bold; /* Text weight */
  opacity: 0; /* Initially hidden */
}

.project-description {
  width: 25rem;
  font-weight: normal;
  color: #dad7cf;
  font-size: 1rem;
  font-family: sans-serif;
  display: block;
  line-height: 1.5rem;
  text-align: justify;
}

.overlay-text {
  pointer-events: none;
}

.project-container:hover .overlay-text {
  opacity: 1; /* Show text on hover */
}

.slide-in {
  animation: slideIn 2s ease forwards;
}

.slide-in1 {
  animation: slideIn 1s ease forwards;
}

.samu-quote {
  margin-left: 40rem;
  font-size: 1.2rem;
}

.noun {
  color: grey;
}

.samu-def {
  font-style: italic;
  font-size: 0.9rem;
  margin-left: 41rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px); /* Starts slightly above */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* Ends at original position */
  }
}
