/* Anet-Art Design System
   Premium gallery aesthetic with organic, nature-inspired elements
   Bootstrap 5.1 Overrides + Custom Styles
*/

/* ===== CSS Variables ===== */
:root {
    /* Core palette */
    --background: hsl(40, 20%, 97%);
    --foreground: hsl(35, 25%, 15%);
    --card: hsl(40, 15%, 95%);
    --secondary: hsl(38, 35%, 92%);
    --muted: hsl(35, 15%, 45%);
    --border: hsl(35, 15%, 85%);

    /* Accent colors */
    --accent: hsl(38, 70%, 55%);
    --sage: hsl(145, 22%, 45%);
    --sage-light: hsl(145, 18%, 75%);
    --ochre: hsl(38, 70%, 50%);
    --forest: hsl(150, 35%, 22%);
    --gold: hsl(43, 80%, 55%);

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: 1.5rem;
    --section-padding: 6rem;
}

@media (min-width: 768px) {
    :root {
        --container-padding: 3rem;
        --section-padding: 8rem;
    }
}

/* ===== Base Styles & Bootstrap Overrides ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

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

/* ===== Bootstrap Container Override ===== */
.container {
    max-width: 1400px;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ===== Utilities ===== */
.sage { color: var(--sage); }
.accent { color: var(--accent); }
.gold { color: var(--gold); }

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

header.scrolled {
    background: rgba(250, 248, 245, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.navbar {
    padding: 0;
}

.nav-container {
    padding: 1rem var(--container-padding);
}

@media (min-width: 992px) {
    .nav-container {
        padding: 1.5rem var(--container-padding);
    }
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.logo:hover {
    color: inherit;
}

@media (min-width: 768px) {
    .logo {
        font-size: 1.875rem;
    }
}

/* Desktop Nav Links */
.nav-links {
    gap: 2.5rem;
}

.nav-links .nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #252525;
    padding: 0;
    position: relative;
}

.nav-links .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links .nav-link:hover {
    color: var(--foreground);
}

.nav-links .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu Toggle */
.menu-toggle {
    border: none;
    padding: 0;
    width: 2rem;
    height: 2rem;
    background: transparent;
}

.menu-toggle:focus {
    box-shadow: none;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 24px;
}

.menu-icon span {
    display: block;
    height: 1.5px;
    background: var(--foreground);
    transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:first-child {
    transform: rotate(45deg) translateY(5px);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:last-child {
    transform: rotate(-45deg) translateY(-5px);
}

/* Mobile Menu */
.navbar-collapse {
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(12px);
}

@media (max-width: 991.98px) {
    header:has(.navbar-collapse.show) {
        background: rgba(250, 248, 245, 0.7);
        backdrop-filter: none;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border-top: 1px solid var(--border);
    }

    .navbar-collapse .nav-links {
        flex-direction: column;
        padding: 2rem var(--container-padding);
        gap: 1.5rem;
    }

    .navbar-collapse .nav-link {
        font-family: var(--font-serif);
        font-size: 1.5rem;
        text-transform: none;
        letter-spacing: 0;
    }
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
        backdrop-filter: none;
    }
}

/* ===== Hero Section ===== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(250, 248, 245, 0.4),
            rgba(250, 248, 245, 0.6),
            var(--background)
    );
}

/* Organic shapes */
.organic-shape {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(48px);
    pointer-events: none;
}

.shape-1 {
    top: 5rem;
    right: 2.5rem;
    width: 8rem;
    height: 8rem;
    background: hsla(145, 22%, 45%, 0.1);
}

.shape-2 {
    bottom: 10rem;
    left: 2.5rem;
    width: 10rem;
    height: 10rem;
    background: hsla(38, 70%, 50%, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 52% 48% 70%;
}

@media (min-width: 768px) {
    .shape-1 {
        width: 16rem;
        height: 16rem;
    }
    .shape-2 {
        width: 20rem;
        height: 20rem;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
    padding: 0 var(--container-padding);
}

.hero-line {
    width: 6rem;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 2rem;
    transform: scaleX(0);
    animation: expandLine 1s ease 0.5s forwards;
}

@keyframes expandLine {
    to { transform: scaleX(1); }
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    #hero h1 {
        font-size: 6rem;
    }
}

.hero-quote {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 42rem;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .hero-quote {
        font-size: 1.25rem;
    }
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.hero-cta:hover {
    color: var(--accent);
}

.hero-cta i {
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Portfolio Section ===== */
#portfolio {
    padding: var(--section-padding) 0;
    position: relative;
}

.texture-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: multiply;
}

.section-header {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 6rem;
    }
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3.75rem;
    }
}

/* Gallery Grid */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .gallery {
        gap: 2rem;
    }
}

.gallery-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

@media (min-width: 768px) {
    .gallery-col-right {
        gap: 2rem;
    }
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.artwork-wrapper {
    position: relative;
    overflow: hidden;
}

.artwork-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Aspect Ratios */
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-3-4 { aspect-ratio: 3 / 4; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-16-9 { aspect-ratio: 16 / 9; }

@media (max-width: 767px) {
    .gallery-item.large .artwork-wrapper {
        aspect-ratio: 4 / 5;
    }
}

/* Artwork Overlay */
.artwork-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.artwork-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 768px) {
    .artwork-info {
        padding: 2rem;
    }
}

.gallery-item:hover .artwork-info,
.artwork-overlay.visible .artwork-info {
    transform: translateY(0);
    opacity: 1;
}

.artwork-info h3 {
    font-size: 1.25rem;
    color: var(--background);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .gallery-item.large .artwork-info h3,
    .gallery-item.wide .artwork-info h3 {
        font-size: 1.875rem;
    }
}

.artwork-info p {
    font-size: 0.75rem;
    color: rgba(250, 248, 245, 0.8);
    margin-bottom: 0;
}

.artwork-info .price {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--gold);
    margin-top: 0.5rem;
}

/* Gallery Quote */
.gallery-quote {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--muted);
    padding: 1.5rem 1rem;
    border-left: 2px solid rgba(196, 163, 90, 0.3);
    margin: 0;
}

@media (min-width: 768px) {
    .gallery-quote {
        font-size: 1.25rem;
    }
}

.gallery-quote.center {
    border-left: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    height: 100%;
}

@media (min-width: 768px) {
    .gallery-quote.center {
        font-size: 1.5rem;
    }
}

/* Gallery CTA */
.gallery-cta {
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .gallery-cta {
        margin-top: 6rem;
    }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--foreground);
    padding: 1rem 2rem;
    transition: all 0.5s ease;
    background: transparent;
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--foreground);
    color: var(--background);
}

