body {
  background-color: rgb(32, 32, 32);
}

.title {
  margin: 20px;
  color: white;
  text-align: center;
}


.image-container {
    width: 90%;          /* Uses 90% of screen width on mobile */
    max-width: 800px;    /* Prevents it from getting too big on desktop */
    height: 280px;       /* Fixed base height */
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center; 
    transition: all 0.3s ease-in-out;
}

.image-container:hover {
    height: 400px;       /* Keeps it simple and smooth */
}

/* Adjustments for small screens */
@media (max-width: 600px) {
    .image-container {
        height: 280px;   /* Slightly shorter on phones so it's not too bulky */
    }
    
    .image-container:hover {
        height: 600px;   /* Reasonable expansion for mobile tap */
  }
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
}

.bg-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7) blur(2px);
}

.overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn { border-radius: 15px; padding: 8px 16px; cursor: pointer; }

.item-center {
  display: grid;
  align-items: center;
  justify-items: center;
  grid-template-columns: repeat(1, 1fr);
  margin-left: 150;
  margin-right: 150;
}

.description {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    z-index: 2;
}

.project-card:hover .description {
    opacity: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
