@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap);
html {
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

.debug-blue {
  background-color: blue;
}

.debug-red {
  background-color: red;
}

.debug-green {
  background-color: green;
}

.debug-darkgreen {
  background-color: darkgreen;
}

body {
  background-color: #1A232C;
  color: white;
  overflow: auto;
  position: relative;
  margin: 0;
  padding: 0;
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}
@media (max-width: 1024px) {
  #background-canvas {
    display: none;
  }
}

section {
  position: relative;
  z-index: 1;
  background-color: transparent;
}

#presentation {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.3);
}
@media (min-width: 1024px) and (orientation: landscape) {
  #presentation {
    flex-direction: row;
    height: 100vh;
  }
}

#information, #profile {
  width: 100%;
}
@media (min-width: 1024px) and (orientation: landscape) {
  #information, #profile {
    width: 50%;
  }
}

@media (min-width: 1024px) and (orientation: landscape) {
  #information {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.space-letter {
  letter-spacing: 0.4rem;
}

#header-information {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#header-information .name {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: bold;
  color: transparent;
  -webkit-text-stroke: 3px white;
  margin: 3rem 0 0;
  text-align: center;
}
#header-information .about-work {
  font-size: 0.9rem;
  text-align: center;
  font-weight: 700;
}

#about-me {
  margin: 0 2rem;
  font-style: italic;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  text-align: justify;
}
@media (min-width: 1024px) and (orientation: landscape) {
  #about-me {
    margin: 1rem 2rem;
  }
}

.pdp {
  width: 50%;
  max-width: 500px;
  height: auto;
  border-radius: 50%;
  border: 2px solid #00D0FF;
  box-shadow: 0 0 50px rgba(0, 208, 255, 0.32);
}
@media (max-width: 1024px) {
  .pdp {
    width: 70%;
  }
}

#profile {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 1024px) and (orientation: landscape) {
  #profile {
    margin-top: 0;
  }
}

.more-information {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.more-information .button {
  background-color: deepskyblue;
  padding: 0.5rem;
  border: 2px solid white;
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s;
}
.more-information .button:hover {
  transform: scale(1.1);
}

#projects {
  background-color: white;
  color: black;
}

#project-header {
  padding: 0;
  width: 100%;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) and (orientation: landscape) {
  #project-header {
    font-size: 2rem;
  }
}
#project-header h1 {
  width: 90%;
  text-align: center;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
}

#projects-grid {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: grid;
  grid-template-columns: 100%;
  grid-gap: 1rem;
  width: 80%;
  align-items: center;
  justify-content: center;
  padding: 0 0 2rem 0;
  margin: 0;
}
@media (min-width: 1024px) and (orientation: landscape) {
  .container {
    grid-template-columns: 33% 33% 33%;
  }
}

.project {
  position: relative;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.project .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.1s ease-in-out;
}
.project .overlay:hover {
  background-color: rgba(0, 0, 0, 0.25);
}
.project .content {
  position: relative;
  z-index: 1;
  text-align: left;
  color: white;
  transition: transform 0.3s ease;
  width: 100%;
  padding: 20px;
}
.project .content .title {
  margin: 0;
  transition: transform 0.3s ease;
  text-align: center;
}
.project .content .description {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateX(0);
  opacity: 0;
  transition: opacity 0.3s ease, top 0.3s ease;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project:hover .title {
  transform: translateY(-100%);
}
.project:hover .description {
  top: 50%;
  opacity: 1;
  -webkit-line-clamp: unset;
  overflow: visible;
  white-space: normal;
}

#contact-me {
  background-color: white;
  color: black;
  padding: 2rem 0;
}
#contact-me h2 {
  text-align: center;
  margin-bottom: 2rem;
}
#contact-me .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  #contact-me .content {
    flex-direction: row;
    justify-content: space-around;
  }
}
#contact-me .content .left-side, #contact-me .content .right-side {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  #contact-me .content .left-side, #contact-me .content .right-side {
    width: 45%;
  }
}
#contact-me .content .right-side iframe {
  width: 100%;
  height: 400px;
}
#contact-me .content .contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  text-align: center;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.popup .popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  position: relative;
}
.popup .popup-content .close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}
.popup .popup-content .carousel {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}
.popup .popup-content .carousel img, .popup .popup-content .carousel video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.popup .popup-content .project-description {
  margin-top: 20px;
  text-align: center;
}
.popup .popup-content .project-description .github-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: deepskyblue;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.popup .popup-content .project-description .github-button:hover {
  background-color: #00bfff;
}
