/* ==========================================
   HYLEK - SELECTED WORK PORTFOLIO SECTION
   ========================================== */

.work-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #000000 0%, #000000 40%, #000000 100%);
  border-top: 1px solid var(--color-border-subtle);
  padding: 3rem 0 3rem 0;
  z-index: var(--z-content);
  overflow: hidden;
}

.work-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================
   1. SECTION INTRO HEADER
   ========================================== */
.work-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.5rem auto;
}

.work-eyebrow {
  font-family: var(--font-family-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 1.25rem;
}

.work-title {
  font-family: var(--font-family-primary);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
}

.work-title .highlight-yellow {
  color: var(--color-accent-yellow);
  text-shadow: 0 0 24px var(--color-accent-yellow-glow);
}

.work-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 580px;
}

/* ==========================================
   2. CATEGORY FILTER PILLS
   ========================================== */
.work-filters-wrapper {
  width: 100%;
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: center;
}

.work-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-family-primary);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.filter-btn .dot-indicator {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent-yellow);
  box-shadow: 0 0 8px var(--color-accent-yellow-glow);
  margin-right: 0.15rem;
}

.filter-btn .arrow-icon {
  display: inline-block;
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.30);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn:hover .arrow-icon {
  transform: translateX(3px);
}

.filter-btn.active {
  background: #111315;
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.filter-btn.active .dot-indicator {
  display: inline-block;
  animation: dotPop 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn.active .arrow-icon {
  display: none;
}

@keyframes dotPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   3. PORTFOLIO GRID
   ========================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto 2.25rem auto;
  gap: 2rem;
  width: 100%;
}

.project-card {
  position: relative;
  background: #0B0C0D;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  transition: transform 400ms var(--ease-out-expo), border-color 400ms var(--ease-out-expo), box-shadow 400ms var(--ease-out-expo), opacity 350ms ease, scale 350ms ease;
  will-change: transform;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.project-card.hidden {
  display: none !important;
  opacity: 0 !important;
  scale: 0.95;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

/* 3D Mockup Display Canvas Area */
.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10.5;
  overflow: hidden;
  background: linear-gradient(135deg, #090B0E 0%, #13161C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 600ms var(--ease-out-expo);
  display: block;
}

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

.mockup-3d-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 600ms var(--ease-out-expo);
}

.project-card:hover .mockup-3d-canvas {
  transform: scale(1.035);
}

/* Visual Mockup Device Frame SVG */
.mockup-svg-graphic {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.6));
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(5, 5, 5, 0) 40%, rgba(5, 5, 5, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Card Content Area */
.project-info {
  padding: 1.75rem 1.75rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-yellow);
  margin-bottom: 0.65rem;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: var(--font-family-primary);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.project-arrow-icon {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  opacity: 0.4;
  transform: translateX(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.project-card:hover .project-arrow-icon {
  opacity: 1;
  color: var(--color-accent-yellow);
  transform: translateX(2px);
}

.project-description {
  font-size: 0.925rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-tags {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================
   4. SECTION BOTTOM CTA BLOCK
   ========================================== */
.work-cta-block {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0 auto;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 2.25rem;
  border-radius: 9999px;
  background: #F5FF00;
  border: 1px solid #F5FF00;
  color: #020303;
  font-family: var(--font-family-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 250ms var(--ease-out-expo);
  box-shadow: 0 0 24px rgba(245, 255, 0, 0.25);
  cursor: pointer;
}

.btn-view-all .arrow {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 250ms var(--ease-out-expo);
}

.btn-view-all:hover {
  background: #e5ef00;
  border-color: #e5ef00;
  transform: translateY(-3px);
  box-shadow: 0 0 36px rgba(245, 255, 0, 0.45);
}

.btn-view-all:hover .arrow {
  transform: translate(3px, -3px);
}

/* ==========================================
   5. RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet & Smaller Laptops (768px - 1024px) */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  .work-section {
    padding: 3rem 0 2.5rem 0;
  }

  .work-intro {
    margin-bottom: 2.5rem;
  }

  .work-filters-wrapper {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .work-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 0.6rem 1.15rem;
    font-size: 0.78rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .project-info {
    padding: 1.35rem 1.35rem 1.5rem 1.35rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .work-cta-block {
    padding: 0;
  }
}