@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap');

html {
    /* Sihirli kod: Tıklayınca yağ gibi kaymasını sağlar */
    scroll-behavior: smooth;
    
    /* Sticky Navbar olduğu için başlıklar menünün altında kalmasın diye üstten boşluk bırakır */
    scroll-padding-top: 100px;
}

:root {
    --bg-color: #030303;
    --text-color: #e0e0e0;
    --neon-cyan: #00f3ff;  /* Ana vurgu rengi */
    --neon-purple: #bc13fe; /* Glam Rock vurgusu */
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
}

/* Arkaplan Matrix Canvas */
#matrixCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
}

/* Hafif bir karartma katmanı (yazılar okunsun diye) */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* HEADER */
header {
    text-align: center;
    margin-bottom: 5rem;
}

.glitch {
    font-size: 4rem;
    font-weight: 800;
    position: relative;
    color: var(--text-color);
    letter-spacing: -2px;
}

/* Glitch Animasyonu */
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
}
.glitch::before {
    left: 2px; text-shadow: -2px 0 var(--neon-purple);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px; text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(80px, 9999px, 100px, 0); }
    100% { clip: rect(50px, 9999px, 90px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 80px, 0); }
    100% { clip: rect(120px, 9999px, 150px, 0); }
}

.status-line {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}
.highlight { color: var(--neon-cyan); font-weight: bold; }
.accent-text { color: var(--neon-purple); }

.social-links { margin-top: 1.5rem; }
.social-links a {
    color: #fff; font-size: 1.5rem; margin: 0 10px;
    transition: 0.3s;
}
.social-links a:hover { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }

