/* ================================== 01. GENEL SIFIRLAMA & TEMEL STİLLER ================================== */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0d0d0d; 
    color: #ffffff;
    line-height: 1.6;
}

/* KAYDIRMA ÇUBUĞU (SCROLLBAR) TEMASI */
body::-webkit-scrollbar {
    width: 12px; 
}

body::-webkit-scrollbar-track {
    background: #111111; 
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: #00eaff; 
    border-radius: 10px;
    border: 3px solid #111111; 
}

body::-webkit-scrollbar-thumb:hover {
    background: #ffffff; 
}
/* SCROLLBAR SONU */

a {
    text-decoration: none;
    color: inherit; 
}

/* UL ve LI için temel sıfırlama (Mobil menü hizalamasına yardımcı olur) */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Genel Buton Stili */
.btn-primary {
    display: inline-block;
    background: #00eaff;
    color: #111;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,255,255,0.4);
}

/* ================================== 02. HEADER / NAVBAR (.site-header) ================================== */

.site-header {
    width: 100%;
    background: #0f0f0f;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: fixed; 
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    transition: .2s ease;
}

.logo-text:hover {
    color: #00eaff;
}

/* Hamburger Buton Stilleri */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001; 
    padding: 0 10px;
}

.main-nav ul {
    display: flex; 
    align-items: center;
    gap: 30px; 
}

.main-nav a {
    color: white;
    font-size: 18px;
    padding: 5px 0;
    transition: .2s ease;
    white-space: nowrap;
    display: block;
}

.main-nav a:hover {
    color: #00eaff;
}

/* ---- DROPDOWN STİLLERİ (Fix ve Ortala) ---- */

.dropdown {
    position: relative;
    padding-bottom: 5px; /* Tampon bölge için padding (Dropdown fix) */
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    /* Ortalamak için kurallar */
    left: 50%;
    transform: translateX(-50%);
    /* Ortalamak için kurallar sonu */
    
    background: #111;
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 8px;
    min-width: 180px;
    margin-top: -5px; /* Tampon bölge ile çakıştırma (Dropdown fix) */
    box-shadow: 0 0 15px rgba(0,255,255,0.4);
    overflow: hidden;
}

/* MOBİL İÇİN YENİ STİL */
.dropdown-content a.sub-link {
    padding: 8px 20px;
    font-size: 15px;
    opacity: 0.8;
    transition: background 0.2s, opacity 0.2s;
}

.dropdown-content a.sub-link:hover {
    opacity: 1;
}

.dropdown-content a {
    padding: 12px 20px;
    font-size: 16px;
    color: white;
    display: block;
}

.dropdown-content a:hover {
    background: #0f2e2e;
    color: #00eaff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ================================== 03. HERO SECTION ================================== */

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.hero-section h1 {
    font-size: 72px;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0,255,255,0.8);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0,255,255,0.4);
    }
    to {
        text-shadow: 0 0 30px rgba(0,255,255,1);
    }
}

/* ================================== 04. HAKKIMDA SECTION (Ben Kimin?) ================================== */

.about-section {
    padding: 100px 40px;
    background: #111111;
}

.about-section .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 0 0 350px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,255,255,0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: #00eaff;
    margin-bottom: 10px;
}

.about-content .tagline {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 25px;
    border-left: 3px solid #00eaff;
    padding-left: 15px;
}

.about-content p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.85;
}

/* ================================== 05. EĞİTİM SECTION (İKİ YÖNLÜ HİZALAMA) ================================== */

.education-section {
    padding: 100px 40px;
    background: #0d0d0d;
    text-align: center;
}

.education-section h2 {
    font-size: 40px; 
    font-weight: 700;
    color: #00eaff;
    margin-bottom: 50px;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* Ana Zaman Çizgisi Hattı - ORTADA */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%; /* Merkezde */
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 100%; 
    box-sizing: border-box;
}

/* ------------------- SOL TARAFTAKİ ÖĞELER (Tek Sıradakiler) ------------------- */
.timeline-item:nth-child(odd) {
    /* Çizginin soluna yerleştirme */
    width: 50%; 
    padding-right: 70px; 
    left: 0;
    text-align: right;
}

/* ------------------- SAĞ TARAFTAKİ ÖĞELER (Çift Sıradakiler) ------------------- */
.timeline-item:nth-child(even) {
    /* Çizginin sağına yerleştirme */
    width: 50%;
    padding-left: 70px; 
    left: 50%;
    text-align: left;
}

