/* ============================================================
   PROJECTS ARCHIVE PAGE SPECIFIC STYLES
   ============================================================ */

.projects-body {
  background: #050508;
  color: #f5f5f7;
  padding-top: 100px; /* Offset for fixed nav */
}

/* Header Section */
.projects-header {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.projects-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 16px;
}

.header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #c9a84c;
  margin-bottom: 24px;
}

.header-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 48px;
}

/* Category Filter Tabs */
.filter-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  background: rgba(13, 13, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 8px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-btn:hover {
  color: #f5f5f7;
}

.filter-btn.active {
  background: #c9a84c;
  color: #050508;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.25);
}

/* Projects Grid Section */
.projects-grid-section {
  padding: 40px 0 100px;
  position: relative;
  z-index: 10;
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Project Card */
.project-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.4s, background 0.4s;
  position: relative;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 168, 76, 0.25);
}

/* Card Visual Header */
.card-image-wrap {
  height: 220px;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
  z-index: 0;
}

.project-card:hover .card-image {
  transform: scale(1.15);
  opacity: 0.8;
}

/* Removed card-glow styles */

.card-number {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.08);
  transition: color 0.3s;
}

.project-card:hover .card-number {
  color: rgba(201, 168, 76, 0.3);
}

.card-icon {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.4s, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 2;
}

.card-icon svg {
  width: 48px;
  height: 48px;
}

.project-card:hover .card-icon {
  color: #c9a84c;
  transform: scale(1.1) rotate(2deg);
}

/* Card Content Info */
.card-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.card-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s;
}

.project-card:hover .card-tag {
  border-color: rgba(201, 168, 76, 0.15);
  color: #f5f5f7;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 500;
  color: #f5f5f7;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.project-card:hover .card-title {
  color: #c9a84c;
}

.card-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
}

.card-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.icon-link {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s, transform 0.3s, border-color 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.icon-link:hover {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

/* Bottom CTA section */
.bottom-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.bottom-cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.bottom-cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: #f5f5f7;
  margin-bottom: 32px;
}

/* Footer override */
.projects-footer {
  background: #050508;
  position: relative;
  z-index: 10;
}

.back-link {
  font-weight: 500;
  transition: color 0.3s;
}

.back-link:hover {
  color: #c9a84c;
}

/* Active Nav Links styling */
.nav-link.active {
  color: #f5f5f7;
}

.nav-link.active::after {
  width: 100%;
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 120vh;
    overflow-y: auto;
    padding-bottom: 24px;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.5) transparent;
  }
  
  .grid-container::-webkit-scrollbar {
    width: 4px;
  }
  
  .grid-container::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.5);
    border-radius: 10px;
  }

  .card-image-wrap {
    height: 60px;
  }

  .card-info {
    padding: 10px 14px;
  }

  .card-tags {
    margin-bottom: 6px;
  }

  .card-title {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .card-desc {
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  
  .card-tag {
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  .card-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .projects-body {
    padding-top: 80px;
  }
  
  .projects-header {
    padding: 60px 0 20px;
  }
  
  .filter-container {
    border-radius: 16px;
    padding: 6px;
    width: 100%;
    max-width: 320px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
    width: 100%;
  }
}
