/* ==========================================================================
   avvizo.dev — realizacje (realizacje.html)
   ========================================================================== */

/* --- Nagłówek podstrony --- */
.page-header {
  padding: 160px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Siatka portfolio --- */
.portfolio {
  padding: 0 40px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.portfolio-card {
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.portfolio-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 32px;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-thumb.square {
  aspect-ratio: 1 / 1;
}

.portfolio-info {
  padding: 28px 32px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.portfolio-tag {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-info h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-link:hover {
  color: var(--text-primary);
}

.portfolio-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.portfolio-link:hover i {
  transform: translateX(3px);
}

/* --- CTA pod portfolio --- */
.portfolio-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.cta-box {
  padding: 56px 40px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-box .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Responsywność podstrony --- */
@media (max-width: 768px) {
  .page-header {
    padding: 100px 20px 40px;
  }

  .portfolio {
    padding: 0 20px 60px;
  }

  .portfolio-cta {
    padding: 0 20px 60px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portfolio-info {
    padding: 20px;
  }

  .portfolio-info h2 {
    font-size: 18px;
  }

  .portfolio-info p {
    font-size: 13px;
  }

  .portfolio-tags {
    gap: 6px;
    margin-bottom: 12px;
  }

  .portfolio-tag {
    font-size: 10px;
    padding: 3px 10px;
  }

  .portfolio-link {
    font-size: 12px;
  }

  .cta-box {
    padding: 36px 24px;
  }

  .cta-box p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .cta-box .hero-actions {
    flex-direction: column;
  }

  .cta-box .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