/* Noktalar */
.timeline-dot {
    position: absolute;
    top: 25px;
    width: 15px;
    height: 15px;
    background: #00eaff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px #00eaff;
}

/* Noktaları Sol Taraftaki Öğelere Hizala */
.timeline-item:nth-child(odd) .timeline-dot {
    right: -7.5px; 
    left: auto;
}

/* Noktaları Sağ Taraftaki Öğelere Hizala */
.timeline-item:nth-child(even) .timeline-dot {
    left: -7.5px; 
    right: auto;
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: #00eaff;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
}

.school-name {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* ================================== 06. REFERANSLAR SECTION (LİSTE TASARIMI) ================================== */
.references-section {
    padding: 100px 40px;
    background: #111111; 
    text-align: center;
}

.references-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #00eaff;
    margin-bottom: 50px;
}

.references-list-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 30px; /* Bloklar arası boşluk */
    text-align: left;
}

.reference-block {
    background: #0d0d0d;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #00eaff; /* Vurgu çizgisi */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.reference-block h3 {
    font-size: 24px;
    font-weight: 700; /* Başlıkları daha kalın yaptık */
    color: white;
    margin-top: 0;
    margin-bottom: 5px;
}

.ref-title {
    font-style: italic;
    font-size: 16px;
    color: #00eaff;
    opacity: 0.85;
    margin-bottom: 10px;
    /* Burada font-weight'i normal tutarak başlık kalınlığından fark yaratıyoruz */
    font-weight: 400; 
}

.ref-contact strong {
    font-weight: 600;
    color: #00eaff;
}

.ref-contact a {
    transition: color 0.2s;
}

.ref-contact a:hover {
    color: white;
}

/* ================================== 07. PROJELER SECTION ================================== */

/* PROJELERİN BAŞLANGIÇTA GİZLENMESİ */
.projects-section {
    padding: 100px 40px;
    background: #0d0d0d;
    text-align: center;
    display: none; /* Varsayılan olarak gizlendi */
}

/* Projeler tıklanınca bu sınıf eklenecek */
.projects-section.active {
    display: block;
}
/* GİZLEME SONU */

.projects-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #00eaff;
    margin-bottom: 30px;
}

