:root {
  --vlah-font-heading: "Roboto Slab", serif;
  --vlah-font-body: "Roboto", sans-serif;
  
  --vlah-gap-xs: 0.5rem;
  --vlah-gap-sm: 1rem;
  --vlah-gap-md: 1.5rem;
  --vlah-gap-lg: 2rem;
  --vlah-gap-xl: 3rem;
  
  --vlah-radius-sm: 6px;
  --vlah-radius-md: 12px;
  --vlah-radius-lg: 20px;
  
  --vlah-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --vlah-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --vlah-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  
  --vlah-bg: #F2F1ED;
  --vlah-bg-surface: #F8F7F4;
  --vlah-bg-soft: rgba(0,0,0,0.03);
  --vlah-border: #D8D6D1;
  
  --vlah-color-text: #1F2328;
  --vlah-color-muted: #3A4048;
  --vlah-color-accent: #2F5D7C;
  --vlah-color-success: #059669;
  --vlah-color-warning: #D97706;
  --vlah-color-error: #DC2626;
  
  --vlah-type-app: #2563eb;
  --vlah-type-project: #7c3aed;
  --vlah-type-post: #059669;
  --vlah-type-prototype: #D97706;
}

.vlah-portfolio {
  font-family: var(--vlah-font-body);
  line-height: 1.6;
  color: var(--vlah-color-text);
}

.vlah-portfolio *,
.vlah-portfolio *::before,
.vlah-portfolio *::after {
  box-sizing: border-box;
}

.vlah-portfolio h1, .vlah-portfolio h2, .vlah-portfolio h3, .vlah-portfolio h4 {
  font-family: var(--vlah-font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--vlah-gap-sm);
}

.vlah-portfolio h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.vlah-portfolio h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.vlah-portfolio h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.vlah-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--vlah-gap-sm);
}

.vlah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--vlah-gap-lg);
  margin: var(--vlah-gap-lg) 0;
}

@media (max-width: 768px) {
  .vlah-grid {
    grid-template-columns: 1fr;
    gap: var(--vlah-gap-md);
  }
}

.vlah-card {
  display: flex;
  flex-direction: column;
  background: var(--vlah-bg-surface);
  border: 1px solid var(--vlah-border);
  border-radius: var(--vlah-radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.vlah-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vlah-shadow-lg);
}

.vlah-card__image {
  aspect-ratio: 1/1;
  background: var(--vlah-bg-soft);
  overflow: hidden;
}

.vlah-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.vlah-card__content {
  padding: var(--vlah-gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--vlah-gap-xs);
  flex: 1;
}

.vlah-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.vlah-card__excerpt {
  color: var(--vlah-color-muted);
  font-size: 0.95rem;
  margin: 0;
}

.vlah-card__meta {
  margin-top: auto;
  padding-top: var(--vlah-gap-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--vlah-gap-xs);
  align-items: center;
}

.vlah-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--vlah-bg-surface);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--vlah-border);
}

.vlah-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--vlah-gap-sm);
  display: flex;
  align-items: center;
  gap: var(--vlah-gap-md);
  height: 56px;
}

.vlah-header__logo {
  font-family: var(--vlah-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--vlah-color-text);
}

.vlah-header__nav {
  display: flex;
  gap: var(--vlah-gap-xs);
  flex: 1;
  justify-content: center;
}

.vlah-header__nav a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--vlah-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--vlah-color-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.vlah-header__nav a:hover,
.vlah-header__nav a.is-active {
  color: var(--vlah-color-text);
  background: var(--vlah-bg-soft);
}

.vlah-header__nav a.is-active {
  background: var(--vlah-color-accent);
  color: white;
}

@media (max-width: 768px) {
  .vlah-header__nav {
    display: none;
  }
}

.vlah-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vlah-gap-sm);
  margin-bottom: var(--vlah-gap-lg);
  padding: var(--vlah-gap-md);
  background: var(--vlah-bg-surface);
  border-radius: var(--vlah-radius-md);
}

.vlah-filters__group {
  display: flex;
  gap: var(--vlah-gap-xs);
}

.vlah-filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--vlah-border);
  border-radius: 50px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vlah-color-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.vlah-filter-btn:hover {
  border-color: var(--vlah-color-text);
  color: var(--vlah-color-text);
}

.vlah-filter-btn.is-active {
  background: var(--vlah-color-text);
  color: white;
  border-color: var(--vlah-color-text);
}

.vlah-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--vlah-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vlah-badge--app { background: rgba(37,99,235,0.15); color: var(--vlah-type-app); }
.vlah-badge--project { background: rgba(124,58,237,0.15); color: var(--vlah-type-project); }
.vlah-badge--post { background: rgba(5,150,105,0.15); color: var(--vlah-type-post); }
.vlah-badge--prototype { background: rgba(217,119,6,0.15); color: var(--vlah-type-prototype); }

.vlah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vlah-gap-xs);
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--vlah-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vlah-btn--primary {
  background: var(--vlah-color-accent);
  color: white;
}

.vlah-btn--primary:hover {
  background: var(--vlah-color-text);
}

.vlah-btn--secondary {
  background: transparent;
  border-color: var(--vlah-border);
  color: var(--vlah-color-text);
}

.vlah-btn--secondary:hover {
  border-color: var(--vlah-color-text);
}

.vlah-hero {
  padding: var(--vlah-gap-xl) 0;
  text-align: center;
}

.vlah-hero__title {
  max-width: 800px;
  margin: 0 auto var(--vlah-gap-md);
}

.vlah-hero__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--vlah-gap-sm);
  color: var(--vlah-color-muted);
}

.vlah-hero__meta span:not(:last-child)::after {
  content: "•";
  margin-left: var(--vlah-gap-sm);
  opacity: 0.5;
}

.vlah-tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  background: var(--vlah-bg-soft);
  border-radius: var(--vlah-radius-sm);
  font-size: 0.8rem;
  color: var(--vlah-color-muted);
}

.vlah-empty {
  text-align: center;
  padding: var(--vlah-gap-xl);
  color: var(--vlah-color-muted);
}

.vlah-skeleton {
  background: linear-gradient(90deg, var(--vlah-bg-soft) 25%, var(--vlah-border) 50%, var(--vlah-bg-soft) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vlah-card,
  .vlah-card__image img,
  .vlah-filter-btn,
  .vlah-btn,
  .vlah-header__nav a {
    transition: none;
  }
  
  .vlah-skeleton {
    animation: none;
  }
}

:focus-visible {
  outline: 2px solid var(--vlah-color-accent);
  outline-offset: 2px;
}

.vlah-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
