/* Genel HTML ve Body Ayarları */
html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-size: 62.5%; /* 1rem = 10px yapar, hesaplamayı kolaylaştırır */
}

html * {
    box-sizing: inherit;
}

body {
    /* Eski tekli arka plan resmi ayarları kaldırıldı */
    /* background-image: url('https://i.imgur.com/yUwKtHQ.jpeg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-attachment: fixed; */
    
    /* Yeni arka plan animasyonu için temel ayarlar */
    background-size: cover; /* Her resim arka planı kaplayacak */
    background-position: center center; /* Her resim ortalanacak */
    background-repeat: no-repeat; /* Resimler tekrar etmeyecek */
    background-attachment: fixed; /* Sayfa kaydırıldığında resmin sabit kalmasını sağlar */
    
    /* Animasyonu tanımlıyoruz: backgroundChange animasyonu, 16 saniye sürecek, doğrusal, sonsuz döngü */
    /* Hesaplama: (Kullanılan resim sayısı) * (Her resim için gösterim süresi) */
    /* Örneğin 4 resim * 4 saniye/resim = 16 saniye. */
    animation: backgroundChange 16s linear infinite; 

    display: flex; /* Öğeleri konumlandırmak için flexbox kullan */
    flex-direction: column; /* Öğeleri dikeyde sırala */
    justify-content: center; /* Öğeleri dikeyde ortala */
    align-items: flex-end; /* Öğeleri yatayda sağa hizala */
    padding-right: 20px; /* Sağ kenardan biraz boşluk bırak (isteğe bağlı) */

    min-height: 100vh; /* Ekran yüksekliğinin tamamını kapla */
    margin: 0; /* Tarayıcı varsayılan boşluklarını kaldır */
    font-family: sans-serif; /* Genel font */
    font-size: 1.6rem; /* 16px'e denk gelir */
    position: relative; /* Diğer elementlerin konumlandırılması için referans noktası */
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

/* Arka plan resimlerini değiştiren animasyon */
@keyframes backgroundChange {
    /* Her resim için bir zaman dilimi belirliyoruz. */
    /* Örneğin, 4 resim için: */
    /* 0% - 25%: 1. resim */
    /* 25.01% - 50%: 2. resim */
    /* 50.01% - 75%: 3. resim */
    /* 75.01% - 100%: 4. resim */

    0%, 25% { /* Animasyonun ilk %25'inde (0-4 saniye) 1. resim */
        background-image: url('https://i.imgur.com/XeVKcUC.jpeg'); /* Senin 1. resminin URL'si */
    }
    25.01%, 50% { /* Animasyonun %25.01'inden %50'sine kadar (4-8 saniye) 2. resim */
        background-image: url('https://i.imgur.com/BHsQzLL.jpeg'); /* Senin 2. resminin URL'si */
    }
    50.01%, 75% { /* Animasyonun %50.01'inden %75'ine kadar (8-12 saniye) 3. resim */
        background-image: url('https://i.imgur.com/M1h4g2S.jpeg'); /* Senin 3. resminin URL'si */
    }
    75.01%, 100% { /* Animasyonun %75.01'inden %100'üne kadar (12-16 saniye) 4. resim */
        background-image: url('https://i.imgur.com/qSHS5jd.jpeg'); /* Senin 4. resminin URL'si */
    }
}

/* Body'nin arka planı için pseudo-element */
/* Bu katman, arka plan resimlerinin üzerine hafif bir opaklık ekler. */
body::before {
    content: '';
    height: 100%;
    left: 0;
    opacity: 0.8; /* Resmin üzerine bir opaklık katmanı ekler */
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0; /* Profil kartının altında, değişen arka planın üstünde kalmasını sağlar */
}

/* Profil Kartı Stilleri */
.profile-card {
    width: 300px;
    max-width: 90%; /* Mobil cihazlarda ekranın %90'ını kaplar, taşmayı engeller */
    border-radius: 50px;
    background: rgba(224, 224, 224, 0.7); /* %70 şeffaflık */
    box-shadow: 10px 10px 30px rgba(190, 190, 190, 0.3),
                -10px -10px 30px rgba(255, 255, 255, 0.3);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box; /* Padding'in width hesaplamasına dahil olmasını sağlar */
    z-index: 1; /* Diğer elementlerin üzerinde görünmesini sağla */
    /* margin-bottom: 40px; Bu boşluğu artık .buttons'tan vereceğiz */
    margin-right: 0; /* Eğer daha önce başka bir yerden margin-right geldiyse sıfırla */
}

.profile-card:hover {
    box-shadow: 5px 5px 15px rgba(190, 190, 190, 0.4),
                -5px -5px 15px rgba(255, 255, 255, 0.4);
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: inset 5px 5px 10px rgba(190, 190, 190, 0.4),
                inset -5px -5px 10px rgba(255, 255, 255, 0.4);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    margin: 10px 0;
    color: #333;
    font-size: 1.5em;
}

.profile-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.social-link {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(224, 224, 224, 0.6);
    box-shadow: 5px 5px 10px rgba(190, 190, 190, 0.2),
                -5px -5px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    white-space: nowrap;
}

.social-link:hover {
    box-shadow: inset 5px 5px 10px rgba(190, 190, 190, 0.3),
                inset -5px -5px 10px rgba(255, 255, 255, 0.3);
}

#contact-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(224, 224, 224, 0.6);
    color: #333;
    box-shadow: 5px 5px 10px rgba(190, 190, 190, 0.2),
                -5px -5px 10px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

#contact-btn:hover {
    box-shadow: inset 5px 5px 10px rgba(190, 190, 190, 0.3),
                inset -5px -5px 10px rgba(255, 255, 255, 0.3);
}



