/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --text-primary: #e8e8e8;
    --text-secondary: #8a8a8a;
    --text-muted: #5a5a5a;
    --accent: #c9a87c;
    --accent-subtle: #a08060;
    --line-color: #2a2a2a;
    --line-accent: #3d3d3d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Header */
.header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

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

.nav-divider {
    width: 4px;
    height: 4px;
    background-color: var(--line-color);
    border-radius: 50%;
}

.header-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-accent), transparent);
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero slideshow */
.hero {
    position: relative;
    height: 70vh;
    max-height: 600px;
    overflow: hidden;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    animation: heroFade 20s infinite;
}

.hero-slide-wide {
    object-fit: contain;
    object-position: center center;
    background-color: var(--bg-primary);
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }

@keyframes heroFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 13, 13, 0.3) 0%,
        rgba(13, 13, 13, 0) 30%,
        rgba(13, 13, 13, 0) 70%,
        rgba(13, 13, 13, 0.8) 100%
    );
    pointer-events: none;
}

/* Section styles */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-accent), transparent);
    max-width: 200px;
    margin: 0 auto 3rem;
}

/* Gallery */
.gallery-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.artwork {
    text-align: center;
}

.artwork-image-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line-color);
    transition: border-color 0.3s ease;
}

.artwork-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.artwork:hover .artwork-image-container {
    border-color: var(--accent-subtle);
}

.artwork-image-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.artwork-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.artwork-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.artwork-status {
    font-size: 0.75rem;
    color: var(--accent-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About */
.about-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    text-align: center;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

/* Contact */
.contact-section {
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    text-align: center;
    margin-top: 2rem;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.email-link {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-subtle);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: var(--accent-subtle);
    color: var(--bg-primary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-color), transparent);
    max-width: 400px;
    margin: 0 auto 2rem;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-contact {
    color: var(--text-secondary);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-details {
    text-align: center;
    margin-top: 1.5rem;
}

.lightbox-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lightbox-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.lightbox-status {
    font-size: 0.8rem;
    color: var(--accent-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--text-primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid var(--line-color);
    color: var(--text-secondary);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--text-primary);
    border-color: var(--accent-subtle);
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .artwork-image-container img {
        height: 280px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
