/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:       #0e0e0e;
    --bg-card:  #171717;
    --text:     #e8e4df;
    --text-dim: #8a8580;
    --accent:   #c4a072;
    --accent2:  #8b6a47;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent2) var(--bg);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
}

/* ── Page Wrapper ── */
.horizontal-wrapper {
    display: block;
    width: 100%;
}

.panel {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 160, 114, 0.08);
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 32px;
    filter: invert(1);
    opacity: 0.9;
    transition: opacity 0.3s;
}
.nav-logo:hover img { opacity: 1; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links > li { position: relative; }

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    cursor: pointer;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links > li > a:hover::after { width: 100%; }

/* ── Dropdown Menu ── */
.has-dropdown > a {
    cursor: default;
}
.has-dropdown > a:hover::after {
    width: 0;
}
.has-dropdown > a .caret {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.75rem;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s;
}
.has-dropdown:hover > a .caret {
    transform: translateY(1px) rotate(225deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding-top: 1.3rem;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-inner {
    background: rgba(14, 14, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(196, 160, 114, 0.12);
    padding: 0.6rem 0;
    min-width: 180px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.dropdown li { list-style: none; }

.dropdown li a {
    display: block;
    padding: 0.75rem 1.6rem;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    text-align: center;
    transition: color 0.3s, background 0.3s, letter-spacing 0.3s;
}
.dropdown li a::after { display: none; }
.dropdown li a:hover {
    color: var(--accent);
    background: rgba(196, 160, 114, 0.05);
    letter-spacing: 3px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.menu-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
}

/* ── Hero Panel ── */
.hero {
    width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(196, 160, 114, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 40%, rgba(139, 106, 71, 0.03) 0%, transparent 50%);
    animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(1deg); }
    66% { transform: translate(-20px, 15px) rotate(-1deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo {
    width: clamp(280px, 40vw, 500px);
    filter: invert(1);
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease 0.3s both;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dim);
    animation: fadeUp 1s ease 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    animation: fadeUp 1s ease 1s both;
}

.hero-scroll span.scroll-text {
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}
.hero-scroll span.scroll-text:hover { color: var(--accent); }

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

@keyframes fadeUp {
    from { transform: translateY(30px); }
    to { transform: translateY(0); }
}

/* ── Divider Lines (between panels) ── */
.panel-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent 15%, rgba(196, 160, 114, 0.12) 50%, transparent 85%);
}

/* ── About Panel ── */
.about {
    width: 100vw;
    padding: 6rem 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image { position: relative; }

.about-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 4px;
    filter: grayscale(0.1);
    transition: filter 0.5s;
}
.about-image img:hover { filter: grayscale(0); }

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    max-width: 380px;
    height: 100%;
    border: 1px solid var(--accent2);
    border-radius: 4px;
    opacity: 0.3;
    z-index: -1;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}
.about-text h2 span { color: var(--accent); font-style: italic; }

.about-text p {
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(196, 160, 114, 0.1);
}

.detail-item .detail-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.detail-item .detail-value { font-size: 0.9rem; color: var(--text); }

.featured-badge {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.featured-badge .fb-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.featured-badge img {
    height: 20px;
    filter: invert(1);
    opacity: 0.5;
}

/* ── Gallery Panel ── */
.gallery {
    flex-direction: column;
    padding: 8rem 4rem 5rem;
    gap: 2.5rem;
}

.gallery-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    aspect-ratio: 4 / 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(14, 14, 14, 0.9) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }

.gallery-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
}
.gallery-overlay span {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1px;
}

/* ── Empty Gallery State ── */
.gallery-empty {
    width: 100%;
    max-width: 700px;
    text-align: center;
    padding: 4rem 2rem;
    border: 1px solid rgba(196, 160, 114, 0.1);
    border-radius: 6px;
}
.gallery-empty .empty-label {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}
.gallery-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1rem;
}
.gallery-empty p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Exhibitions Panel ── */
.exhibitions {
    flex-direction: column;
    padding: 8rem 4rem 5rem;
    gap: 3rem;
}

.exhibitions-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.exhibitions-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
}

