@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap");

* {
    font-family: "Poppins", sans-serif;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    padding-top: 3%;
    background-color: #f5f5f5;
    background-image: url('../images/gri-arka-plan.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.container {
    max-width: 1000px;
}

/* Kart Stili */
.project-card {
    border: 1px solid #ccc; /* Gri sınır */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #8f8f8f9c, #85858591, #00000094);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 600px; /* Sabit kart yüksekliği kaldırıldı */
    position: relative;
}

.project-card:hover {
    backdrop-filter: blur(20px);
    border-color: #aaa;
    box-shadow: 0 8px 15px rgba(128, 128, 128, 0.4), /* Grimsi yansıma */
                0 12px 20px rgba(0, 0, 0, 0.2); /* Altına ekstra bir gölge */
}

/* Kart Resmi Stili */
.project-card img {
    width: 100%;
    height: 200px;
    object-fit:scale-down; /* Resmin kapsaması için */
    background: linear-gradient(135deg, #8f8f8f9c, #85858591);
    overflow: hidden;
}

/* Kart İçeriği */
.project-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Taşmayı yönetmek için visible kullanıldı */
}

.project-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bolder;
    margin-bottom: 5px;
    color: #333;
    white-space: normal; /* Alt satıra geçmesine izin verir */
    word-wrap: break-word; /* Kelimelerin kırılmasına izin verir */
}

/* Tarih Stili */
.project-date {
    text-align: center;
    font-size: 0.9rem;
    color: #4b4b4b; /* Gri tonunda */
    margin-bottom: 10px; /* Tarih ile içerik arasına boşluk */
}

/* Özet ve Butonları İçeren Alt Kısım */
.project-footer {
    margin-top: auto; /* Kartın altına itmek için */
    text-align: center; /* Butonu ortalamak için */
}

.project-summary {
    font-size: 0.9rem;
    color: #313131;
    margin-bottom: 15px;
    min-height: 100px; /* Özet metni için sabit bir yükseklik */
    text-align: justify;
    overflow: visible; /* Taşmayı önlemek için visible kullanıldı */
    font-weight: 600;
    white-space: normal; /* Alt satıra geçmesine izin verir */
    word-wrap: break-word; /* Kelimelerin kırılmasına izin verir */
}

/* Buton Stili */
.btn-primary {
    color: #fff;
    background-color: #515253; /* Gri tonlarında buton rengi */
    border-color: #515253;
    width: 50%; /* Buton tam genişlikte olacak */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 10px; /* Butonun dikdörtgen görünmesi için */
    border-radius: 4px;
    margin-bottom: 15px; /* Alt kısımda sabit dursun */
}

.btn-primary:hover {
    background-color: #000000; /* Daha koyu gri hover durumu */
    border-color: #5a6268;
}

#projects-title {
    font-weight: 500 !important;
    color: white;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.479);
}

/* Sayfalama Stili */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pagination-link {
    margin: 0 5px;
    padding: 10px 20px;
    color: #515253;
    text-decoration: none;
    border: 1px solid #515253;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-link:hover {
    border-color:#3d3d3d;
    background-color: #3d3d3d;
    color: white;
}

.pagination-link.active {
    border-color:#5a6268;
    background: linear-gradient(135deg, #8f8f8f, #858585, #000000a1);
    color: white;
    border-color: #6c757d;
}

/* Responsive */
@media (max-width: 1200px) {
    
    .project-card img {
        height: 175px; /* Kart içindeki resmin yüksekliği */
    }
    
    .project-card {
        backdrop-filter: blur(20px);
        height: auto; /* Küçük ekranlar için esnek yükseklik */
        width: 75%; /* Kartların genişliği */
        margin: 0 auto; /* Kartları ortaya almak için */
        box-shadow: none;
    }

    .project-card:hover {
        box-shadow: none;
    }
    
    .mb-4 {
        margin-top: 30px; /* Kartlar arası boşluk */
    }

    /* Kartların ana kapsayıcısının esnekliği */
    .row {
        display: flex; /* Flexbox kullanarak esnek bir düzen oluştur */
        flex-wrap: wrap; /* Kartların birden fazla satıra yayılmasına izin ver */
        justify-content: center; /* Kartları yatayda ortalar */
    }

    /* Genel Scrollbar Stili */
    ::-webkit-scrollbar {
        display: none !important;
    }

}

/* Genel Scrollbar Stili */
::-webkit-scrollbar {
    width: 10px; /* Scrollbar genişliği */
    z-index: 1000;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.055); /* Scrollbar'ın arka plan rengi */
    border-radius: 10px; /* Kenar yuvarlama */
}

::-webkit-scrollbar-thumb {
    background: #424242; /* Kaydırıcı butonunun rengi */
    border-radius: 10px; /* Kenar yuvarlama */
}

/* Scrollbar Hover Durumu */
::-webkit-scrollbar-thumb:hover {
    background: #000000b2; /* Hover durumunda kaydırıcı butonunun rengi */
}

.fade-in-card {
    opacity: 0; /* İlk başta görünmez */
    transform: translateY(20px); /* Aşağıdan kayarak gelir */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in-card.visible {
    opacity: 1; /* Görünür hale gelir */
    transform: translateY(0); /* Aşağıdan yukarı hareket eder */
}
