/* =========================================
   NAKI GLOBAL STYLE - VERIMLILIK ODALKI
   ========================================= */

/* 1. Evrensel Reset (Modül 3.2 - Box Model) */
* {
    box-sizing: border-box;
}

/* 2. Sayfa Yapısı ve Sticky Footer Temeli */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Resim yüklenmezse diye koyu gri */
    background-image: url('../images/background.jpeg'); /* Resim yolunu kontrol et */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #e0e0e0;
    line-height: 1.6;
    
    /* Footer'ı aşağı itmek için Flex yapısı */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 3. Header ve Navigasyon (Modül 4 - Float Yöntemi) */
header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #00ff41; /* Siber Yeşil */
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
}

nav ul {
    list-style-type: none; /* Noktaları kaldır */
    margin: 0;
    padding: 0;
    overflow: hidden; /* Float temizleme (Clearfix) */
}

/* Hoca Float istedi, Flex yerine Float kullanıyoruz */
nav ul li {
    float: left;
    width: 25%; /* 4 link var, ekranı 4'e böl */
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #00ff41;
    color: #000;
}

/* 4. Ana İçerik (Main) */
main {
    flex: 1; /* Boş alanı kapla (Sticky Footer için kritik) */
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(18, 18, 18, 0.85); /* Arkası hafif şeffaf siyah */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

/* Başlıklar */
h1, h2, h3 {
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Linkler */
a {
    color: #00ff41;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 5. Footer (Artık her zaman en altta) */
footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #333;
    font-size: 0.9em;
}

/* 6. Responsive Tasarım (Modül 4.4 - Media Queries) */
@media screen and (max-width: 600px) {
    nav ul li {
        float: none; /* Mobilde float iptal */
        width: 100%; /* Tam genişlik */
        border-bottom: 1px solid #333;
    }
    
    main {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }
}
/* =========================================
   İLETİŞİM SAYFASI EKLEMELERİ (FORM & HARİTA)
   ========================================= */

/* Form ve Harita Kapsayıcısı */
.contact-section {
    display: flex;
    flex-wrap: wrap; /* Mobilde alt alta geçmesini sağlar */
    gap: 20px;
    margin-top: 30px;
}

/* Sol ve Sağ Sütunlar (Kutular) */
.contact-col {
    flex: 1;
    min-width: 300px; /* Çok küçülürse alt satıra geçsin */
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border: 1px solid #00ff41; /* Siber Yeşil Çerçeve */
    border-radius: 8px;
}

/* Form Kutucukları (Input & Textarea) */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: #00ff41; /* Yazı rengi yeşil */
    font-family: 'Courier New', Courier, monospace; /* Kod yazar gibi font */
    border-radius: 4px;
    outline: none;
}

/* Kutuya tıklayınca parlasın */
input:focus, textarea:focus {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

/* Gönder Butonu */
.cyber-btn {
    background-color: #00ff41;
    color: #000;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    border-radius: 4px;
    transition: 0.3s;
}

.cyber-btn:hover {
    background-color: #fff; /* Üstüne gelince beyaz olsun */
    box-shadow: 0 0 15px #00ff41; /* Parlama efekti */
}

/* Harita Çerçevesi (Responsive) */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Oranı */
    position: relative;
    height: 0;
    border: 1px solid #00ff41;
    border-radius: 4px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}
/* =========================================
   PROJELER SAYFASI (GÖREV KARTLARI)
   ========================================= */

/* Kartların Dizilimi (Grid Yapısı) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Sığdığı kadar yan yana koy */
    gap: 30px;
    margin-top: 30px;
}

/* Tekil Proje Kartı */
.project-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

/* Hover Efekti: Kart havaya kalksın ve parlasın */
.project-card:hover {
    transform: translateY(-5px); /* Yukarı kalkış */
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15);
}

/* Kartın Üstündeki Renkli Çizgi (Estetik) */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ff41, #004400);
}

/* Proje Açıklaması */
.project-desc {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 20px;
    min-height: 60px; /* Kartların boyu eşit dursun diye */
}

