/* --- Genel Stiller --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 1.2rem 0rem 0;
}

.social-icon {
    font-size: 1.1rem;
    color: #333;
    margin-left: 1.5rem;
    transition: color 0.2s ease-in-out;
}

.social-icon:hover {
    color: #007bff;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.navbar-brand {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #000 !important;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    padding: 0 1.2rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    color: #555 !important;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: #000 !important;
}

/* --- Mobil Header Stilleri --- */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.navbar-toggler span:nth-child(1) {
    top: 0px;
}

.navbar-toggler span:nth-child(2) {
    top: 8px;
}

.navbar-toggler span:nth-child(3) {
    top: 16px;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* --- Mobil Açılır Menü Alanı --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    padding: 0;
    line-height: 1;
}

.mobile-nav-link {
    display: block;
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: #333;
    border-bottom: none;
    text-align: center;
}

.mobile-social-icons {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mobile-social-icons .social-icon {
    font-size: 1.5rem;
    margin: 0 0.75rem;
}

/* --- Ana Sayfa İçerik Stilleri (Eğer varsa) --- */
.promo-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.promo-item .img-container {
    height: 54vh;
    display: block;
    min-height: 300px;
    max-height: 550px;
}

.promo-item .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.promo-item a:hover img {
    opacity: 0.85;
}

.promo-link {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #008080;
    text-decoration: none;
    transition: color 0.3s ease;
}

.promo-link:hover {
    color: #333;
}

.hero-subtitle {
    font-size: 2.1rem;
    font-weight: 400;
    color: #222;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .row .col-lg-4:first-child .promo-item .img-container {
        height: calc(100vh - 135px);
    }
}

/* --- Footer Stilleri --- */
.site-footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 4rem 0 2rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer h5 {
    color: #f8f9fa;
    font-weight: 700;
    font-family: 'Lora', serif;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.site-footer .footer-about p {
    margin-bottom: 0;
}

.footer-nav-links {
    list-style: none;
    padding-left: 0;
}

.footer-nav-links li {
    margin-bottom: 0.75rem;
}

.footer-nav-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-nav-links a:hover,
.footer-nav-links a:focus {
    color: #fff;
    padding-left: 5px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background-color: #343a40;
    color: #f8f9fa;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #007bff; /* Örnek bir hover rengi */
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.9rem;
}

/* --- Yukarı Çık Butonu --- */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #343a40;
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    transition: opacity 0.5s, visibility 0.5s, background-color 0.3s;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#backToTopBtn:hover {
    background-color: #007bff;
}

/* ===== Portfolyo Kart Tasarımı Stilleri (V2.1 - Başlık Görünür) ===== */
.portfolio-section-v2 {
    padding: 80px 0;
    background-color: #f8f9fa; /* Arka planı hafif gri yapalım, kartlar öne çıksın */
}

/* Kartların tıklanabilir olması için link etiketi */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 350px;
}

.project-card-link:hover .project-card {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card-link:hover .project-image {
    transform: scale(1.1);
}

/* HER ZAMAN GÖRÜNEN BAŞLIK ALANI */
.project-title-permanent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 25px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    transition: all 0.4s ease;
}

/* SADECE HOVER'DA ÇIKAN KATMAN */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 22, 36, 0.85);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    display: flex;
    align-items: center;  /* İçeriği dikeyde ortala */
    justify-content: center; /* İçeriği yatayda ortala */
    text-align: center;
    z-index: 3; /* Başlığın üzerinde olmalı */
}

.project-card-link:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content {
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.project-card-link:hover .project-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

/* Ortak başlık stili */
.project-title-overlay {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.project-tech-overlay {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1.5rem; /* Butonla arayı açalım */
    color: #d1d1d1;
}

/* --- Filtrelenebilir Galeri Stilleri (v2 - GÜNCELLENDİ) --- */
.filter-controls {
    text-align: center;
}
.filter-btn {
    background-color: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    margin: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}
.filter-btn:hover {
    background-color: #ced4da;
}
.filter-btn.active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* --- Filtre Animasyon Stilleri --- */
.filter-item {
    /* Bu satır animasyonun pürüzsüz olmasını sağlar */
    transition: transform 0.4s ease, opacity 0.4s ease; 
}

/* --- Mobil Uyumluluk İyileştirmeleri (Responsive Design) --- */
@media (max-width: 575.98px) {

    /* 1. Filtre Butonlarını Dikey Hizala */
    .filter-controls {
        /* Butonları dikeyde sıralamak için flex yönünü değiştiriyoruz */
        display: flex;
        flex-direction: column;
        align-items: stretch; /* Butonların genişlemesini sağla */
    }

    .filter-btn {
        /* Butonlar arası dikey boşluk */
        margin: 6px 0; 
    }

    /* 2. Genel Boşlukları Azalt */
    .page-hero,
    .portfolio-section-v2 {
        /* Sayfadaki dikey boşlukları mobil için azaltıyoruz */
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .page-title {
        /* "Web Projelerim" başlığını mobil için küçültüyoruz */
        font-size: 2.2rem;
    }

    .row.justify-content-center.mb-5 {
        margin-bottom: 2rem !important; /* Butonlar ve kartlar arası boşluğu azalt */
    }

    /* 3. Proje Kartlarının Boyutunu Ayarla */
    .project-card {
        /* Kart yüksekliğini mobil ekran için daha uygun bir boyuta getiriyoruz */
        height: 280px; 
    }
    
    .project-title-overlay {
        font-size: 1.3rem; /* Kart içindeki başlık fontunu küçült */
    }
}

/* --- GitHub Önizleme Modal Stilleri --- */
.github-modal-content {
    background-color: #f8f9fa;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Modal açıldığında animasyonu tetikle */
.modal.show .github-modal-content {
    opacity: 1;
    transform: scale(1);
}

.github-modal-content .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.github-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.github-name {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.github-username {
    color: #6c757d;
    font-weight: 500;
}

.github-bio {
    font-size: 0.95rem;
    color: #495057;
}

.github-button {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.github-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}