/* =========================================================
   GECE DALIŞI — ana sayfanın yeni görünümü
   style.css'ten SONRA yüklenir ve yalnızca ana sayfayı değiştirir.
   style.css, yönetici paneli, 404, lamba, şişe ve logo dosyalarına dokunmaz.
   Geri almak için: index.php'deki gece.css satırını silmek yeterli değildir,
   eski index.php'ye dönmek gerekir (index-eski.php).
   ========================================================= */

/* Sayfa her zaman koyu: su (water.js) rengini --bg ve --ac'den okur */
:root {
    color-scheme: dark;
    --bg: #050B16;
    --surf: #0A1628;
    --ink: #E8EEF7;
    --mu: #A9B8CC;
    --bd: #1A3050;
    --ac: #6E8BFF;
    --isik: #FFC857;
}

body {
    font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

html { scroll-behavior: smooth; }

/* Köşedeki logo koyu zeminde: beyaz harf, mavi parantez */
.site-mark .bk-logo {
    --bk-ink: #FFFFFF;
    --bk-accent: #6E8BFF;
    --bk-glow: #A9C8FF;
    --bk-bg: transparent;
}

/* Suyu karartan perde ve ışık tuvali: suyun üstünde, içeriğin altında */
.gd-perde,
#isik {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.gd-perde {
    background: linear-gradient(180deg, rgba(5, 11, 22, .46), rgba(3, 7, 15, .62));
    opacity: var(--gd-koyu, 1);
}

html.lamp .gd-perde,
html.lamp #isik { visibility: hidden; }

/* ---------- Sayfa iskeleti ---------- */

main.gd {
    max-width: 1240px;
    padding: clamp(84px, 10vw, 112px) clamp(18px, 3vw, 24px) 40px;
}

.gd p,
.gd h2,
.gd-alt {
    text-shadow: 0 1px 2px rgba(3, 7, 15, .95), 0 0 18px rgba(3, 7, 15, .9), 0 0 36px rgba(3, 7, 15, .7);
}

.gd h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: .95;
    letter-spacing: -.04em;
}

/* ---------- Kahraman bölümü ---------- */

.gd-hero {
    padding: clamp(12px, 3vw, 40px) 0 clamp(56px, 8vw, 96px);
}

.gd-title {
    max-width: none;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: clamp(3.4rem, 12.2vw, 11rem);
    line-height: .88;
    letter-spacing: -.045em;
    text-shadow: 0 0 40px rgba(3, 7, 15, .6);
}

.gd-name {
    position: relative;
    display: block;
    width: fit-content;
}

.gd-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: none;
}

.gd-name .g {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-text-stroke: 0;
    clip-path: inset(100% 0 0 0);
}

.gd-name .g1 { color: #5EEAD4; mix-blend-mode: screen; animation: gd-g1 4.2s infinite steps(1); }
.gd-name .g2 { color: #FF5C8A; mix-blend-mode: screen; animation: gd-g2 4.2s infinite steps(1); }

@keyframes gd-g1 {
    0%, 88%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
    89% { clip-path: inset(18% 0 58% 0); transform: translate(-6px, 0); }
    91% { clip-path: inset(62% 0 12% 0); transform: translate(5px, 0); }
    93% { clip-path: inset(40% 0 40% 0); transform: translate(-3px, 0); }
}

@keyframes gd-g2 {
    0%, 88%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
    89% { clip-path: inset(55% 0 20% 0); transform: translate(6px, 0); }
    91% { clip-path: inset(8% 0 72% 0); transform: translate(-5px, 0); }
    93% { clip-path: inset(70% 0 5% 0); transform: translate(3px, 0); }
}

.gd-lead {
    margin-top: clamp(24px, 4vw, 40px);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.gd-bio {
    max-width: 30ch;
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ink);
}

.gd-typed {
    margin: 14px 0 0;
    min-height: 1.6em;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .95rem;
    color: var(--mu);
}

.gd-typed-w { color: var(--ac); }

.gd-typed i {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -.15em;
    background: var(--ac);
    animation: gd-yan 1s steps(1) infinite;
}

@keyframes gd-yan { 50% { opacity: 0; } }

/* ---------- Düğmeler ---------- */

.gd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    text-shadow: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.gd-btn:hover { transform: translateY(-2px); }

.gd-btn-ac {
    min-height: 56px;
    padding: 0 28px;
    background: var(--ac);
    color: #050B16;
    font-weight: 700;
}

.gd-btn-ac:hover { box-shadow: 0 12px 30px -10px var(--ac); }

.gd-btn-cizgi {
    border: 1px solid #1F3A63;
    background: rgba(5, 11, 22, .55);
}

.gd-btn-cizgi:hover { border-color: var(--ac); }

.gd-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.gd-btn-buyuk { min-height: 56px; padding: 0 24px; }

/* ---------- Lamba girişindeki ipucu (isik.js ekler) ---------- */

.gd-ipucu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(12vh, 64px);
    margin: 0;
    text-align: center;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .9rem;
    letter-spacing: .06em;
    color: #A9B8CC;
    opacity: 0;
    transition: opacity 1.2s;
    pointer-events: none;
}

.gd-ipucu.goster { opacity: .85; }
#lamp.on .gd-ipucu, #lamp.open .gd-ipucu { opacity: 0; transition-duration: .2s; }

/* ---------- Kayan şerit ---------- */

.gd-serit {
    margin: 0 calc(50% - 50vw);
    padding: 18px 0;
    overflow: hidden;
    border-top: 1px solid #13294A;
    border-bottom: 1px solid #13294A;
    background: rgba(5, 11, 22, .5);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .92rem;
    color: var(--mu);
}

.gd-serit-ic {
    display: flex;
    width: max-content;
    animation: gd-kay 32s linear infinite;
}

.gd-serit-ic span { display: flex; gap: 48px; padding-right: 48px; white-space: nowrap; }
.gd-serit-ic b { font-weight: 400; }
.gd-serit-ic em { font-style: normal; color: var(--ac); }

@keyframes gd-kay { to { transform: translateX(-50%); } }

/* ---------- Projeler ---------- */

.gd-sec { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); }

