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

::selection {
    background: rgba(168, 85, 247, 0.35); /* Tallol Games mor rengi ile uyumlu yarı saydam seçim arka planı */
}

body {
    background-color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3vh 20px; /* Üst boşluğu 6vh'den 3vh'ye indirerek tüm içeriği yukarı çektik */
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* Arka Plan Görselleri */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background-color: #000000;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    will-change: transform;
}

/* Göz katmanları başlangıçta gizli tutulacak */
#bg-eye,
#bg-eyelid,
#bg-eyesocket {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Ana arka plan (bg.webp) tamamen yüklendiğinde göz katmanları görünecek */
.background-container.bg-loaded #bg-eye,
.background-container.bg-loaded #bg-eyelid,
.background-container.bg-loaded #bg-eyesocket {
    opacity: 1;
}

/* Ön Plan Işık/Perde Katmanı (Başlangıçta Sabit) */
.foreground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image: url('images/fg-desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Öğeler arası boşluğu 40px'ten 20px'e indirdik */
    margin-top: 4vh; /* Üstten biraz daha yukarı çekerek içeriği yukarı taşıdık */
}

/* Sağ Üst Dil İkonları */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.flag-btn {
    width: 35px;
    height: auto;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}

.flag-btn.active {
    opacity: 1;
    transform: scale(1.05);
}

/* TALLOL GAMES Marka Başlığı */
.brand-container {
    display: flex;
    gap: 12px;
    margin-top: -15px;
    margin-bottom: 10px;
    font-size: 3.5rem; /* Boyutu büyüterek daha belirgin hale getirdik */
    font-weight: 900;
    letter-spacing: 3px;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    user-select: none;
}

.brand-tallol {
    color: #a855f7; /* Canlı Mor */
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.brand-games {
    color: #f97316; /* Canlı Turuncu */
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* Hakkımızda Bölümü Ortalanmış Tasarım */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; /* İçerik satırları arası boşluğu 15px'ten 10px'e indirdik */
    width: 100%;
}

.section-title {
    font-size: 2.8rem; /* Boyutu büyüttük */
    margin-bottom: 10px;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: #ffffff;
    font-weight: 800;
}

.about-text, .wishlist-text {
    max-width: 700px;
    font-size: 1.5rem; /* Boyutunu büyüterek okunaklılığı arttırdık */
    line-height: 1.6;
    color: #cccccc;
    font-weight: 400;
}

.wishlist-text {
    color: #f97316; /* Wishlist çağrısını dikkat çekici turuncu yapalım */
    font-weight: 600;
    margin-top: 5px;
}

/* Wishlist Alanı */
.wishlist-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 600px; /* Wishlist butonunu tam olarak 600 piksel aşağıya aldık */
}

.wishlist-placeholder {
    width: 100%;
    max-width: 600px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #181824, #0c0c12);
    border: 1px dashed #f97316;
    border-radius: 8px;
    color: #f97316;
    font-weight: 700;
    font-size: 1.3rem; /* Boyutu büyüterek daha dikkat çekici yaptık */
    text-align: center;
    cursor: pointer;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    letter-spacing: 1.5px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s, border-style 0.3s;
}

.wishlist-placeholder:hover {
    background: linear-gradient(135deg, #202030, #101018);
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
}

/* --- GERÇEK ANATOMİK PARÇALANMA (SHATTER) EFEKTİ --- */

.word-wrapper {
    display: inline-block;
    white-space: nowrap;
}

.letter-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    line-height: inherit;
    color: inherit;
    /* Wrapper'ın kendisi kıpırdamaz, içindeki parçalar saçılır */
}

.letter-wrapper.space {
    display: inline-block;
}

/* Harfin kıymık parçaları */
.shard {
    display: inline-block;
    will-change: transform, opacity;
    transition: transform var(--dur, 0.5s) cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity var(--dur, 0.5s) ease-in-out;
    /* Varsayılan olarak tam birleşik duracaklar */
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
}

/* Ana görünmez seçilebilir harf katmanı */
.selectable-char {
    position: relative;
    display: inline-block;
    color: transparent;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    vertical-align: baseline;
    pointer-events: auto;
}

/* shard-1 üst üste tam biner */
.shard-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    clip-path: polygon(0% 0%, 100% 0%, 100% 30%, 0% 60%);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* shard-2 ve shard-3 üst üste tam biner */
.shard-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    clip-path: polygon(0% 60%, 100% 30%, 100% 70%, 0% 90%);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.shard-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    clip-path: polygon(0% 90%, 100% 70%, 100% 100%, 0% 100%);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.shard-1::before,
.shard-2::before,
.shard-3::before {
    content: attr(data-char);
    display: block;
    width: 100%;
    height: 100%;
}

/* DAĞILMA/PARÇALANMA DURUMU (.is-scattered) */
/* Her kıymık parçası kendi bağımsız koordinatına uçar ve havada görünür kalır */
.letter-wrapper.is-scattered .shard-1 {
    opacity: 0.6;
    transform: translate(var(--x1), var(--y1)) rotate(var(--r1)) scale(0.7);
}

.letter-wrapper.is-scattered .shard-2 {
    opacity: 0.6;
    transform: translate(var(--x2), var(--y2)) rotate(var(--r2)) scale(0.7);
}

.letter-wrapper.is-scattered .shard-3 {
    opacity: 0.6;
    transform: translate(var(--x3), var(--y3)) rotate(var(--r3)) scale(0.7);
}

/* SOLUP YOK OLMA DURUMU (.is-fading-out) */
.letter-wrapper.is-fading-out,
.word-wrapper.is-fading-out {
    position: absolute !important;
    pointer-events: none;
    opacity: 0 !important;
    transform: scale(0.5) !important;
    transition: opacity var(--dur, 0.5s) ease-in-out, transform var(--dur, 0.5s) ease-in-out !important;
}

/* Mobil Cihazlar İçin Tasarım İyileştirmeleri (Tek Sayfa / No-Scroll) */
@media (max-width: 768px) {
    body {
        overflow: hidden; /* Sayfanın kaymasını (scroll) tamamen engelliyoruz */
        height: 100vh;
        height: -webkit-fill-available;
    }

    .container {
        height: 85vh; /* Mobilde dikey ekrana sığacak toplam yükseklik */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Yazıları üstte, butonu en altta tutar; ortayı boş bırakır */
        margin-top: 2vh;
    }

    .brand-container {
        font-size: 2.2rem; /* Başlığı mobilde küçülttük */
        gap: 8px;
        margin-top: 10px;
    }

    .section-title {
        font-size: 1.8rem; /* Hakkımızda başlığı boyutu */
    }

    .about-text, .wishlist-text {
        font-size: 1.1rem; /* Okunabilir, dengeli metin boyutu */
        line-height: 1.5;
        padding: 0 10px;
    }

    .wishlist-section {
        margin-top: auto; /* Butonu en alta iter */
        padding-bottom: 20px; /* Alttan güvenli boşluk */
    }

    .wishlist-placeholder {
        font-size: 1.0rem; /* Buton metnini küçülttük */
        padding: 15px 25px; /* İç boşluğu küçülterek ekrana sığmasını garantiledik */
        letter-spacing: 1px;
    }
}