/* All Projects Page Styles */

.all-projects-page {
  background: #0A0A0A;
}

/* Projects Hero Section */
.projects-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  overflow: hidden;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, rgba(217,217,217,0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(217,217,217,0.02) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(217,217,217,0.02) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(217,217,217,0.02) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  pointer-events: none;
}

.projects-hero-overlay {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(217, 217, 217, 0.7);
  text-decoration: none;
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.back-link:hover {
  color: #FFFFFF;
  transform: translateX(-4px);
}

.back-link svg {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.back-link:hover svg {
  transform: translateX(-4px);
}

.projects-hero-content {
  animation: fadeInUp 800ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: #FFFFFF;
  margin: 16px 0 16px 0;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.page-subtitle {
  font-family: 'Titillium Web', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(217, 217, 217, 0.7);
  margin: 0;
  letter-spacing: 0.05em;
}

/* Filter Section */
.projects-filter {
  padding: 40px 0;
  background: #000000;
  border-bottom: 1px solid rgba(217, 217, 217, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-btn {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(217, 217, 217, 0.2);
  color: #D9D9D9;
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.filter-btn:hover {
  background: rgba(217, 217, 217, 0.1);
  border-color: rgba(217, 217, 217, 0.4);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

/* Projects Grid */
.projects-grid-section {
  padding: 80px 0 120px;
  background: #0A0A0A;
}

.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

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

/* Project Item */
.project-item {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInProject 600ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.project-item:nth-child(1) { animation-delay: 100ms; }
.project-item:nth-child(2) { animation-delay: 200ms; }
.project-item:nth-child(3) { animation-delay: 300ms; }
.project-item:nth-child(4) { animation-delay: 400ms; }
.project-item:nth-child(5) { animation-delay: 500ms; }
.project-item:nth-child(6) { animation-delay: 600ms; }

@keyframes fadeInProject {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-item.filtered-out {
  display: none;
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  background: #1A1A1A;
  border: 1px solid rgba(217, 217, 217, 0.1);
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.8);
  border-color: rgba(217, 217, 217, 0.3);
}

.project-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 800ms cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.9) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 32px;
  transition: background 400ms ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.project-content {
  position: relative;
  width: 100%;
}

.project-number {
  font-family: 'Titillium Web', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: rgba(217, 217, 217, 0.1);
  position: absolute;
  top: -120px;
  right: 0;
  line-height: 1;
  transition: all 400ms ease;
}

.project-card:hover .project-number {
  color: rgba(217, 217, 217, 0.2);
  transform: scale(1.1);
}

.project-card-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tags span {
  padding: 6px 12px;
  background: rgba(217, 217, 217, 0.1);
  border: 1px solid rgba(217, 217, 217, 0.2);
  color: #D9D9D9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 400ms ease;
}

.project-card:hover .project-tags span {
  background: rgba(217, 217, 217, 0.2);
  border-color: rgba(217, 217, 217, 0.4);
  color: #FFFFFF;
}

.project-arrow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(217, 217, 217, 0.2);
  color: #FFFFFF;
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.project-arrow svg {
  width: 20px;
  height: 20px;
}

/* Call to Action */
.projects-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
  position: relative;
  overflow: hidden;
}

.projects-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, rgba(217,217,217,0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(217,217,217,0.02) 25%, transparent 25%);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-content p {
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(217, 217, 217, 0.7);
  margin: 0 0 32px 0;
  letter-spacing: 0.05em;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #FFFFFF;
  color: #000000;
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-button:hover {
  background: #D9D9D9;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.2);
}

.cta-button svg {
  width: 20px;
  height: 20px;
  transition: transform 400ms ease;
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* Footer adjustments for this page */
.all-projects-page .site-footer {
  background: #000000;
  border-top: 1px solid rgba(217, 217, 217, 0.1);
  padding: 40px 0;
  text-align: center;
}

.all-projects-page .site-footer p {
  color: rgba(217, 217, 217, 0.5);
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-hero {
    padding: 80px 0 60px;
  }

  .projects-grid-section {
    padding: 60px 0 80px;
  }

  .all-projects-grid {
    gap: 24px;
  }

  .project-overlay {
    padding: 24px;
  }

  .project-card-title {
    font-size: 18px;
  }

  .projects-cta {
    padding: 60px 0;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 12px;
  }
}

@media (min-width: 1200px) {
  .all-projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
