/* Portfolyo Genel Alanı */
.portfolio-section {
    padding: 100px 0;
    background-color: #05050a; /* Derin siyah/lacivert */
    color: #ffffff;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

/* Profil Görseli Efektleri */
.profile-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    
    /* Boyut ayarları: %30 küçültme */
    width: 70%; /* Orijinal boyutun %70'i */
    margin: 0 auto; /* Görseli bulunduğu sütunda ortalar */
}

/* Hover efektindeki scale değerini de küçülen boyuta göre optimize ettik */
.profile-img {
    width: 100%;
    display: block;
    filter: grayscale(30%);
    transition: 0.5s ease;
}

.profile-image-container:hover .profile-img {
    filter: grayscale(0%);
    transform: scale(1.03); /* Çok büyük scale küçülen görselde taşma yapabilir, 1.03 idealdir */
}
.image-overlay-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.33); /* Mavi ışıltı */
    pointer-events: none;
}

/* Sosyal Medya İkonları */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: var(--primary-red); /* Sitenin ana rengi */
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

/* --- SKILLS KISMI (Görseldeki Stil) --- */
.skills-container {
    margin-top: 40px;
}

.skills-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.skill-bar {
    width: 100%;
    height: 4px; /* Görseldeki gibi ince yapı */
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: #ff0000; /* Görseldeki mavi renk */
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    /* Animasyon için başlangıç değeri */
    width: 0; 
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* ==========================================================================
   GELİŞTİRİLMİŞ PORTFOLYO MOBİL UYUMLULUK
   ========================================================================== */

@media (max-width: 992px) {
    .portfolio-section {
        padding: 60px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px; /* Görsel küçüldüğü için boşluğu biraz azalttık */
    }

    /* Görsel Ayarı - %30 Küçültüldü */
    .profile-image-container {
        width: 70%; /* Ekranın %100'ü yerine %70'ini kaplar */
        max-width: 280px; /* Üst sınırı 400px'den 280px'e çektik (%30 azaldı) */
        margin: 0 auto;
    }

    .social-links {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .skills-container {
        margin-top: 10px;
        text-align: left;
    }

    .skills-title {
        text-align: center;
        font-size: 1.5rem;
    }

    .skill-info {
        font-size: 0.85rem;
    }
}

/* Çok küçük telefonlar için dokunuş */
@media (max-width: 480px) {
    .portfolio-section {
        padding: 40px 0;
    }
    
    .profile-image-container {
        width: 70%; /* iPhone SE gibi cihazlarda da oran korunsun */
    }
    
    .skill-info {
        flex-direction: row;
        font-size: 0.8rem;
    }
}