/* Grid layout for project sections */
.grid-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-top: 1rem;
  }

  /* Each project card */
  .grid-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    
    
    
  }
  
  /* Hover effect with glow */
  .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.466),
                0 0 20px rgba(0, 0, 0, 0.575);
  }
  
  /* Image in each grid item */
  .grid-item img {
    border-radius: 6px;
    object-fit: cover;
    height: 100px;
    width: -webkit-fill-available;
    
  }
  
  /* Title under image */
  .grid-item p {
    margin: 0.5rem 0 0;
    font-weight: bold;
    font-size: 1rem;
    
  }
  
  /* Description text */
  .description-text {
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 0.25rem;
    margin-bottom: 1.8rem;
  }
  
  /* Optional: Add glow effect to section headings */
  #projects h4 {
    color: #00ffe7;
    margin-top: 2rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
  }
  
  /* Tag style */
  #projects .tag {
    color: #ff79c6;
    font-weight: bold;
    margin-bottom: 1rem;
    display: inline-block;
    font-size: 1.1rem;
  }
  
  /* Link animation style */
  .animated-button {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  .animated-button:hover .icon {
    transform: translateX(5px);
  }
  
  .animated-button:hover {
    color: #fff;
  }
  
  .contact-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(160, 21, 153, 0.5),
    rgba(183, 1, 255, 0.5),
    rgb(255, 196, 0),
    rgb(230, 3, 22)
  );
  background-size: 200% 200%;
  animation: softFlow 30s ease-in-out infinite;
  pointer-events: none;
}

@keyframes softFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