/* Teknoloji Etiketleri (Python, HTML vs.) */
.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tech-tag {
    background: #111;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 3px 8px;
    font-size: 0.75em;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

/* Proje Butonu */
.project-link {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: 0.3s;
}

.project-link:hover {
    background-color: #00ff41;
    border-color: #00ff41;
    color: #000;
}

/* =========================================
   ERİŞİLEBİLİRLİK SİSTEMİ (Sadece CSS)
   Engelli bireyler için kullanılabilirlik
   ========================================= */

/* Gizli kontrol elemanları (checkbox/radio hack) */
.a11y-state {
    position: fixed !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* SVG filtreleri gizle */
.a11y-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Erişilebilirlik Panel Konteyneri */
#a11y-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
}

/* FAB (Yuvarlak Erişilebilirlik Butonu) */
.a11y-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    border: 2px solid #00ff41;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.a11y-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.5);
    text-decoration: none;
}

/* Panel Menüsü (Varsayılan: Gizli) */
.a11y-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.97);
    border: 1px solid #00ff41;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 65, 0.15);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
}

/* Panel Açık Durumu */
#a11y-panel-toggle:checked ~ #a11y-panel .a11y-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Panel Başlık */
.a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    color: #00ff41;
    font-weight: bold;
    font-size: 1.1em;
}

.a11y-close {
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    padding: 0 5px;
}
.a11y-close:hover {
    color: #fff;
    text-decoration: none;
}

/* Panel Bölüm */
.a11y-section {
    padding: 12px 20px;
    border-bottom: 1px solid #222;
}

.a11y-label {
    display: block;
    color: #ccc;
    font-size: 0.85em;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Seçenek Butonları (Radio) */
.a11y-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.a11y-options-col {
    flex-direction: column;
}

.a11y-opt {
    display: inline-block;
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    font-size: 0.8em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
}
.a11y-opt:hover {
    border-color: #00ff41;
    color: #fff;
}

/* Toggle Etiketleri (Checkbox) */
.a11y-toggle {
    display: block;
    padding: 8px 0;
    color: #aaa;
    font-size: 0.9em;
    cursor: pointer;
    transition: color 0.2s;
}
.a11y-toggle:hover {
    color: #fff;
}

/* ===== AKTİF DURUM GÖSTERGELERİ ===== */

/* Yazı boyutu - aktif buton */
#a11y-fs-normal:checked ~ #a11y-panel label[for="a11y-fs-normal"],
#a11y-fs-large:checked ~ #a11y-panel label[for="a11y-fs-large"],
#a11y-fs-xlarge:checked ~ #a11y-panel label[for="a11y-fs-xlarge"] {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
    font-weight: bold;
}

/* Renk körü modu - aktif buton */
#a11y-cb-none:checked ~ #a11y-panel label[for="a11y-cb-none"],
#a11y-cb-prot:checked ~ #a11y-panel label[for="a11y-cb-prot"],
#a11y-cb-deut:checked ~ #a11y-panel label[for="a11y-cb-deut"],
#a11y-cb-trit:checked ~ #a11y-panel label[for="a11y-cb-trit"],
#a11y-cb-achr:checked ~ #a11y-panel label[for="a11y-cb-achr"] {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
    font-weight: bold;
}

/* Checkbox toggle'lar aktif durumu */
#a11y-contrast:checked ~ #a11y-panel label[for="a11y-contrast"],
#a11y-links:checked ~ #a11y-panel label[for="a11y-links"],
#a11y-readable:checked ~ #a11y-panel label[for="a11y-readable"],
#a11y-no-anim:checked ~ #a11y-panel label[for="a11y-no-anim"] {
    color: #00ff41;
    font-weight: bold;
}
#a11y-contrast:checked ~ #a11y-panel label[for="a11y-contrast"]::after,
#a11y-links:checked ~ #a11y-panel label[for="a11y-links"]::after,
#a11y-readable:checked ~ #a11y-panel label[for="a11y-readable"]::after,
#a11y-no-anim:checked ~ #a11y-panel label[for="a11y-no-anim"]::after {
    content: " ✓";
}

/* =========================================
   ERİŞİLEBİLİRLİK ETKİLERİ
   ========================================= */

