@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 {
  font-family: "Poppins", serif;
  color: #333333;
  background-color: #F8F8F8;
  margin: 0;
  padding: 0;
  width: 100%;
}

.navbar .back-btn {
  filter: invert(1);
}

.bar {
  background: #ffffff !important;
}

.navbar.scrolled {
  background-color: rgba(156, 179, 255, 0.7) !important;
}

/* _________________________________________________________ */

.section-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #6a4bf8, #f85fa3);
  color: #ffffff;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/*----------------------------------------------------*/

.text-content {
  flex: 1;
  text-align: center;
  margin: 1%;
}

.text-content h1 {
  font-size: 2.5rem;
  margin: 0 0 2% 0;
}

.text-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/*----------------------------------------------------*/

.view-all-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.view-all-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  background-color: #a653d4;;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: white;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.view-all-link:hover {
  transform: scale(1.05);
  background-color: #bd56e5;
}

.plus-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  color: #a653d4;;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  font-size: 20px;
  margin-right: 10px;
}

.view-all-text {
  font-weight: bold;
}

/*----------------------------------------------------*/

.slider-wrapper {
  flex: 1.3;
  position: relative;
  overflow: hidden;
  height: 100%;
  clip-path: ellipse(57% 100% at 58% 52%);
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}

/*----------------------------------------------------*/

.slider-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #fff;
}

/*____________________________________________________*/