/* ===== About Section ===== */
#about {
    padding: var(--section-padding) 0;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.about-shape-1 {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 20rem;
    height: 20rem;
    background: hsla(145, 22%, 45%, 0.05);
    filter: blur(48px);
}

.about-shape-2 {
    position: absolute;
    bottom: -10rem;
    left: -10rem;
    width: 24rem;
    height: 24rem;
    background: hsla(38, 40%, 70%, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 52% 48% 70%;
    filter: blur(48px);
}

.about-grid {
    position: relative;
    z-index: 10;
}

.about-text {
    order: 2;
}

@media (min-width: 992px) {
    .about-text {
        order: 1;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .about-text h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .about-text h2 {
        font-size: 3.75rem;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--muted);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 0;
}

.about-content blockquote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--foreground);
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    margin: 0;
}

/* Stats */
.about-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    display: block;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

.stat p {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* About Image */
.about-image {
    order: 1;
    position: relative;
}

@media (min-width: 992px) {
    .about-image {
        order: 2;
    }
}

.image-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 2px;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(250, 248, 245, 0.8), transparent);
}

.artist-name {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    margin-bottom: 0;
}

.artist-title {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.deco-border {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 6rem;
    height: 6rem;
    border: 1px solid rgba(196, 163, 90, 0.3);
}

.deco-blob {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: hsla(38, 70%, 50%, 0.1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* ===== Contact Section ===== */
#contact {
    padding: var(--section-padding) 0;
    position: relative;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-info h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .contact-info h2 {
        font-size: 3.75rem;
    }
}

.contact-intro {
    color: var(--muted);
    line-height: 1.8;
    max-width: 28rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box i {
    color: var(--accent);
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p:not(.contact-label) {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 0;
}

.contact-item a:hover {
    color: var(--accent);
}

/* Contact Form - Bootstrap Overrides */
#contact-form .form-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

#contact-form .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0.75rem 0;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--foreground);
    box-shadow: none;
}

#contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: none;
}

#contact-form .form-control::placeholder {
    color: var(--muted);
    opacity: 0.5;
}

#contact-form textarea.form-control {
    resize: none;
}

