body {
  background: #1c1c1c;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  color: green;
  text-shadow: 5px 2px yellowgreen;
  font-size: 100px;
  text-align: center;
  margin-top: 30px;
  
  
  
}

/* Column label styling */
.column-labels {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 20px;
  color: red;
  font-weight: bold;
}

/* Row label styling */
.row-labels {
  position: absolute;
  left: 10px;
  top: 250px;
  display: flex;
  flex-direction: column;
  gap: 140px;
  color: violet;
  font-weight: bold;
}

/* Card Grid */
.card-container {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 25px;
  justify-content: center;
  padding: 40px;
}

.card {
  position: relative;
  width: 300px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 385, 0, 0.7);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  background: #000;
}

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

.card span {
  position: absolute;
  background: lime;
  box-shadow: 0 0 5px greenyellow;
  transition: transform 0.4s ease;
}

.card span.top {
  top: 0; left: 0; width: 100%; height: 3px;
  transform: scaleX(0);
  transform-origin: left;
}
.card:hover span.top { transform: scaleX(1); }

.card span.right {
  top: 0; right: 0; width: 3px; height: 100%;
  transform: scaleY(0);
  transform-origin: top;
}
.card:hover span.right { transform: scaleY(1); }

.card span.bottom {
  bottom: 0; left: 0; width: 100%; height: 3px;
  transform: scaleX(0);
  transform-origin: right;
}
.card:hover span.bottom { transform: scaleX(1); }

.card span.left {
  top: 0; left: 0; width: 3px; height: 100%;
  transform: scaleY(0);
  transform-origin: bottom;
}
.card:hover span.left { transform: scaleY(1); }

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  width: 90%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 80px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}
.close:hover {
  background: rgba(75, 75, 255, 0.2);
}