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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.project-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 300;
    transition: opacity 0.3s ease;
}

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

.project-title {
    font-weight: 700;
    font-size: 1.3em;
    color: white;
    letter-spacing: 0.3px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.7;
}

/* PDF Preview */
.project-pdf {
    margin-top: 30px;
}

.pdf-preview-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.pdf-preview-link:hover {
    transform: translateY(-5px);
}

.pdf-thumb {
    width: 120px;
    height: auto;
    display: block;
    margin-bottom: 8px;
    transition: opacity 0.3s ease;
}

.pdf-preview-link:hover .pdf-thumb {
    opacity: 0.7;
}

.pdf-preview-link span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    font-family: inherit;
    transition: opacity 0.3s ease;
}

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

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 20px;
    font-family: inherit;
    transition: opacity 0.3s ease;
    user-select: none;
}

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

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

/* Tablet */
@media screen and (min-width: 600px) {
    .project-title {
        font-size: 1.5em;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    .project-title {
        font-size: 1.6em;
    }
}

/* Mobile */
@media screen and (max-width: 599px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lightbox-nav {
        font-size: 32px;
        padding: 10px;
    }
}