/* --- YAZI BOYUTU --- */
#a11y-fs-large:checked ~ header,
#a11y-fs-large:checked ~ main,
#a11y-fs-large:checked ~ footer {
    font-size: 1.25em;
}
#a11y-fs-xlarge:checked ~ header,
#a11y-fs-xlarge:checked ~ main,
#a11y-fs-xlarge:checked ~ footer {
    font-size: 1.5em;
}

/* --- RENK KÖRÜ MODLARI (SVG Filtre) --- */
#a11y-cb-prot:checked ~ header,
#a11y-cb-prot:checked ~ main,
#a11y-cb-prot:checked ~ footer {
    filter: url(#a11y-protanopia);
}
#a11y-cb-deut:checked ~ header,
#a11y-cb-deut:checked ~ main,
#a11y-cb-deut:checked ~ footer {
    filter: url(#a11y-deuteranopia);
}
#a11y-cb-trit:checked ~ header,
#a11y-cb-trit:checked ~ main,
#a11y-cb-trit:checked ~ footer {
    filter: url(#a11y-tritanopia);
}
#a11y-cb-achr:checked ~ header,
#a11y-cb-achr:checked ~ main,
#a11y-cb-achr:checked ~ footer {
    filter: url(#a11y-achromatopsia);
}

/* --- YÜKSEK KONTRAST --- */
#a11y-contrast:checked ~ header {
    background: #000 !important;
    border-bottom-color: #fff !important;
}
#a11y-contrast:checked ~ header nav ul li a {
    color: #fff !important;
}
#a11y-contrast:checked ~ header nav ul li a:hover {
    background: #fff !important;
    color: #000 !important;
}
#a11y-contrast:checked ~ main {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
#a11y-contrast:checked ~ main h1,
#a11y-contrast:checked ~ main h2,
#a11y-contrast:checked ~ main h3 {
    color: #ff0 !important;
}
#a11y-contrast:checked ~ main a {
    color: #ff0 !important;
}
#a11y-contrast:checked ~ main .project-card {
    background: #000 !important;
    border-color: #fff !important;
}
#a11y-contrast:checked ~ main .contact-col {
    background: #000 !important;
    border-color: #fff !important;
}
#a11y-contrast:checked ~ main .tech-tag {
    color: #ff0 !important;
    border-color: #ff0 !important;
}
#a11y-contrast:checked ~ footer {
    background: #000 !important;
    color: #fff !important;
    border-top-color: #fff !important;
}

/* --- BAĞLANTI VURGULAMA --- */
#a11y-links:checked ~ header a,
#a11y-links:checked ~ main a,
#a11y-links:checked ~ footer a {
    background-color: #ffff00 !important;
    color: #000 !important;
    text-decoration: underline !important;
    padding: 1px 4px !important;
    border-radius: 2px;
    outline: 2px solid #ffff00 !important;
}

/* --- OKUNABİLİR FONT --- */
#a11y-readable:checked ~ header,
#a11y-readable:checked ~ main,
#a11y-readable:checked ~ footer {
    font-family: 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif !important;
    letter-spacing: 0.03em;
    word-spacing: 0.08em;
}
#a11y-readable:checked ~ main {
    line-height: 1.9 !important;
}
#a11y-readable:checked ~ main p,
#a11y-readable:checked ~ main li,
#a11y-readable:checked ~ main span {
    letter-spacing: 0.04em;
    word-spacing: 0.1em;
}

/* --- ANİMASYONLARI DURDUR --- */
#a11y-no-anim:checked ~ header,
#a11y-no-anim:checked ~ header *,
#a11y-no-anim:checked ~ main,
#a11y-no-anim:checked ~ main *,
#a11y-no-anim:checked ~ footer,
#a11y-no-anim:checked ~ footer * {
    animation: none !important;
    transition: none !important;
}
#a11y-no-anim:checked ~ main video {
    display: none;
}

/* =========================================
   EKRAN OKUYUCU MODU (Sadece CSS)
   Görme engelli kullanıcılar için
   ========================================= */

