@charset "utf-8";

.works-detail-hero {
  height: 40vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  overflow: hidden;
  padding: 2rem;
}

.works-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(0, 247, 255, 0.1) 49%, transparent 51%) 0 0 / 30px 30px,
    linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.1) 49%, transparent 51%) 0 0 / 30px 30px;
  opacity: 0.5;
  animation: backgroundShift 30s linear infinite;
}

.works-detail-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 247, 255, 0.3);
}

.works-detail-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.works-filter {
  background: linear-gradient(180deg, #0a0a0a, #111);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.search-box {
  margin-bottom: 1.5rem;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1.2rem 3rem 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.1);
}

.search-box i {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.works-item {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 1px 1px rgba(255, 255, 255, 0.05);
  aspect-ratio: 4/3;
  transform: translateY(0);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  z-index: 0;
  transition-delay: 0s;
}

.works-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.works-item:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow:
  0 15px 30px rgba(0, 0, 0, 0.25),
  0 0 30px rgba(0, 247, 255, 0.15),
  0 1px 1px rgba(255, 255, 255, 0.05);
}

.works-item:hover::before {
  opacity: 1;
}

.work-category {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(0, 247, 255, 0.95);
  border-radius: 30px;
  font-size: 0.85rem;
  color: #0a0a0a;
  font-weight: 600;
  z-index: 2;
  transition: all 0.2s ease-out;
}

.works-item:hover .work-category {
  transform: translateY(-3px);
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-out;
}

.works-item:hover .work-image {
  transform: scale(1.1);
}

.work-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
  transition: all 0.2s ease-out;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 0.95) 100%
  );
}



.work-title {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.work-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}


@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

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

.category-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
}

.filter-btn:hover {
  background: rgba(0, 247, 255, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px) scale(1.02);
}

.filter-btn.active {
  background: var(--primary-color);
  color: #0a0a0a;
  border-color: var(--primary-color);
  box-shadow:
    0 4px 15px rgba(0, 247, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
}
.filter-btn:focus {
  outline: 2px solid var(--primary-color, #00f7ff);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .category-filter {
    justify-content: center;
    gap: 0.8rem;
  }

  .filter-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .category-filter {
    flex-direction: row;
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
	.works-detail-hero{
		height: 30vh;
		min-height: 300px;
	}
	.works-detail-hero h1{
		font-size:2rem;
	}
  .works-filter{
    padding: 0.8rem 0;
  }
  .category-filter {
    align-items: center;
    gap: 0.4rem;
  }

  .filter-btn {
    width: 38%;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}