/* --- GENEL AYARLAR --- */
:root {
    --bg-dark: #000000;
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- UZAY ARKA PLANI --- */
#space-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    z-index: -1;
}

.stars-1, .stars-2, .stars-3 {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; display: block;
    background: url('http://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    z-index: 0;
}
.stars-1 { animation: moveStars 100s linear infinite; opacity: 0.5; }
.stars-2 { animation: moveStars 200s linear infinite; background-size: 200px; opacity: 0.3; }
.stars-3 { animation: moveStars 300s linear infinite; background-size: 300px; opacity: 0.2; }
@keyframes moveStars { from {background-position: 0 0;} to {background-position: -10000px 5000px;} }

/* --- HEADER --- */
.portfolio-header {
    padding: 15px 40px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.8); z-index: 10;
}
.header-left, .header-right { flex: 1; }
.header-right { display: flex; justify-content: flex-end; }

.back-btn { text-decoration: none; color: #fff; font-family: var(--font-display); font-size: 0.8rem; display: flex; gap: 10px; align-items: center; transition: 0.3s; }
.back-btn:hover { color: var(--neon-blue); }

.brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; text-align: center; }
.badge { background: white; color: black; font-size: 0.6rem; padding: 2px 6px; margin-left: 10px; font-weight: 900; }

/* DİL BUTONU */
.lang-switch {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}
.lang-switch:hover { background: var(--neon-blue); color: black; box-shadow: 0 0 10px var(--neon-blue); }

/* --- FİLTRE --- */
.filter-section {
    display: flex; justify-content: center; gap: 0; 
    padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.filter-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: #888; padding: 10px 30px; cursor: pointer;
    font-family: var(--font-display); font-size: 0.8rem;
    transition: 0.3s; border-right: none;
}
.filter-btn:last-child { border-right: 1px solid rgba(255,255,255,0.2); }
.filter-btn:hover, .filter-btn.active { background: white; color: black; font-weight: 700; }

/* --- AKORDEON GALERİ --- */
.accordion-gallery { display: flex; flex: 1; width: 100%; overflow: hidden; }

.project-panel {
    flex: 1; position: relative;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; filter: grayscale(100%);
}
.project-panel:last-child { border-right: none; }
.project-panel:hover { flex: 4; filter: grayscale(0%); }

.panel-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0.8; transition: 0.4s;
}
.project-panel:hover .panel-overlay { opacity: 0.4; }

.panel-content {
    position: relative; z-index: 2; padding: 40px;
    opacity: 0; transform: translateY(20px);
    transition: 0.4s 0.1s; white-space: nowrap;
}
.project-panel:hover .panel-content { opacity: 1; transform: translateY(0); }

.p-cat { color: var(--neon-blue); font-size: 0.8rem; letter-spacing: 2px; font-weight: 700; display: block; margin-bottom: 10px; }
.project-panel h3 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 20px; text-transform: uppercase; }

.view-btn {
    padding: 12px 30px; background: transparent; border: 1px solid white;
    color: white; font-family: var(--font-display); cursor: pointer; transition: 0.3s;
}
.view-btn:hover { background: white; color: black; }

/* --- MODAL --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 2000; justify-content: center; align-items: center; padding: 20px; }
.modal.show { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { background: #111; width: 100%; max-width: 900px; border: 1px solid #333; position: relative; display: flex; flex-direction: column; max-height: 90vh; overflow-y: auto; }
.close-btn { position: absolute; top: 20px; right: 20px; color: white; font-size: 2rem; cursor: pointer; z-index: 10; }
.modal-img-wrapper { width: 100%; height: 400px; flex-shrink: 0; }
.modal-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.modal-text { padding: 40px; }
.tag { background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; color: var(--neon-blue); display: inline-block; margin-bottom: 20px; }
.modal-cta { display: inline-block; padding: 15px 40px; background: white; color: black; text-decoration: none; font-weight: 700; margin-top: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- MOBİL --- */
@media (max-width: 768px) {
    .accordion-gallery { flex-direction: column; overflow-y: auto; }
    .project-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); min-height: 100px; }
    .project-panel h3 { font-size: 1.5rem; }
    .panel-content { opacity: 1; transform: translateY(0); padding: 20px; }
    .project-panel:hover { flex: 2; }
    .modal-img-wrapper { height: 250px; }
}
/* Modal İçerik Düzeltmesi */
.modal-content {
    max-height: 95vh; /* Mobilde taşmasın */
    overflow-y: auto; /* Gerekirse scroll çıksın */
}

/* Modal Body Düzeni */
.modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Iframe Kapsayıcı (JS ile ekleniyor ama stil lazım olabilir) */
.iframe-wrapper {
    width: 100%;
    height: 90vh;
}
