/* wwwroot/css/project-cards.css dosyasının yeni ve tam içeriği */

.projects-section {
    padding: 80px 0;
    background-color: #f4f7f6; /* Hafif gri arka plan */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: 1.5px;
}
.title-main { color: #333; }
.title-highlight { color: #045129; margin-left: 0.5rem; }
.section-subtitle { font-size: 1.1rem; color: #666; margin: 0; font-weight: 400; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* --- YENİ KART TASARIMI --- */

.project-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

/* Üst Başlık Alanı */
.card-header {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem !important;
    font-weight: 400;
    color: #333;
    margin: 0;
    letter-spacing: 1.2px;
}

/* Görsel Alanı */
.card-image-container {
    width: 100%;
    height: 250px; /* Görsel yüksekliğini ayarlayabilirsiniz */
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Alt Buton Alanı */
.card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background-color: #fff;
    margin-top: auto; /* Kart yüksekliği değişse bile butonları en alta sabitler */
    border-top: 1px solid #f0f0f0;
}

.btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1.5px solid;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

/* "Projeyi İncele" Butonu (Mavi, İçi Dolu) */
.btn-primary {
    background-color: #045129;
    border-color: #045129;
    color: white;
}

.btn-primary:hover {
    background-color: white;
    color: #045129;
    border-color: #045129;
}

/* "Form Doldurun" Butonu (Yeşil, Kenarlıklı) */
.btn-secondary {
    background-color: transparent;
    border-color: #045129;
    color: #045129;
}

.btn-secondary:hover {
    background-color: #045129;
    color: white;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
 
    }
}




/* --- KART ÜZERİNE GELİNCE AÇIKLAMA EFEKTİ --- */
.card-image-container {
    position: relative;
    width: 100%;
    height: 250px; /* Görsel yüksekliği */
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease; /* Görselin solması için geçiş */
}

.card-description-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Yarı saydam siyah arka plan */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0; /* Başlangıçta gizli */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-card:hover .card-image-container img {
    opacity: 0.7; /* Fareyle gelince görseli hafifçe soluklaştır */
}

.project-card:hover .card-description-overlay {
    opacity: 1; /* Fareyle gelince açıklamayı görünür yap */
    visibility: visible;
}

.card-description-overlay p {
    margin: 0;
}