.form-group.error .form-control {
    border-color: hsl(0, 65%, 50%);
}

.error-message {
    display: none;
    font-size: 0.75rem;
    color: hsl(0, 65%, 50%);
    margin-top: 0.5rem;
}

.form-group.error .error-message {
    display: block;
}

/* Primary Button - Bootstrap Override */
#contact-form .btn-primary {
    background: var(--forest);
    border: none;
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    transition: background 0.3s ease, transform 0.2s ease;
}

#contact-form .btn-primary:hover {
    background: hsl(150, 35%, 28%);
}

#contact-form .btn-primary:active {
    transform: scale(0.98);
}

#contact-form .btn-primary:focus {
    box-shadow: none;
}

/* ===== Footer ===== */
footer {
    background: var(--forest);
    color: var(--background);
}

footer .logo {
    font-size: 1.5rem;
}

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

.footer-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    color: var(--background);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--background);
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(250, 248, 245, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease;
    color: var(--background);
}

.social-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 248, 245, 0.1);
}

.footer-bottom p {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    opacity: 0.5;
    margin-bottom: 0;
}

/* ===== Pulse Animation for Organic Shapes ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ===== Artwork Detail Page ===== */
#artwork-detail {
    padding-top: 7rem;
    padding-bottom: var(--section-padding);
    min-height: 100vh;
}

@media (min-width: 768px) {
    #artwork-detail {
        padding-top: 9rem;
    }
}

/* Breadcrumb */
.artwork-breadcrumb {
    margin-bottom: 2rem;
}

.artwork-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.artwork-breadcrumb .breadcrumb-item {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.artwork-breadcrumb .breadcrumb-item a {
    color: var(--muted);
}

.artwork-breadcrumb .breadcrumb-item a:hover {
    color: var(--foreground);
}

.artwork-breadcrumb .breadcrumb-item.active {
    color: var(--foreground);
}

.artwork-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '→';
    color: var(--muted);
}

/* Main Gallery */
.artwork-gallery {
    position: sticky;
    top: 7rem;
}

.main-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--card);
    margin-bottom: 1rem;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(250, 248, 245, 0.9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--foreground);
    color: var(--background);
    border-color: var(--foreground);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-nav i {
    font-size: 1.25rem;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.7);
    color: var(--background);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* Thumbnails */
.thumbnail-row {
    display: flex;
    gap: 0.75rem;
}

.thumbnail {
    flex: 1;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    border-color: var(--accent);
    opacity: 1;
}

/* Artwork Info */
#artwork-detail .artwork-info {
    position: static;
    padding: 0;
    transform: none;
    opacity: 1;
    background: none;
}

#artwork-detail .artwork-info h1 {
    font-size: 2.5rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    #artwork-detail .artwork-info h1 {
        font-size: 3rem;
    }
}

/* Meta Info */
.artwork-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.meta-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.meta-value {
    font-family: var(--font-serif);
    font-size: 1.125rem;
}

/* Price */
.artwork-price {
    background: var(--secondary);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.price-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--forest);
    margin-bottom: 0.25rem;
}

