@import url("fonts.css");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: aliceblue;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

.hidden {
  display: none;
}

#name {
  font-family: "Poppins";
  margin: 0;
  font-weight: 600;
  color: white;
}

#social-links {
  display: flex;
  justify-content: center;
  gap: 15px; /* Adjust the gap between the logos #e1ecf7;*/
  margin-top: 5px; /* Space between the name/title div and the social links */
}

#social-links a {
  text-decoration: none; /* Remove underline from links */
}

#social-links img {
  width: 30px; /* Adjust the size of the logos */
  height: 30px;
  margin: 0; /* Remove default margin */
}

#navbar h2 {
  font-family: "Poppins";
  margin: 0;
  font-size: 20px;
  font-weight: 300;
}

#navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  color: white;
  height: 4rem;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  transition: 0.2s ease-in-out;
}

/* Default styling for hamburger menu */
#hamburger-menu {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 3rem;
}

#nav-links {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Poppins";
  font-weight: 300;
  font-size: 18px;
  text-align: center;
  gap: 0px;
  white-space: nowrap;
  transition: 0.2s ease-in-out;
  height: 100%;
}

#nav-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  width: 100%;
  text-decoration: none;
  height: 100%;
  padding: 0px 1rem;
  gap: 5px;
}

#nav-links a:hover {
  color: white;
  width: 100%;
  text-decoration: underline white 2px solid;
  text-underline-offset: 5px;
  transition: 0.2s ease-in-out;
}

#nav-links a.active {
  color: white;
  width: 100%;
  text-decoration: underline white 2px solid;
  text-underline-offset: 5px;
  transition: 0.2s ease-in-out;
}

.navbar-scroll {
  background-color: #7caed3;
}

#loading-animation {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 5px;
  background-color: aliceblue;
  padding: 20px;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
}

#loading-animation object {
  position: absolute;
  top: 0;
  left: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10%;
  height: 10%;
  min-width: 80px;
  min-height: 80px;
}

#about {
  text-align: center;
  background-image: url("../imgs/background.webp");
  height: 75vh;
  background-size: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-background-size: cover;
  align-items: center;
}

#about-content {
  /* From https://css.glass */
  background: rgba(240, 240, 240, 0.5);
  border-radius: 3px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  padding: 1rem;
}

#about p {
  margin: 0;
  font-family: "Poppins";
  font-weight: 300;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  text-align: justify;
}

#about-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

#about-img {
  border-radius: 50%;
  overflow: hidden;
  height: 200px;
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#about-img img {
  width: 100%;
  height: 100%;
  width: 400px;
  height: 400px;
  object-fit: cover;
  margin: 0px 10px 15px 0px;
}

#about-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: center;
  gap: 0.5rem;
}

#about-heading {
  margin: 0px;
  font-family: "Poppins";
  font-weight: 700;
  font-size: 28px;
}

#about-heading-mobile {
  margin: 0px;
  font-family: "Poppins";
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  display: none;
}

#about-info p {
  margin: 0;
  font-family: "Poppins";
  font-weight: 300;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  text-align: justify;
}

.about-link {
  text-decoration: none;
  color: black;
  font-family: "Poppins";
  font-weight: 500;
  transition: 0.2s ease-in-out;
  border: 1px solid black;
  border-radius: 3px;
  text-align: center;
  padding: 5px;
  font-size: 18px;
}

.about-link:hover {
  color: white;
  background-color: black;
  transition: 0.2s ease-in-out;
}

#selected-works-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding-top: 80px;
}

#selected-works {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
  width: 60%;
  margin: 0 auto;
}

#selected-works > .card:nth-child(even) {
  flex-direction: row-reverse;
}

#recent-works-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Added flex-wrap property */
  margin: 0 auto;
  padding-top: 80px;
}

#recent-works {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap; /* Added flex-wrap property */
  width: 80%;
  margin: 0 auto;
}

.section-title {
  font-family: "Poppins";
  font-weight: 600;
  font-size: 38px;
  margin: 0;
  color: #7caed3;
}

