﻿:root {
  --bg: #07080a;
  --surface: rgba(20, 22, 26, 0.55);
  --surface-solid: #14161a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f3;
  --text-dim: #9aa0ab;
  --text-faint: #595f68;
  --accent: #22d3ee;
  --accent-2: #7c5cff;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --accent-text: #9beeff;
  --sidebar-w: 300px;
  --radius: 14px;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

::selection { background: var(--accent-soft); color: var(--text); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2a2d33;
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a3e46; }

a { color: inherit; }

/* ================= LOADER ================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-text));
  animation: loadProgress 1.1s ease forwards;
}
@keyframes loadProgress { to { width: 100%; } }

/* ================= LAYERED BACKGROUND ================= */
.bg-grid {
  position: fixed;
  inset: -2px;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0,0,0,0.9), transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0,0,0,0.9), transparent 90%);
}

.bg-glow {
  position: fixed;
  z-index: 0;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}
.glow-a {
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: driftA 26s ease-in-out infinite alternate;
}
.glow-b {
  bottom: -14%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  opacity: 0.1;
  animation: driftB 32s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6%, 8%) scale(1.15); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-8%, -6%) scale(1.1); }
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 40%, transparent 55%, rgba(5,6,8,0.65) 100%);
}

/* ================= SIDEBAR TOGGLE ================= */
#menu-toggle {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  background: rgba(20, 22, 26, 0.75);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: left 0.4s cubic-bezier(.4,0,.2,1), background 0.2s ease, border-color 0.2s ease;
}
#menu-toggle:hover { background: rgba(30, 33, 38, 0.9); border-color: var(--border-strong); }
#menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.sidebar-open #menu-toggle { left: calc(var(--sidebar-w) + 22px); }
body.sidebar-open #menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.sidebar-open #menu-toggle span:nth-child(2) { opacity: 0; }
body.sidebar-open #menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: var(--sidebar-w);
  background: rgba(13, 14, 17, 0.85);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 92px 0 26px;
}
body.sidebar-open .sidebar { transform: translateX(0); }

.sidebar-header {
  padding: 0 30px 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, #1c1f26, #0c0d10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 1px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 8px 20px -8px rgba(34, 211, 238,0.25);
}

.sidebar-title h1 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: 0.3px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}
.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52d17a;
  box-shadow: 0 0 0 0 rgba(82,209,122,0.6);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(82,209,122,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(82,209,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(82,209,122,0); }
}

.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 30px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; transition: opacity 0.2s ease, transform 0.2s ease; }
.nav-link .num {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--text-faint);
  transition: color 0.2s ease;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-link:hover svg { opacity: 1; transform: translateX(2px); }
.nav-link.active { color: var(--text); background: var(--accent-soft); }
.nav-link.active::before { transform: scaleY(1); }
.nav-link.active svg { opacity: 1; color: var(--accent-text); }
.nav-link.active .num { color: var(--accent-text); }

.sidebar-footer {
  margin-top: auto;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.social-btn:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.copyright { font-size: 11px; color: var(--text-faint); }

/* ================= OVERLAY ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.sidebar-open .overlay { opacity: 1; pointer-events: auto; }

/* ================= CONTENT ================= */
.content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 120px 5vw 100px;
  max-width: 1680px;
  margin: 0 auto;
}

/* Masaüstünde sidebar içeriğin üstünü kapatmaz, içeriği yana iter */
@media (min-width: 900px) {
  .content { transition: padding-left 0.4s cubic-bezier(.4,0,.2,1); }
  body.sidebar-open .content { padding-left: calc(var(--sidebar-w) + 40px); }
  body.sidebar-open .overlay { opacity: 0; pointer-events: none; }
  body.sidebar-open #menu-toggle { left: calc(var(--sidebar-w) - 68px); }
}

.page { display: none; scroll-margin-top: 120px; }
.page.active { display: block; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}

/* ---------- About page layout (two columns) ---------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}
.about-main { min-width: 0; }
.about-side {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(6px);
}
.side-info-card h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.side-info-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.side-info-card li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.side-info-card li span { color: var(--text-dim); }
.side-info-card li strong { color: var(--text); font-weight: 600; text-align: right; }

/* ---------- Hero text ---------- */
.hero-text {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.eyebrow-blip {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
  margin-right: 8px;
  animation: blip 1.6s ease-in-out infinite;
}
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Hero visual / photo ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circuit-deco {
  position: absolute;
  inset: -30px -40px;
  width: calc(100% + 80px);
  height: calc(100% + 60px);
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.circuit-line { opacity: 0.5; }
.circuit-node {
  fill: var(--accent);
  filter: drop-shadow(0 0 3px var(--accent));
}
.pulse-dot {
  fill: #fff;
  filter: drop-shadow(0 0 5px var(--accent));
  offset-path: path('M0 60 H70 L95 35 H180');
  animation: travel1 3.4s linear infinite;
}
@keyframes travel1 {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.profile-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  padding: 3px;
  background: conic-gradient(from 135deg, transparent 0%, var(--accent) 12%, transparent 26%, transparent 68%, var(--accent-2) 82%, transparent 96%);
  box-shadow: 0 25px 60px -25px rgba(34, 211, 238, 0.35);
}

.profile-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  background: transparent;
}
.profile-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(55%) contrast(1.1) brightness(0.95);
}
.profile-frame-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 28%, rgba(34, 211, 238, 0.3), transparent 62%);
  opacity: 0.35;
  animation: breatheGlow 5s ease-in-out infinite;
  pointer-events: none;
}
.profile-frame-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.14), transparent 45%, rgba(5, 6, 8, 0.6) 100%);
  mix-blend-mode: overlay;
}
@keyframes breatheGlow {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.5; }
}

