/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1e1e1e;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artist-name {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #1e1e1e;
}

.nav-right {
    display: flex;
    gap: 48px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #1e1e1e;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link.active {
    opacity: 1;
}

/* Page Container */
.page {
    padding-top: 120px;
    min-height: 100vh;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px 80px 80px;
}

.page-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #757575;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Works Page */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.work-item {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 40px;
    align-items: end;
}

.work-item .work-details {
    padding-bottom: 80px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.work-item.loaded .work-details {
    opacity: 1;
}

.lightbox .work-details {
    padding-bottom: 80px;
    opacity: 1;
}

.work-details h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #1e1e1e;
    margin-bottom: 8px;
}

.work-details p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #1e1e1e;
    line-height: 1.5;
}

.work-details .year {
    margin-bottom: 12px;
}

.work-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image img {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    height: auto;
    width: auto;
    display: block;
    cursor: pointer;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.work-item.loaded .work-image img {
    opacity: 1;
}

.work-item .work-action {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 80px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.work-item.loaded .work-action {
    opacity: 1;
}

.lightbox .lightbox-action {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 80px;
    opacity: 1;
}

.btn-inquire {
    width: 100%;
    max-width: 240px;
    height: 48px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-inquire:hover {
    background-color: #f5f5f5;
    border-color: #cccccc;
}

/* CV Page */
.cv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.cv-bio h3,
.cv-content h3 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #757575;
    margin-bottom: 24px;
}

.cv-bio p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.6;
    color: #1e1e1e;
    margin-bottom: 16px;
}

.cv-content {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.6;
}

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

.cv-header {
    margin-bottom: 24px;
}

.cv-section h4 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-bottom: 12px;
}

.cv-section p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.6;
    color: #1e1e1e;
    margin-bottom: 8px;
}

.cv-section a {
    color: #1e1e1e;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.cv-section a:hover {
    opacity: 0.6;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact-item h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #757575;
    margin-bottom: 8px;
}

.contact-item a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #1e1e1e;
    text-decoration: none;
    transition: opacity 0.2s;
}

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

.contact-item p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.6;
    color: #1e1e1e;
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.contact-image img.loaded {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(140, 140, 140, 0.95);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 40px;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    font-size: 32px;
    font-weight: 200;
    color: #000000;
    cursor: pointer;
    transition: opacity 0.2s;
    z-index: 2001;
    line-height: 1;
    padding: 0;
}

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

.lightbox-content {
    width: calc(100% - 80px);
    max-width: none;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 16px;
    align-items: end;
}

.lightbox-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-image img {
    max-width: 100%;
    max-height: calc(100vh - 20px);
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in, transform 0.15s ease-out;
    cursor: zoom-in;
    transform-origin: center center;
}

.lightbox-image img.loaded {
    opacity: 1;
}

.lightbox-image img.zoomed {
    cursor: zoom-out;
    transform: scale(2.5);
}

.lightbox-action {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 80px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 48px;
    border-radius: 4px;
    max-width: 560px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: #757575;
    cursor: pointer;
    transition: opacity 0.2s;
}

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

.modal-content h2 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #1e1e1e;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #1e1e1e;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e1e1e;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-send {
    width: 100%;
    height: 48px;
    background-color: #1e1e1e;
    border: none;
    border-radius: 3px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-send:hover {
    background-color: #333333;
}

/* Portrait orientation - reduce padding and maximize image height */
@media (orientation: portrait) {
    .work-details {
        padding-bottom: 20px;
    }
    
    .work-action {
        padding-bottom: 20px;
    }
    
    .lightbox-action {
        padding-bottom: 20px;
    }
    
    .work-image img {
        max-height: calc(100vh - 120px);
    }
    
    .page-title {
        margin-bottom: 10px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-content,
    .page-container {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .work-item,
    .lightbox-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .work-action,
    .lightbox-action {
        justify-content: flex-start;
    }
    
    .cv-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .artist-name {
        font-size: 24px;
        white-space: nowrap;
    }
    
    .nav-right {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .page {
        padding-top: 100px;
    }
    
    .nav-content,
    .page-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .works-list {
        gap: 32px;
    }
    
    .work-item .work-details {
        padding-bottom: 16px;
    }
    
    .work-item .work-action {
        padding-bottom: 16px;
    }
    
    .lightbox {
        padding: 40px 24px;
    }
}

@media (max-width: 576px) {
    .work-image img {
        cursor: default;
    }
}