.exhibitions-list {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.exhibition-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: baseline;
    gap: 2rem;
    padding: 1.4rem 0.5rem;
    border-bottom: 1px solid rgba(196, 160, 114, 0.1);
    transition: background 0.4s ease, padding 0.4s ease;
}
.exhibition-item:first-child { border-top: 1px solid rgba(196, 160, 114, 0.1); }
.exhibition-item:hover {
    background: rgba(196, 160, 114, 0.03);
    padding-left: 1.2rem;
}

.exhibition-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
}

.exhibition-title {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 400;
}

.exhibition-location {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ── Contact Panel ── */
.contact {
    width: 100vw;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
}

.contact-inner {
    max-width: 600px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
}

.contact p {
    color: var(--text-dim);
    font-size: 1rem;
    margin: 1.5rem auto 2.5rem;
    max-width: 450px;
}

.contact-email {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}
.contact-email:hover { color: var(--accent); }
.contact-email:hover::after { transform: scaleX(1); transform-origin: left; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.social-links a:hover { color: var(--accent); }

.contact-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(40px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-left {
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5rem;
}

.lightbox-left img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    transform: scale(0.92);
    transition: transform 0.5s ease;
}

.lightbox.active .lightbox-left img {
    transform: scale(1);
}

.lightbox-right {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 4rem 2rem;
    border-left: 1px solid rgba(196, 160, 114, 0.08);
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.5s ease 0.15s;
}

.lightbox.active .lightbox-right {
    transform: translateX(0);
    opacity: 1;
}

.lightbox-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.lightbox-medium {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
}

.lightbox-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.lightbox-details {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(196, 160, 114, 0.1);
}

.lightbox-detail-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.lightbox-detail-value {
    font-size: 0.88rem;
    color: var(--text);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 210;
}
.lightbox-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Lightbox Nav Arrows ── */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 210;
}
.lightbox-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: calc(35% + 1.5rem); }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Scrollbar Styling ── */
body::-webkit-scrollbar { width: 4px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border-radius: 2px;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent2), var(--accent));
    z-index: 99;
    width: 0%;
    transition: width 0.1s linear;
}

/* ── Category Page Layout ── */
.category-page .gallery {
    min-height: 100vh;
    padding-top: 9rem;
}
.category-page .contact {
    min-height: 60vh;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14, 14, 14, 0.98);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(196, 160, 114, 0.1);
    }
    .menu-toggle { display: flex; }
    nav { padding: 1rem 1.5rem; }

    /* Dropdown on mobile: expand inline */
    .has-dropdown > a::before { display: none; }
    .dropdown {
        position: static;
        transform: none;
        padding-top: 0.8rem;
        opacity: 1;
        pointer-events: all;
    }
    .dropdown-inner {
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        min-width: 0;
    }
    .dropdown li a {
        padding: 0.5rem 0;
        text-align: left;
        font-size: 0.7rem;
    }

    .panel {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .about {
        padding: 6rem 2rem 5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .about-image { display: flex; justify-content: center; }
    .about-image::before { display: none; }

    .gallery {
        padding: 6rem 1.5rem 4rem;
        gap: 2rem;
    }

    .gallery-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-header h2 { font-size: 1.7rem; }

    .exhibitions {
        padding: 6rem 1.5rem 4rem;
        gap: 2rem;
    }
    .exhibitions-header h2 { font-size: 1.7rem; }
    .exhibition-item {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
        padding: 1rem 0.2rem;
    }
    .exhibition-year { font-size: 1.1rem; }
    .exhibition-title { font-size: 0.85rem; grid-column: 2; }
    .exhibition-location {
        grid-column: 2;
        font-size: 0.65rem;
        margin-top: 0.3rem;
    }

    .contact { min-height: 90vh; }

    .lightbox { flex-direction: column; }
    .lightbox-left { flex: 1; padding: 2rem; }
    .lightbox-left img { max-height: 50vh; }
    .lightbox-right {
        flex: 1;
        padding: 2rem;
        border-left: none;
        border-top: 1px solid rgba(196, 160, 114, 0.08);
        overflow-y: auto;
    }
    .lightbox-nav { display: none; }
}

@media (max-width: 550px) {
    .gallery-row { grid-template-columns: 1fr; }
}
