/* --- TEMEL AYARLAR --- */
:root {
    --bg-color: #f4f4f4; 
    --text-color: #333;
    --accent-color: #2c3e50;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Jost', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f4f4f4;
    
    /* MİLİMETRİK IZGARA EFEKTİ */
    background-image: 
        linear-gradient(rgba(44, 62, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 62, 80, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; /* Karelerin boyutu */
    background-attachment: fixed; /* Kaydırırken ızgara sabit kalsın */
}
/* --- CANVAS AYARLARI (DÜZELTME) --- */
#canvas1 {
    position: fixed; /* Ekrana çivile */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* En arkaya gönder */
    background: #f4f4f4; /* Sayfa rengi burada */
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    
    /* BUZLU CAM EFEKTİ */
    background-color: rgba(255, 255, 255, 0.7); /* %70 görünür beyaz */
    backdrop-filter: blur(10px); /* Arkadan geçenleri bulanıklaştır */
    -webkit-backdrop-filter: blur(10px); /* Safari için destek */
    
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Çok ince alt çizgi */
}

.logo { font-weight: 600; font-size: 1.5rem; letter-spacing: 2px; }
nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 30px; }
nav ul li a { text-decoration: none; color: var(--text-color); transition: color 0.3s; }
nav ul li a:hover { color: var(--accent-color); }

/* --- HERO SECTION --- */
/* --- HERO SECTION (GÜNCELLENMİŞ - DAİRE TASARIM) --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Daire taşarsa kaydırma çubuğu çıkmasın */
}

.hero-content {
    /* Daireyi Oluşturan Kodlar */
    width: 500px;  /* Genişlik */
    height: 500px; /* Yükseklik (Eşit olmalı) */
    background-color: rgba(255, 255, 255, 0.85); /* %85 opak beyaz */
    border-radius: 50%; /* Bu kod kareyi daireye çevirir */
    
    /* İçeriği Dairenin Tam Ortasına Hizalama */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Görsel Efektler */
    box-shadow: 0 0 50px rgba(0,0,0,0.1); /* Yumuşak gölge */
    border: 1px solid rgba(44, 62, 80, 0.1); /* İnce mimari bir çerçeve */
    backdrop-filter: blur(5px); /* Arkadaki ikonları buzlu cam gibi gösterir */
    
    /* Mobilde taşmaması için */
    max-width: 90vw;
    max-height: 90vw;
    padding: 20px; /* Yazılar kenara yapışmasın */
}

/* Yazı Boyutlarını Daireye Göre Ayarlama */
.hero h1 {
    font-size: 2.5rem; /* Biraz küçülttük ki daireye sığsın */
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 80%; /* Yazı dairenin kenarlarına çarpmasın */
}

/* Daktilo İmleci Rengi */
.typewriter {
    color: var(--accent-color);
}
@keyframes blink { 50% { border-color: transparent; } }

/* --- PROJELER --- */
.container { padding: 80px 5%; background: rgba(255,255,255,0.9); /* Okunabilirlik için fon */ margin-top: 50px;}
h2 { margin-bottom: 40px; font-weight: 300; font-size: 2rem; border-left: 4px solid var(--accent-color); padding-left: 15px; }

.filter-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.filter-btn { padding: 8px 20px; border: 1px solid var(--accent-color); background: transparent; color: var(--accent-color); cursor: pointer; border-radius: 20px; transition: all 0.3s ease; }
.filter-btn:hover, .filter-btn.active { background-color: var(--accent-color); color: var(--white); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 20px; transition: transform 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card:hover { transform: translateY(-5px); }
.card.hide { display: none; }
.card-image { height: 200px; background-color: #ddd; margin-bottom: 15px; }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px; background-color: var(--white); font-size: 0.9rem; border-top: 1px solid #eee; position: relative; z-index: 10;}
.hero .btn {
    background-color: var(--accent-color); /* Koyu Mavi-Gri (Zıt Renk) */
    color: #ffffff; /* Yazı rengi beyaz olsun ki okunsun */
    border: none; /* Kenar çizgisine gerek yok, zaten içi dolu */
    border-radius: 50px; /* Tam oval (Hap şeklinde) kenarlar */
    padding: 15px 40px; /* Butonu biraz şişmanlatalım */
    font-weight: 600; /* Yazı kalın olsun */
    text-transform: uppercase; /* Harfleri büyüt (Mimari stil) */
    letter-spacing: 1px; /* Harf aralarını aç */
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4); /* Butona gölge verip havaya kaldıralım */
    transition: all 0.3s ease; /* Yumuşak geçiş */
}

/* Üzerine gelince ne olsun? */
.hero .btn:hover {
    background-color: #34495e; /* Rengi biraz açalım */
    color: #fff;
    transform: translateY(-3px); /* Buton hafifçe yukarı zıplasın */
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.6); /* Gölgeyi büyüt */
}
/* --- DAKTİLO İMLECİ (Yanıp Sönen Çizgi) --- */
.typewriter {
    /* Çizginin rengi ve kalınlığı */
    border-right: 4px solid var(--accent-color); 
    
    /* Çizgi ile yazı arasına biraz boşluk */
    padding-right: 5px; 
    
    /* Yanıp sönme animasyonu */
    animation: blink 0.7s step-end infinite;
}

/* Yanıp sönme hareketi */
@keyframes blink {
    0%, 100% { border-color: var(--accent-color); }
    50% { border-color: transparent; }
}
/* Tarihler ve Kategori Etiketleri için Kod Fontu */
.card p, 
.filter-btn, 
footer p {
    font-family: 'Courier New', Courier, monospace; /* Bilgisayarın varsayılan kod fontu */
    font-size: 0.85rem;
    letter-spacing: 0px;
}
/* --- ÖZEL SCROLLBAR (Chrome, Edge, Safari) --- */
::-webkit-scrollbar {
    width: 10px; /* Çubuğun genişliği */
}

/* Çubuğun arka yolu */
::-webkit-scrollbar-track {
    background: #e0e0e0;
}

/* Hareket eden çubuk kısmı */
::-webkit-scrollbar-thumb {
    background: var(--accent-color); /* Senin ana rengin */
    border-radius: 5px; /* Yuvarlak hatlar */
    border: 2px solid #e0e0e0; /* Etrafında boşluk olsun */
}

::-webkit-scrollbar-thumb:hover {
    background: #34495e; /* Üzerine gelince koyulaşsın */
}