:root {
    --c-blk: #111111;
    --c-wht: #ffffff;
    --c-pur: #8a2be2;
}

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

body {
    font-family: 'Bliss Pro', Courier, monospace;
    font-weight: 400; 
    background-color: var(--c-wht);
    color: var(--c-blk);
    line-height: 1.4;
    overflow-x: hidden;
}

.noise-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background: repeating-radial-gradient(var(--c-blk) 0 0.0001%, transparent 0 0.0002%) 50% 0/2500px 2500px;
}

/* --- TRANSITIONS --- */
.bg-black { background-color: var(--c-blk); }
.bg-purple { background-color: var(--c-pur); }

.page-transition-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

.origin-left { transform-origin: left; }
.origin-right { transform-origin: right; }
.origin-top { transform-origin: top; }
.origin-bottom { transform-origin: bottom; }

.reveal-x { transform: scaleX(0); }
.reveal-y { transform: scaleY(0); }
.cover-x { transform: scaleX(1); }
.cover-y { transform: scaleY(1); }

/* --- NAVIGATION --- */
.wireframe-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--c-blk);
    background-color: var(--c-wht);
    z-index: 100;
    padding: 0 5%; /* Navigasyon menüsünü grid ile hizalamak için boşluk */
}

.logo-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo { height: 30px; width: auto; }

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 30px;
    text-decoration: none;
    color: var(--c-blk);
    border-left: 2px solid var(--c-blk);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}

.nav-group { display: flex; }
.nav-group .nav-item:first-child { border-left: 2px solid var(--c-blk); }
.brand { border-left: none; border-right: 2px solid var(--c-blk); font-weight: 700; gap: 10px; }
.nav-item:hover, .nav-item.active { background-color: var(--c-blk); color: var(--c-wht); }

/* --- GRID LAYOUT --- */
.bauhaus-grid {
    /* Sağ ve sol boşluklar, üstten nefes alma payı */
    margin: 100px auto 0 auto; 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 90%; 
    max-width: 1500px;
    position: relative;
    z-index: 10;
    /* Kutuyu çevreleyen ana sınırlar */
    border-top: 2px solid var(--c-blk);
    border-left: 2px solid var(--c-blk);
    border-right: 2px solid var(--c-blk);
}

.grid-item {
    border-right: 2px solid var(--c-blk);
    border-bottom: 2px solid var(--c-blk);
    display: flex;
    flex-direction: column;
}

.grid-item:nth-child(4n) { border-right: none; }
.span-2:nth-child(2n), .span-4 { border-right: none; }
.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.text-block {
    padding: 40px;
    background-color: var(--c-wht);
    color: var(--c-blk);
}

.text-block h1 { 
    font-size: 4rem; 
    font-weight: 700; 
    letter-spacing: -2px; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
}

.text-block h2 { 
    font-size: 1.2rem; 
    font-weight: 500; 
    margin-bottom: 15px; 
    border-bottom: 1px solid var(--c-blk); 
    display: inline-block; 
    padding-bottom: 5px; 
}

.text-block p { 
    font-size: 1rem; 
    font-weight: 400; 
    max-width: 600px; 
}

.meta-data { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 20px; 
    font-size: 0.85rem; 
    font-weight: 500; 
    opacity: 0.8; 
}

.meta-data span { border: 1px solid currentColor; padding: 5px 10px; }
.flex-end { justify-content: flex-end; }

/* Colors */
.bg-purple { background-color: var(--c-pur); color: var(--c-wht); }
.bg-black { background-color: var(--c-blk); color: var(--c-wht); }
.bg-white { background-color: var(--c-wht); color: var(--c-blk); }
.text-black { color: var(--c-blk); }
.text-white { color: var(--c-wht); }
.border-black { border-bottom: 1px solid var(--c-blk) !important; }

/* Shapes */
.relative-box { position: relative; }
.overflow-hidden { overflow: hidden; }
.content-front { position: relative; z-index: 2; }

.shape { position: absolute; z-index: 1; }
.purple-bg { background-color: var(--c-pur); }
.white-bg { background-color: var(--c-wht); }
.black-bg { background-color: var(--c-blk); }

.circle { width: 80px; height: 80px; border-radius: 50%; }
.half-circle { width: 200px; height: 100px; border-radius: 100px 100px 0 0; }
.square { width: 15px; height: 15px; }
.triangle { width: 0; height: 0; border-left: 60px solid transparent; border-bottom: 60px solid var(--c-pur); background-color: transparent !important; }
.triangle-right { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid var(--c-blk); background-color: transparent !important; }
.line { width: 100%; height: 5px; top: 0; left: 0; }

.top-right { top: 20px; right: 20px; }
.bottom-left { bottom: 20px; left: 20px; }
.background-shape { bottom: 0; right: 10%; opacity: 0.5; }

.title-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.title-wrap h2 { margin-bottom: 0; }
.inline-shape { position: relative; }

/* Images */
.image-block {
    background-color: #eee;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    transition: background-color 0.3s;
    background-size: cover;
    background-position: center;
}

.zoomable { cursor: zoom-in; } 

.hero-img { min-height: 500px; }
.tall-img { min-height: 600px; }
.box-img { aspect-ratio: 1 / 1; }
.large-square { aspect-ratio: 4 / 3; }
.wide-img { min-height: 400px; }

.image-block:hover { background-color: var(--c-pur); }
.hover-purple:hover { background-color: var(--c-pur); }
.hover-black:hover { background-color: var(--c-blk); }

.img-caption {
    background-color: var(--c-wht); 
    color: var(--c-blk);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--c-blk);
    z-index: 10;
}

.circle-mask-img {
    border-radius: 50%;
    transform: scale(0.9);
    border: 2px solid var(--c-blk);
}

/* Footer Düzenlemesi (Grid ile aynı hizaya getirildi) */
.project-footer {
    display: flex;
    justify-content: space-between;
    height: 60px;
    width: 90%;
    max-width: 1500px;
    margin: 0 auto 100px auto; /* Grid ile birleşir, alt tarafta sayfa sonu boşluğu bırakır */
    background-color: var(--c-wht);
    position: relative;
    z-index: 10;
    border-left: 2px solid var(--c-blk);
    border-right: 2px solid var(--c-blk);
    border-bottom: 2px solid var(--c-blk);
}

.footer-link {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--c-blk);
    font-weight: 700; 
    border-right: 2px solid var(--c-blk);
    transition: background-color 0.2s, color 0.2s;
    text-transform: uppercase;
}

.footer-link:last-child { border-right: none; }
.footer-link:hover { background-color: var(--c-pur); color: var(--c-wht); }

/* --- LIGHTBOX STYLES --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(17, 17, 17, 0.95);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1; pointer-events: auto;
}

.lightbox-content {
    width: 90vw; height: 90vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    color: var(--c-wht);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--c-pur);
}

/* Mobile Fallback */
@media (max-width: 900px) {
    .bauhaus-grid, .project-footer { width: 95%; }
    .bauhaus-grid { margin-top: 80px; grid-template-columns: 1fr; }
    .span-1, .span-2, .span-3, .span-4 { grid-column: span 1; border-right: none; border-bottom: 2px solid var(--c-blk); }
    .wireframe-nav { padding: 0; }
    .logo-link { display: none; }
    .meta-data { flex-direction: column; gap: 10px; }
    .hero-img, .tall-img, .box-img, .large-square, .wide-img { min-height: 300px; aspect-ratio: auto; }
    .circle-mask-img { border-radius: 0; transform: none; }
}