/* Projects Archive & Single Styles */

/* Archive Header */
.archive-header {
  background: #f9f9f9;
  padding: 3rem 0;
  margin-bottom: 3rem;
  text-align: center;
}

.archive-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.archive-description {
  max-width: 800px;
  margin: 0 auto;
  color: #666;
}

/* Project Filters */
.project-filters {
  background: #fff;
  padding: 2rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid #eee;
}

.project-filters .container-custom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: #f5f5f5;
  color: #333;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #333;
  color: #fff;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Project Card */
.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.project-card-link {
  display: block;
  color: inherit;
}

.project-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-view-btn {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border: 2px solid #fff;
}

.project-card-content {
  padding: 1.5rem;
}

.project-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-card-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.project-card-category {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  color: #666;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pagination */
.projects-pagination {
  margin-top: 3rem;
}

.projects-pagination ul {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
}

.projects-pagination a,
.projects-pagination span {
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  color: #333;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.projects-pagination a:hover,
.projects-pagination .current {
  background: #333;
  color: #fff;
}

/* No Projects */
.no-projects {
  text-align: center;
  padding: 4rem 0;
  color: #999;
}

/* Single Project Styles */
.project-header {
  background: #f9f9f9;
  padding: 3rem 0;
  margin-bottom: 2rem;
  text-align: center;
}

.project-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.project-categories {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-category {
  padding: 0.375rem 1rem;
  background: #333;
  color: #fff;
  border-radius: 20px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Project Meta */
.project-meta {
  background: #457B9D;
  padding: 3rem 0;
  margin-bottom: 3rem;
  color: #fff;
  opacity: 0; /* Hidden initially for animation */
  animation: none; /* Ensure no animation by default */
}

.project-meta .project-categories {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.project-meta .project-category {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50px;
  padding: 0.35rem 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.project-meta-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0;
}

@media (min-width: 768px) {
  .project-meta {
    padding: 4rem 0;
  }
  
  .project-meta-columns {
    gap: 3rem;
    margin: 0 0 0 5%;
  }
}

@media (min-width: 1024px) {
  .project-meta {
    padding: 5rem 0;
  }
  
  .project-meta-columns {
    flex-direction: row;
    gap: 180px;
  }
}

.project-meta-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0; /* Hidden initially for animation */
}

.project-meta-column--left {
  flex: 0 0 32%;
}

.project-meta-column--right {
  flex: 1;
}

.project-meta-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1.5rem;
}

.project-meta-item strong {
  display: block;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 2em;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.project-meta-item span {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.project-meta-heading {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0px;
  max-width: 640px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .project-meta-item strong {
    font-size: 16px;
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
  }
  
  .project-meta-item span {
    font-size: 1rem;
  }
  
  .project-meta-heading {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .project-meta-item strong {
    font-size: 15px;
    letter-spacing: 0.2em;
    margin-bottom: 0.7rem;
  }
  
  .project-meta-heading {
    font-size: 30px;
  }
}

@media (min-width: 1280px) {
  .project-meta-heading {
    font-size: 30px;
  }
}

.project-meta-heading span {
  display: inline;
  padding: 0 0 1.25rem;
  max-width: 700px;
}

.project-meta-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
  .project-meta-divider {
    width: 90%;
  }
}

@media (min-width: 1024px) {
  .project-meta-divider {
    width: 80%;
  }
}

.project-meta-description {
  padding: 0 0 1.25rem;
  max-width: 700px;
}

.project-short-description {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  text-transform: none;
}

.project-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .project-short-description {
    font-size: 1.1rem;
    line-height: 1.65;
  }
  
  .project-description {
    font-size: 1rem;
    line-height: 1.85;
  }
}

@media (min-width: 1024px) {
  .project-short-description {
    font-size: 1.2rem;
    line-height: 1.7;
  }
  
  .project-description {
    line-height: 1.9;
  }
}

/* Project Content */
.project-content {
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.project-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .project-content {
    padding: 2rem 0;
    margin-bottom: 2.5rem;
  }
  
  .project-content p {
    line-height: 1.75;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .project-content {
    margin-bottom: 3rem;
  }
  
  .project-content p {
    line-height: 1.8;
  }
}

/* Project Gallery */
.project-gallery-section {
  background: #F1FAEE;
  padding: 3.5rem 0 4.5rem;
}

.project-gallery-section .container-custom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-gallery-intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 760px;
}

.project-gallery-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  color: #457b9d;
}

.project-gallery-title {
  margin: 0;
  font-size: 2.35rem;
  color: #1d3557;
}

.project-gallery-lead {
  margin: 0;
  color: rgba(29, 53, 87, 0.75);
  font-size: 1rem;
  max-width: 620px;
}

.project-gallery-hero {
  width: 100%;
  height: 520px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 45px rgba(29, 53, 87, 0.25);
  border: 1px solid rgba(69, 123, 157, 0.35);
}

.project-gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-gallery-subgrid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-auto-rows: 190px;
  gap: 1rem;
}

.project-gallery-large,
.project-gallery-small {
  overflow: hidden;
  background: #a8dadc;
  border: 1px solid rgba(69, 123, 157, 0.2);
}

.project-gallery-large {
  grid-row: span 3;
  min-height: 100%;
}

.project-gallery-large img,
.project-gallery-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) {
  .project-gallery-hero {
    height: 380px;
  }

  .project-gallery-subgrid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .project-gallery-large {
    grid-row: auto;
    min-height: 178px;
  }

  .project-gallery-small:nth-of-type(odd),
  .project-gallery-small:nth-of-type(even) {
    mix-blend-mode: normal;
  }
}

@media (max-width: 640px) {
  .project-gallery-section {
    padding: 2.5rem 0 3.5rem;
  }

  .project-gallery-intro {
    text-align: center;
    align-items: center;
  }

  .project-gallery-title {
    font-size: 1.9rem;
  }

  .project-gallery-hero {
    height: 180px;
  }

  .project-gallery-subgrid {
    grid-auto-rows: 180px;
  }
}

/* Image Modal - Dark Interface Style */
.project-gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(2px);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.project-gallery-modal.is-visible {
  display: flex;
}

.project-gallery-modal-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.project-gallery-modal-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 10;
}