.section-2 {
  padding: 2rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header h2 {
  font-size: 2rem;
}

.section-2 hr,
.section-3 hr {
  flex: 1;
  margin: 0 1rem;
  border: 1.7px solid #ccc;
}

/*----------------------------------------------------*/

.sort-dropdown {
  padding: 0.5rem;
  font-size: 1rem;
  background-color: #ffffff;
  color: #7d7d7d;
}

.sort-dropdown option[disabled] {
  color: #999;
}

.sort-dropdown option:not([disabled]) {
  color: #000;
}

.sort-dropdown option.hidden {
  display: none;
}

/*----------------------------------------------------*/

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.card {
  position: relative;
  display: block;
  width: 210px;
  height: 270px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s;
}

.card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cover {
  position: relative;
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-icon,
.heart-icon {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: white;
  padding: 5px;
  border-radius: 5px;
}

.project-icon {
  left: 10px;
  background: rgba(90, 90, 172, 0.85);
  backdrop-filter: blur(4px);
}

.heart-icon {
  right: 10px;
  background: rgba(0, 0, 0, 0.443);
  border-radius: 25px;
}

.likes-count,
.project-text {
  display: none;
}

/*----------------------------------------------------*/

.synopsis {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 5px;
  max-width: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.85;
}

.synopsis:hover {
opacity: 1;
}

.title {
  font-size: 1rem;
  font-weight: bold;
}

.separator {
  width: 30%;
  height: 2px;
  background-color: #fff;
  margin: 5px 0;
  display: none;
}

.description {
  font-size: 0.8rem;
  display: none;
  max-width: 90%;
}

.card:hover .description {
  display: block;
}

.card:hover .separator {
  display: block;
}

.card:hover .project-text,
.card:hover .likes-count {
  display: inline;
}

.view-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: none;
  cursor: pointer;
}

.project-icon:hover,
.heart-icon:hover {
  transform: scale(1.1);
}

/* _________________________________________________________ */

.section-3 {
  padding: 2rem;
  margin-bottom: 3%;
}

.section-3 .container {
  margin: 0 auto;
}

/*----------------------------------------------------*/

.section-3 .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-3 .section-title h2 {
  font-size: 2rem;
  font-weight: bold;
  max-width: 800px;
}

/*----------------------------------------------------*/

.article-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.article-card {
  display: block;
  width: 100%;
  max-width: 380px;
  height: 230px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-card:hover {
  transform: scale(1.03);
}

.article-card .image {
  position: relative;
  width: 100%;
  height: 100%;
}

.article-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*----------------------------------------------------*/

.read-time-bubble {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

/*----------------------------------------------------*/

.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(37, 41, 54, 0.528);
  backdrop-filter: blur(2px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-footer .title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer .views-info {
  font-size: 0.8rem;
  margin: 0;
  color: #ccc;
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/

/*█▀█ █▀▀ █▀ █▀█ █▀█ █▄ █ █▀ █ █ █ █▀▀
  █▀▄ ██▄ ▄█ █▀▀ █▄█ █ ▀█ ▄█ █ ▀▄▀ ██▄*/
 
  @media (max-width: 480px) {
    .section-1 {
      flex-direction: column;
      height: 70vh;
      padding-top: 50px;
    }
    
    .text-content {
      order: 1;
      margin: 4%;
    }
    
    .slider-wrapper {
      clip-path: none;
      order: -1;
      clip-path: ellipse(97% 70% at 53% 29%);
    }
    
    .text-content h1 {
      font-size: 1.4rem;
    }
    
    .text-content p {
      font-size: 0.8rem;
    }
    
    .slide img {
      width: 100%;
      height: 100%;
    }
    
    .dot {
      width: 8px;
      height: 8px;
    }

/*----------------------------------------------------*/

  .section-2 {
    padding: 1rem;
  }

  .header {
    flex-direction: column;
    align-items: center;
  }

  .header h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .section-2 hr,
  .section-3 hr {
    width: 100%;
    margin-bottom: 10px;
  }

  .sort-dropdown {
    width: 90%;
    font-size: 0.9rem;
    margin: 15px 0;
    align-self: center;
  }

  .card-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .card {
    width: 80%;
    height: auto;
  }

  .project-icon,
  .heart-icon {
    font-size: 0.8rem;
    padding: 3px;
  }

  .synopsis {
    padding: 5px;
    font-size: 0.8rem;
  }

  .title {
    font-size: 0.9rem;
    text-align: center;
  }

  .separator {
    margin: 3px 0;
  }

  .description {
    font-size: 0.7rem;
  }

  .view-icon {
    font-size: 0.8rem;
  }

  /*----------------------------------------------------*/

  .section-3 .section-title {
    flex-direction: column;
    align-items: center;
  }

  .section-3 .section-title h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .article-card-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .article-card {
    width: 100%;
    height: 200px;
  }

  .read-time-bubble {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .card-footer {
    padding: 5px;
    font-size: 0.9rem;
  }

  .card-footer .title {
    font-size: 0.9rem;
    order: 2;
  }

  .card-footer .views-info {
    font-size: 0.7rem;
    order: 1;
  }
  }
  
/* _________________________________________________________ */  

@media (max-width: 768px) {

  .section-1 {
    flex-direction: column;
    height: 50vh;
    padding-top: 50px;
  }

  .text-content {
    order: 1;
    margin: 2%;
  }

  .slider-wrapper {
    clip-path: none;
    order: -1;
    clip-path: ellipse(97% 70% at 53% 29%);
  }

  .text-content h1 {
    font-size: 2rem;
  }

  .text-content p {
    font-size: 1rem;
  }

  .slide img {
    width: 100%;
    height: 100%;
  }

  .slider-indicators {
    bottom: 10px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

/*----------------------------------------------------*/

  .section-2 {
    padding: 1.6rem;
  }

  .header {
    flex-direction: column;
    align-items: center;
  }

  .header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
  }

  .section-2 hr,
  .section-3 hr {
    width: 100%;
    margin-bottom: 15px;
  }

  .sort-dropdown {
    width: 90%;
    font-size: 1rem;
    margin: 15px 0;
    align-self: center;
  }

  .card-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .card {
    width: 80%;
    height: auto;
  }

  .project-icon,
  .heart-icon {
    font-size: 1.1rem;
    padding: 8px;
  }

  .synopsis {
    padding: 7px;
    font-size: 1.2rem;
  }

  .title {
    font-size: 1.2rem;
    text-align: center;
  }

  .separator {
    margin: 5px 0;
  }

  .description {
    font-size: 1rem;
  }

  .view-icon {
    font-size: 1rem;
  }

  /*----------------------------------------------------*/

  .section-3 .section-title {
    flex-direction: column;
    align-items: center;
  }

  .section-3 .section-title h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
  }

  .article-card-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .article-card {
    width: 100%;
    max-width: 480px;
    height: 280px;
  }

  .read-time-bubble {
    font-size: 1rem;
    padding: 4px 8px;
  }

  .card-footer {
    padding: 7px;
    font-size: 1rem;
  }

  .card-footer .title {
    font-size: 1.2rem;
    order: 2;
  }

  .card-footer .views-info {
    font-size: 0.9rem;
    order: 1;
  }
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/

/*█▀▄ ▄▀█ █▀█ █▄▀   ▀█▀ █ █ █▀▀ █▀▄▀█ █▀▀
  █▄▀ █▀█ █▀▄ █ █    █  █▀█ ██▄ █ ▀ █ ██▄*/
  
body.dark-theme {
  color: #f0f0f0;
  background-color: #31355a;
}
/*----------------------------------------------------*/

body.dark-theme .section-1 {
  background: linear-gradient(135deg, #4c36b0, #c63979);
}

body.dark-theme .sort-dropdown {
  background-color: #424571;
  color: #dddddd;
}

body.dark-theme .sort-dropdown option:not([disabled]) {
  color: #ffffff;
}

