@import url(components/animations.css);
@import url(components/loader.css);

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #111;
  background-image: url("../assets/images/Background1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  color: white;
  padding: 2rem;
  user-select: none;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: inline-flex;
  align-items: center ;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.2em;
  font-size: 0.95rem;
  background-color: transparent;
  border: 1px solid #666;
  color: #ccc;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s ease;
}

.back-link:hover {
  background-color: #222;
  color: #fff;
  border-color: #aaa;
}

.back-link .icon-left {
  width: 16px;
  height: 16px;
  filter: invert(80%);
  transition: 0.2s ease;
}

.back-link:hover .icon-left {
  filter: invert(100%);
}



.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.profile-card {
  width: 200px;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: scale(1.05);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-image.loaded {
  opacity: 1;
}

.skeleton {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
  z-index: 1;
}

.profile-hover-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.7);
  opacity: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.profile-card:hover .profile-hover-info {
  opacity: 1;
}

.profile-hover-info h3,
.profile-hover-info p {
  margin: 0;
  padding: 0;
}

.profile-hover-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.profile-hover-info p {
  font-size: 1rem;
  font-weight: 400;
}

h1{
  margin-top: 4rem;
}