/* Genel Ayarlar ve Sıfırlamalar */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000; /* Komple siyah arka plan */
    color: #fff; /* Yazı rengi beyaz */
    overflow: hidden; /* Fazla içeriği gizle, kaydırma çubuğu olmasın */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ekran yüksekliğinin tamamını kapla */
    position: relative;
    user-select: none; /* Metin seçmeyi engelle */
    cursor: default; /* Varsayılan işaretçi */
}

/* Arka Plan Efektleri Konteyneri */
#background-effects-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Tıklamaları engelle */
    background: radial-gradient(circle, rgba(20,20,20,1) 0%, rgba(0,0,0,1) 100%); /* Koyu degrade */
}

/* Hafif Parçacıklar (Yıldız Tozu) Efekti */
#background-effects-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 1.5px, transparent 1.5px), /* Boyut ve opaklık arttı */
                radial-gradient(circle at top left, rgba(255,255,255,0.05) 1px, transparent 1px); /* Boyut ve opaklık arttı */
    background-size: 40px 40px, 60px 60px; /* Daha sık parçacıklar */
    animation: moveParticles 90s linear infinite; /* Çok yavaş hareket */
    opacity: 0.9; /* Efektin belirginliği arttı */
}

@keyframes moveParticles {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

/* Ana Konteyner */
.container {
    text-align: center;
    position: relative;
    z-index: 1; /* Diğer öğelerin üzerinde olmasını sağla */
    padding: 20px;
    max-width: 90%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Hafif transparan koyu kutu */
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7); /* Koyu gölge */
    box-sizing: border-box; /* Padding'i genişliğe dahil et */
}

/* Profil Resmi Konteyneri (Discord PP) */
.profile-pic-wrapper {
    width: 200px; /* Görselin genişliği */
    height: 200px; /* Görselin yüksekliği */
    margin: 0 auto 30px auto; /* Ortala ve alttan boşluk bırak */
    border-radius: 50%; /* Görseli yuvarlak yap */
    overflow: hidden; /* Köşeden taşan kısmı gizle */
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* Hafif beyaz parlama */
    animation: profilePicPulseGlow 2.5s infinite alternate, rotateY360 15s linear infinite; /* Parlama ve Y ekseninde dönme */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05); /* Arka plan rengi */
}

.profile-pic-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görselin boyutlara sığmasını sağla */
    display: block; /* Altında boşluk bırakmaması için */
}

/* Profil Resmi için Parlama Animasyonu */
@keyframes profilePicPulseGlow {
    from {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.1);
    }
}

/* Profil Resmi için Y ekseninde Dönme Animasyonu */
@keyframes rotateY360 {
    from {
        transform: perspective(1000px) rotateY(0deg); /* 3D derinlik ve başlangıç açısı */
    }
    to {
        transform: perspective(1000px) rotateY(360deg); /* 3D derinlik ve bitiş açısı */
    }
}


/* Ana Başlık (xthespooky) */
.main-title {
    font-size: 5em; /* Yazı boyutu */
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.1); /* Beyaz parlayan efekt */
    animation: textFadeGlow 2s ease-in-out infinite alternate; /* Hafif parlama animasyonu */
    margin-bottom: 40px; /* Alttan boşluk */
    letter-spacing: 2px; /* Harfler arası boşluk */
}

/* Ana Başlık için Parlama Animasyonu */
@keyframes textFadeGlow {
    from {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 15px rgba(255, 255, 255, 0.2);
    }
    to {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.4), 0 0 50px rgba(255, 255, 255, 0.1);
    }
}


/* Sosyal Medya Kutucukları Bölümü */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Küçük ekranlarda alt alta gelmesi için */
    gap: 25px; /* Kutucuklar arası boşluk */
    margin-top: 40px; /* Üstten boşluk */
}

/* Sosyal Medya Kutucuklarının Ortak Stilleri */
.social-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px; /* Kutucuk genişliği */
    height: 130px; /* Kutucuk yüksekliği */
    background-color: rgba(255, 255, 255, 0.03); /* Yarı şeffaf koyu arka plan */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Hafif çerçeve */
    border-radius: 18px; /* Hafif yuvarlak köşeler */
    text-decoration: none; /* Alt çizgiyi kaldır */
    color: #fff; /* Yazı rengi */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Yumuşak ve etkileyici geçiş */
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1); /* Çok hafif gölge */
    cursor: pointer; /* Fare imleci işaret parmağı olsun */
}

