@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@100;300;400;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: 'Be Vietnam Pro', sans-serif;
}

body {
    font-size: 110%;
    line-height: 105%;
    background-color: black;
    color: #ffffff;
}

main {
    display: flex;
    gap: 2%;
    flex-wrap: wrap;
}


 .nav-container {

      grid-row: 1;
      height: 20vh;
      padding: 2%;
      position: fixed;
      display: flex;
      flex-direction: column;
      row-gap: 15%;
      z-index: 25;
  }

  .nav-link {
      color: white;
      margin-right: 5px;

      font-weight: 100;
      font-size: 1.3em;
      line-height: 0.6em;

      transition: all 0.2s;
      cursor: pointer;
  }
  
a {
    text-decoration: none;

}

a.active {
    font-weight: 700;
    cursor: default;
}

.navLogo:hover,
.active:hover {
    filter: none;
}

/* radio filter section*/

#filter-section {
    width: 220px;
    padding: 20px;
    font-weight: 200;
    position: fixed;
    margin-top: 170px;
}


#tag-filters-container .tag-filter {
    display: block;

}

#tag-filters-container label {
    margin-left: 5px;
    cursor: pointer;
    text-transform: capitalize;

}

/* project list container*/
#projects-container {
    width: 35vw;
    margin-left: auto;
    padding: 3vh 0.1vw;
}

/* radio filters selection*/

#category-filters-container .category-filter input[type="radio"] {
    display: none;
}

#category-filters-container .category-filter {
    padding: 4px 4px;
    cursor: pointer;
    margin-bottom: 8px;

    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-weight: 100;
    color: #b3b3b3;

}

#category-filters-container .category-filter:hover {
    border-left: 3px white solid;
    margin-left: 8px;
    transition: all 0.3s ease-in-out;
    color: white;
}

#category-filters-container .category-filter.selected {
    background-color: #e0efff;
    border-left: 1px white solid;
    font-weight: 600;
    margin-left: 0px;
    border-radius: 6px;
    padding: 9px;
}

#category-filters-container .category-filter.selected label {
    color: #000000;
}

#category-filters-container .category-filter label {
    cursor: pointer;
    margin-left: 5px;
}

/* SECTION: Project Cards */
.project-card {
    padding: 4% 0.2%;
    color: white;
    border-bottom: 1px solid #eee;
    cursor: ns-resize;
}

.project-card-clickable {
    cursor: url(ressources/cursor.png)5 2, auto;


}

/* .project-card-clickable:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

.project-year {
    font-size: 16px;
    margin-bottom: 10px;
}

.project-card .project-hover-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: opacity 0.3s ease-in-out,
        max-height 0.4s ease-in-out,
        margin-top 0.3s ease-in-out;
}

.project-card:hover .project-hover-details {
    opacity: 1;
    padding: 0px 32% 20px 0px;
    max-height: 500px;
}

.project-card:hover {
    background-color: white;
    color: #222222;
    border-left: 9px Solid#ffffff;
    border-radius: 4px;
    transform: scale(1.17);
    padding: 5% 3%;
    box-shadow: 0 4px 28px 0 rgba(0, 0, 0, 0.829), 0 60px 20px 0 rgba(0, 0, 0, 0.589);
    transition: all 0.1s ease-in-out;
}

.project-card:hover span {
    color: white;
    transition: opacity 0.3s ease-in-out;
}

/* Optional: Style for the description and tools paragraphs themselves */
.project-card .project-description,
.project-card .project-tools {
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

.project-card .project-tools {
    margin-bottom: 0;

}

/* Ensure your image preview CSS is also present */
/* #hovered-project-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
} */

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #777;
}

#image-preview-container {
    width: 46vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: fixed;
    margin-left: 15vw;
}

#hovered-project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 1;
    transition: all 0.2s ease-out;
}

#hovered-project-name {
    margin-top: 20px;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 400;
}

/* SECTION: TAGS */
h3 {
    padding-bottom: 3%;
}

.tag-grouping {
    padding-top: 2px;
    padding-right: 5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    font-weight: 300;
    font-size: 1em;
}

/* Style for each individual tag span */
.tags>.tag-item,
.tags>span {
    white-space: nowrap;
    background-image: linear-gradient(rgb(44, 44, 44), rgba(43, 43, 43, 0.788));
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.8em;
}


#custom-text-cursor {
    position: fixed;
    display: none;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-40px, -20px);
    transition: left 0.075s linear,
        /* Smooths horizontal movement */
        top 0.075s linear,
        /* Smooths vertical movement */
        opacity 0.2s ease-in-out,
        /* For fade in/out (see point 2) */
        background-color 0.2s ease-in-out;
}