

.grid {
  display: grid;
  gap: clamp(4px, 0.5vw, 12px);
  grid-template-columns: repeat(16, minmax(35px, 1fr));
  margin-top: -1rem;

  position: relative;
}

/* Square behavior: each item stays a square no matter the screen size */
.grid-item {
  background: var(--primary-color, #151724);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: 12%;
  aspect-ratio: 1 / 1;       /* <- ensures squares */
  
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

/* Hover/focus states */
.grid-item:hover {
  background: var(--surface-color, rgba(177, 9, 255, 1));
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 28px rgba(177, 9, 255, 0.9);

  transition-delay: 0s; /* start immediately */
}

/* After hover (leave): delay before resetting */
.grid-item {
  transition-delay: 320ms; /* wait 120ms before returning */
}

.grid-item-focus {
  background: var(--surface-color, rgba(177, 9, 255, 1));
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 28px rgba(177, 9, 255, 0.9);

  transition-delay: 0s;
}

.home-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #fff;
  pointer-events: none;
  
  display: flex;
  align-items: flex-end; /* ✅ aligns h2 and p at the bottom */
  justify-content: space-between;
  gap: 20px;            /* space between them */

  width: 70%;          /* optional: give the container a width */
  margin-left: 150px;
}

.home-content h2 {
  font-size: 80px;
  flex: 0.8;            /* ✅ 1 part */
  margin-bottom: 50px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}
.home-content div{
  flex: 0.2;            /* ✅ 1 part */

}
.home-content p {
  font-size: 30px;
  flex: 0.4;            /* ✅ 2 parts (twice as much space) */
  margin-bottom: 65px;
  transform: translate(-150px);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}
