/* ============================================================
   main-design.css — Ana site tasarımı
   Bölümler: navbar, hero, marquee, about, skills, projects,
   certificates, experience, contact, footer, animasyonlar
   ============================================================ */

/* ---- Temel sıfırlama ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px); /* Sabit navbar altında anchor hizası */
  -webkit-tap-highlight-color: transparent; /* Dokunmatikte beyaz tap parlamasını kapat */
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
}

/* Sayfa kaydırma çubuğu: paletin kendi diliyle */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 6px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
html { scrollbar-color: var(--scroll-thumb) var(--bg-alt); }

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

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

/* ---- Ortak başlık sistemi ---- */
.eyebrow {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.section-sub { color: var(--text-soft); margin-top: 12px; max-width: 520px; }
.section-head { margin-bottom: 52px; }

/* ---- Butonlar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; /* tüm butonlar aynı hizada, dokunma hedefi standart */
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; transition: transform .25s var(--ease-out), box-shadow .25s, background .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.chip {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  border: 1px dashed var(--border); color: var(--text-soft); font-size: .85rem;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--nav-h);
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
/* Sayfa kaydırılınca navbar dolgulu hale gelir (JS .is-scrolled ekler) */
.navbar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); border-radius: 10px;
  font-size: 1.1rem; transition: transform .3s var(--ease-out), background .3s;
}
.brand:hover .brand-mark { transform: rotate(-8deg); background: var(--accent-2); }
.brand-dot { color: var(--accent-2); }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  position: relative; padding: 8px 13px; color: var(--text-soft);
  font-size: .92rem; font-weight: 500; border-radius: 8px; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; inset-inline: 13px; bottom: 2px; height: 2px;
  background: var(--accent-2); border-radius: 2px; transform: scaleX(0);
  transform-origin: left; transition: transform .3s var(--ease-out);
}
[dir="rtl"] .nav-link::after { transform-origin: right; }
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-btn {
  padding: 6px 11px; background: transparent; border: 0; color: var(--text-mute);
  font-size: .78rem; font-weight: 600; transition: background .2s, color .2s;
}
.lang-btn.is-active { background: var(--accent); color: var(--on-accent); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
/* Petrol ve turuncu ışık kümeleri: ölçülü, klişe mor-mavi gradient yok */
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-glow-a { width: 480px; height: 480px; background: var(--glow-a); top: -120px; inset-inline-end: -100px; animation: drift 14s ease-in-out infinite alternate; }
.hero-glow-b { width: 380px; height: 380px; background: var(--glow-b); bottom: -100px; inset-inline-start: -80px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(40px, 30px); } }