/* BIO BOX (Terminal Style) */
.bio-box {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    margin-bottom: 4rem;
    backdrop-filter: blur(5px);
}
.terminal-bar {
    background: #111;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}
.dots span {
    display: inline-block; width: 10px; height: 10px;
    border-radius: 50%; margin-right: 5px;
}
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }
.bar-title { margin-left: auto; font-size: 0.7rem; color: #555; }
.bio-content { padding: 1.5rem; font-size: 1rem; line-height: 1.6; }
.cmd { color: var(--neon-cyan); }
.output { color: #ccc; margin-top: 10px; }

/* PROJECTS */
.section-header {
    text-align: center; margin-bottom: 2rem;
    color: var(--neon-cyan); font-size: 1.5rem;
}
.bracket { color: #555; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Glassmorphism Card */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(3px); /* Arkadaki kodlar bulanık görünsün */
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.icon-main { font-size: 1.5rem; color: var(--neon-purple); }

.status { font-size: 0.6rem; padding: 2px 6px; border: 1px solid #444; border-radius: 2px; }
.status.warning { color: #ffbd2e; border-color: #ffbd2e; }
.status.private { color: #ff5f56; border-color: #ff5f56; }

.link-arrow { color: #fff; transition: 0.2s; }
.link-arrow:hover { color: var(--neon-cyan); }

.card h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.1rem; }
.card p { font-size: 0.85rem; color: #bbb; margin-bottom: 1.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags span {
    font-size: 0.7rem; color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    padding: 3px 6px;
}

/* FOOTER */
.terminal-footer {
    margin-top: 5rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}
.blinking-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Mobil Ayarı */
@media (max-width: 600px) {
    .glitch { font-size: 2.5rem; }
}

/* BitSafe Modül Listesi İçin Ek Stil */
.modules-list {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #aaa;
    display: grid;
    grid-template-columns: 1fr 1fr; /* İki kolonlu liste */
    gap: 8px;
}
.modules-list span i {
    color: var(--neon-cyan);
    margin-right: 5px;
}
.major-card {
    border-color: rgba(0, 243, 255, 0.3); /* Biraz daha belirgin çerçeve */
    background: rgba(0, 243, 255, 0.02); /* Çok hafif cyan arka plan */
}

/* ARCHIVE SECTION - Minimalist Liste */
.archive-section {
    margin-bottom: 4rem;
    border-top: 1px dashed #333;
    padding-top: 2rem;
}

.archive-header {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archive-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.archive-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.archive-item .cmd {
    color: var(--neon-cyan);
    margin-right: 15px;
    min-width: 180px; /* Hizalama için */
}

.archive-item .desc {
    color: #888;
    flex-grow: 1; /* Ortadaki boşluğu doldur */
}

.archive-item a.status {
    text-decoration: none;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.archive-item a.status:hover {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
}

/* Mobil için ayar: İsimler sığmazsa alt alta geçsin */
@media (max-width: 600px) {
    .archive-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .archive-item .cmd { min-width: auto; }
}

/* --- SYSTEM LOGS --- */
.system-logs {
    margin-bottom: 4rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-left: 2px solid #333;
}

.log-entry {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.log-entry:last-child { border-bottom: none; }

.timestamp { color: #666; margin-right: 10px; }
.proc { color: var(--neon-purple); margin-right: 10px; font-weight: bold; }
.msg { color: #ccc; }
.msg .warning { color: #ffbd2e; }

/* --- HARDWARE JSON --- */
.hardware-config { margin-bottom: 4rem; }
.code-block {
    background: #0d0d0d;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #222;
    overflow-x: auto;
}
pre { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.5; }

.json-bracket { color: #fff; }
.json-key { color: var(--neon-cyan); }
.json-string { color: #ce9178; } /* VS Code string rengi */

/* --- DECRYPT CONTACT --- */
.contact-module {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.decrypt-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border: 1px solid #333;
    min-width: 300px;
}

.lock-icon {
    color: #ff5f56;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
}
.lock-icon.unlocked { color: var(--neon-cyan); }

.hash-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    background: #000;
    padding: 10px;
    border: 1px dashed #333;
}

.decrypt-btn {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 10px 20px;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.decrypt-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* --- SKILLS SECTION (CYBER CHIPS) --- */
.skills-section {
    margin-bottom: 4rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.category-name {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-chip {
    font-size: 0.75rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    color: #aaa;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Hover Efektleri - Üzerine gelince parlasın */
.skill-chip:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-cyan);
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: translateY(-2px);
}

/* Özel Renkler (İsteğe bağlı vurgular) */
.skill-chip.python:hover { border-color: #ffe873; box-shadow: 0 0 15px rgba(255, 232, 115, 0.2); text-shadow: 0 0 5px #ffe873; }
.skill-chip.go:hover { border-color: #00add8; box-shadow: 0 0 15px rgba(0, 173, 216, 0.2); text-shadow: 0 0 5px #00add8; }
.skill-chip.flutter:hover { border-color: #02569b; box-shadow: 0 0 15px rgba(2, 86, 155, 0.4); }
.skill-chip.security { border-left: 3px solid var(--neon-purple); } /* Güvenlik skillerinin solunda mor çizgi olsun */
.skill-chip.ai { border-left: 3px solid var(--neon-cyan); } /* AI skillerinin solunda cyan çizgi olsun */

/* Mobil için */
@media (max-width: 600px) {
    .skill-chip { flex-grow: 1; text-align: center; }
}

/* --- LANG SWITCHER --- */
.lang-switch-container {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    color: #666;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 2px 5px;
    transition: 0.3s;
}

.lang-btn:hover {
    color: var(--neon-cyan);
}

.lang-btn.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    border-bottom: 1px solid var(--neon-cyan);
}

.separator { color: #444; }

.json-boolean {
    color: #569cd6; /* Standart Kodlama Mavisi */
    font-weight: bold;
}

.json-number {
    color: #b5cea8; /* VS Code Number Rengi (Mint Yeşili) */
}

/* --- MATRIX NAVBAR --- */
.matrix-nav {
    position: sticky;
    top: 10px; /* Üstten biraz boşluk */
    z-index: 1000;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    pointer-events: auto; /* Tıklanabilir olsun */
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    background: rgba(5, 5, 5, 0.85); /* Hafif şeffaf siyah */
    padding: 10px 20px;
    border: 1px solid #333;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.nav-list li a {
    text-decoration: none;
    color: #b0b0b0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Köşeli parantezlerin rengi */
.nav-list li a .bracket {
    color: #00f3ff; /* Neon Mavi */
    transition: color 0.3s ease;
}

/* Hover Efekti */
.nav-list li a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00f3ff;
}

.nav-list li a:hover .bracket {
    color: #0f0; /* Matrix Yeşili */
}

/* Mobil Uyumluluk */
@media (max-width: 600px) {
    .nav-list {
        gap: 0.8rem;
        padding: 8px 10px;
    }
    .nav-list li a {
        font-size: 0.75rem;
    }
}

.cv-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
    text-shadow: 0 0 5px #00f3ff;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111;
    border: 1px solid #333;
    color: #00f3ff;
    width: 40px;
    height: 40px;
    display: flex; /* Flexbox ile ortalayalım */
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none;
    z-index: 999;
    opacity: 0.7;
    transition: 0.3s;
}

.back-to-top:hover {
    opacity: 1;
    border-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}