.gd-sec-bas {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.gd-sec-bas span {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .92rem;
    color: var(--mu);
}

.gd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.gd-card {
    gap: 24px;
    min-height: 0;
    padding: 24px;
    border-radius: 24px;
    background: #0A1628;
    border: 1px solid #1A3050;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .5s;
}

a.gd-card:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-8px);
    border-color: var(--ac);
    box-shadow: 0 30px 60px -20px rgba(110, 139, 255, .35);
}

.gd-card-govde { padding: 0 8px; flex: 1 1 auto; }

.gd-card .tag {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gd-card h3 {
    margin: 10px 0 8px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 600;
    font-size: 1.85rem;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.gd-card p { color: var(--mu); text-shadow: none; }

.gd-card .go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 8px;
    font-weight: 700;
    color: var(--ink);
    transition: gap .3s;
}

a.gd-card:hover .go { gap: 14px; }

.gd-card.soon {
    justify-content: center;
    min-height: 180px;
    background: transparent;
    border-style: dashed;
    opacity: .75;
}

/* Kart üstündeki küçük çizimler */
/* contain + isolation: içerideki hareketli parçalar kartın dışına taşmasın */
.gd-card-ust { height: 200px; border-radius: 16px; background: #071222; overflow: hidden; contain: paint; isolation: isolate; }
.gd-v { position: relative; height: 100%; padding: 18px; display: flex; flex-direction: column; gap: 10px; }

.gd-v-gun {
    display: flex;
    justify-content: space-between;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    color: #93A3BB;
}

.gd-v-izgara { flex: 1 1 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.gd-v-izgara i { border-radius: 4px; background: #13294A; }
.gd-v-izgara .on1 { background: var(--ac); animation: gd-nabiz 2.4s ease-in-out infinite; }
.gd-v-izgara .on2 { background: #5EEAD4; animation: gd-nabiz 2.4s ease-in-out .8s infinite; }
.gd-v-izgara .on3 { background: #E8EEF7; animation: gd-nabiz 2.4s ease-in-out 1.6s infinite; }

@keyframes gd-nabiz { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.gd-v-ekran {
    height: 52px;
    padding: 0 14px;
    border-radius: 8px;
    background: #13294A;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.gd-v-ekran span { font-size: 11px; color: #93A3BB; }
.gd-v-ekran b { font-size: 20px; color: #E8EEF7; }
.gd-v-tuslar { flex: 1 1 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.gd-v-tuslar i { border-radius: 5px; background: #13294A; }
.gd-v-tuslar .bas { background: var(--ac); animation: gd-bas 1.8s ease-in-out infinite; }

@keyframes gd-bas { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(.86); } }

.gd-v-derin { padding: 0; background: #02080F; }

.gd-v-fener {
    position: absolute;
    left: 50%;
    top: -10px;
    width: 220px;
    height: 200px;
    margin-left: -110px;
    background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(255, 236, 170, .16) 20deg, rgba(255, 236, 170, .16) 40deg, transparent 60deg);
    transform-origin: 50% 0;
    animation: gd-tara 6s ease-in-out infinite;
}

@keyframes gd-tara { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }

.gd-v-derin i {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    border: 1.5px solid rgba(232, 238, 247, .7);
    animation: gd-yuksel 5s linear infinite;
}

@keyframes gd-yuksel {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate(10px, -190px); opacity: 0; }
}

.gd-v-rekor {
    position: absolute;
    right: 16px;
    bottom: 10px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 22px;
    font-weight: 700;
    color: #5EEAD4;
}

.gd-v-genel {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 44px;
    color: var(--ac);
}

.gd-v-genel b { width: 22px; height: 4px; border-radius: 2px; background: #E8EEF7; animation: gd-yan 1s steps(1) infinite; }

.gd-card .gd-tek {
    flex: 0 0 auto;
    margin-top: 12px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .78rem;
    color: #93A3BB;
}

/* ---------- Hakkımda ---------- */

.gd-hak {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 72px;
    align-items: flex-start;
    padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px);
}

.gd .gd-hak-etiket {
    flex: 1 1 200px;
    margin-top: 10px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
    color: #C3CEDD;
}

.gd-hak-govde { flex: 999 1 520px; min-width: 0; }

.gd-hak-yazi {
    margin: 0;
    max-width: 24ch;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 600;
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--ink);
    text-wrap: balance;
}

.gd-hak-tek {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .8rem;
}

.gd-hak-tek li { padding: 7px 14px; border-radius: 999px; border: 1px solid #1F3A63; background: rgba(5, 11, 22, .55); color: #B8C4D6; }

/* ---------- Şişe ---------- */

.gd-sise { padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 64px); }

.gd-sise-ic {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
    border-radius: 32px;
    background: #0B1F3A;
    border: 1px solid #1F3A63;
}

.gd-sise-yazi { position: relative; z-index: 1; flex: 999 1 420px; min-width: 0; }
.gd-sise-yazi h2 { font-size: clamp(2.3rem, 5vw, 4.25rem); line-height: .98; text-shadow: none; }
.gd-sise-yazi p { margin: 20px 0 32px; max-width: 480px; font-size: 1.15rem; color: #B8C4D6; text-shadow: none; }

.gd-sise .bottle-open {
    min-height: 56px;
    padding: 0 28px;
    border: 0;
    background: #E8EEF7;
    color: #050B16;
    font-weight: 700;
    transition: transform .25s, box-shadow .25s;
}

.gd-sise .bottle-open:hover {
    color: #050B16;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px #E8EEF7;
}

.gd-sise-resim { position: relative; flex: 1 1 220px; min-width: 0; height: 250px; }

.gd-sise-sise {
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -44px;
    overflow: visible;
    transform-origin: 50% 80%;
    animation: gd-salin 4s ease-in-out infinite;
}

@keyframes gd-salin {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
}

.gd-sise-dalga {
    position: absolute;
    left: -40px;
    bottom: 0;
    width: calc(100% + 120px);
    height: 70px;
    animation: gd-dalga 6s ease-in-out infinite alternate;
}

@keyframes gd-dalga { to { transform: translateX(-60px); } }

/* ---------- Alt bilgi: iletişim ---------- */

.gd-alt {
    margin-top: 0;
    padding: 28px 0 8px;
    border-top: 1px solid #13294A;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    font-size: .9rem;
    color: var(--mu);
}

.gd-alt-bag { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-gizlilik { flex: 1 1 100%; margin: 4px 0 0; font-size: .8rem; color: #93A3BB; }

/* ---------- Derinlik göstergesi (sağ kenar) ---------- */

.gd-derinlik {
    position: fixed;
    right: 14px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    color: var(--mu);
    pointer-events: none;
    transition: opacity .6s;
}

.gd-derinlik b { font-weight: 500; color: var(--ink); min-width: 6ch; text-align: center; }

.gd-derinlik-cubuk {
    position: relative;
    display: block;
    width: 2px;
    height: 200px;
    border-radius: 2px;
    background: linear-gradient(#5EEAD4, #1F3A63 60%, #0B1F3A);
}

.gd-derinlik-cubuk i {
    position: absolute;
    left: 50%;
    top: var(--gd-yer, 0%);
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--isik);
    box-shadow: 0 0 14px var(--isik);
}

html.lamp .gd-derinlik,
html.bottle-sailing .gd-derinlik { opacity: 0; }

@media (max-width: 1380px) {
    .gd-derinlik { display: none; }
}

@media (max-width: 600px) {
    .gd-outline { -webkit-text-stroke-width: 1.5px; }
    .gd-btn-ac { width: 100%; justify-content: center; }
    .gd-card-ust { height: 170px; }
    .gd-sise-resim { height: 200px; }
    .gd-alt { justify-content: center; text-align: center; }
    .gd-alt-bag { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gd *, .gd *::before, .gd *::after { animation: none !important; transition: none !important; }
}

/* ---------- Karakterlerle yazılan isim (ad.js) ---------- */

.gd-title.gd-ascii { position: relative; color: transparent; text-shadow: none; }
.gd-title.gd-ascii .gd-outline { -webkit-text-stroke: 0; }
.gd-title.gd-ascii .g { display: none; }
.gd-ascii-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
