* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    user-select: none;
    outline: none !important;
    box-sizing: border-box !important;
}

body.theme-green {
    --theme-main: #00ff66;
    --theme-dim: rgba(0, 255, 102, 0.15);
}

body.theme-blue {
    --theme-main: #00e5ff;
    --theme-dim: rgba(0, 229, 255, 0.15);
}

body.theme-amber {
    --theme-main: #ffb700;
    --theme-dim: rgba(255, 183, 0, 0.15);
}

:root {
    --bg-color: #010203;
    --text-main: #f0f0f0;
    --border-color: rgba(255, 255, 255, 0.15);
    --font-code: 'Fira Code', monospace;
    --font-title: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    touch-action: pan-y;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-code);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* YÜKLEME EKRANI */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-container {
    width: 90%;
    max-width: 500px;
    background: rgba(8, 12, 10, 0.95);
    border: 2px solid var(--theme-main);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 40px var(--theme-dim);
}

.boot-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid var(--theme-dim);
    border-top: 4px solid var(--theme-main);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.boot-logo {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--theme-main);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.boot-terminal {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100px;
    overflow-y: auto;
    text-align: left;
    padding: 10px;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 15px;
    border-radius: 4px;
}

.boot-terminal p { margin: 2px 0; color: var(--theme-main); }

.boot-bar-wrapper {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.boot-bar {
    width: 0%;
    height: 100%;
    background: var(--theme-main);
    box-shadow: 0 0 10px var(--theme-main);
    transition: width 0.1s linear;
}

.boot-status { font-size: 0.85rem; color: var(--theme-main); font-weight: bold; }

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--theme-dim) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.25;
}

.overlay-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
}

.floating-music-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(5, 10, 8, 0.92);
    border: 2px solid var(--theme-main);
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 0 20px var(--theme-dim);
    transition: all 0.3s ease;
}

.music-icon { font-size: 1.1rem; }
.music-text { font-family: var(--font-sub); font-weight: bold; color: #fff; font-size: 0.85rem; }

.eq-bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq-bar { width: 3px; height: 100%; background: var(--theme-main); border-radius: 2px; }
.floating-music-btn.playing .eq-bar:nth-child(1) { animation: eqAnim 0.6s infinite ease-in-out alternate; }
.floating-music-btn.playing .eq-bar:nth-child(2) { animation: eqAnim 0.8s infinite ease-in-out alternate; }
.floating-music-btn.playing .eq-bar:nth-child(3) { animation: eqAnim 0.5s infinite ease-in-out alternate; }

@keyframes eqAnim {
    0% { height: 3px; }
    100% { height: 14px; }
}

.top-hud-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 8, 0.92);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 0.85rem;
    z-index: 10000;
    backdrop-filter: blur(10px);
    font-family: var(--font-sub);
}

.hud-label { color: var(--theme-main); font-weight: bold; }
.theme-selector { display: flex; align-items: center; gap: 6px; }

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-code);
}

.theme-btn.active {
    border-color: var(--theme-main);
    background: var(--theme-dim);
    color: var(--theme-main);
    font-weight: bold;
}

.container {
    max-width: 1100px;
    margin: 50px auto 0 auto;
    padding: 60px 20px;
}

.fade-in {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 50px;
    position: relative;
}

.fade-in.section-active { opacity: 1; transform: translateY(0); }

header, #hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.profile-frame {
    width: 170px;
    height: 170px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--theme-main);
    box-shadow: 0 0 30px var(--theme-main);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

h1 {
    font-family: var(--font-title);
    font-size: 3.2rem;
    text-align: center !important;
    color: #ffffff;
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--theme-main);
    width: 100% !important;
}

.subtitle {
    font-family: var(--font-sub);
    text-align: center !important;
    color: var(--theme-main);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    width: 100% !important;
}

.contact-header { text-align: center !important; margin-bottom: 50px; width: 100% !important; }

.terminal-btn {
    display: inline-block;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--theme-main);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 0 15px var(--theme-dim);
}

.terminal-btn .prompt { color: var(--theme-main); font-weight: bold; }

