.projects {
    width: 100%;
    min-height: 100vh;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #f8f8f8;
}

.project-section-title{
    margin-bottom: 100px;
}

/* card containter */
.project-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* each card*/
.project-card {
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


.project-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.project-period {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.project-description {
    max-height: 0;
    opacity: 0;
    margin-bottom: 10px;
    transform: translateY(10px); /* Animation below */
    overflow: hidden;
    transition:
      max-height 0.6s ease,
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  
  .project-card.active .project-description {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0); 
    margin-top: 10px;
  }
  .hint {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
  }
  .project-card.active .hint {
    display: none;
  }
  
  .project-video {
    width: 100%;
    height: 180px;
    max-height: 900px; 
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
}
.project-video-travel{
    width: 100%;
    height: 180px;
}

.github-link {
    display: block; 
    text-align: center; 
    margin: 10px auto; 
}

.github-icon {
    width: 25px; 
    height: auto;     transition: transform 0.3s ease; 
}

.github-icon:hover {
    transform: scale(1.1); 
}