/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #888888;
  --background: #ffffff;
  --background-light: #fafafa;
  --border: #e5e7eb;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.06);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  z-index: 100;
  border-bottom: 1px solid rgba(229, 231, 235, 0.1);
  transition: var(--transition);
  will-change: background, backdrop-filter;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 1px 1px rgba(0, 0, 0, 0.01);
}

.nav {
  padding: 16px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-svg {
  height: 36px;
  width: auto;
  transition: var(--transition-fast);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 0;
  transition: var(--transition);
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.01) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-family-serif);
  font-size: 128px;
  font-weight: 300;
  line-height: 0.85;
  margin-bottom: 32px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  animation: fadeInUp 1.2s ease-out 0.2s both;
  font-feature-settings: 'kern' 1, 'liga' 1, 'swsh' 1;
}

.hero-logo {
  width: auto;
  height: 1.5em;
  fill: currentColor;
  animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 48px;
  animation: fadeInUp 1s ease-out 0.8s both;
  letter-spacing: 0.02em;
}

/* Featured Work Section */
.featured-work {
  padding: 100px 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--background);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--background);
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.filter-btn:hover:not(.active)::before {
  left: 0;
}

.filter-btn:hover:not(.active) {
  color: var(--background);
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

.artworks-grid {
  column-count: auto;
  column-width: 320px;
  column-gap: 20px;
  margin-top: 32px;
}

.artwork-item {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 12px;
  overflow: hidden;
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
}

.artwork-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.artwork-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.artwork-item:hover img {
  transform: scale(1.02);
}

.artwork-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  color: white;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.artwork-item:hover .artwork-info {
  opacity: 1;
}

.artwork-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.artwork-info p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.01em;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.artwork-item:hover .artwork-info h3,
.artwork-item:hover .artwork-info p {
  transform: translateY(0);
}

/* About Header Layout */
.about-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.about-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  text-align: left !important;
  margin: 0;
  flex: 1;
}

.about-title-centered {
  text-align: center !important;
  margin: 0;
  font-size: 48px;
  font-weight: 400;
}

.about-header .about-image {
  width: 200px;
  flex-shrink: 0;
}

.about-header .about-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1;
}

.about-image-centered {
  width: 280px;
  margin: 0 auto;
}

.about-image-centered img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1;
}

/* About Preview Section */
.about-preview {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-light) 100%);
  position: relative;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-centered {
  max-width: 800px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-text em {
  color: var(--text-secondary);
  font-style: italic;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 32px;
}

.exhibitions h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.exhibition-list {
  space-y: 16px;
}

.exhibition-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

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

.exhibition-info p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.exhibition-info p:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.exhibition-info p:last-child {
  color: var(--text-secondary);
}

.exhibition-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--background);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-header h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-header p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-form {
  background: var(--background);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: var(--text-primary);
  color: var(--background);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--text-secondary);
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.contact-links {
  margin-bottom: 24px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
  border-radius: 8px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.contact-links a:hover {
  color: var(--text-primary);
  background: rgba(26, 26, 26, 0.03);
  transform: translateX(4px);
}

.contact-links a svg {
  transition: var(--transition);
}

.contact-links a:hover svg {
  transform: scale(1.1);
}

.cv-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--background-light);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

.cv-download:hover {
  background: var(--text-primary);
  color: var(--background);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--background);
  padding: 64px 0 48px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-svg {
  height: 36px;
  width: auto;
  filter: invert(1);
}

.footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--background);
}

