@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  min-height: 100svh;
  font-family: 'Rubik', sans-serif;
  background-color: #d8e2f8;
  overflow-x: hidden;
}

.bar {
  background: #ffffff !important;
}

.navbar .back-btn {
  filter: invert(1) !important;
}

/*_________________________________________________________*/

.banner {
  position: relative;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 60svh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url('/img/background_portfolio_day.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.banner-content {
  max-width: 800px;
  margin: auto;
  color: rgb(255, 253, 242);
}

.banner h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.banner p {
  font-size: 18px;
  margin-bottom: 20px;
}

.banner-media a {
  margin: 0 10px;
  color: rgb(52, 35, 95);
  font-size: 24px;
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-media a:hover {
  transform: scale(1.2);
}

/*----------------------------------------------------*/

.filters {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 15px;
}

.filter {
  background-color: rgba(255, 255, 255, 0);
  border: none;
  border-bottom: 0.15rem solid #0e4e78;
  color: #5C7099;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter.active {
  border: 2px solid #001c2f;
  color: #001c2f;
}

.filter:hover {
  color: #033e66;
}

/*_________________________________________________________*/

.portfolio {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
}

.card {
  position: relative;
  background-color: transparent;
  overflow: hidden;
  width: 600px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px 10px;
  cursor: pointer;
  display: none;
  z-index: 1;
}

.card.visible {
  display: block;
}
.card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  transition: filter 0.3s ease;
}

.card img:hover,
.card img.sharing {
  filter: brightness(0.8);
}

.card .eye-icon {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 10px;
  display: none;
}

.text-container {
  font-family: "Poppins", sans-serif;
  width: 100%;
  padding: 4px;
  margin-left: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card h3 {
  font-size: 1.4rem;
  color: #333;
  transition: color 0.3s ease;
}

.card h3:hover {
  color: #255a93;
}

.card p.category {
  font-size: 1rem;
  color: #646464;
  margin: 0;
}

.card:hover {
  transform: translateY(-10px);
}

/*----------------------------------------------------*/

.card .like-share-wrapper {
  display: none;
  flex-direction: row;
  align-items: center;
  position: absolute;
  bottom: 25px;
  right: 15px;
  z-index: 20;
  background: rgba(223, 234, 246, 0);
  padding: 5px 10px;
  border-radius: 5px;
}

.card .like-button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #646464;
  transition: color 0.3s ease;
  margin-right: 10px;
}

.card .like-button.liked {
  color: #f74545;
}

.card .like-count {
  font-size: 16px;
  color: #333;
  margin-left: 5px;
}

.card .share-button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #646464;
  transition: color 0.3s ease;
  top: 6px;
}

.card:hover .like-share-wrapper,
.card:hover .eye-icon {
  display: block;
}

/*----------------------------------------------------*/

.share-btn {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #2874a7;
  padding: 0; 
  margin: 0;
}

.share-options,
.share-options-bottom {
  box-sizing: border-box;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 15px;
  display: none;
  width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 30;
}

.share-options {
  position: absolute;
  top: -250px;
  right: 80px;
}

.share-options-bottom {
  position: absolute;
  top: 40px;
  right: -10px;
}

.social-media {
  display: flex;
  gap: 10px;
  justify-content: left;
  margin-bottom: 17px;
}

.social-media-btn {
  height: 40px;
  width: 40px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 25px;
  color: #fff;
  transition: transform 0.2s ease;
}

.social-media-btn:hover {
  transform: scale(1.2);
}