.price-note {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Description */
.artwork-description {
    margin-bottom: 2rem;
}

.artwork-description h3 {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.artwork-description p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.artwork-description blockquote {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--foreground);
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0 0 0;
}

/* Details List */
.artwork-details {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.artwork-details h3 {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.artwork-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.artwork-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--foreground);
}

.artwork-details li i {
    color: var(--sage);
}

/* Actions */
.artwork-actions .btn-primary {
    background: var(--forest);
    border: none;
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    transition: background 0.3s ease;
}

.artwork-actions .btn-primary:hover {
    background: hsl(150, 35%, 28%);
}

.action-note {
    font-size: 0.875rem;
    color: var(--muted);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Related Artworks */
.related-artworks {
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.related-artworks h2 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.related-item {
    display: block;
    text-decoration: none;
}

.related-image {
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--card);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.related-item:hover h4 {
    color: var(--accent);
}

.related-price {
    font-family: var(--font-serif);
    color: var(--muted);
    font-size: 0.875rem;
}

/* ===== Portfolio Page ===== */
.page-header {
    padding-top: 5rem;
    padding-bottom: 3rem;
    background: var(--secondary);
    position: relative;
}

@media (min-width: 768px) {
    .page-header {
        padding-bottom: 4rem;
    }
}

/* Breadcrumb - integrated into header content */
.page-header .breadcrumb-nav {
    display: none;
}

.page-header-content .section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.page-header-content .section-label a {
    color: var(--muted);
    transition: color 0.3s ease;
}

.page-header-content .section-label a:hover {
    color: var(--accent);
}

.page-header-content .section-label span.separator {
    color: var(--accent);
}

.page-header-content h1 {
    font-size: 3rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-header-content h1 {
        font-size: 4.5rem;
    }
}

.page-header-intro {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.8;
}

/* Portfolio Filters - Minimal elegant style */
.portfolio-filters {
    padding: 2.5rem 0 1.5rem;
    position: relative;
    background: var(--background);
}

.filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .filters-wrapper {
        gap: 0;
    }
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

@media (min-width: 768px) {
    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1.25rem;
    }
}

/* Separator between buttons */
.filter-btn:not(:last-child)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1rem;
    background: var(--border);
    display: none;
}

@media (min-width: 768px) {
    .filter-btn:not(:last-child)::before {
        display: block;
    }
}

.filter-btn:hover {
    color: var(--foreground);
}

.filter-btn.active {
    color: var(--accent);
    font-style: normal;
}

/* Portfolio Grid */
#portfolio-grid {
    padding: 3rem 0 var(--section-padding);
    position: relative;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
}

.portfolio-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    /*position: absolute;*/
}

/* Portfolio Card */
.portfolio-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    color: inherit;
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--card);
    margin-bottom: 1.25rem;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    filter: brightness(1) saturate(1);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.03);
    filter: brightness(1.05) saturate(1.1);
}

/* Subtle frame effect on hover */
.portfolio-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 0 solid rgba(196, 163, 90, 0);
    z-index: 2;
    pointer-events: none;
    transition: all 0.5s ease;
}