.social-box img {
    width: 65px; /* İkon boyutu */
    height: 65px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2)); /* İkona hafif beyaz parlama */
    transition: transform 0.3s ease;
}

.social-box span {
    font-size: 1em; /* Yazı boyutu */
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Kutucuklar Üzerine Gelince (Hover) Efekti */
.social-box:hover {
    transform: scale(1.09); /* Hafif büyüme */
    background-color: rgba(255, 255, 255, 0.08); /* Hafif koyu birleşimi */
    border-color: rgba(255, 255, 255, 0.3); /* Çerçeve rengini değiştir */
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 50px rgba(255, 255, 255, 0.2); /* Güçlü beyaz parlama */
}

.social-box:hover img {
    transform: translateY(-5px); /* İkon hafifçe yukarı kayar */
}

.social-box:hover span {
    opacity: 1;
}

/* Kutucuklar üzerine gelince parlayan ışık efekti */
.social-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    transition: all 0.7s ease-out;
    opacity: 0;
    pointer-events: none;
}

.social-box:hover::before {
    opacity: 1;
    transform: translate(-10%, -10%) rotate(30deg);
}

/* Atamızın Sözü Konteyneri - En altta sabitleme */
.atam-sozu-fixed-bottom {
    position: fixed; /* Ekrana sabitlenir */
    bottom: 20px; /* Alttan 20px boşluk */
    left: 50%; /* Ortalamak için */
    transform: translateX(-50%); /* Tam ortalamak için kendi genişliğinin yarısı kadar sola kaydır */
    width: 100%;
    text-align: center;
    z-index: 100; /* Diğer her şeyin üzerinde görünmesini sağla */
    padding: 0 10px; /* Kenarlardan taşmayı engelle */
    box-sizing: border-box; /* Padding'i genişliğe dahil et */
}

.atam-sozu {
    font-size: 1.6em;
    font-weight: bold;
    color: #fff;
    position: relative;
    display: inline-block; /* span elementinin transform alması için */
    padding-bottom: 5px; /* Gölge için yer aç */
    perspective: 1000px; /* 3D dönüşüm için perspektif */
    transform-style: preserve-3d; /* 3D dönüşümü koru */
    transition: transform 0.35s ease-in-out; /* Dönme animasyonu süresi */
}

/* Atamızın Sözü için Özel Gölge Efekti */
.atam-sozu::before {
    content: attr(data-text); /* JavaScript ile değişen metin/görsel için */
    position: absolute;
    top: 0;
    left: 0;
    color: transparent; /* Kendi rengini göstermesin */
    text-shadow: -1px -1px 2px #000, 1px 1px 2px #000, 2px 2px 5px red; /* Kırmızı kayan gölge */
    animation: kayanGolge 2s linear infinite alternate; /* Animasyon */
    z-index: -1; /* Metnin arkasında kalsın */
}

@keyframes kayanGolge {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-3px, -3px);
    }
}

/* Metin/Bayrak Dönüş Animasyonu Sınıfı */
.atam-sozu-rotating {
    transform: perspective(1000px) rotateY(90deg) !important; /* Dönme açısı */
}


/* Mobil uyumluluk */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.5em;
    }
    .profile-pic-wrapper {
        width: 150px;
        height: 150px;
    }
    .social-box {
        width: 110px;
        height: 110px;
    }
    .social-box img {
        width: 55px;
        height: 55px;
    }
    .atam-sozu {
        font-size: 1.2em; /* Mobil için biraz küçültelim */
    }
    .atam-sozu-fixed-bottom {
        bottom: 10px; /* Mobil için alt boşluğu azalt */
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.8em;
    }
    .profile-pic-wrapper {
        width: 120px;
        height: 120px;
    }
    .social-links {
        gap: 15px;
    }
    .social-box {
        width: 95px;
        height: 95px;
    }
    .social-box img {
        width: 45px;
        height: 45px;
    }
    .atam-sozu {
        font-size: 1em; /* Daha da küçültelim */
    }
}