/* Genel Navbar Stilleri */
@font-face {
    font-family: 'PoiretOne-Regular';
    src: url('../fonts/PoiretOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    background: rgba(0, 0, 0, 0.5)!important; /* Saydam arka plan */
    color: white;
    padding: 10px 20px;
    z-index: 1000;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}

.project-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    clip-path: inset(0 0 0 0); /* Başlangıçta tüm görsel açık */
    animation: hideImage 1s ease-in forwards; /* Kapanma animasyonu */
    animation-play-state: paused; /* Animasyon başlangıçta duraklatıldı */
    border-radius: 0;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 10px;
    padding-left: 30px;
    visibility: hidden; /* Başlangıçta gizli */
    opacity: 0; /* Başlangıçta görünmez */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2)); /* Yukarı doğru azalan arka plan rengi */
    transition: visibility 0s, opacity 0.5s linear; /* Geçiş efekti */
}

.project-card:hover .project-info {
    visibility: visible;
    opacity: 1;
}

.project-info .card-title {
    font-family: 'PoiretOne-Regular', sans-serif;
    font-size: 30px;
}

.category-menu {
    margin-bottom: 20px;
}

.category-menu a {
    margin-right: 10px;
    cursor: pointer;
    border: none;
}

.project-card.hide img {
    animation: hideImage 1s ease-in forwards; /* Kapanma animasyonu */
    animation-play-state: running;
}

.project-card.show img {
    animation: revealImage 1s ease-out forwards; /* Açılma animasyonu */
    animation-play-state: running;
}

@keyframes hideImage {
    from {
        clip-path: inset(0 0 0 0);
    }
    to {
        clip-path: inset(0 0 0 100%);
    }
}

@keyframes revealImage {
    from {
        clip-path: inset(0 0 0 100%);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.container-custom {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 50px;
    margin-right: 50px;
}

/* Mobil cihazlar için padding: 20px */
@media (max-width: 768px) {
    .container-custom {
        margin: 0 0;
        padding: 10px 10px;
    }

    .category-menu {
        display: flex;
        justify-content: center;
        flex-wrap: wrap; /* Satır kırılmalarına izin verir */
        gap: 10px; /* Butonlar arasında boşluk */
    }

    .category-menu a:nth-child(1) {
        flex-basis: 100%; /* İlk buton (All) tam genişlikte olacak */
        margin-bottom: 10px; /* Altına biraz boşluk bırak */
    }

    .category-menu a {
        flex-basis: 12%; /* Diğer butonlar yarı genişlikte olacak */
        text-align: center; /* Buton içeriğini ortala */
        margin-right: 0;
        padding: 1px;
        font-size: 14px;
    }

    .project-info .card-title {
        font-family: 'PoiretOne-Regular', sans-serif;
        font-size: 22px;
    }
    .project-info .card-text {
        font-size: 14px;
    }
    .project-info {
        visibility: visible;
        opacity: 1;
    }
}