/* Custom CSS for Vlad Kruchinsky Portfolio */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Reserved Typography - More Subtle and Minimal */
h1 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.4;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
}

h4 {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Custom Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, #F2C9C4 0%, #ff74ae 100%);
  color: rgb(255, 255, 255);
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Micro shadow */
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-portfolio {
  display: inline-flex;
  padding: 0.5rem 1.5rem; 
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #e8ffe3, #8fff97);
  color: rgb(35, 35, 35);
  letter-spacing: 1.em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0 1px 3px rgba(0, 0, 0, 0.2) ease;
}

.btn-portfolio:hover {
  opacity: 1;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fallback-image {
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  border-radius: 0.375rem;
  background-color: #f3f4f6;
  color: #374151;
}

.badge.current {
  background-color: #dcfce7;
  color: #166534;
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 20rem;
}

/* Navigation background transitions */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Text truncation utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero image positioning */
.hero-image {
  max-width: 1000px;
  margin-bottom: 6rem;
}

/* Exhibitions simple layout */
.exhibition-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem 0;
}

.exhibition-item:last-child {
  border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .hero-image {
    margin-bottom: 3rem;
  }
}