.project-gallery-modal-counter {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.project-gallery-modal-counter span {
  color: #fff;
}

.project-gallery-modal-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-gallery-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.project-gallery-modal-close:hover {
  opacity: 0.7;
}

.project-gallery-modal-close svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.project-gallery-modal-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: auto;
  position: relative;
  z-index: 10;
}

.project-gallery-modal-content img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Contact CTA Card */
.project-contact-cta {
  padding: 4rem 0;
  background: #ffffff;
  margin: 4rem auto 0;
  max-width: 900px;
  width: 100%;
  opacity: 0; /* Hidden initially for animation */
}

.project-contact-cta-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: #ecf8ff;
  padding: 65px;
  border: 1px solid #d4d4d4;
  width: 100%;
}

@media (max-width: 1023px) {
  .project-contact-cta {
    padding: 3rem 0;
  }

  .project-contact-cta-content {
    padding: 2.5rem 2rem;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .project-contact-cta-content {
    gap: 4rem;
    min-height: 420px;
  }
}

.project-contact-cta-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-contact-cta-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0;
  line-height: 1.2;
}
.project-contact-cta-description {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0;
  max-width: 500px;
}

.project-contact-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: fit-content;
}

.project-contact-cta-button:hover {
  background: #2a2a2a;
  color: #fff;
}

.project-contact-cta-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project-contact-cta-button:hover svg {
  transform: translate(2px, -2px);
}

.project-contact-cta-images {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  align-items: stretch;
  height: 100%;
}

.project-contact-cta-image {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  min-height: 260px;
}

.project-contact-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1024px) {
  .project-contact-cta-text {
    flex: 0 0 35%;
    padding-right: 50px;
  }

  .project-contact-cta-images {
    flex: 1;
  }

  .project-contact-cta-image {
    min-height: 100%;
  }
}

@media (max-width: 1023px) {
  .project-contact-cta-title {
    font-size: 2rem;
  }

  .project-contact-cta-description {
    font-size: 1rem;
    max-width: none;
  }

  .project-contact-cta-button {
    width: 100%;
    justify-content: center;
  }

  .project-contact-cta-images {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .project-contact-cta-image {
    aspect-ratio: 16 / 10;
    min-height: 220px;
  }

  .project-contact-cta-image img {
    height: 100%;
  }
}

@media (max-width: 640px) {
  .project-contact-cta-content {
    padding: 2rem 1.5rem;
  }
  
  .project-contact-cta-title {
    font-size: 1.75rem;
  }

  .project-contact-cta-text {
    text-align: center;
    align-items: center;
  }

  .project-contact-cta-description {
    font-size: 0.95rem;
  }

  .project-contact-cta-button {
    letter-spacing: 0.08em;
  }

  .project-contact-cta-image {
    height: 170px;
  }
}

@media (max-width: 480px) {
  .project-contact-cta-title {
    font-size: 1.5rem;
  }
  
  .project-contact-cta-description {
    font-size: 0.9rem;
  }
  
  .project-contact-cta-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-meta.is-visible {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.project-meta.is-visible .project-meta-column {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.project-meta.is-visible .project-meta-column--left {
    animation-delay: 0.2s;
}

.project-meta.is-visible .project-meta-column--right {
    animation-delay: 0.4s;
}

.project-contact-cta.is-visible {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
