/* ==========================================================================
   HOME CSS: Profil Bloğu ve Proje Kartları Izgarası
   ========================================================================== */

/* --- PROFİL BÖLÜMÜ --- */
#profile-block {
    margin-bottom: 30px;
    padding: 10px 10px 10px 30px;
    background-color: var(--surface-color);
    border-radius: 8px;
    border-bottom: 3px solid #b52b2b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.profile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Profil Fotoğrafı Çerçevesi */
.profile-image-wrapper {
    order: 2; /* HTML'e dokunmadan sağa alma */
    margin-right: 30px; 
    margin-bottom: 50px;
    width: 150px; 
    height: 150px;
    border-radius: 8px; 
    overflow: hidden;
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.profile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content {
    flex: 1;
}

.profile-name { 
    font-size: clamp(3rem, 5vw, 5rem); 
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 600;
}

.profile-role { 
    font-size: 1.2rem; 
    color: var(--text-muted); 
    font-weight: 400; 
    margin-bottom: 30px; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

.profile-bio { 
    display: block;
    font-size: 1.1rem;
    margin-bottom: 30px; 
}

.skill-tag {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 10px 10px 0;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    border-radius: 40px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PROJE GRID YAPISI --- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobilde tek sütun */
    gap: 2vw;
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Masaüstünde 2 sütun */
    }
}

/* --- PROJE KARTLARI --- */
.project-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    padding: 24px;
    border: 2px dashed #444; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card-title {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -1px;
    border-bottom: 1px solid transparent;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-title {
    transform: scale(1.03); /* Hover durumunda başlık büyümesi */
}

/* 1 Büyük 2 Küçük Resim Izgarası */
.preview-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    grid-template-rows: 1fr 1fr;    
    gap: 12px;
    aspect-ratio: 16 / 10;
    width: 100%;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--surface-color);
    border-radius: 4px;
}

.img-kapak { grid-row: span 2; }

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .img-wrapper img {
    transform: scale(1.05); /* Hover durumunda resimlerin hafif zoomlanması */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.card-summary {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 80%;
}

.card-year {
    font-size: 0.9rem;
    font-family: monospace;
    color: var(--text-main);
}

/* --- MOBİL UYUMLULUK (Sadece Ana Sayfa İçin) --- */
@media (max-width: 767px) {
    #profile-block { margin-bottom: 15px; }

    .profile-container {
        display: block; 
        position: relative; 
    }
    
    .profile-image-wrapper {
        position: absolute; 
        top: 0;
        right: 0;
        width: 80px; 
        height: 80px;
        margin-right: 0; 
        margin-bottom: 0; 
    }
    
    .profile-content { display: block; }
    
    .profile-name, .profile-role { padding-right: 100px; }
    .profile-name { font-size: 2.5rem; }
    .profile-role { font-size: 1rem; margin-bottom: 20px; }
    
    .profile-bio {
        display: block; 
        font-size: 1rem;
        margin-top: 15px;
    }
}