.portfolio-card:hover .portfolio-image::before {
    border-width: 3px;
    border-color: rgba(196, 163, 90, 0.4);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.5), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
    z-index: 1;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.view-detail {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(250, 248, 245, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(10px) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

.portfolio-card:hover .view-detail {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.view-detail i {
    font-size: 1rem;
    color: var(--foreground);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .view-detail i {
    transform: translateX(2px);
}

.portfolio-info {
    padding: 0 0.25rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .portfolio-info h3 {
        font-size: 1.5rem;
    }
}

.portfolio-card:hover .portfolio-info h3 {
    color: var(--accent);
}

.portfolio-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.portfolio-price {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--forest);
}

/* Portfolio Count */
.portfolio-count {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.portfolio-count p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* Portfolio CTA */
.portfolio-cta {
    padding: var(--section-padding) 0;
    background: var(--secondary);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

.cta-content p {
    color: var(--muted);
    max-width: 28rem;
    margin: 0 auto 2rem;
}

/* Active nav link */
.nav-links .nav-link.active {
    color: var(--foreground);
}

.nav-links .nav-link.active::after {
    transform: scaleX(1);
}




/* ===== Artwork Fullscreen Lightbox ===== */
#artwork-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#artwork-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(250, 248, 245, 0.3);
    background: transparent;
    color: rgba(250, 248, 245, 0.9);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

/* Nav arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(250, 248, 245, 0.9);
    border: 1px solid rgba(250, 248, 245, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-nav i { font-size: 1.25rem; }

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.7);
    color: rgba(250, 248, 245, 0.95);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* Zoom hint */
#main-image { cursor: zoom-in; }


/* ===== Exhibitions Page ===== */

/* Map Section */
.exhibitions-map {
    position: relative;
}

.map-container {
    width: 100%;
    height: 400px;
    background: var(--card);
}

@media (min-width: 768px) {
    .map-container {
        height: 500px;
    }
}

/* Custom Leaflet Marker */
.custom-marker {
    background: transparent;
}

.marker-pin {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 3px solid var(--background);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.marker-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--accent);
}

/* Custom Popup */
.custom-popup .leaflet-popup-content-wrapper {
    background: var(--background);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.custom-popup .leaflet-popup-tip {
    background: var(--background);
}

.map-popup {
    padding: 1.25rem;
}

.map-popup .popup-status {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    background: var(--muted);
    color: var(--background);
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.map-popup .popup-status.active {
    background: var(--accent);
}

.map-popup h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.map-popup p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

/* Exhibitions List */
.exhibitions-list {
    padding: var(--section-padding) 0;
}

.exhibitions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Exhibition Card */
.exhibition-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exhibition-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.exhibition-date {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 1rem;
    background: var(--secondary);
    border-radius: 4px;
    text-align: center;
}

@media (min-width: 768px) {
    .exhibition-date {
        display: flex;
    }
}

.exhibition-date .day {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
    color: var(--foreground);
}

.exhibition-date .month {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-top: 0.25rem;
}

.exhibition-date .year {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.exhibition-content {
    flex: 1;
}

.exhibition-status {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
    background: var(--muted);
    color: var(--background);
}

.exhibition-status.active {
    background: var(--accent);
}

.exhibition-status.upcoming {
    background: var(--forest);
}

.exhibition-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .exhibition-content h3 {
        font-size: 1.75rem;
    }
}

.exhibition-location {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.exhibition-location i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.exhibition-description {
    color: var(--foreground);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.exhibition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.exhibition-meta i {
    margin-right: 0.5rem;
    color: var(--forest);
}

/* Exhibitions CTA */
.exhibitions-cta {
    padding: var(--section-padding) 0;
    background: var(--secondary);
}

.exhibitions-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .exhibitions-cta h2 {
        font-size: 2.5rem;
    }
}

.exhibitions-cta p {
    color: var(--muted);
    max-width: 28rem;
    margin: 0 auto 2rem;
}

/* ===== Workshop Page ===== */

/* Workshop Hero */
.workshop-hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .workshop-hero {
        padding-top: 12rem;
        padding-bottom: 6rem;
    }
}

.workshop-hero-content h1 {
    font-size: 3.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .workshop-hero-content h1 {
        font-size: 5rem;
    }
}

.workshop-tagline {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--muted);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .workshop-tagline {
        font-size: 1.5rem;
    }
}

.accent-text {
    color: var(--accent);
    font-style: italic;
}

/* Workshop Intro */
.workshop-intro {
    padding: 5rem 0;
    background: var(--background);
}

.intro-content .lead-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .intro-content .lead-text {
        font-size: 1.625rem;
    }
}

.intro-content .secondary-text {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.8;
}

/* Workshop Features */
.workshop-features {
    padding: var(--section-padding) 0;
}

.features-grid {
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-card.highlight {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--background) 100%);
    border-color: var(--accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--accent);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: var(--background);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Workshop Quote */
.workshop-quote {
    padding: 5rem 0;
    background: var(--foreground);
}

.quote-wrapper blockquote {
    border: none;
    padding: 0;
    margin: 0;
}

.quote-wrapper blockquote p {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--background);
    line-height: 1.8;
    font-style: italic;
}

@media (min-width: 768px) {
    .quote-wrapper blockquote p {
        font-size: 2.25rem;
    }
}

.workshop-quote .accent-text {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

/* Workshop Pricing */
.workshop-pricing {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.pricing-card {
    padding: 3rem 2.5rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--forest));
}

.pricing-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.pricing-amount {
    margin-bottom: 0.5rem;
}

.pricing-amount .price {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--foreground);
    line-height: 1;
}

.pricing-amount .currency {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--muted);
    margin-left: 0.25rem;
}

.pricing-note {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.pricing-divider {
    width: 60px;
    height: 1px;
    background: var(--border);
    margin: 0 auto 1.5rem;
}

.pricing-description {
    color: var(--foreground);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-primary-workshop {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-workshop:hover {
    background: var(--forest);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 163, 90, 0.3);
}

.btn-primary-workshop i {
    transition: transform 0.3s ease;
}

.btn-primary-workshop:hover i {
    transform: translateX(4px);
}

/* Workshop CTA */
.workshop-cta {
    padding: var(--section-padding) 0;
}

.workshop-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .workshop-cta h2 {
        font-size: 2.5rem;
    }
}

.workshop-cta p {
    color: var(--muted);
    max-width: 24rem;
    margin: 0 auto 2rem;
}