.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-watermark {
  position: absolute; bottom: -4vw; inset-inline-end: -2vw;
  font-size: 18vw; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--border); opacity: .5; user-select: none;
}

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.hero-title > span { display: block; }
.hero-name { color: var(--accent); }
.accent-dot { color: var(--accent-2); }
.hero-typed { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--accent-2); margin-top: 14px; min-height: 1.6em; }
.caret { display: inline-block; width: 3px; height: 1.1em; background: var(--accent-2); margin-inline-start: 4px; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-intro { color: var(--text-soft); max-width: 480px; margin-top: 18px; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.social-row { display: flex; gap: 12px; margin-top: 30px; }
.social-row a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 12px; color: var(--text-soft);
  transition: color .2s, border-color .2s, transform .25s var(--ease-out);
}
.social-row a:hover { color: var(--accent-2); border-color: var(--accent-2); transform: translateY(-3px); }

/* Terminal kartı */
.hero-card { position: relative; }
.terminal {
  direction: ltr; text-align: left; /* Kod bloğu Arapça'da bile LTR okunur */
  background: var(--charcoal); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(241, 235, 221, .12); overflow: hidden;
  transform: rotate(1.5deg); transition: transform .4s var(--ease-out);
}
.hero-card:hover .terminal { transform: rotate(0); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(241, 235, 221, .06); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar i:nth-child(1) { background: #C4574E; }
.terminal-bar i:nth-child(2) { background: #D9A441; }
.terminal-bar i:nth-child(3) { background: #4E9A6B; }
.terminal-bar span { margin-inline-start: 8px; color: #8F9489; font-size: .78rem; }
.terminal-body { padding: 20px 22px 26px; font-size: .88rem; line-height: 1.75; color: #C9C3B4; overflow-x: auto; }
.terminal-body code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.t-kw { color: #E78A45; } .t-var { color: #F1EBDD; } .t-key { color: #6FA595; }
.t-str { color: #D9A441; } .t-fn { color: #5B8BA0; }

.hero-badge {
  position: absolute; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .85rem;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.hero-badge-a { top: -18px; inset-inline-start: -14px; color: var(--accent-2); }
.hero-badge-b { bottom: -16px; inset-inline-end: -10px; color: var(--accent); animation-delay: 2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint {
  position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-mute); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
[dir="rtl"] .scroll-hint { transform: translateX(50%); }
.scroll-hint svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ===================== MARQUEE ===================== */
.marquee { border-block: 1px solid var(--border); padding: 16px 0; overflow: hidden; background: var(--surface); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-size: 1rem; font-weight: 600; letter-spacing: .14em; color: var(--text-mute); white-space: nowrap; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-text p { margin-bottom: 18px; color: var(--text-soft); font-size: 1.05rem; }
.about-text p:first-child { color: var(--text); font-size: 1.2rem; font-weight: 500; }
.about-metahead { font-size: .95rem !important; }
.metahead-link { font-weight: 600; color: var(--accent-2); border-bottom: 1px dashed var(--accent-2); }
.interest-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.interest-chips li { padding: 7px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; color: var(--text-soft); }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .3s var(--ease-out), box-shadow .3s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2.1rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--text-mute); }
.stat-accent { background: var(--accent); border-color: var(--accent); }
.stat-accent strong { color: var(--on-accent); font-size: 1.5rem; }
.stat-accent span { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }

/* ===================== SKILLS ===================== */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.skill-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.skill-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; color: var(--on-accent);
}
.skill-html { background: var(--accent-2); }
.skill-css { background: var(--accent); }
.skill-js { background: var(--charcoal); color: var(--cream); }
.skill-py { background: var(--info); }
.skill-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.skill-card p { font-size: .88rem; color: var(--text-mute); margin-bottom: 18px; }
.skill-bar { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.skill-bar span {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s var(--ease-out);
}
/* Kart görünür olunca bar dolar (reveal.js .is-visible ekler) */
.skill-card.is-visible .skill-bar span { width: var(--level); }
.skills-next { margin-top: 30px; color: var(--text-mute); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ===================== PROJECTS ===================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.project-card:hover .project-cover img { transform: scale(1.05); }
/* Görsel yoksa paletten üretilen kapak: proje başlığının baş harfi */
.project-cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 3rem; font-weight: 700; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--petrol-deep) 60%, var(--charcoal) 100%);
}
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { font-size: 1.2rem; }
.project-body p { font-size: .92rem; color: var(--text-soft); flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tech li { font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; background: var(--surface-2); color: var(--accent); }
.project-links { display: flex; gap: 16px; padding-top: 6px; border-top: 1px solid var(--border); }
.project-links a { font-size: .88rem; font-weight: 600; color: var(--text-soft); display: inline-flex; align-items: center; gap: 5px; padding-top: 10px; }
.project-links a:hover { color: var(--accent-2); }

/* Boş / yükleniyor / yapılandırılmamış durumlar */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px;
  border: 1.5px dashed var(--border); border-radius: var(--radius); color: var(--text-mute);
}
.empty-state strong { display: block; font-size: 1.15rem; color: var(--text-soft); margin-bottom: 8px; }
.empty-state .empty-icon { font-size: 2rem; display: block; margin-bottom: 14px; color: var(--accent); }
.skeleton-card { grid-column: span 1; height: 320px; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===================== CERTIFICATES ===================== */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cert-image { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.cert-image img { width: 100%; height: 100%; object-fit: cover; }
.cert-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px); }
.cert-body { padding: 20px 22px; }
.cert-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cert-issuer { color: var(--accent-2); font-weight: 600; font-size: .88rem; }
.cert-date { color: var(--text-mute); font-size: .82rem; margin-top: 4px; }
.cert-link { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; }

/* ===================== EXPERIENCE ===================== */
.timeline { position: relative; max-width: 760px; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; inset-inline-start: -32px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--bg);
  border: 3px solid var(--accent-2);
}
.timeline-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; transition: box-shadow .3s, transform .3s var(--ease-out); }
.timeline-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
[dir="rtl"] .timeline-card:hover { transform: translateX(-4px); }
.timeline-dates { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--accent-2); text-transform: uppercase; }
.timeline-card h3 { font-size: 1.15rem; margin-top: 6px; }
.timeline-company { color: var(--accent); font-weight: 600; font-size: .95rem; }
.timeline-card p { color: var(--text-soft); font-size: .93rem; margin-top: 10px; }

/* ===================== CONTACT ===================== */
.section-contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label { font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: .95rem; padding: 12px 15px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-a);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .78rem; margin-top: 5px; min-height: 1em; }
.form-notice { padding: 12px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warning) 15%, var(--surface)); border: 1px solid var(--warning); color: var(--text-soft); font-size: .88rem; margin-bottom: 16px; }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form-status.is-ok { color: var(--success); }
.form-status.is-err { color: var(--danger); }

.contact-info h3 { font-size: 1.2rem; margin-bottom: 16px; }
.contact-email { font-size: 1.15rem; font-weight: 600; color: var(--accent-2); word-break: break-all; }
.social-row-lg { margin-top: 22px; }
.contact-note { margin-top: 24px; color: var(--text-mute); font-size: .9rem; }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-mute); font-size: .9rem; margin-top: 14px; max-width: 260px; }
.footer h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.footer-nav li, .footer-social li { margin-bottom: 9px; }
.footer-nav a, .footer-social a { color: var(--text-soft); font-size: .93rem; }
.footer-nav a:hover, .footer-social a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: .83rem;
}
.footer-metahead a { color: var(--text-soft); }
.footer-metahead a:hover { color: var(--accent-2); }

