/* ============================================================
   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: var(--font-monoton, 'Monoton', cursive, sans-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: #c9a84c;
  margin-bottom: 24px;
}

.header-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: #ffffff;
  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 {
  padding: 40px 0 100px;
  position: relative;
  z-index: 10;
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  row-gap: 48px;
  max-height: 1350px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.45) rgba(255, 255, 255, 0.02);
}

/* Custom Scrollbar for Projects Grid */
.grid-container::-webkit-scrollbar {
  width: 6px;
}

.grid-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.grid-container::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.grid-container::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.75);
}

/* 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: 270px;
  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: var(--font-display);
  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: 36px 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: 400;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
}

/* Card Dropdown Details */
.card-dropdown {
  margin-top: 4px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.card-dropdown[open] {
  background: rgba(201, 168, 76, 0.04);
  border-color: rgba(201, 168, 76, 0.45);
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c9a84c;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: color 0.2s, background 0.2s;
}

.dropdown-trigger::-webkit-details-marker {
  display: none;
}

.dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  color: #c9a84c;
  flex-shrink: 0;
}

.card-dropdown[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #ffffff;
  animation: dropdownFadeIn 0.25s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-note-box {
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid #c9a84c;
  padding: 7px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #ffffff;
}

.dropdown-note-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #050508;
  background: #c9a84c;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 5px;
}

.dropdown-extra-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  line-height: 1.5;
}

.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: var(--font-monoton, 'Monoton', cursive, sans-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 1.25;
  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: 28px;
    max-width: 620px;
    margin: 0 auto;
    max-height: 85vh;
    overflow-y: auto;
    padding: 16px 16px 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.5) transparent;
  }
  
  .grid-container::-webkit-scrollbar {
    width: 5px;
  }
  
  .grid-container::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.5);
    border-radius: 10px;
  }

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

  .card-info {
    padding: 20px;
  }

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

  .card-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  .card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 12px;
  }
  
  .card-tag {
    font-size: 0.72rem;
    padding: 3px 9px;
  }

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

@media (max-width: 480px) {
  .projects-body {
    padding-top: 80px;
  }
  
  .projects-header {
    padding: 60px 0 20px;
  }

  .grid-container {
    gap: 22px;
    padding: 12px 12px 30px;
  }

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

  .card-info {
    padding: 16px;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  
  .filter-container {
    border-radius: 16px;
    padding: 6px;
    width: 100%;
    max-width: 320px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
    width: 100%;
  }
}
