* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #000;
    line-height: 1.4;
    max-width: 1440px;
    margin: 0 auto;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    position: relative;
}

.content-wrapper {
    background: #fff;
    position: relative;
    z-index: 1;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

header {
    border-bottom: 1px solid #000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.logo {
    font-size: 12px;
    letter-spacing: 1px;
    color: #000;
    text-decoration: none;
}

.logo:hover {
    color: #0000FF;
}

nav {
    display: flex;
    gap: 25px;
    font-size: 11px;
}

nav a {
    color: #0000FF;
    text-decoration: underline;
}

nav a:hover {
    background: #0000FF;
    color: #fff;
    text-decoration: none;
}

.hero {
    padding: 40px 30px;
    border-bottom: 1px solid #000;
}

.hero h1 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 11px;
    color: #666;
}

.work-container {
    padding: 80px 60px;
    max-width: 100%;
    margin: 0 auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 60px;
}

.grid-item {
    position: relative;
    border: 1px solid #000;
    background: #f0f0f0;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    transition: none;
}

.grid-item:hover {
    background: #0000FF;
}

.grid-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 10px;
    background: #fff;
    padding: 2px 6px;
    border: 1px solid #000;
    transition: none;
}

.grid-item:hover .grid-number {
    background: #0000FF;
    color: #fff;
}

.grid-label {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    background: #fff;
    padding: 4px 6px;
    font-size: 9px;
    border: 1px solid #000;
    text-align: center;
    letter-spacing: 1px;
    transition: none;
}

.grid-item:hover .grid-label {
    background: #0000FF;
    color: #fff;
}

.info-section {
    padding: 60px 30px;
    border-top: 1px solid #000;
    max-width: 800px;
    margin: 0 auto;
}

.info-title {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #000;
}

.capabilities-list {
    font-size: 13px;
    line-height: 2;
    letter-spacing: 0.5px;
}

.capabilities-list span {
    display: inline;
}

.capabilities-list span:after {
    content: " / ";
    color: #666;
}

.capabilities-list span:last-child:after {
    content: "";
}

.contact-section {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #000;
}

.contact-box {
    border: 1px solid #000;
    padding: 30px;
    max-width: 500px;
    margin: 20px auto 0;
    background: #fff;
}

.contact-title {
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.contact-email {
    font-size: 11px;
    color: #0000FF;
    text-decoration: underline;
}

.contact-email:hover {
    background: #0000FF;
    color: #fff;
    text-decoration: none;
}

footer {
    border-top: 1px solid #000;
    padding: 20px 30px;
    text-align: center;
    font-size: 9px;
    color: #666;
}

.status-bar {
    padding: 8px 30px;
    font-size: 9px;
    background: #f0f0f0;
    border-bottom: 1px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-left {
    display: flex;
    gap: 20px;
}

.status-right {
    color: #000;
}

.status-available-blue {
    color: #0000FF;
}

@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-bar {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 40px 30px;
    }

    nav {
        gap: 15px;
    }
}

.about-content {
    padding: 40px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 40px;
}

.about-section p {
    font-size: 12px;
    line-height: 1.8;
    color: #000;
}

.about-section .info-title {
    margin-bottom: 15px;
}

.about-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.about-image {
    position: relative;
    border: 1px solid #000;
    background: #f0f0f0;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .about-image-row {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    /* Enable scrolling for zoomed images */
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Clean alignment for scroll */
    padding: 40px;
}

/* Close Button */
.lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #000;
    cursor: pointer;
    z-index: 10001;
    font-weight: 100;
    line-height: 1;
}

.lightbox-close:hover {
    color: #0000FF;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    /* Default fit */
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: width 0.3s ease, margin 0.3s ease;
    margin: auto;
}

/* Zoomed State - Removes constraints to allow natural size & scrolling */
.lightbox-content.zoomed {
    max-width: none;
    max-height: none;
    width: 100%;
    height: auto;
    transform: none;
    cursor: zoom-out;
    margin-top: 0;
}

.project-content img,
.project-image img,
.collage-item img,
.side-by-side-image img {
    cursor: zoom-in;
}