/* Base typography & layout */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f9fb;
  color: #212529;
  transition: background 0.8s ease, color 0.6s ease;
  position: relative;
}

/* Navbar adjustments for signature logo */
.navbar-brand {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand img {
  display: block;
  margin: -0.25rem 0;
  height: 50px;
  width: auto;
}


/* Body background overlay for smooth transitions */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease, background-image 0.8s ease;
  pointer-events: none;
}

body.has-bg-image::before {
  opacity: 0.15;
  filter: blur(8px);
}

.hero-section {
  background: radial-gradient(circle at top left, #f3f0ff, #ffffff);
  position: relative;
  z-index: 1;
}

/* Hero image */
.hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 1.5rem;
}

/* Gallery container */
.gallery-root {
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

/* Style sections */
.style-section {
  padding: 4rem 0 3rem;
  position: relative;
  z-index: 0;
}

/* Section headings */
.style-section-header {
  position: sticky;
  top: 56px; /* below navbar */
  z-index: 5;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
  backdrop-filter: blur(6px);
}

/* Artwork grid */
.artwork-grid {
  margin-top: 1rem;
}

.artwork-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.artwork-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

/* FIXED: Scale images down while maintaining aspect ratios - NUCLEAR OPTION */
.artwork-image-wrapper {
  width: 100%;
  background: #f8f9fa;
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  max-height: 500px;
  padding: 1rem;
  position: relative;
}

/* Artwork image sizing (scoped to gallery cards only) */
.artwork-image-wrapper img,
.artwork-card img,
.card img {
  display: block !important;
  max-width: 100% !important;
  max-height: 450px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Smaller images for featured section to fit more cards */
.featured-section .artwork-image-wrapper {
  max-height: 400px;
}

.featured-section .artwork-image-wrapper img,
.featured-section .artwork-card img,
.featured-section img {
  max-height: 350px !important;
}

/* Card body */
.artwork-card .card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.artwork-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
}

.artwork-description {
  font-size: 0.9rem;
  color: #495057;
}

/* Subtle style badges */
.style-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

/* Style-based background "moods" */
body.style-oil {
  background: radial-gradient(circle at top left, #f6eadc, #ffffff);
}

body.style-pastels {
  background: linear-gradient(135deg, #ffe5f0, #e6f7ff);
}

body.style-cross-hatching {
  background: repeating-linear-gradient(
    45deg,
    #fafafa,
    #fafafa 4px,
    #e0e0e0 5px,
    #e0e0e0 6px
  );
}

body.style-silk-screen {
  background: radial-gradient(circle at top, #fff0da, #ffffff);
}

body.style-pen-ink {
  background: radial-gradient(circle at top, #f4f4f4, #ffffff);
}

body.style-colored-pencil {
  background: linear-gradient(135deg, #fff5e6, #f0f8ff);
}

body.style-charcoal {
  background: radial-gradient(circle at top, #e8e8e8, #ffffff);
}

body.style-woodcut {
  background: linear-gradient(135deg, #f5ebe0, #ffffff);
}

body.style-etching {
  background: radial-gradient(circle at top, #f0f0f0, #ffffff);
}

body.style-lithograph {
  background: linear-gradient(135deg, #faf5f0, #ffffff);
}

body.style-mezzotint {
  background: radial-gradient(circle at top, #e5e5e5, #ffffff);
}

body.style-pencil {
  background: radial-gradient(circle at top, #f5f5f5, #ffffff);
}

body.style-watercolor {
  background: linear-gradient(135deg, #e6f7ff, #fff0f5);
}

body.style-sculpture {
  background: radial-gradient(circle at top, #f0f0f0, #ffffff);
}

/* Slight fade-in animation for cards */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.artwork-card {
  animation: fadeUp 0.4s ease both;
}

/* Footer */
footer {
  background: #ffffff;
  position: relative;
  z-index: 1;
}

/* Featured Works section at top */
.featured-section {
  padding: 3rem 0 1rem;
  background: #ffffffee;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.featured-section-header {
  position: relative;
}