﻿.portfolio-grid {
    width: 100%;
    max-width: 1200px; /* veya 1200px */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 40px 70px;
    justify-items: center;
    box-sizing: border-box;
    padding: 0 20px;
}

.portfolio-content {
    color: #e0f7fa;
    animation: SlideInFromUp 0.6s ease-out;
}

.portfolio-section {
    
}

.portfolio-header {
    width: 100%; /* section genişliğini kaplar */
    height: auto; /* içeriğe göre yükseklik */
    display: flex;
    flex-direction: column; /* içerikler alt alta */
    align-items: center; /* yatayda ortalar */
}

.portfolio-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-align: center;
}

.portfolio-header p {
    font-size: 16px;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;

}

.portfolio-item {
    width: 175px;
    height: 263px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .portfolio-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    }

    .portfolio-item img {
        width: 100%;
        height: 223px;
        object-fit: cover;
        display: block;
    }

    .portfolio-item h3 {
        height: 40px;
        width: 100%;
        margin: 0;
        font-size: 13px;
        color: #eaeaea;
        text-align: center;
        background-color: rgba(88, 118, 148, 0.5);
        overflow: hidden;
        display: flex; /* Flex ile ortalama */
        align-items: center;
        justify-content: center;
        text-align: center;
        text-overflow: ellipsis;
        box-sizing: border-box;
        font-family: 'Segoe UI', sans-serif;
    }

    .portfolio-item .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 40px;
        background: rgba(80, 100, 128, 0.5);
        cursor: pointer;
        display: block; /* <a> inline değil, block olsun ki tüm alanı kaplasın */
        opacity: 0;
        transition: 0.3s;
        /* overlay içindeki metin kaldırıldı, çünkü artık <a> sadece tıklama alanı */
    }

    .portfolio-item:hover .overlay {
        opacity: 1;
    }

.overlay-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

    .overlay-link:hover {
        text-decoration: underline;
    }

.project-page {
    margin-bottom: 24px; /* Daha fazla dikey boşluk */
    padding-bottom: 16px;
    border-bottom: 5px solid rgba(255, 255, 255, 0.1); /* İsteğe bağlı: görsel ayırıcı */
}