/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    color: #ffffff;
}

/* ==========================================================================
   2. NAVIGATION BAR
   ========================================================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #222222;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

.nav-links a {
    font-size: 0.95rem;
    color: #a0a0a0;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.4rem;
    border-left: 1px solid #333333;
    padding-left: 1.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: #777777;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: #ffffff;
    background-color: #333333;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    background-color: #161616;
    border-bottom: 1px solid #222222;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    color: #888888;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ==========================================================================
   4. UNCROPPED MASONRY GALLERY (Multi-Column Layout)
   ========================================================================== */
.gallery-section {
    max-width: 1350px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.masonry-columns {
    column-count: 3;
    column-gap: 1.8rem;
}

.artwork-card {
    break-inside: avoid;
    margin-bottom: 1.8rem;
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #262626;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-4px);
    border-color: #555555;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.artwork-img-wrapper {
    width: 100%;
    background-color: #0f0f0f;
}

.artwork-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Guarantees complete view of original painting */
    transition: transform 0.4s ease;
}

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

.artwork-info {
    padding: 1rem 1.2rem;
    background-color: #1a1a1a;
    border-top: 1px solid #222222;
}

.artwork-title {
    font-size: 0.98rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.artwork-details {
    font-size: 0.82rem;
    color: #888888;
}

/* ==========================================================================
   5. ABOUT SECTION
   ========================================================================== */
.about-section {
    background-color: #161616;
    padding: 5rem 2rem;
    border-top: 1px solid #222222;
    border-bottom: 1px solid #222222;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    align-items: start;
}

.about-image {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text p {
    color: #b0b0b0;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   6. CONTACT SECTION
   ========================================================================== */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, outline 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #666666;
}

.contact-form button {
    padding: 1rem;
    background-color: #ffffff;
    color: #121212;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.contact-form button:hover {
    background-color: #dddddd;
}

.contact-form button:active {
    transform: scale(0.99);
}

/* ==========================================================================
   7. LIGHTBOX MODAL
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1001;
}

.close-modal:hover {
    color: #999999;
}

.modal-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid #222222;
    background-color: #0d0d0d;
    font-size: 0.85rem;
    color: #666666;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .masonry-columns {
        column-count: 2;
        column-gap: 1.4rem;
    }
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .masonry-columns {
        column-count: 1;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-right {
        gap: 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}