/* Main Layout */
main {
  padding-top: 8rem;
  padding-bottom: 6rem;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1536px;
  margin: 0 auto;
}

/* Header Section */
.header-section {
  margin-bottom: 5rem;
}

.header-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-flex {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.header-content {
  max-width: 42rem;
}

.section-label {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--secondary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.main-title {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--on-surface);
  line-height: 1;
}

@media (min-width: 768px) {
  .main-title {
    font-size: 4.5rem;
  }
}

.filter-buttons {
  display: flex;
  gap: 1rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.filter-btn:hover {
  background-color: var(--surface-container-high);
  opacity: 1;
}

.filter-btn.active {
  background-color: var(--surface-container-high);
  border-bottom: 2px solid var(--secondary);
  opacity: 1;
}

.project-grid {
  width: 100%;
  display: flex;
  flex-flow: column;
  gap: 64px;
}

.project-grid-row {
  position: relative;
  display: flex;
  width: 100%;
  gap: 48px;
}

.project-grid-row .project-card {
  height: 100%
}

.project-card {
  position: relative;
  cursor: pointer;
  min-width: 0;
  flex-basis: 100%;
  flex-shrink: 1;
  flex-grow: 1;
}

.img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  margin-bottom: 1.5rem;
}

.project-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(28, 27, 27, 0);
  transition: background-color 0.5s ease;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
}

.project-meta {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--secondary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.project-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  line-height: 1.2;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.project-card:hover .arrow-icon {
  transform: translateX(8px);
}

.project-description {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 28rem;
}

/* Special Full Width Section */
.feature-block {
  padding: 3rem 0;
}

.feature-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  background-color: var(--surface-container-low);
  padding: 2rem;
}

@media (min-width: 768px) {
  .feature-container {
    grid-template-columns: 1fr 1fr;
    padding: 4rem;
  }
}

.feature-content {
  order: 2;
}

@media (min-width: 768px) {
  .feature-content {
    order: 1;
  }
}

.feature-title {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--on-surface);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .feature-title {
    font-size: 3rem;
  }
}

.feature-quote {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-style: italic;
}

.cta-btn {
  padding: 0.75rem 2rem;
  background-color: var(--on-surface);
  color: var(--surface);
  border: none;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--secondary);
}

.feature-img-box {
  order: 1;
  overflow: hidden;
}

@media (min-width: 768px) {
  .feature-img-box {
    order: 2;
  }
}

.feature-img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1s ease;
}

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

/* Pagination */
.pagination {
  margin-top: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(28, 27, 27, 0.1);
  padding-top: 2rem;
}

.page-counter {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--on-surface);
  opacity: 0.4;
  text-transform: uppercase;
}

.pagination-nav {
  display: flex;
  gap: 3rem;
}

.nav-btn {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface);
  transition: color 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
  color: var(--secondary);
}

.nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}