/* css styles */
/* Import Alice font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Alice&display=swap');


.listing-grid {
  max-width: 1200px !important;
  margin: 0 auto !important;
}


/* Apply background image to the entire body */
body {
  /*background-color: #35464a;*/
  background-color: #2e3440;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white; 
    font-family: 'Alice', serif; 
    line-height: 1.6;
    margin: 0;
    padding: 0;
  }
  

  h1{
    text-align: center;
    font-size: 45px;
  }



  
  /* Main content container */
  body > .quarto-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    min-height: 80vh; 
  }
  


.profile-pic {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}





  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 40px; 
    margin-top: 40px;
    padding: 30px 0;
    width: 100%;
  }
  
  .social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: white; 
    background-color: rgba(0, 0, 0, 0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
  }
  
  .social-links a:hover {
    transform: scale(1.15);
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .social-links .iconify {
    width: 32px;
    height: 32px;
    color: white; 
  }
  
  .quarto-title-meta {
    display: none;
  }
  
  .navbar {
    background-color: #d9d9d9; /* Grey background */
    padding: 10px 30px;
    text-align: center;
    position: relative;
    top: 0;
    z-index: 1000;
    font-weight: bold;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .navbar a {
    margin: 0 15px;
    text-decoration: none;
    color: #000000; /* Black text */
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
  }
  
  .navbar a:hover {
    color: #ffffff; 
    background-color: rgba(0, 0, 0, 0.2); 
  }
  

  .navbar {
    display: flex;
    justify-content: center; 
  }
  
  .navbar a {
    font-size: 30px;
    font-weight: normal; 
  }

  .navbar {
    padding: 10px;
    justify-content: center;
  }

  .navbar {
    position: relative !important;
  }

.navbar-fixed-top,
.navbar-fixed-bottom,
.navbar-sticky-top,
.navbar-sticky-bottom {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
}

.quarto-header {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
}

.quarto-header nav {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
}
  
div[style="padding: 1em;"] {
    color: white;
    margin-left: 10%;
    margin-right: 10%;
    text-align: justify; 
  }
  

  div[style="padding: 1em;"] {
    color: white;
    margin-left: 10%;
    margin-right: 10%;
    text-align: justify; 
  }


  div[style="background-color: #f0f0f0; color: black; padding: 1em;"]{
    color: black;
    text-align: justify;
  }
  
  .project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    border-image-outset: inherit;
    padding: 1rem;
    justify-content: center;
  }
  
  .project-card {
    position: relative;
    flex: 0 0 calc(33.333% - 1.5rem);
    margin: 0;
  }
  
  .project-card {
    display: block;
    background-color: #d9d9d9;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: background-color 0.5s ease;
  }
  

  .project-card.completed::after {
    content: "\2714"; 
    position: absolute;
    top: 0px;
    left: 0px;
    font-size: 3rem;
    color: green;
  }

 .project-card.inprogress::after {
   content: "";
   position: absolute;
   top: 0px;
   left: 0px;
   width: 1em;
   font-size: 2rem;
   color: gray;
   animation: ellipsis 1s steps(4, end) infinite;
 }
@keyframes ellipsis {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}




.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255,255,255,0.4);
  transition: none;
}

.project-card:hover::after {
  width: 120%;
  background-color: rgba(255,255,255,0);
  transition: all 0.4s ease-in-out;
}








  .project-card img {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    object-fit: contain;
  }
  
  .card-title {
    margin: 1rem;
    font-size: 1.2rem;
     color: black;
  }
  
  .card-text {
    margin: 0 1rem 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    display: -webkit-box; /* for line clamping */
    -webkit-box-orient: vertical; /* for line clamping */
    -webkit-line-clamp: 2; /* limit to 2 lines */
    overflow: hidden; /* hide overflow */
  }
  
  @media (max-width: 900px) {
    .project-card {
      flex: 0 0 calc(50% - 1rem);
    }
  }
  
  @media (max-width: 600px) {
    .project-card {
      flex: 0 0 100%;
    }
  }
  

  
  @media (max-width: 768px) {
    body > .quarto-container {
      padding: 15px;
      margin: 15px;
    }
    
    .navbar {
      padding: 10px;
      justify-content: center;
      position: relative !important;
      top: auto !important;
      bottom: auto !important;
      z-index: auto !important;
    }
    
    .social-links {
      gap: 20px;
      flex-wrap: wrap;
    }
    
    .social-links a {
      width: 50px;
      height: 50px;
    }
    
    .social-links .iconify {
      width: 26px;
      height: 26px;
    }
    
    .project-grid {
      grid-template-columns: 1fr;
    }
  }


.software-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  justify-content: center;
}

.software-card {
  position: relative; 
  display: flex; 
  background-color: #d9d9d9;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  transition: background-color 0.5s ease;
  width: 100%; 
  max-width: 800px;
}

.software-card img {
  width: 40%; 
  object-fit: cover;
  height: 100%;
  display: block;
}

.software-card .card-content {
  padding: 1rem;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.software-card:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255,255,255,0.4);
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
}
.software-card:hover:after {
  width: 120%;
  background-color: rgba(255,255,255,0);
  
	-webkit-transition: all 0.4s ease-in-out;
	   -moz-transition: all 0.4s ease-in-out;
	        transition: all 0.4s ease-in-out;
}
