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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* Navigation */
nav {
    padding: 30px 40px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.6;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    position: relative;
    top: 2px;
}

.instagram-link svg {
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Image */
.hero-image {
    width: 100%;
    margin: 0;
    padding: 0;
}

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

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Paintings Grid - Masonry Layout */
.paintings-grid {
    column-count: 3;
    column-gap: 40px;
    margin-top: 40px;
}

.painting-item {
    cursor: pointer;
    transition: opacity 0.3s;
    break-inside: avoid;
    margin-bottom: 40px;
    display: inline-block;
    width: 100%;
}

.painting-item:hover {
    opacity: 0.8;
}

.painting-item img {
    width: 100%;
    height: auto;
    display: block;
}

.painting-info {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.painting-title {
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    transition: opacity 0.3s;
    z-index: 1001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.6;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-info {
    position: relative;
    color: #fff;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* CV Page */
.cv-content {
    max-width: 800px;
    margin: 0 auto;
}

.cv-section {
    margin-bottom: 50px;
}

.cv-section h2 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.cv-entry {
    margin-bottom: 15px;
    line-height: 1.8;
}

.cv-year {
    font-weight: 500;
    margin-right: 20px;
    display: inline-block;
    min-width: 60px;
}

/* Contact Page */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h1 {
    font-size: 24px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-info {
    font-size: 16px;
    line-height: 2;
}

.contact-info a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.6;
}

.email-address {
    color: #000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav {
        padding: 20px;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 25px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav a {
        font-size: 16px;
    }

    .container {
        padding: 40px 20px;
    }

    .paintings-grid {
        column-count: 2;
        column-gap: 30px;
    }

    .cv-section h2 {
        font-size: 16px;
    }

    .cv-year {
        display: block;
        margin-bottom: 5px;
    }

    /* Lightbox responsive */
    .lightbox {
        padding: 40px 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }

    .lightbox-image {
        max-height: 70vh;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }

    .lightbox-info {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .paintings-grid {
        column-count: 1;
        column-gap: 0;
    }

    .painting-item {
        margin-bottom: 30px;
    }

    .contact-content h1 {
        font-size: 20px;
    }

    /* Lightbox mobile */
    .lightbox {
        padding: 30px 10px;
    }

    .lightbox-content {
        max-height: 65vh;
    }

    .lightbox-image {
        max-height: 65vh;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 5px;
    }

    .lightbox-info {
        font-size: 11px;
        padding: 0 10px;
    }
}