.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  z-index: 2;
  opacity: 0.85;
}
.hud-corner.tl { top: -8px; left: -8px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.hud-corner.tr { top: -8px; right: -8px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.hud-corner.bl { bottom: -8px; left: -8px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.hud-corner.br { bottom: -8px; right: -8px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

@media (max-width: 960px) {
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-side { position: static; order: -1; }
  .hero-visual { max-width: 220px; margin: 0 auto 20px; }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.hero-name span { color: var(--text-dim); }

.hero-role {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-text);
  margin: 0 0 20px;
}

.hero-bio { max-width: 560px; font-size: 16px; margin-bottom: 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(34, 211, 238,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(34, 211, 238,0.7); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 42px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}
.stat-label { font-size: 13px; color: var(--text-dim); }

/* ---------- Section blocks ---------- */
.section-block { margin-bottom: 52px; }

.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
  margin: 0 0 22px;
}
.block-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0;
}

.placeholder { color: var(--text-dim); line-height: 1.75; font-size: 15.5px; margin: 0; }

.bio-text { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 26px; border-left: 1px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.timeline-item h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 16.5px; color: var(--text); }
.timeline-org { margin: 0 0 8px; font-size: 13.5px; color: var(--text-faint); font-weight: 500; }
/* Özgeçmiş madde listeleri */
.cv-lead { margin-top: 10px; }
.cv-lead strong, .cv-list strong { color: var(--text); font-weight: 600; }
.cv-list { margin: 10px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.cv-list li + li { margin-top: 6px; }
.cv-list li::marker { color: var(--accent-text); }

/* ---------- Skills ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.skill-group h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
}

/* ---------- Page head (project/app/image pages) ---------- */
.page-head { margin-bottom: 40px; max-width: 600px; }
.page-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.page-head .placeholder { font-size: 16px; }

/* ---------- Cards grid ---------- */
.grid.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.6);
}

.card-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238,0.12), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--border);
  color: var(--accent-text);
  overflow: hidden;
}
.card-thumb svg { width: 46px; height: 46px; opacity: 0.85; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb[data-gallery-key] { cursor: pointer; }
.card-thumb[data-gallery-key]:hover img { transform: scale(1.04); }
.card-thumb img { transition: transform 0.3s ease; }

.card-body { padding: 20px 22px 6px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 { margin: 0; font-family: var(--font-head); font-size: 16.5px; color: var(--text); }
.card-body .placeholder { font-size: 14px; }

/* Şifre ekranı */
.lock-panel {
  grid-column: 1 / -1;
  max-width: 480px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lock-panel h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: 18px; color: var(--text); }
.lock-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lock-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.lock-input:focus { outline: none; border-color: var(--accent); }
.lock-panel button { border: 0; cursor: pointer; font-family: inherit; }
.lock-error { margin: 10px 0 0; min-height: 1.4em; font-size: 13.5px; color: #f87171; }

/* Proje resimleri seçilip sürüklenemez, mobilde uzun basma menüsü açılmaz */
.card-thumb img, .app-icon img, .gallery-thumb img, .lightbox-img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Uzun açıklamalar kartı uzatmaz, kendi içinde kayar */
.project-card .card-body p {
  margin: 0;
  height: 9em;
  padding-right: 6px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.project-card .card-body .tags { margin-top: auto; }

/* Projeler geniş ekranda 5'li; yer yetmeyince sidebar açıkken 4'lü */
@media (min-width: 1100px) {
  #projelerim-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  body:not(.sidebar-open) #projelerim-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #projelerim-grid .card-thumb { height: 112px; }
  #projelerim-grid .card-body { padding: 14px 14px 14px; }
  #projelerim-grid .card-body h3 { font-size: 14px; line-height: 1.3; min-height: 3.9em; }
  #projelerim-grid .card-body p { font-size: 12.5px; }
  #projelerim-grid .tag-pill { padding: 3px 8px; font-size: 11px; }
}
@media (min-width: 1360px) {
  #projelerim-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.card-footer {
  padding: 16px 22px 20px;
  display: flex;
  gap: 10px;
}
.icon-link {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.icon-link svg { width: 16px; height: 16px; }
.icon-link:hover { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- App cards ---------- */
.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 0;
}
.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238,0.18), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
}
.app-icon svg { width: 22px; height: 22px; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.app-icon[data-gallery-key] { cursor: pointer; }
.platform-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 4px 11px;
}

/* ---------- Galeri modalı (resim ızgarası) ---------- */
body.modal-open { overflow: hidden; }

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-modal.open { display: flex; }

.gallery-modal-inner {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 26px;
}

.gallery-title {
  margin: 0 0 18px;
  padding-right: 34px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text);
}

.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.gallery-close:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }
.gallery-thumb { position: relative; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 8px 7px;
  font-size: 11.5px;
  line-height: 1.3;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

/* ---------- Lightbox (ekrana sığdırılmış, ortalı) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 4, 0.94);
  z-index: 200;
  display: none;
  overflow: auto;
  padding: 64px 76px;
  text-align: center;
}
.lightbox.open { display: flex; align-items: center; justify-content: center; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0 0 4px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(20, 22, 26, 0.8);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-nav:hover { border-color: var(--accent); color: var(--accent-text); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox.single .lightbox-nav { display: none; }

.lightbox-caption {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 76px;
  margin: 0;
  font-size: 14px;
  color: #fff;
  text-align: left;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 22, 26, 0.7);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 210;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent-text); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  :root { --sidebar-w: 260px; }
}

@media (max-width: 640px) {
  .content { padding: 108px 6vw 70px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 28px; }
  .bg-glow { width: 80vw; height: 80vw; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .lightbox { padding: 64px 12px; }
  .lightbox-nav { width: 42px; height: 42px; margin-top: -21px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

