/* Renk Değişkenleri */
:root {
    --main-color: #ffa500;
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: rgba(15, 15, 20, 0.65);
    --card-border: rgba(255, 255, 255, 0.15);
    --card-shadow: rgba(0, 0, 0, 0.8);
    --map-filter: invert(1);
    --social-icon-color: #ffffff;
}

/* Açık Tema Değişkenleri */
body.light-theme {
    --bg-color: #f4f4f9;
    --text-color: #1a1a1a;
    --text-secondary: #444444;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.1);
    --map-filter: invert(0);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --social-icon-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; /* Kurumsal gövde fontu */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

body {
    background-color: var(--bg-color);
    overflow: hidden; /* Scroll barlarını gizle */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Arka Plan Kapsayıcısı (Zoom ve Konumlandırma) */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: scale(1.35); /* Haritayı ve Pingleri Yakınlaştır */
    transform-origin: center center;
    pointer-events: none; /* Tıklamalar karta geçsin */
    filter: blur(0px); /* Başlangıçta net */
    animation: blurBackground 3s ease-out 2s forwards; /* 2sn bekle, 3sn sürede bulanıklaştır */
}

/* Canvas */
#neuronCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Dünya Haritası Arka Planı */
.world-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/World_map_blank_without_borders.svg/2000px-World_map_blank_without_borders.svg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Çok silik görünüm */
    z-index: -1; /* Canvas'ın altında */
    filter: var(--map-filter);
    transition: filter 0.5s ease;
}

/* Kart Konumlandırma */
.card-container {
    position: relative;
    z-index: 1; /* Canvas'ın üstünde */
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px); /* Güçlü buzlu cam efekti */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 30px; /* Köşeleri yuvarla */
    padding: 80px; /* İç boşluk artırıldı */
    text-align: left;
    width: auto;
    max-width: 1400px; /* Genişlik sınırı artırıldı */
    box-shadow: 0 20px 50px var(--card-shadow);
    transition: transform 0.3s ease, background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative; /* Parçacıklar için */
    overflow: hidden; /* Parçacıklar dışarı taşmasın */
}

.card:hover {
    transform: none; /* Tam ekranda hareket efektini kapattık */
    border-color: var(--main-color);
}

.card-content {
    flex: 1;
    padding-right: 20px;
    position: relative;
    z-index: 2; /* Parçacıkların üstünde kalsın */
}

/* Logo Alanı */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: var(--main-color);
    font-family: 'Orbitron', sans-serif; /* Fütüristik font */
}

/* Logo Görseli */
.site-logo {
    height: 70px; /* Logo yüksekliği */
    width: auto; /* Genişlik orantılı olsun */
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.site-logo:hover {
    filter: drop-shadow(0 0 8px var(--main-color));
    transform: scale(1.05);
}

.profile-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2; /* Parçacıkların üstünde kalsın */
}

/* Animasyonlu Çerçeve - Dalga Efekti 1 */
.profile-img::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Animasyonlu Çerçeve - Dalga Efekti 2 (Gecikmeli) */
.profile-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    animation-delay: 1s; /* İkinci halka gecikmeli gelsin */
}

.profile-img img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    margin-bottom: 0;
    object-fit: cover;
    position: relative;
    z-index: 2; /* Çerçevelerin üstünde kalsın */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h1 {
    font-family: 'Montserrat', sans-serif; /* Kurumsal başlık fontu */
    font-size: 4rem; /* Yazı büyütüldü */
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 2px;
}