/* ===================== PROJELER FİLTRE ÇUBUĞU ===================== */
.filter-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-search {
  display: flex; align-items: center; gap: 9px; flex: 1; min-width: 220px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: 11px 18px;
  color: var(--text-mute); transition: border-color .2s, box-shadow .2s;
}
.filter-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-a); }
.filter-search input { flex: 1; border: 0; background: none; font-family: inherit; font-size: .93rem; color: var(--text); outline: none; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft); font-size: .83rem; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-sort {
  font-family: inherit; font-size: .88rem; font-weight: 500; padding: 10px 14px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; color: var(--text);
}
.filter-count { color: var(--text-mute); font-size: .83rem; margin-bottom: 22px; min-height: 1.2em; }

/* İlk 3 projeden sonra kalanları açan düğme: ortalanmış, gizli durumu hidden ile */
.projects-more { margin-top: 30px; text-align: center; }

/* ===================== SCROLL REVEAL ===================== */
/* JS (main-navigation.js) IntersectionObserver ile .is-visible ekler */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* JS kapalıysa içerik gizli kalmasın */
html.no-js .reveal { opacity: 1; transform: none; }

/* Odak görünürlüğü (klavye navigasyonu) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}

/* ---- Basılı durum geri bildirimi: palet rengiyle, beyaz parlama yok ---- */
.btn-primary:active { background: var(--accent-strong); }
.btn-ghost:active { border-color: var(--accent-2); color: var(--accent-2); }
.lang-btn:active { background: var(--surface-2); color: var(--text); }
.menu-toggle:active span { background: var(--accent-2); }
.filter-chip:active { background: var(--surface-2); }
.nav-link:active { color: var(--accent-2); }
.social-row a:active { border-color: var(--accent-2); color: var(--accent-2); }