/* Proje Sekmeleri (Filtreleme) */
.project-tabs {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tab-button {
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-button:hover:not(.active) {
    background: #151515;
    color: #00eaff;
}

.tab-button.active {
    background: #00eaff;
    color: #111;
    font-weight: 600;
    border-color: #00eaff;
}


/* Proje Kartları Izgarası */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.project-card {
    background: #111111;
    border-radius: 10px;
    overflow: hidden;
    padding: 30px;
    border-top: 5px solid #00eaff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.project-card h3 {
    font-size: 24px;
    color: white;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Makale Tarzı Kartlar İçin Genel Stil (Yeni Proje ve Kaggle) */
.project-card.article-like h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
    color: #00eaff;
}

.project-card.article-like .project-content > p {
    /* Özet metin stili */
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1em;
    opacity: 0.9;
}

/* YENİ: Makale tıklandığında tüm satırı kaplaması için */
.project-card.article-like.expanded {
    grid-column: 1 / -1; 
}

/* Tam makale içeriği ve alt başlıklar için stil */
.project-card.article-like .full-article {
    display: none;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Kod bloklarını daha okunaklı yapmak */
.project-card.article-like .full-article pre {
    background: #0d0d0d;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto; /* Kodun taşmasını engelle */
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.project-card.article-like .full-article h4, 
.project-card.article-like .full-article h5 {
    color: #00eaff;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.project-card.article-like .full-article p,
.project-card.article-like .full-article li {
    /* İYİLEŞTİRME 1: Paragraf ve liste öğeleri arasındaki boşluğu artırdık */
    line-height: 1.8; 
    opacity: 0.85;
    font-size: 16px;
    margin-bottom: 1.5em; /* Daha fazla boşluk */
}

.project-card.article-like .full-article ul,
.project-card.article-like .full-article ol {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 25px; /* Liste altına daha fazla boşluk */
}

/* Kod blokları altındaki boşluğu düzenle */
.project-card.article-like .full-article pre + p {
    margin-top: 1.5em;
}


.project-card.article-like .full-article ol {
    list-style: decimal;
}

.project-card.article-like .full-article img {
    /* Görsel boyutu küçültme ve ortalama */
    max-width: 50%; 
    height: auto; 
    margin: 15px auto; 
    display: block;
}

.project-tech {
    font-size: 14px;
    color: #00eaff;
    font-weight: 600;
    margin-bottom: 15px;
}

/* İkincil Buton Stili (Kartlar için) */
.btn-secondary {
    display: inline-block;
    color: #00eaff;
    border: 1px solid #00eaff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 15px;
    cursor: pointer; /* Tıklanabilir olduğunu belli etmek için */
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #00eaff;
    color: #111111;
}

/* Filtreleme ile Gizlenen Kartlar */
.project-card.hidden {
    display: none;
}

/* ================================== 10. MAKALE GÖRÜNÜM STİLLERİ (Blog Açılışı) ================================== */

.article-section {
    padding: 100px 40px;
    background: #0d0d0d;
    display: none; /* Başlangıçta gizli */
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: #111111;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.article-title {
    font-size: 44px;
    color: #00eaff;
    margin-bottom: 5px;
    border-bottom: 2px solid rgba(0,255,255,0.2);
    padding-bottom: 15px;
}

.article-meta {
    font-style: italic;
    opacity: 0.6;
    margin-bottom: 30px;
}

/* Yeni İçindekiler Listesi Stili */
.article-content.index-list h3 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    padding-top: 15px;
    margin-bottom: 5px; /* Gruplamadan dolayı alt boşluğu azaltıldı */
    transition: color 0.2s, padding-left 0.2s;
    cursor: pointer;
}

/* Tıklanabilir Alanı (Index Item) için yeni stil */
.article-content.index-list .index-item {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}
.article-content.index-list .index-item:hover {
    background-color: #0f2e2e;
}
.article-content.index-list .index-item:hover h3 {
    color: #00eaff;
    padding-left: 10px;
}
.article-content.index-list .index-item:hover .sub-heading {
     color: rgba(0, 255, 255, 0.9);
}

/* YENİ: Makale Alt Başlık Stili */
.article-content.index-list .sub-heading {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5); /* Daha soluk beyaz */
    margin-top: 0px; 
    margin-bottom: 0px;
    padding-bottom: 15px;
    padding-left: 5px;
}

/* Makale içerisindeki H2 başlığına özel stil */
.article-content h2 {
    font-size: 32px;
    color: #00eaff; /* Önceki h1 stilini H2'ye uyguladık */
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 5px;
}

/* Makale içerisindeki H3 başlığına özel stil */
.article-content h3 {
    font-size: 24px;
    color: white;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Makale içerisindeki H4 başlığına özel stil (eğer kütüphaneler için gerekirse) */
.article-content h4 {
    font-size: 20px;
    color: #00eaff;
    margin-top: 20px;
    margin-bottom: 5px;
    font-weight: 600;
}


.article-content p, .article-content li {
    line-height: 1.8;
    opacity: 0.85;
    font-size: 16px;
    margin-bottom: 1em;
}

.article-content ul, .article-content ol {
    list-style: disc;
    padding-left: 45px;
    margin-bottom: 20px;
}
.article-content ol {
    list-style: decimal;
}
.article-content ul li, .article-content ol li {
    margin-bottom: 5px;
}
.article-content ul li strong, .article-content ol li strong {
     color: #00eaff;
}


.back-to-blog-btn {
    margin-top: 30px;
}
.back-to-blog-btn-ai {
     margin-top: 30px; 
}
/* Yeni buton stili */
.back-to-index-btn {
    display: inline-block; 
    background: #151515;
    color: #00eaff;
    border: 1px solid #00eaff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    margin-right: 20px; 
    transition: all 0.3s ease;
}
.back-to-index-btn:hover {
    background: #00eaff;
    color: #111;
}

/* ================================== 08. İLETİŞİM SECTION ================================== */

.contact-section {
    padding: 100px 40px;
    background: #111111;
    text-align: center;
}

.contact-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #00eaff;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 18px;
    margin-bottom: 50px;
    opacity: 0.7;
}

.contact-flex {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    /* İYİLEŞTİRME 2: İletişim Formu İçindeki Dikey Boşluğu Artırma */
    gap: 50px; /* Varsayılan yatay boşluk */
    align-items: flex-start;
    padding-top: 20px; 
    padding-bottom: 20px;
}

.contact-form {
    flex: 2;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    /* İYİLEŞTİRME 2: Giriş kutuları arasına daha fazla boşluk */
    margin-bottom: 25px; 
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    background: #0d0d0d;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00eaff;
    outline: none;
}

.contact-info {
    flex: 1;
    padding-top: 20px;
}

.contact-info h3 {
    color: #00eaff;
    /* İYİLEŞTİRME 2: Bilgi başlıkları arasına boşluk */
    margin-top: 0; 
    margin-bottom: 15px; 
    font-size: 22px;
}

.contact-info p {
    /* İYİLEŞTİRME 2: Bilgi satırları arasına boşluk */
    margin-bottom: 15px; 
    font-size: 16px;
}

.social-links a {
    display: inline-block;
    color: #00eaff;
    margin-right: 15px;
    font-size: 16px;
    font-weight: 600;
}

.social-links a:hover {
    color: white;
}

/* ================================== 09. MOBİL UYUM (992px Altı) ================================== */

@media (max-width: 992px) { 
    
    .site-header {
        padding: 15px 20px;
    }
    
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 60px; /* Header yüksekliği */
        left: 0;
        width: 100%;
        height: auto;
        background: #0d0d0d;
        z-index: 999;
        overflow-y: auto;
        padding-top: 0; 
        transition: left .3s ease-in-out;
    }

    .main-nav.active { /* DİKKAT: .active sınıfı JavaScript'te kullanılacak */
        display: block;
    }

    .main-nav ul {
        flex-direction: column; 
        gap: 10px;
        padding: 20px;
        align-items: center; 
    }
    
    /* DÜZELTME 1: Makale Okuma Alanı Genişletildi */
    .article-section {
         /* Makale bölümü yatayda tam yer kaplamalı */
         padding: 60px 0 60px 0; /* Üst/Alt padding kalır, Yatay padding sıfırlanır */
    }
    
    .container {
         /* Bu, ana içeriğin mobil makalelerde de tam genişliği kullanmasına olanak tanır */
         padding: 0;
    }

    .article-container { 
        /* Makale içeriği mobil görünümde tam ekran (margin/padding body'den alacak) */
        padding: 25px 20px; 
        max-width: 100%; 
        margin: 0; /* Ortadaki dar alan sorununu çözer */
        border-radius: 0; 
        box-shadow: none; 
    }
    
    .project-grid {
         /* Proje gridinin mobil cihazda container'a uyum sağlaması */
         padding: 0 20px;
    }
    
    /* DÜZELTME 2: Mobil Dropdown Ortalaması (KESİN ÇÖZÜM) */
    
    /* Dış kapsayıcı (li) */
    .dropdown {
        width: 80%;
        text-align: center;
        padding-bottom: 0;
    }

    /* Alt menü içeriği (dropdown-content) */
    .dropdown-content {
        position: static;
        margin-top: 5px;
        margin-left: 149px; /* Ortalamayı etkinleştirir */
        margin-right: auto;
        box-shadow: none;
        border: none;
        background: #151515; 
        min-width: 100%;
        border-radius: 5px;
        overflow: hidden;
    }
    
    /* Dropdown içindeki ana başlık linki (Blog, Hakkımda) */
    .main-dropdown-link {
        /* Metnin tam ortalanmasını sağlar */
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }

    /* Dropdown içindeki alt bağlantıları (sub-link) tamamen ortala ve dolguyu sıfırla */
    .dropdown-content a, 
    .dropdown-content a.sub-link {
        text-align: center !important; /* Metni merkeze hizala */
        padding-left: 0 !important; /* Sol dolguyu kaldır */
        padding-right: 0 !important; 
        padding: 12px 20px; /* Sadece dikey padding'i koru */
        width: 100%;
        box-sizing: border-box;
    }

    /* HAKKIMDA Mobil */
    .about-section {
        padding: 60px 20px;
    }
    
    .about-section .container {
        flex-direction: column; 
        gap: 30px;
    }

    .about-image {
        flex: none;
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-content h2 {
        font-size: 30px;
        text-align: center;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content .tagline {
        padding-left: 0;
        border-left: none;
        border-top: 3px solid #00eaff;
        padding-top: 15px;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* EĞİTİM Mobil */
    .timeline::before {
        left: 20px; 
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0 !important; 
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12.5px;
        right: auto;
    }
    
    /* İLETİŞİM Mobil */
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-flex {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        text-align: center;
    }
}