
/*Variables colors*/
:root {
  --background-color-light: #fff;
  --text-color-light: #333;
  --background-color-dark: #171e1e;
  --text-color-dark: #fff;
  --border-color: #abc4aa;
}

/*css for main content starts here*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: "Helvetica", sans-serif;
  line-height: 1.6;
  letter-spacing: normal;
  font-size: 16px;
  background-color: #161c23;
  color: var(--text-color-dark);
}


.section-container{
  display: block !important;
  min-height: 100dvh;
}

h2{
  margin-top: 86px;
  text-align: center;
  color: gold;
}

.filters {
  text-align: center;
  padding: 20px;
}

.filters select{
  height: 30px;
}

.filters label{
  color: var(--text-color-dark);
  font-size: 1.1rem;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 1rem;
}

.project-item {
  width: 400px;
  height: 445px;
  padding: 20px;
  margin: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #181815;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.project-item img {
  width: 100%;
  height: 200px;
  border-radius: 5px;
  transition: all 1s ease-in-out;
  cursor: pointer;
}

.project-item img:hover{
  transform: translateY(-5px);
}

.project-item h3 {
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
  color: var(--text-color-dark);
}

.project-item p {
  margin-top: 10px;
  color: #ddd;
  font-weight: 400;
}

.project-item a {
  position: absolute;
  top: 16%;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #333;
  color: #4fc2fa;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid gold;
  opacity: 0;
}

.project-item:hover a{
  animation: showLink 0.2s ease-in-out 0.3s forwards;
  
}
@keyframes showLink {
  0% {
    opacity: 0; 
  }
  100% {
    opacity: 1;
  }
}


.project-item a:hover {
  background-color: #555;
}

    .project-item .visit-demo {
      position: absolute;
      top: calc(100% - 210px);
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: rgba(0, 0, 0, 0.78);
      color: #fff;
      transform: translateY(100%);
      transition: transform 0.2s ease-in-out;
     
    }

    .project-item:hover .visit-demo {
      transform: translateY(0);
      animation: showVisitDemo 0.5s ease-in-out forwards;

    }

   @keyframes showVisitDemo {
  0% {
    opacity: 0; 
  }
  50% {
    opacity: 1; 
  }
  100% {
    opacity: 1; 
  }
}

@media (max-width: 600px) {
  .project-item {
    width: 100%;
    margin: 20px 5px;
  }
}

@media (min-width: 1241px) {
  .projects-showcase {
    margin-left: 260px;
    margin-top: 86px;
  }
}