.title {
    color: var(--main-color); /* Değişken rengi */
    font-size: 1.5rem; /* Yazı büyütüldü */
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.description {
    font-size: 1.3rem; /* Yazı büyütüldü */
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap; /* İkonlar sığmazsa alt satıra geçsin */
}

.social-icon {
    position: relative; /* Tooltip için gerekli */
    color: var(--social-icon-color);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.social-icon:focus, .social-icon:active {
    outline: none;
    background: transparent;
}

.social-icon:hover {
    color: var(--main-color);
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color);
}

/* Tooltip (İsim Gösterme) Efekti */
.social-icon::after {
    content: attr(data-name); /* HTML'deki data-name verisini al */
    position: absolute;
    top: 120%; /* Aşağıda başlasın */
    bottom: auto; /* Yukarı hizalamayı iptal et */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--main-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, top 0.3s ease; /* bottom yerine top animasyonu */
    border: 1px solid var(--main-color);
    z-index: 10;
}

.social-icon:hover::after {
    opacity: 1;
    top: 140%; /* Aşağı doğru kaysın */
}

/* Dönme Animasyonu Sınıfı */
.rotate-anim {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Nabız (Pulse) Animasyonu */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4); /* Dışarı doğru genişle */
        opacity: 0; /* Kaybol */
    }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Mobilde kaydırmaya izin ver */
        height: auto;
        padding: 20px 0;
    }

    .card {
        flex-direction: column;
        text-align: center;
        width: 95%; /* Mobilde kenar boşluğu */
        padding: 40px 20px; /* İç boşluk düzenlendi */
        margin: 20px auto;
    }
    .card .logo-container {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    h1 {
        font-size: 2rem; /* Başlığı küçük ekranlara sığması için optimize ettik */
    }
    .profile-img img {
        width: 200px; /* Küçük telefonlar için görsel boyutunu küçülttük */
        height: 200px;
    }
    .card-content {
        text-align: center !important;
        padding-right: 0;
    }
    .social-links {
        justify-content: center;
    }
    .logo-container {
        justify-content: center;
        margin-top: 20px;
    }
    .site-logo {
        height: 90px; /* Mobilde logo çok yer kaplamasın diye küçültüldü */
    }
    .footer {
        position: relative; /* Mobilde içeriğin üstüne binmesin */
        bottom: auto;
        margin-top: 100px;
        padding-bottom: 20px;
    }
}

/* Giriş Animasyonları (Fade In Up) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Animasyonun uygulanacağı elementler */
.profile-img, 
.card-content h1, 
.card-content .title, 
.card-content .description, 
.social-links {
    opacity: 0; /* Başlangıçta gizli olsunlar */
    animation: fadeInUp 0.8s ease-out forwards; /* Animasyon bitince son karede kalsın */
}

/* Sıralı giriş için gecikme süreleri (Stagger Effect) */
.profile-img {
    animation-delay: 0.2s;
}

.card-content h1 {
    animation-delay: 0.4s;
}

.card-content .title {
    animation-delay: 0.6s;
}

.card-content .description {
    animation-delay: 0.8s;
}

.social-links {
    animation-delay: 1.0s;
}

/* Arka Plan Bulanıklaştırma Animasyonu */
@keyframes blurBackground {
    to {
        filter: blur(5px);
    }
}

/* Footer (İmza) */
.footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    z-index: 10;
    letter-spacing: 1px;
}

.editor-label {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: colorPulse 3s infinite alternate;
}

@keyframes colorPulse {
    from { color: #ffffff; }
    to { color: #888888; }
}

.author-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    margin-left: 5px;
    text-decoration: none; /* Link alt çizgisini kaldır */
    cursor: pointer;
    color: var(--main-color);
}

/* Daktilo Efekti İmleci */
.footer::after {
    content: '_';
    display: inline-block;
    color: var(--main-color);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    font-weight: bold;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Buzlu Cam Parçacıkları */
#glassParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glass-particle {
    position: absolute;
    background: var(--main-color); /* Tema rengi */
    border-radius: 50%;
    animation: floatGlassParticle linear infinite;
}

@keyframes floatGlassParticle {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}

/* Özel Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--main-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 20px;
}

#modalMessage {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

#closeModalBtn {
    background: var(--main-color);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', sans-serif;
}

#closeModalBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--main-color);
}
