@import url(components/button.css);
@import url(components/loader.css);

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #111;
  background-image: url("../assets/images/Background1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; 
  color: white;
  padding: 2rem;
  user-select: none;
}

.header h1{
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.2em;
  font-size: 0.95rem;
  background-color: transparent;
  border: 1px solid #666;
  color: #ccc;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s ease;
}

.back-link:hover {
  background-color: #222;
  color: #fff;
  border-color: #aaa;
}

.back-link .icon-left {
  width: 16px;
  height: 16px;
  filter: invert(80%);
  transition: 0.2s ease;
}

.back-link:hover .icon-left {
  filter: invert(100%);
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  justify-items: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.card {
  background: rgba(70, 70, 70, 0.5);
  position: relative;
  width: 250px;
  min-height: 350px;
  border-radius: 5px;
  padding: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7.5px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-radius 0.6s ease;
}

.card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0); 
  transition: background-color 0.3s ease;
  z-index: 1;
}

.card:hover::before {
  background-color: rgba(0, 0, 0, 0.5); 
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: 0.3s ease;
}

.card:hover::after {
  opacity: 0.25;
}

.cardHeader {
  text-transform: uppercase;
  position: relative;
  width: max-content;
  font-weight: bold;
  transition: all 0.5s ease;
}
.cardHeader::after {
  content: "";
  width: calc(100% + 1rem);
  height: 2.5px;
  transform: translateX(calc(-100% - 1rem));
  background: rgb(165, 165, 165);
  bottom: -2px;
  left: 0;
  position: absolute;
  opacity: 0;
}

.details {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: translateY(95%);
  transition: all 0.5s ease;
}

.card:hover .details {
  transform: translateY(0%);
  transition-delay: 0.5s;
}

.card:hover .cardHeader::after {
  transform: translateX(-1rem);
  transition: 0.5s ease;
  opacity: 1;
}

.card:hover {
  transform: scale(1.1);
  border-radius: 15px;
}


/* ========================
   Backgrounds for cards
=========================== */


#bayrod{
  background: url("../assets/projectpictures/bayrodlogo2.webp");
  background-size: cover;
  background-position: center center;
}

#ytnc{
  background: url("../assets/projectpictures/youtube.webp");
  background-size: cover;
  background-position: center center;
}

#BugattiChiron{
  background: url("../assets/projectpictures/BugattiChiron.webp");
  background-size: cover;
  background-position: center center;
}

#Clock{
  background: url("../assets/projectpictures/clock.webp");
  background-size: cover;
  background-position: center center;
}

#SolarSystem{
  background: url("../assets/projectpictures/solarsystem.webp");
  background-size: cover;
  background-position: center center;
}

#WeatherSite{
  background: url("../assets/projectpictures/Weather.webp");
  background-size: cover;
  background-position: center center;
}

#PasswordGenerator{
  background: url("../assets/projectpictures/password.webp");
  background-size: cover;
  background-position: center center;
}

#Quotes{
  background: url("../assets/projectpictures/quotes.webp");
  background-size: cover;
  background-position: center center;
}

#FreedomLoader{
  background: url("../assets/projectpictures/FreedomLoader.webp");
  /* filter: brightness(50%); */
  background-size: cover;
  background-position: center center;
}

#FreedomLoader::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#R6AgentPicker{
  background: url("../assets/projectpictures/r6picker.webp");
  /* filter: brightness(50%); */
  background-size: cover;
  background-position: center center;
}

#nf-api{
  background: url("../assets/projectpictures/NF4.webp");
  /* filter: brightness(75%); */
  background-size: cover;
  background-position: center center;
}

#nf-api::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#RandomSong{
  background: url("../assets/projectpictures/TherapySession.webp");
  background-size: cover;
  background-position: center center;
}

#neuroHaven{
  background: url("../assets/projectpictures/neuroHaven.webp");
  background-size: cover;
  background-position: center center;
}

#neuroHaven::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.575);
  z-index: 1;
}

#silksong{
  background: url("../assets/projectpictures/silksong.avif");
  background-size: cover;
  background-position: center center;
}

#silksong::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.788);
  z-index: 1;
}

#FreedomLoaderWiki{
  background: url("../assets/projectpictures/FreedomLoaderWiki.png");
  background-size: cover;
  background-position: center center;
}

#FreedomLoaderWiki::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.644);
  z-index: 1;
}

#sysLoader{
  background: url("../assets/projectpictures/sysLoader.jpg");
  background-size: cover;

}

#focus-timer{
  background: url("../assets/projectpictures/focus-timer.png");
  background-size: cover;
  background-position: center center;
}

#draw{
  background: url("../assets/projectpictures/draw.webp");
  background-size: cover;
  background-position: center center;
}

#draw::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.767);
  z-index: 1;
}

#movieLoader{
  background: url("../assets/projectpictures/movieLoader.png");
  background-size: cover;
  background-position: center center;
}

#movieLoader::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.663);
  z-index: 1;
}

#mementoLoader{
  background: url("../assets/projectpictures/mementoLoader.jpg");
  background-size: cover;
  background-position: center center;
}

#mementoLoader::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.663);
  z-index: 1;
}

#encodeLoader{
  background: url("../assets/projectpictures/encodeLoader.webp");
  background-size: cover;
  background-position: center center;
}

#encodeLoader::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.663);
  z-index: 1;
}

#FreedomLoaderWorkshop{
  background: url("../assets/projectpictures/FreedomLoaderWorkshop.png");
  background-size: cover;
  background-position: center center;
}

#FreedomLoaderWorkshop::after { /* Pour avoir un petit fond assombri*/
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1;
}