.back-to-top {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.back-to-top:hover {
  color: var(--background);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .artworks-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .nav-container {
    padding: 0 20px;
  }
  
  .logo-svg {
    height: 32px;
  }
  
  .hero {
    min-height: 100vh;
    padding: 20px 0;
  }
  
  .hero-title {
    font-size: 88px;
    line-height: 0.8;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-description {
    font-size: 16px;
  }
  
  .about-header {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }
  
  .about-header .about-image {
    width: 150px;
  }
  
  .about-title {
    text-align: center !important;
  }
  
  .about-text h2,
  .contact-header h2 {
    font-size: 32px;
  }
  
  .filter-buttons {
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 4px 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-buttons::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .artworks-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .about-preview,
  .contact {
    padding: 80px 0;
  }
  
  .footer {
    padding: 48px 0 32px;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
  
  .footer-container {
    padding: 0 20px;
  }
  
  .footer-logo-svg {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-container {
    padding: 0 16px;
  }
  
  .logo-svg {
    height: 28px;
  }
  
  .hero {
    min-height: 100vh;
    padding: 20px 0;
  }
  
  .hero-title {
    font-size: 64px;
    line-height: 0.75;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .nav-menu {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 8px 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-description {
    font-size: 15px;
  }
  
  .filter-buttons {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
  
  .artworks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .about-grid,
  .contact-grid {
    gap: 32px;
  }
  
  .about-text h2,
  .contact-header h2 {
    font-size: 28px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
  
  .footer-container {
    padding: 0 16px;
  }
  
  .footer-logo-svg {
    height: 28px;
  }
}

/* Filter functionality */
.artwork-item[data-category] {
  transition: var(--transition);
}

.artwork-item.hidden {
  display: none;
}

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

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Loading state */
body.loading {
  overflow: hidden;
}

body.loading::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

/* Loading spinner */
body.loading::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--text-primary);
  border-radius: 50%;
  z-index: 10001;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* High contrast improvements */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --border: #666666;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.filter-btn:focus,
.submit-btn:focus,
.cv-download:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Custom cursor for interactive elements */
.artwork-item,
.filter-btn,
.nav-link,
.logo,
.submit-btn,
.cv-download,
.back-to-top {
  cursor: pointer;
}

.artwork-item:hover {
  cursor: pointer;
}

/* Selection styling */
::selection {
  background: rgba(26, 26, 26, 0.1);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(26, 26, 26, 0.1);
  color: var(--text-primary);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Gallery Styles */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.page-title {
  font-family: var(--font-family-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.page-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.gallery-section {
  padding: 80px 0;
  background: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-link {
  display: block;
  position: relative;
}

.gallery-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
  width: 100%;
}

.overlay-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.overlay-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.01em;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.gallery-item:hover .overlay-content h3,
.gallery-item:hover .overlay-content p {
  transform: translateY(0);
}

/* Responsive gallery styles */
@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 40px;
  }
  
  .page-title {
    font-size: 36px;
  }
  
  .page-description {
    font-size: 16px;
  }
  
  .gallery-section {
    padding: 60px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .gallery-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 32px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gallery-image {
    height: 240px;
  }
  
  .gallery-overlay {
    padding: 20px;
  }
  
  .overlay-content h3 {
    font-size: 18px;
  }
  
  .overlay-content p {
    font-size: 14px;
  }
}

/* Image Modal Styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.image-modal.active {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  z-index: 10001;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  z-index: 10001;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-content {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 140px 80px 80px;
  gap: 60px;
}

.modal-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-info {
  width: 400px;
  flex-shrink: 0;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 40px;
}

.modal-info h2 {
  font-family: var(--font-family-serif);
  font-size: 42px;
  font-weight: 300;
  color: white;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.modal-details {
  margin-bottom: 30px;
}

.modal-details p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.modal-details strong {
  color: white;
  font-weight: 600;
}

.modal-description {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.modal-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
}

.availability-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.purchase-btn {
  background: white;
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.purchase-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Modal animations */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalImageSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateX(-30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.modal-info {
  animation: modalSlideIn 0.4s ease-out 0.1s both;
}

.modal-image-container {
  animation: modalImageSlideIn 0.4s ease-out both;
}

/* Responsive modal styles */
@media (max-width: 1024px) {
  .modal-content {
    padding: 60px 100px 60px 60px;
    gap: 40px;
  }
  
  .modal-info {
    width: 350px;
    padding-left: 30px;
  }
  
  .modal-info h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    padding: 80px 40px 40px;
    gap: 30px;
    justify-content: flex-start;
    overflow-y: auto;
  }
  
  .modal-info {
    width: 100%;
    padding-left: 0;
    text-align: center;
    height: auto;
    justify-content: flex-start;
  }
  
  .modal-image-container {
    flex: none;
    height: 50vh;
  }
  
  .modal-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  .modal-details {
    margin-bottom: 20px;
  }
  
  .modal-description {
    margin-bottom: 30px;
  }
  
  .modal-nav {
    width: 50px;
    height: 50px;
  }
  
  .modal-prev {
    left: 15px;
  }
  
  .modal-next {
    right: 15px;
  }
  
  .modal-close {
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 70px 20px 30px;
    gap: 20px;
  }
  
  .modal-info h2 {
    font-size: 28px;
  }
  
  .modal-details p {
    font-size: 14px;
  }
  
  .modal-description {
    font-size: 14px;
  }
  
  
  .purchase-btn {
    width: 100%;
    padding: 14px 24px;
  }
}

/* Print styles */
@media print {
  .header,
  .filter-buttons,
  .contact-form,
  .footer,
  .image-modal {
    display: none;
  }
  
  .hero {
    padding: 40px 0 20px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}