h2 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: #ffffff;
    border-bottom: 1px dashed var(--theme-main);
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.glow-box {
    background: rgba(8, 12, 10, 0.92);
    border: 1px solid var(--theme-main);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 0 20px var(--theme-dim);
}

.box-header { display: flex; align-items: center; margin-bottom: 15px; }
.dot { height: 12px; width: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }
.box-title { color: #aaa; font-size: 0.85rem; margin-left: 10px; }

/* HAKKIMDA KERNEL NODES */
.kernel-nodes { display: flex; gap: 20px; width: 100%; margin-top: 15px; }
.kernel-node {
    flex: 1;
    background: rgba(0, 0, 0, 0.7);
    border-left: 3px solid var(--theme-main);
    padding: 15px;
    border-radius: 0 6px 6px 0;
}
.node-tag { color: var(--theme-main); font-size: 0.8rem; font-weight: bold; font-family: var(--font-sub); display: block; margin-bottom: 5px; }
.kernel-node p { margin: 0; color: #ccc; font-size: 0.95rem; }

/* -------------------------------------------------------------
   EĞİTİM AĞACI MİLİMETRİK KUSURSUZ MERKEZLEME
------------------------------------------------------------- */
.evolution-tree {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    position: relative !important;
    margin-top: 20px !important;
    padding: 0 !important;
}

/* Dikey Çizgi: Tam olarak halkanın merkezinde (35px) tutulur ve ilk halkanın ortasından başlar */
.evolution-tree::before {
    content: '' !important;
    position: absolute !important;
    left: 35px !important;
    transform: translateX(-50%) !important;
    top: 35px !important;
    bottom: 35px !important;
    width: 2px !important;
    background: var(--theme-main) !important;
    box-shadow: 0 0 10px var(--theme-main) !important;
    z-index: 1 !important;
}

.evolution-step {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
}

/* Yuvarlak Halkalar: Sabit 70px Genişlik/Yükseklik & Tam Ortalanmış Metin */
.step-node {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    border-radius: 50% !important;
    background: #000000 !important;
    border: 2px solid var(--theme-main) !important;
    color: var(--theme-main) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    font-family: var(--font-title) !important;
    text-align: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 15px var(--theme-main) !important;
    line-height: 1 !important;
    padding: 0 !important;
    letter-spacing: -0.2px !important;
}

.step-content {
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid var(--theme-dim) !important;
    border-radius: 6px !important;
    padding: 15px 20px !important;
    flex-grow: 1 !important;
}

.step-level { color: var(--theme-main); font-size: 0.75rem; font-family: var(--font-sub); font-weight: bold; }
.step-content h3 { margin: 2px 0; color: #fff; font-size: 1.1rem; font-family: var(--font-sub); }
.step-content p { margin: 0; color: #ccc; font-size: 0.9rem; }
.step-date { color: #888; font-size: 0.8rem; margin-top: 5px; display: block; }

/* TEKNİK BECERİLER & YETKİNLİK MATRİSİ */
.skill-tree-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.tree-branch {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--theme-main);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 0 15px var(--theme-dim);
}
.branch-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--theme-dim); padding-bottom: 10px; margin-bottom: 15px; }
.branch-header h3 { font-size: 0.95rem; color: #fff; margin: 0; font-family: var(--font-title); }
.pwr-badge { background: var(--theme-dim); color: var(--theme-main); font-size: 0.7rem; padding: 2px 6px; border-radius: 3px; font-weight: bold; }
.branch-nodes { list-style: none; padding: 0; margin: 0; }
.branch-nodes li { position: relative; padding-left: 20px; margin-bottom: 10px; color: #ccc; font-size: 0.9rem; }
.node-dot { position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--theme-main); border-radius: 50%; box-shadow: 0 0 6px var(--theme-main); }

.matrix-grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 20px; }
.matrix-cell {
    background: rgba(5, 10, 8, 0.9);
    border: 1px solid var(--theme-dim);
    padding: 15px;
    border-radius: 5px;
}
.cell-head { color: var(--theme-main); font-family: var(--font-sub); font-weight: bold; font-size: 0.9rem; margin-bottom: 8px; }
.cell-body { color: #aaa; font-size: 0.85rem; line-height: 1.4; }

/* YAZILIM ENVANTER SLOTLARI */
.loadout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-top: 20px; }
.slot-card {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    position: relative;
}
.slot-card.rarity-legendary { border-color: var(--theme-main); box-shadow: 0 0 15px var(--theme-dim); }
.slot-card.rarity-epic { border-color: #00e5ff; }
.slot-card.rarity-rare { border-color: #ffb700; }
.slot-rank { position: absolute; top: 6px; right: 8px; font-size: 0.6rem; font-weight: bold; font-family: var(--font-sub); }
.slot-card.rarity-legendary .slot-rank { color: var(--theme-main); }
.slot-card.rarity-epic .slot-rank { color: #00e5ff; }
.slot-card.rarity-rare .slot-rank { color: #ffb700; }
.slot-card h4 { margin: 15px 0 0 0; color: #fff; font-family: var(--font-sub); font-size: 1.1rem; }

/* BENCHMARK, OYUN VE KONSOL */
.bench-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.bench-card { flex: 1; min-width: 200px; background: rgba(0, 0, 0, 0.8); border: 1px solid var(--theme-main); padding: 18px; text-align: center; border-radius: 6px; }
.bench-label { font-size: 0.75rem; color: #888; font-family: var(--font-sub); font-weight: bold; display: block; margin-bottom: 6px; }
.bench-val { font-size: 1.6rem; font-family: var(--font-title); color: var(--theme-main); text-shadow: 0 0 10px var(--theme-main); }
.sim-actions { text-align: center; margin-top: 15px; }
.sim-btn { background: var(--theme-dim); border: 1px solid var(--theme-main); color: var(--theme-main); padding: 10px 20px; font-family: var(--font-code); border-radius: 4px; cursor: pointer; font-weight: bold; }

.game-wrapper { text-align: center; }
.game-info { display: flex; justify-content: space-around; font-family: var(--font-title); font-size: 0.95rem; color: var(--theme-main); margin-bottom: 15px; }
#snakeCanvas { background: #000; border: 2px solid var(--theme-main); box-shadow: 0 0 15px var(--theme-dim); border-radius: 6px; max-width: 100%; }
.touch-controls { margin-top: 15px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.touch-controls button { background: var(--theme-dim); border: 1px solid var(--theme-main); color: var(--theme-main); width: 45px; height: 45px; font-size: 1.2rem; border-radius: 6px; cursor: pointer; }

.cmd-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.cmd-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--theme-main); color: var(--theme-main); font-size: 0.8rem; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.terminal-body { background: rgba(0, 0, 0, 0.85); border: 1px solid var(--theme-dim); border-radius: 5px; padding: 15px; font-size: 0.9rem; }
.terminal-logs { max-height: 180px; overflow-y: auto; margin-bottom: 10px; }
.terminal-logs p { margin: 4px 0; color: #ccc; }
.terminal-input-line { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 10px; }
.terminal-input-line .prompt { color: var(--theme-main); font-weight: bold; font-size: 0.85rem; }
#terminalInput { background: transparent; border: none; color: #fff; font-family: var(--font-code); font-size: 0.95rem; width: 100%; outline: none; }

footer { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #888; }
.online-status { color: var(--theme-main); font-weight: bold; }

@media (max-width: 768px) {
    .cursor-glow { display: none !important; }
    .container { width: 100% !important; padding: 65px 12px 30px 12px !important; }
    h1 { font-size: 1.8rem !important; }
    .subtitle { font-size: 0.8rem !important; }
    .glow-box, .tree-section { padding: 15px !important; }
    .kernel-nodes { flex-direction: column !important; }
    .evolution-tree::before { left: 25px !important; top: 25px !important; bottom: 25px !important; }
    .step-node { width: 50px !important; height: 50px !important; min-width: 50px !important; min-height: 50px !important; font-size: 0.5rem !important; }
    .bench-card { min-width: 100% !important; }
}