body{
    background-color: black;
}

.profile-gallery {
    max-width: 1200px;
    margin: auto;
    padding: 80px 20px;
}

.gallery-title {
    font-size: 70px;
    font-weight: 450;
    line-height: 80px;
    margin-bottom: 20px;
    color: #FFD700;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-content: center;
}

.profile-card {
    background: white;
    padding: 10px;
    text-align: center;
    height: 370px; 
}

.profile-card img {
    width: 225px; 
    height: 250px;
    object-fit: cover;
}

.profile-card h3 {
    margin: 5px;
    font-size: 20px;
}

.profile-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.profile-card.empty {
    visibility: hidden;
}

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 400px;
    position: relative;
}

.modal img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}
.year-select-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-family: 'Raleway', sans-serif;
  }
  
  .year-select-wrapper label {
    font-weight: 600;
    font-size: 1rem;
    color: white;
  }
  
  .year-select {
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .year-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
  }

  /* Tablet Styles (768px and below) */
  @media screen and (max-width: 768px) {
    .profile-gallery {
      padding: 60px 15px;
    }
    
    .gallery-title {
      font-size: 50px;
      line-height: 60px;
      margin-bottom: 15px;
    }
    
    .profile-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
    }
    
    .profile-card {
      height: 320px;
    }
    
    .profile-card img {
      width: 180px;
      height: 200px;
    }
    
    .profile-card h3 {
      font-size: 18px;
      margin: 8px 0 4px;
    }
    
    .profile-card p {
      font-size: 13px;
    }
    
    .year-select-wrapper {
      margin: 15px 0;
    }
    
    .year-select-wrapper label {
      font-size: 0.9rem;
    }
    
    .year-select {
      padding: 6px 12px;
      font-size: 0.9rem;
    }
  }

  /* Mobile Styles (480px and below) */
  @media screen and (max-width: 480px) {
    .profile-gallery {
      padding: 40px 10px;
    }
    
    .gallery-title {
      font-size: 36px;
      line-height: 42px;
      margin-bottom: 12px;
    }
    
    .profile-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    
    .profile-card {
      height: 280px;
      padding: 8px;
    }
    
    .profile-card img {
      width: 140px;
      height: 160px;
    }
    
    .profile-card h3 {
      font-size: 16px;
      margin: 6px 0 3px;
    }
    
    .profile-card p {
      font-size: 12px;
      margin-bottom: 8px;
    }
    
    .btn.connect {
      padding: 8px 16px;
      font-size: 11px;
    }
    
    .year-select-wrapper {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      margin: 12px 0;
    }
    
    .year-select-wrapper label {
      font-size: 0.85rem;
    }
    
    .year-select {
      padding: 6px 10px;
      font-size: 0.85rem;
      width: 100%;
      max-width: 200px;
    }
  }
  