:root {
  color-scheme: light;
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  background-color: #f6f7fb;
  color: #1c1c1c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f7fb;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.portfolio-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #2563eb;
}

.back-link .iconify {
  font-size: 1.25rem;
}

.portfolio-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937;
}

.portfolio-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portfolio-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.portfolio-thumbnail {
  height: 160px;
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.portfolio-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-content p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 4px 12px;
  border-radius: 9999px;
  background: #e0e7ff;
  color: #3b82f6;
  font-weight: 500;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-header h1 {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