/* İçeriğe Atla Linki (Tab ile odaklanınca görünür) */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff41;
    color: #000;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 1em;
    z-index: 100000;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.3s;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid #fff;
}

/* Ekran okuyucu için gizli açıklama metinleri */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ekran Okuyucu Modu aktifken: gizli açıklamaları görünür yap */
#a11y-sr-mode:checked ~ header .sr-desc,
#a11y-sr-mode:checked ~ main .sr-desc,
#a11y-sr-mode:checked ~ footer .sr-desc {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 12px;
    margin: 8px 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: block;
    background: #0a2a0a;
    border: 1px dashed #00ff41;
    border-radius: 4px;
    color: #00ff41;
    font-size: 0.85em;
    font-style: italic;
}

/* Ekran Okuyucu Modu aktifken: Güçlü focus göstergeleri */
#a11y-sr-mode:checked ~ header *:focus,
#a11y-sr-mode:checked ~ main *:focus,
#a11y-sr-mode:checked ~ footer *:focus,
#a11y-sr-mode:checked ~ #a11y-panel *:focus {
    outline: 3px solid #ff0 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(255, 255, 0, 0.3) !important;
}

/* Ekran Okuyucu Modu aktifken: Link ve butonlara rol göstergesi */
#a11y-sr-mode:checked ~ main a[href]::before {
    content: "[Link] ";
    font-size: 0.75em;
    color: #ff0;
    font-weight: bold;
}
#a11y-sr-mode:checked ~ main a.project-link::before {
    content: "[Proje Linki] ";
}

/* Ekran Okuyucu Modu aktifken: Başlık seviyelerini göster */
#a11y-sr-mode:checked ~ main h1::before {
    content: "[Baslik 1] ";
    font-size: 0.6em;
    color: #ff0;
}
#a11y-sr-mode:checked ~ main h2::before {
    content: "[Baslik 2] ";
    font-size: 0.6em;
    color: #ff0;
}
#a11y-sr-mode:checked ~ main h3::before {
    content: "[Baslik 3] ";
    font-size: 0.6em;
    color: #ff0;
}

/* Ekran Okuyucu Modu aktifken: Landmark bölgelerini göster */
#a11y-sr-mode:checked ~ header::before {
    content: "[ HEADER - Navigasyon Bolgesi ]";
    display: block;
    background: #1a1a00;
    color: #ff0;
    text-align: center;
    font-size: 0.75em;
    padding: 4px;
    border-bottom: 1px dashed #ff0;
}
#a11y-sr-mode:checked ~ main::before {
    content: "[ MAIN - Ana Icerik Bolgesi ]";
    display: block;
    background: #1a1a00;
    color: #ff0;
    text-align: center;
    font-size: 0.75em;
    padding: 4px;
    margin-bottom: 15px;
    border: 1px dashed #ff0;
    border-radius: 4px;
}
#a11y-sr-mode:checked ~ footer::before {
    content: "[ FOOTER - Alt Bilgi Bolgesi ]";
    display: block;
    background: #1a1a00;
    color: #ff0;
    text-align: center;
    font-size: 0.75em;
    padding: 4px;
    border-bottom: 1px dashed #ff0;
}

/* Ekran Okuyucu Modu aktifken: Form elemanlarını belirgin yap */
#a11y-sr-mode:checked ~ main label {
    font-weight: bold;
    color: #ff0 !important;
}
#a11y-sr-mode:checked ~ main input,
#a11y-sr-mode:checked ~ main textarea {
    border: 2px solid #ff0 !important;
}

/* Ekran Okuyucu Modu aktif göstergesi (panelde) */
#a11y-sr-mode:checked ~ #a11y-panel label[for="a11y-sr-mode"] {
    color: #00ff41;
    font-weight: bold;
}
#a11y-sr-mode:checked ~ #a11y-panel label[for="a11y-sr-mode"]::after {
    content: " ✓";
}

/* Erişilebilirlik Panel Responsive */
@media screen and (max-width: 600px) {
    .a11y-menu {
        width: 260px;
    }
    #a11y-panel {
        bottom: 15px;
        left: 15px;
    }
    .a11y-fab {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}