/* --- Mobil Uyumlu Düzenlemeler (Profil Kartı ve Butonlar için) --- */
@media (max-width: 768px) {
    .profile-card {
        width: 90%; /* Daha küçük ekranlarda genişliği %90'a çıkar */
        padding: 20px; /* Daha az padding */
        border-radius: 30px; /* Kenar yuvarlaklığını azalt */
    }

    .profile-image {
        width: 120px; /* Resim boyutunu küçült */
        height: 120px;
        margin-bottom: 15px;
    }

    .profile-info h2 {
        font-size: 1.3em; /* Başlık font boyutunu küçült */
    }

    .profile-info p {
        font-size: 0.8em; /* Paragraf font boyutunu küçült */
        margin-bottom: 15px;
    }

    .social-links {
        gap: 8px; /* Sosyal bağlantılar arası boşluğu azalt */
    }

    .social-link {
        padding: 6px 10px; /* Sosyal bağlantı padding'ini küçült */
        font-size: 0.8em; /* Sosyal bağlantı font boyutunu küçült */
    }

    #contact-btn {
        padding: 8px 15px; /* Buton padding'ini küçült */
        font-size: 0.85em; /* Buton font boyutunu küçült */
    }

    /* Butonlar için mobil düzenlemeler */
    .buttons__toggle {
        height: 6rem; /* Buton boyutunu küçült */
        width: 6rem;
        border-width: 3px; /* Kenarlık kalınlığını azalt */
    }

    .buttons__toggle i {
        font-size: 2.5rem; /* İkon boyutunu küçült */
    }

    .button {
        height: 6rem; /* Buton boyutunu küçült */
        width: 6rem;
        border-width: 3px; /* Kenarlık kalınlığını azalt */
    }

    .button i {
        font-size: 2.5rem; /* İkon boyutunu küçült */
    }

    /* Butonların açılma mesafelerini mobil için ayarla */
    .buttons--active .button:nth-child(1) {
        transform: translate(-100%, -140%) rotate(0deg); /* Mesafeyi ayarla */
    }
    .buttons--active .button:nth-child(2) {
        transform: translate(0%, -140%) rotate(0deg);
    }
    .buttons--active .button:nth-child(3) {
        transform: translate(55%, -50%) rotate(0deg);
    }
    .buttons--active .button:nth-child(4) {
        transform: translate(0%, 40%) rotate(0deg);
    }
    .buttons--active .button:nth-child(5) {
        transform: translate(-100%, 40%) rotate(0deg);
    }
    .buttons--active .button:nth-child(6) {
        transform: translate(-155%, -50%) rotate(0deg);
    }
}

@media (max-width: 480px) {
    .profile-card {
        width: 95%; /* Çok küçük ekranlarda daha fazla yer kapla */
        padding: 15px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    /* Butonlar için çok küçük ekran düzenlemeleri */
    .buttons__toggle {
        height: 5rem;
        width: 5rem;
    }
    .buttons__toggle i {
        font-size: 2rem;
    }
    .button {
        height: 5rem;
        width: 5rem;
    }
    .button i {
        font-size: 2rem;
    }
    /* Butonların açılma mesafelerini daha da küçült */
    .buttons--active .button:nth-child(1) {
        transform: translate(-90%, -130%) rotate(0deg);
    }
    .buttons--active .button:nth-child(2) {
        transform: translate(-10%, -130%) rotate(0deg);
    }
    .buttons--active .button:nth-child(3) {
        transform: translate(45%, -50%) rotate(0deg);
    }
    .buttons--active .button:nth-child(4) {
        transform: translate(-10%, 30%) rotate(0deg);
    }
    .buttons--active .button:nth-child(5) {
        transform: translate(-90%, 30%) rotate(0deg);
    }
    .buttons--active .button:nth-child(6) {
        transform: translate(-145%, -50%) rotate(0deg);
    }
}
