:root {
  --bg-dark: #070a0f;
  --bg-overlay: rgba(7, 10, 15, 0.92);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --accent-cyan: #00aced;
  --accent-glow: rgba(0, 172, 237, 0.4);
  --purple-glow: rgba(155, 89, 182, 0.4);
  --orange-glow: rgba(242, 170, 76, 0.4);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  background-image: url("../assets/000718.jpg"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
}

.bg-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  z-index: 1;
}

/* SOL ÜST DİL SEÇİCİ */
.lang-selector {
  position: fixed; top: 25px; left: 25px; z-index: 99;
  display: flex; align-items: center; gap: 8px;
  background: rgba(11, 15, 23, 0.75); backdrop-filter: blur(10px);
  border: 1px solid var(--card-border); padding: 8px 16px;
  border-radius: 20px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lang-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; padding: 2px 4px;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-glow);
}

.lang-divider { color: var(--card-border); font-size: 0.8rem; }

/* ANA KONTEYNER */
.container {
  position: relative; z-index: 2; max-width: 850px;
  margin: 0 auto; padding: 60px 20px 80px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

#logo { width: 100%; max-width: 500px; margin-bottom: 20px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8)); }
.subtitle { font-size: 1.6rem; letter-spacing: 1px; color: var(--text-main); font-weight: 600; margin-bottom: 30px; line-height: 1.4; }
.engineer-text { font-size: 1.1rem; letter-spacing: 3px; color: var(--accent-cyan); text-transform: uppercase; font-weight: 500; }

/* SOSYAL MEDYA BUTONLARI & MARKA PARLAMALARI */
.social-links { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 50px; }

.social-btn {
  width: 55px; height: 55px; border-radius: 50%; background: var(--card-bg);
  border: 1px solid var(--card-border); color: var(--text-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; text-decoration: none; transition: all 0.3s ease;
}

.social-btn.email:hover {
  background: var(--accent-cyan); color: #070a0f; border-color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-glow);
}
.social-btn.github:hover {
  background: #ffffff; color: #070a0f; border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}
.social-btn.linkedin:hover {
  background: #0077b5; color: #fff; border-color: #0077b5;
  box-shadow: 0 0 25px rgba(0, 119, 181, 0.6);
}
.social-btn.instagram:hover {
  background: #e1306c; color: #fff; border-color: #e1306c;
  box-shadow: 0 0 25px rgba(225, 48, 108, 0.6);
}
.social-btn.spotify:hover {
  background: #1db954; color: #fff; border-color: #1db954;
  box-shadow: 0 0 25px rgba(29, 185, 84, 0.6);
}

/* ARAÇLAR BÖLÜMÜ (3'lü Grid) */
.section-title { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; width: 100%; margin-bottom: 60px;
}

.tool-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: 30px 10px; border-radius: 8px; text-decoration: none;
  color: var(--text-main); transition: all 0.3s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tool-card h3 { font-size: 1.1rem; font-weight: 600; }
.tool-card span { font-size: 0.85rem; color: var(--text-muted); }

.tool-card.editor:hover { transform: translateY(-3px); border-color: #9b59b6; box-shadow: 0 0 25px var(--purple-glow); }
.tool-card.pcb:hover { transform: translateY(-3px); border-color: #f2aa4c; box-shadow: 0 0 25px var(--orange-glow); }
.tool-card.puzzle:hover { transform: translateY(-3px); border-color: var(--accent-cyan); box-shadow: 0 0 25px var(--accent-glow); }

/* BİYOGRAFİ KARTI */
.bio-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(10px); padding: 45px 35px 35px 35px;
  border-radius: 8px; margin-bottom: 20px; line-height: 1.8; text-align: left; width: 100%;
}

.profile-img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--card-border); display: block; margin: 0 auto 25px auto; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.bio-card h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--text-main); font-weight: 600; border-bottom: 1px solid var(--card-border); padding-bottom: 10px; text-align: center; }
#bioContent p { color: #cbd5e1; font-size: 1rem; margin-bottom: 15px; }
#bioContent p:last-child { margin-bottom: 0; }

/* SAĞDAN KAYAN CV PANELİ */
.hover-zone { position: fixed; right: 0; top: 0; width: 25px; height: 100%; z-index: 98; }

.cv-drawer {
  position: fixed; top: 0; right: -600px; width: 550px; max-width: 90vw; height: 100%;
  background: #0b0f17; border-left: 1px solid var(--card-border); z-index: 100;
  box-shadow: -15px 0 35px rgba(0,0,0,0.9); transition: right 0.4s ease-in-out;
  display: flex; flex-direction: column; padding: 0;
}

.cv-drawer.active { right: 0; }

.floating-download-btn {
  position: absolute; top: 25px; right: 35px; width: 45px; height: 45px; border-radius: 8px;
  background: rgba(11, 15, 23, 0.7); backdrop-filter: blur(5px); border: 1px solid var(--card-border);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none; z-index: 10; transition: all 0.3s ease;
}

.floating-download-btn:hover { background: var(--accent-cyan); border-color: var(--accent-cyan); color: #070a0f; box-shadow: 0 0 15px var(--accent-glow); transform: translateY(-2px); }
.cv-image-container { width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; }
.cv-image { width: 100%; height: auto; display: block; }

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
  .lang-selector { top: 15px; left: 15px; padding: 6px 12px; }
  .container { padding: 80px 15px 60px 15px; }
  #logo { max-width: 85%; }
  .tools-grid { grid-template-columns: 1fr; }
  .cv-drawer { width: 100vw; max-width: 100vw; right: -100vw; }
  .floating-download-btn { right: 20px; }
}
