/* MINIMAL BRUTALIST RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    font-size: 14px;
}

body.panel-open {
    overflow: hidden;
}

/* HEADER */
.site-header {
    padding: 30px 40px;
    border-bottom: 1px solid #000000;
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
}

.site-title {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0.5px;
    background-color: #000000;
    color: #ffffff;
    padding: 12px 24px;
    display: inline-block;
    position: relative;
    z-index: 150;
}

/* CONTAINER */
.container {
    display: flex;
    min-height: calc(100vh - 85px);
    transition: margin-right 0s;
}

.container.panel-open {
    margin-right: 45%;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 40px;
    background-color: #ffffff;
}

.bio-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #666666;
    letter-spacing: 0.3px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 600px;
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.contact-link {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #000000;
    text-decoration: underline;
    letter-spacing: 0.3px;
}

.contact-link:hover {
    opacity: 0.5;
}

/* PROJECTS GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.project-item {
    cursor: pointer;
    background-color: #ffffff;
}

.project-item:hover {
    opacity: 0.7;
}

.project-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.project-info {
    margin-top: 15px;
}

.project-title {
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-family: 'Courier New', Courier, monospace;
}

.project-meta {
    font-size: 12px;
    color: #666666;
    letter-spacing: 0.5px;
}

/* PROJECT DETAIL VIEW */
.project-panel {
    position: fixed;
    top: 85px;
    right: -45%;
    width: 45%;
    height: calc(100vh - 85px);
    background-color: #ffffff;
    border-left: 1px solid #000000;
    overflow-y: auto;
    z-index: 100;
}

.project-panel.active {
    right: 0;
}

.panel-header {
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
}

.panel-close {
    background: none;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    cursor: pointer;
    color: #000000;
    text-decoration: underline;
    padding: 0;
}

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

@media (max-width: 768px) {
    .panel-close {
        font-size: 18px;
        padding: 5px 0;
    }
}

.panel-content {
    padding: 0;
}

.panel-section {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.panel-meta {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-description {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #000000;
}

.panel-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-section-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 20px;
}

.panel-detail-item {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    display: flex;
    gap: 15px;
}

.detail-label {
    color: #666666;
    min-width: 80px;
}

.detail-value {
    color: #000000;
}

.panel-images-section {
    padding: 40px;
}

.panel-images-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

.panel-image-item {
    width: 100%;
}

/* First image - Detail shot, centered, medium size */
.panel-image-item:nth-child(1) {
    max-width: 65%;
    margin: 0 auto;
}

/* Second image - Full tower, large */
.panel-image-item:nth-child(2) {
    max-width: 85%;
}

/* Third image - Street view, medium */
.panel-image-item:nth-child(3) {
    max-width: 75%;
    margin-left: auto;
}

/* Fourth image - Panoramic, full width */
.panel-image-item:nth-child(4) {
    max-width: 100%;
}

.panel-image-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.panel-image-item img:hover {
    opacity: 0.85;
}

/* IMAGE LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    cursor: zoom-out;
}

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

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #000000;
    font-family: Arial, sans-serif;
    z-index: 2001;
}

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

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    font-family: Arial, sans-serif;
    z-index: 2001;
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .site-header {
        padding: 20px;
        position: relative;
    }
    
    .site-title {
        font-size: 18px;
        z-index: 150;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .panel-header {
        padding: 20px;
    }

    .project-panel {
        width: 100%;
        right: -100%;
        top: 61px;
        height: calc(100vh - 61px);
    }

    .panel-header {
        padding: 20px;
        border-bottom: 1px solid #000000;
    }

    .panel-section {
        padding: 20px;
    }

    .panel-images-section {
        padding: 20px;
    }

    .panel-images-grid {
        gap: 30px;
    }

    .panel-image-item:nth-child(1),
    .panel-image-item:nth-child(2),
    .panel-image-item:nth-child(3),
    .panel-image-item:nth-child(4) {
        max-width: 100%;
        margin: 0;
    }

    .project-panel {
        border-left: none;
    }

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

    .lightbox-nav {
        font-size: 20px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 95vh;
    }
}