.social-media-btn:nth-child(1) { background: #FFA654; }
.social-media-btn:nth-child(2) { background: #25D366; }
.social-media-btn:nth-child(3) { background: #E4405F; }
.social-media-btn:nth-child(4) { background: #1DA1F2; }
.social-media-btn:nth-child(5) { background: #0A66C2; }
.social-media-btn:nth-child(6) { background: #0A66C2; }



.link-container {
  display: flex;
  align-items: center;
  border: 1px solid #ebedf9;
  border-radius: 4px;
  padding: 8px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-container input {
  flex: 1;
  border: none;
  font-size: 14px;
  color: #333;
  padding: 8px;
  text-align: center;
  outline: none;
  background-color: transparent;
}

.link-container button {
  border: none;
  background-color: #03A9F4;
  color: #fff;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

.copy-btn:active {
  animation: bounce 0.3s ease-out;
}

i.fa-solid.fa-link {
  font-size: 18px;
  color: rgb(159, 159, 159);
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-4px);
  }
}

/*_________________________________________________________*/

.modal {
  position: fixed;
  height: 100vh;
  width: 100vw;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  padding: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
  overflow-x: hidden;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, .5);
  opacity: 1;
  padding: 0;
  transition: opacity .5s ease-out;
}

.modal-wrapper {
  position: relative;
  display: block;
  margin: 0 auto;
  z-index: 10;
  top: 24px;
  width: 1100px;
  right: 0;
  transform: translateY(0) scale(0.9);
  transition: all .2s ease-out;
  max-width: 100%;
  margin-bottom: 200px;
  background-color: #fff;
  border-radius: 35px;
}

.modalClose {
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  font-weight: 400;
  position: absolute;
  height: 50px;
  width: 50px;
  right: 24px;
  top: 10px;
  transition: 0.2s ease-out;
  border-radius: 50%;
  text-align: center;
  background-color: #43438a;
  line-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transform: none;
}

#imageWrapper {
  width: 100%;
  height: 650px;
  overflow: hidden;
  border-radius: 35px 35px 0 0;
  position: relative;
  cursor: zoom-in;
}

#imageWrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-button {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #333;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#prev {
  left: 10px;
}

#next {
  right: 10px;
}

#dotsWrapper {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
}

.dot.active {
  background-color: #00b9fe;
}

.modal-body {
  padding: 24px;
  min-height: 100%;
  position: relative;
}

.modal-body h2 {
  font-size: 42px;
  font-family: Red Hat Display, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#modalDate {
  display: block;
  font-size: 20px;
  color: #979797;
  margin-bottom: 18px;
}

.modal-body p {
  font-size: 22px;
  font-family: Red Hat Display, sans-serif;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 18px;
  max-width: 60%;
}

.custom-share-like-wrapper {
  display: flex;
  align-items: center;
  position: absolute;
  top: 24px;
  right: 24px;
}

.custom-share-button {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #333;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-like-counter {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.custom-like-button {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 2rem;
  color: #ff3535;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-footer {
  padding: 24px;
}


.sc-button a {
  color: inherit;
  text-decoration: none;
}

.sc-button a:visited {
  color: inherit;
}

.sc-button i {
  color: inherit;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-right: 15px;
}

.modal-footer {
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 0 0 35px 35px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sc-button {
  cursor: pointer;
  width: 50px;
  height: 50px;
  font-size: 22px;
  border-radius: 50px;
  border: none;
  color: #2a3d54;
  background: #ff3535;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: 0.1s;
}

.sc-button:nth-child(2) {
  background: #9165ff;
}

.sc-button:nth-child(3) {
  background: #6776fe;
}

.sc-button:nth-child(4) {
  background: linear-gradient(120deg, #833ab4, #fd1d1d, #fcb045);
}

.sc-button:active {
  transform: scale(0.85);
}

.sc-button::before {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  background-color: #f2f2f2;
  border-radius: 50px;
  z-index: -1;
  border: 0px solid rgba(255, 255, 255, 0.411);
  transition: 0.4s;
}

.sc-button:hover::before {
  width: 0px;
  height: 0px;
}

.sc-button:hover {
  color: #ffffff;
}

/*_________________________________________________________*/

.fullscreen-modal {
  position: fixed;
  display: none;
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.fullscreen-modal.show {
  display: flex;
}

.fullscreen-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}

.fullscreen-wrapper {
  position: relative;
  background-color: #ebe2d7;
  padding: 20px 35px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.fullscreenClose {
  position: absolute;
  top: 10px;
  right: 45px;
  background: none;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}

.fullscreen-share-button {
  position: absolute;
  top: 10px;
  left: 45px;
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.fullscreen-like-counter {
  position: absolute;
  top: 10px;
  left: 85px;
  display: flex;
  align-items: center;
}

.like-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  margin-right: 5px;
}

.like-button.liked {
  color: #f74545;
}

.like-count {
  font-size: 1.3rem;
  color: #333;
}

.fullscreen-modal .share-container {
  display: flex;
  align-items: center;
  position: absolute;
  top: 10px;
  left: 150px;
}

.fullscreen-modal .share-options-bottom {
  position: absolute;
  top: 40px;
  right: -15vw;
}

.fullscreenImageWrapper {
  position: relative;
  width: 80%;
  height: 90vh;
  max-width: 800px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fullscreenImageWrapper img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

#fullscreenPrev, #fullscreenNext {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
}

#fullscreenPrev {
  left: 35px;
}

#fullscreenNext {
  right: 35px;
}

/*----------------------------------------------------*/

.see-more {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.btn-see-more {
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 25px;
  background-color: transparent;
  border: 2px solid rgb(0, 0, 0);
  color: rgb(0, 0, 0);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-see-more:hover {
  background-color: rgb(0, 0, 0);
  color: #bedeff;
  transform: scale(1.1);
}

@keyframes idleAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.btn-see-more {
  animation: idleAnimation 2s infinite;
}

/*----------------------------------------------------*/

.floatingchat-container-wrap {
  left: auto !important;
  right: 16px !important;
}

.floating-chat-kofi-popup-iframe {
  left: auto !important;
  right: 16px !important;
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/

/*█▀█ █▀▀ █▀ █▀█ █▀█ █▄ █ █▀ █ █ █ █▀▀
  █▀▄ ██▄ ▄█ █▀▀ █▄█ █ ▀█ ▄█ █ ▀▄▀ ██▄*/

@media (max-width: 480px) {

.banner {
  height: 35vh;
  background-image: url('/img/small_background_portfolio_day.webp');
}

body.dark-theme .banner {
  background-image: url('/img/small_background_portfolio_night.webp');
}

.banner-content {
  max-width: 300px;
  margin-top: 70px;
}

.banner h1 {
  font-size: 30px;
}

.banner p {
  font-size: 13px;
}

.banner-media a {
  font-size: 20px;
}

.filter {
  font-size: 14px;
  padding: 5px 14px;
}

.filters {
  gap: 8px;
  flex-wrap: wrap; 
}
}

/* _________________________________________________________ */

@media (min-width: 481px) and (max-width: 769px) {
  .banner {
    height: 35vh;
    background-image: url('/img/small_background_portfolio_day.webp');
  }

  body.dark-theme .banner {
    background-image: url('/img/small_background_portfolio_night.webp');
  }

  .filter {
    font-size: 15px;
    padding: 6px 16px;
  }

  .filters {
    gap: 8px;
    flex-wrap: wrap; 
  }
}

/* _________________________________________________________ */

@media (min-width: 769px) and (max-width: 1024px) {
  .banner {
    height: 40vh;
    background-image: url('/img/background_portfolio_night.webp');
  }
  .filter {
    font-size: 16px;
    padding: 8px 18px;
  }

  .filters {
    gap: 10px;
  }
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/

/*█▀▄ ▄▀█ █▀█ █▄▀   ▀█▀ █ █ █▀▀ █▀▄▀█ █▀▀
  █▄▀ █▀█ █▀▄ █ █    █  █▀█ ██▄ █ ▀ █ ██▄*/

  body.dark-theme {
    background-color: #272750;
  }

  body.dark-theme .banner {
    background-image: url('/img/background_portfolio_night.webp');
  }

  body.dark-theme .banner-media a {
    color: rgb(193, 177, 235);
  }

  /*----------------------------------------------------*/

  body.dark-theme .filter {
    border-bottom: 0.15rem solid #6fafda;
    color: #52678e;
  }

  body.dark-theme .filter.active {
    color: #efefef;
    border: 2px solid #efefef;
  }

  body.dark-theme .filter:hover {
    color: #93b1e7;
  }

  .card .like-button {
    color: #a1a1a1;
  }
  /*----------------------------------------------------*/

  body.dark-theme .card h3 {
    color: #ffffff;
  }
  
  body.dark-theme .card h3:hover {
    color: #8eb4de;
  }
  
  body.dark-theme .card p.category {
    color: #d9d9d9;
  }

  /*----------------------------------------------------*/

  body.dark-theme .btn-see-more {
    border: 2px solid #beeaff;
    color: rgb(255, 255, 255);
  }
  
  body.dark-theme .btn-see-more:hover {
    background-color: #beeaff;
    color: #2a2a43;
  }

  body.dark-theme .share-btn {
    color: #71b8e7;
  }

  /*----------------------------------------------------*/

  body.dark-theme .modal-wrapper {
    background-color: #2d2d5e;
  }

  body.dark-theme .modal-body h2 {
    color: #e1e1e1;
  }
  
  body.dark-theme #modalDate {
    color: #b9b9b9;
  }
  
  body.dark-theme .modal-body p {
    color: #ececec;
  } 

  .like-button {
    color: #ebebeb;
  }

  body.dark-theme .like-count {
    color: #ebebeb;
  }

  body.dark-theme .sc-button {
    color: #f8f8f8;
  }

  body.dark-theme .modal-footer,
  body.dark-theme .sc-button::before {
    background-color: #3d3d7c;
  }

  /*----------------------------------------------------*/

  body.dark-theme .share-options, .share-options-bottom {
    background-color: #484890;
  }

  body.dark-theme .link-container input {
  color: #ededed;
  }

  body.dark-theme .fullscreen-wrapper {
    background-color: #25254e;
  }

  body.dark-theme .fullscreenClose {
    color: #eeeeee;
  }