.contents.blur .our-work {
  filter: blur(4px);
  transition: filter 0.3s ease;
}

/* Main Content */
.contents {
  max-width: 1600px;
  margin: 0 auto 400px;
  padding: 60px 20px;
}

.layout {
  padding: 200px 0px 160px;
}

/* Title Section */
.title-section {
  text-align: center;
}

.title-section h1 {
  display: block;
  margin: 0 auto;
  line-height: 1;
  color: #000;
  font-weight: 900;
  letter-spacing: -2px;
}


.subtitle {
  font-size: 34px;
  color: #000000;
  font-weight: 400;
  margin-top: 22px;
}

/* Filter Section */
.filter-section {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 120px;
}

.filter-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.filter-btn {
  font-family: var(--font-main-ko);
  padding: 12px 28px;
  border: 2px solid #466BFF;
  background-color: #ffffff;
  color: #466BFF;
  border-radius: 30px;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: #466BFF;
  color: #ffffff;
}

.filter-btn:hover:not(.active) {
  background-color: #fff;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

/* 카테고리별 호버 색상 */
.project-card[data-category="이커머스"]:hover .project-category {
  color: #1E3A8A;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card[data-category="브랜딩"]:hover .project-category {
  color: #3B82F6;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card[data-category="웹개발"]:hover .project-category {
  color: #60A5FA;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card[data-category="모바일App"]:hover .project-category {
  color: #949596;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-content {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blue-card {
  background: linear-gradient(to right, #1E3A8A, #080F24);
}

.orange-red-card {
  background: linear-gradient(to right, #3B82F6, #234C90);
}

.green-card {
  background: linear-gradient(to right, #60A5FA, #4679B7);
}

.pink-card {
  background: linear-gradient(to right, #F8FAFC, #949596);
}

.card-title {
  font-family: var(--font-main-en);
  color: #ffffff;
  font-size: 22px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

/* 호버 시 숨겨질 상세보기 콘텐츠 */
.card-hover-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hover-detail {
  font-family: var(--font-main-ko);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.hover-detail:nth-child(3) {
  font-size: 18px;
  font-weight: 400;
  border: 1px solid #fff;
  padding: 10px 20px;
  border-radius: 30px;
  margin: 10px 0 20px;
}

/* 호버 시 배경 오버레이 */
.card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px 20px 20px 0;
  z-index: 0;
}

.card-info {
  text-align: left;
  width: 100%;
  padding: 20px 0;
}

.project-category {
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 16px;
}

.project-type {
  font-size: 22px;
  color: #000000;
  margin-bottom: 2px;
  font-weight: 500;
}

.project-client {
  font-size: 18px;
  color: #9A9898;
}

.result-logo-wrapper {
  width: 100%;
}

.result-logo {
  height: 20px;
  width: auto;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
  .contents {
    padding: 50px 20px;
    margin-bottom: 300px;
  }

  .layout {
    max-width: 700px;
    padding: 150px 0px 120px;
  }

  .title-section h1 {
    font-size: clamp(70px, 8vw, 90px);
  }

  .subtitle {
    font-size: 28px;
  }

  .filter-section {
    margin-bottom: 80px;
  }

  .project-grid {
    gap: 60px;
    max-width: 1200px;
  }

  .card-content {
    height: 250px;
  }

  .project-category {
    font-size: 30px;
  }

  .project-type {
    font-size: 18px;
  }

  .project-client {
    font-size: 16px;
  }
}

/* 중간 태블릿 */
@media (max-width: 768px) {
  .contents {
    padding: 40px 20px;
    margin-bottom: 200px;
  }

  .layout {
    padding: 120px 0px 80px;
  }

  .title-section h1 {
    font-size: clamp(50px, 8vw, 60px);
  }

  .subtitle {
    font-size: 24px;
  }

  .filter-section {
    margin-bottom: 60px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 100%;
  }

  .card-content {
    height: 220px;
  }

  .card-title {
    font-size: 18px;
  }

  .project-category {
    font-size: 24px;
  }

  .project-type {
    font-size: 16px;
  }

  .project-client {
    font-size: 14px;
  }

  .filter-buttons {
    gap: 15px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 18px;
  }
}

/* 모바일 반응형 */
@media (max-width: 480px) {
  .contents {
    padding: 30px;
    ;
    margin-bottom: 150px;
  }

  .layout {
    padding: 80px 0px 60px;
  }

  .title-section h1 {
    font-size: clamp(40px, 8vw, 50px);
  }

  .subtitle {
    font-size: 18px;
    margin-top: 15px;
  }

  .filter-section {
    margin-bottom: 40px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 100%;
  }

  .card-content {
    height: 200px;
  }

  .card-title {
    font-size: 16px;
  }

  .project-category {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .project-type {
    font-size: 14px;
  }

  .project-client {
    font-size: 12px;
  }

  .filter-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
  }

  .load-more-btn {
    padding: 12px 24px;
    font-size: 16px;
  }

  .btn-icon {
    width: 20px;
    height: 20px;
  }
}

/* 작은 모바일 기기 */
@media (max-width: 360px) {
  .contents {
    padding: 20px 20px;
    margin-bottom: 100px;
  }

  .layout {
    padding: 60px 0px 40px;
  }

  .subtitle {
    font-size: 16px;
  }

  .project-grid {
    gap: 20px;
  }

  .card-content {
    height: 180px;
  }

  .card-title {
    font-size: 14px;
  }

  .project-category {
    font-size: 18px;
  }

  .project-type {
    font-size: 13px;
  }

  .project-client {
    font-size: 11px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .load-more-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Hover Effects */
.project-card:hover .card-content {
  transform: translateY(-8px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 75px 75px 75px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* 호버 시 제목 숨기기 */
.project-card:hover .card-title {
  opacity: 0;
  transform: scale(1.08);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 호버 시 배경 오버레이 표시 */
.project-card:hover .card-content::before {
  opacity: 1;
}

/* 호버 시 상세보기 표시 */
.project-card:hover .card-hover-content {
  opacity: 1;
  pointer-events: auto;
}

/* Hidden Projects */
.hidden-project {
  display: none;
}

/* Load More Section */
.load-more-section {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background-color: #fff;
  color: #466BFF;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #466BFF;
  border-radius: 30px;
}

.load-more-btn:hover {
  background-color: #466BFF;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
  color: #fff;
}

.load-more-btn .btn-text {
  gap: 6px;
}

.load-more-btn:hover .btn-text svg {
  fill: #ffffff;
}

/* Animation for filter buttons */
.filter-btn {
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}