.card {
  border-radius: 0.3rem;
  background-color: white;
  text-decoration: none;
  color: black;
  width: 350px; /* Ensure card is square */
  height: 515px; /* Ensure card is square */
  max-height: 515px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex; /* Ensure card is displayed */
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: scale(1.02);
}

.card img,
.card-content {
  width: 100%;
  height: 50%;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  box-sizing: border-box; /* Include padding in height calculation */
  overflow: hidden; /* Ensure text is truncated */
  text-align: justify;
}

.card-content h2 {
  margin: 0;
  font-family: "Poppins";
  font-weight: 600;
  white-space: nowrap; /* Single line truncation */
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.2rem;
}

.card-content p {
  margin: 0;
  width: 100%;
  font-family: "Poppins";
  font-weight: 300;
  display: -webkit-box; /* Multi-line truncation */
  -webkit-box-orient: vertical;
  line-clamp: 6;
  -webkit-line-clamp: 6;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-text-overflow: ellipsis;
  font-size: 1rem;
}

.card.column {
  width: 100%;
  flex-direction: row;
  height: fit-content;
  align-items: center;
}

.card.column p {
  width: 100%;
  flex-direction: row;
  height: fit-content;
  line-clamp: 7;
  -webkit-line-clamp: 7;
}

.card.column img,
.card.column .card-content {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.tag-container {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
}

.tag {
  font-family: "Poppins";
  font-weight: 300;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  background-color: #7cadd3;
  color: white;
}

#contact {
  background: transparent;
  height: 100vh;
  background-image: url("../imgs/background.webp");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#contact-content {
  background: rgba(240, 240, 240, 0.5);
  border-radius: 3px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

#contact-content h2 {
  font-family: "Poppins";
  font-weight: 600;
  font-size: 2rem;
  margin: 0;
  color: #7caed3;
}

#social-media-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 200px;
}

#social-media {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Poppins";
  font-weight: 300;
  font-size: 18px;
  text-align: center;
  white-space: nowrap;
  transition: 0.2s ease-in-out;
  height: 100%;
}

.social-media-card {
  display: flex;
  justify-content: center;
  align-items: center;
  color: transparent;
  width: 500px;
  text-decoration: none;
  height: 350px;
  gap: 5px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  border-radius: 3px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(240, 240, 240, 0.5);
  overflow: hidden;
  object-fit: cover;
}

.social-media-card img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: 0.2s ease-in-out;
  border-radius: 3px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.modal-content {
  width: 90%;
  height: 90%;
}

@media screen and (max-width: 800px) {
  #hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #menu-icon {
    display: block;
  }

  #close-icon {
    display: none;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 4rem;
    left: 0;
    background-color: #7caed3;
    width: 100%;
    transition: 0.2s ease-in-out;
  }

  #nav-links.show {
    display: flex;
  }

  #nav-links a {
    padding: 15px;
    border-bottom: 0px solid white;
    background-color: #7caed3;
  }

  /* New social media responsive styles */
  #social-media {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .social-media-card {
    width: 100%;
    max-width: 350px;
    white-space: normal;
  }

  #social-media-showcase {
    padding-top: 40px;
    padding-bottom: 100px;
  }

  /* Existing mobile styles */
  #about {
    height: 100vh;
    text-align: center;
    background-position: bottom;
  }

  #about-content {
    width: 90%;
  }

  #about-info {
    flex-direction: column;
    gap: 1rem;
  }

  #about-text {
    width: 90%;
  }

  #about-heading {
    display: none;
  }

  #about-heading-mobile {
    display: block;
  }

  #selected-works {
    width: 100%;
    flex-direction: row;
  }

  #selected-works > .card:nth-child(2n) {
    flex-direction: column;
  }

  #recent-works {
    width: 100%;
  }

  .tag-container {
    flex-wrap: wrap;
  }
}

/* Additional breakpoint for very small screens */
@media screen and (max-width: 400px) {
  .social-media-card {
    font-size: 16px;
  }

  #social-media-showcase {
    padding-top: 30px;
    padding-bottom: 80px;
  }
}
