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

:root {
  --bg-top: #e3ecf9;
  --bg-mid: #eff4fc;
  --bg-bottom: #f9fbff;
  --ink: #15223d;
  --ink-soft: #4e5f7c;
  --ink-muted: #7687a4;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-hover: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --border: rgba(21, 34, 61, 0.09);
  --border-hover: rgba(21, 34, 61, 0.18);
  --shadow: 0 12px 36px -14px rgba(21, 34, 61, 0.1);
  --shadow-hover: 0 20px 44px -16px rgba(21, 34, 61, 0.16);
  --grid-line: rgba(21, 34, 61, 0.032);
  --mist-a: rgba(196, 214, 247, 0.72);
  --mist-b: rgba(203, 220, 250, 0.66);
  --mist-c: rgba(255, 255, 255, 0.84);
  --btn-primary-bg: #15223d;
  --btn-primary-ink: #f7f9ff;
  --tag-bg: rgba(21, 34, 61, 0.055);
  --accent-live: #16a34a;
  --lens-size: clamp(86px, 10.5vw, 134px);
  --flow-speed: 4.8s;
  --flow-speed-text: 5.2s;
  --brand-gradient: linear-gradient(90deg, #ff6a00 0%, #ffb703 16%, #ff4d6d 33%, #a855f7 50%, #00b4d8 67%, #ffb703 84%, #ff6a00 100%);
  --brand-glow: rgba(255, 122, 0, 0.2);
  --text-gradient: linear-gradient(90deg, #ff5e00 0%, #f59e0b 16%, #f43f5e 33%, #9333ea 50%, #0284c7 67%, #f59e0b 84%, #ff5e00 100%);
}

html[data-theme="dark"] {
  --bg-top: #070b15;
  --bg-mid: #0b1120;
  --bg-bottom: #0d1527;
  --ink: #ecf2ff;
  --ink-soft: #a4b3cf;
  --ink-muted: #6f80a1;
  --surface: rgba(18, 27, 47, 0.66);
  --surface-hover: rgba(24, 36, 62, 0.86);
  --surface-strong: rgba(15, 23, 42, 0.88);
  --border: rgba(236, 242, 255, 0.09);
  --border-hover: rgba(236, 242, 255, 0.2);
  --shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 22px 48px -14px rgba(0, 0, 0, 0.72);
  --grid-line: rgba(236, 242, 255, 0.035);
  --mist-a: rgba(56, 86, 158, 0.34);
  --mist-b: rgba(74, 105, 184, 0.28);
  --mist-c: rgba(34, 52, 96, 0.24);
  --btn-primary-bg: #ecf2ff;
  --btn-primary-ink: #0b1120;
  --tag-bg: rgba(236, 242, 255, 0.08);
  --accent-live: #22c55e;
  --brand-gradient: linear-gradient(90deg, #ff7b00 0%, #ffd166 16%, #ff5d8f 33%, #c084fc 50%, #38bdf8 67%, #ffd166 84%, #ff7b00 100%);
  --brand-glow: rgba(255, 145, 0, 0.28);
  --text-gradient: linear-gradient(90deg, #ff7b00 0%, #ffd166 16%, #ff5d8f 33%, #c084fc 50%, #38bdf8 67%, #ffd166 84%, #ff7b00 100%);
}

html[data-palette="ember"] {
  --brand-gradient: linear-gradient(90deg, #ff2e00 0%, #ff7b00 25%, #ffb703 50%, #ff4d4d 75%, #ff2e00 100%);
  --brand-glow: rgba(255, 90, 0, 0.24);
  --text-gradient: linear-gradient(90deg, #e63900 0%, #f97316 25%, #eab308 50%, #ef4444 75%, #e63900 100%);
}

html[data-theme="dark"][data-palette="ember"] {
  --brand-gradient: linear-gradient(90deg, #ff4d00 0%, #ff9500 25%, #ffd166 50%, #ff5c5c 75%, #ff4d00 100%);
  --text-gradient: linear-gradient(90deg, #ff5e1a 0%, #ffa200 25%, #ffe066 50%, #ff6b6b 75%, #ff5e1a 100%);
}

html[data-palette="ocean"] {
  --brand-gradient: linear-gradient(90deg, #00b4d8 0%, #38bdf8 25%, #6366f1 50%, #a855f7 75%, #00b4d8 100%);
  --brand-glow: rgba(56, 189, 248, 0.24);
  --text-gradient: linear-gradient(90deg, #0284c7 0%, #2563eb 25%, #7c3aed 50%, #0891b2 75%, #0284c7 100%);
}

html[data-theme="dark"][data-palette="ocean"] {
  --brand-gradient: linear-gradient(90deg, #22d3ee 0%, #60a5fa 25%, #818cf8 50%, #c084fc 75%, #22d3ee 100%);
  --text-gradient: linear-gradient(90deg, #22d3ee 0%, #60a5fa 25%, #a78bfa 50%, #38bdf8 75%, #22d3ee 100%);
}

html[data-palette="emerald"] {
  --brand-gradient: linear-gradient(90deg, #10b981 0%, #06b6d4 25%, #84cc16 50%, #14b8a6 75%, #10b981 100%);
  --brand-glow: rgba(16, 185, 129, 0.22);
  --text-gradient: linear-gradient(90deg, #059669 0%, #0284c7 25%, #65a30d 50%, #0d9488 75%, #059669 100%);
}

html[data-theme="dark"][data-palette="emerald"] {
  --brand-gradient: linear-gradient(90deg, #34d399 0%, #22d3ee 25%, #a3e635 50%, #2dd4bf 75%, #34d399 100%);
  --text-gradient: linear-gradient(90deg, #34d399 0%, #38bdf8 25%, #bef264 50%, #2dd4bf 75%, #34d399 100%);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-mid);
}

body {
  min-height: 100dvh;
  background-color: var(--bg-mid);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Subtle top scroll progress line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 2px;
  background: var(--btn-primary-bg);
  opacity: 0.7;
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* Isolated backdrop root so mix-blend-mode: difference always blends cleanly */
.page-shell {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
  overflow-x: clip;
  transition: background 0.35s ease;
}

/* Atmospheric misty backdrop */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(82px);
  opacity: 0.72;
}

.mist-left {
  width: 58vw;
  height: 58vw;
  max-width: 780px;
  max-height: 780px;
  top: -18%;
  left: -14%;
  background: radial-gradient(circle, var(--mist-a) 0%, transparent 72%);
  animation: driftLeft 22s ease-in-out infinite alternate;
}

.mist-right {
  width: 54vw;
  height: 54vw;
  max-width: 740px;
  max-height: 740px;
  top: -12%;
  right: -12%;
  background: radial-gradient(circle, var(--mist-b) 0%, transparent 72%);
  animation: driftRight 26s ease-in-out infinite alternate;
}

.mist-center {
  width: 68vw;
  height: 46vh;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--mist-c) 0%, transparent 76%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 92px 92px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 35%, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 35%, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

@keyframes driftLeft {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, 3vh, 0) scale(1.06); }
}

@keyframes driftRight {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4vw, 4vh, 0) scale(1.05); }
}

/* Sticky minimal top navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 24px 0;
}

.topbar-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 10px 14px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Outfit", "Segoe UI", sans-serif;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
}

.brand-name {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: var(--tag-bg);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icon-circle-btn:hover {
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.icon-circle-btn svg {
  width: 17px;
  height: 17px;
}

html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }

/* Main content column */
.content {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px 84px;
}

/* Hero section */
.hero {
  min-height: calc(100dvh - 84px);
  padding: 40px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-live);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

/* Generous hover zone around BİNDFİRE */
.brand-zone {
  position: relative;
  padding: clamp(32px, 5vh, 62px) clamp(26px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.brand-title {
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(2.65rem, 8.6vw, 6.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.06em;
  padding: 0.14em 0.06em;
  margin: -0.14em -0.06em;
  white-space: nowrap;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255, 234, 150, 0.72) 0%, transparent 42%),
    var(--brand-gradient);
  background-size: 180% 180%, 200% 100%;
  background-position: 0% 50%, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px var(--brand-glow));
  animation: bindfireColorFlow var(--flow-speed) linear infinite;
}

@keyframes bindfireColorFlow {
  0% {
    background-position: 0% 30%, 0% 50%;
  }
  50% {
    background-position: 100% 70%, 100% 50%;
  }
  100% {
    background-position: 0% 30%, 200% 50%;
  }
}

/* Flowing Cloudflare-style animated colors for Kısaca Ben (#hakkimda) & SSS (#sss) */
#hakkimda .section-kicker,
#hakkimda .section-title,
#hakkimda .profile-name,
#hakkimda .profile-alias,
#hakkimda .about-text,
#hakkimda .tag,
#hakkimda .facts-heading,
#hakkimda .fact-item dt,
#hakkimda .fact-item dd:not(.fact-live),
#hakkimda .fact-live-text,
#sss .section-kicker,
#sss .section-title,
#sss .faq-question > span:first-child,
#sss .faq-answer {
  background-image: var(--text-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textRibbonFlow var(--flow-speed-text) linear infinite;
}

#hakkimda .about-text,
#sss .faq-answer {
  font-weight: 500;
}

#hakkimda .tag {
  border: 1px solid var(--border);
}

#sss .faq-answer code {
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}

@keyframes textRibbonFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.hero-subtitle {
  max-width: 540px;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 4px;
}

.hero-subtitle strong {
  color: var(--ink);
  font-weight: 600;
}

.hover-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  transition: opacity 0.5s ease;
}

.hover-hint.is-dismissed {
  opacity: 0;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:hover svg {
  transform: translateY(2px);
}

.btn-glass {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-glass:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-glass:hover svg {
  transform: translate(2px, -2px);
}

/* Sections */
.section {
  padding-top: 84px;
  scroll-margin-top: 76px;
}

.section-head {
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.section-title {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-desc {
  margin-top: 8px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* Glass cards */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.avatar-ring {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.profile-name {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.profile-alias {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.about-text {
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.about-text + .about-text {
  margin-top: 12px;
}

.about-text strong {
  color: var(--ink);
  font-weight: 600;
}

.tag-list {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.facts-heading {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}

.facts-list {
  display: flex;
  flex-direction: column;
}

.fact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.fact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-item dt {
  color: var(--ink-muted);
}

.fact-item dd {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.fact-mono {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.86rem;
}

.fact-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-hover);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.fact-link:hover {
  opacity: 0.78;
  border-bottom-style: solid;
}

.fact-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-live);
}

/* Projects section */
.project-featured {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--tag-bg);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.badge-gold {
  background: rgba(202, 138, 4, 0.14);
  color: #a16207;
  border-color: rgba(202, 138, 4, 0.28);
}

html[data-theme="dark"] .badge-gold {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
}

/* Clean pill switcher for Screenshot vs Live Console Demo */
.view-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  gap: 4px;
}

.view-tab {
  padding: 6px 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.view-tab:hover {
  color: var(--ink);
}

.view-tab.is-active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(21, 34, 61, 0.08);
}

.view-panel[hidden] {
  display: none;
}

.project-title {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.project-lead {
  margin-top: 8px;
  max-width: 740px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.project-preview-wrap {
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(16, 20, 30, 0.94) 0%, rgba(10, 12, 18, 0.98) 100%);
  border: 1px solid rgba(202, 138, 4, 0.28);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.45);
}

.project-preview-btn {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0c0c0c;
  cursor: zoom-in;
}

.project-preview-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-preview-btn:hover .project-preview-img {
  transform: scale(1.012);
}

.preview-zoom-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(12, 16, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.preview-zoom-pill svg {
  width: 14px;
  height: 14px;
}

.project-preview-btn:hover .preview-zoom-pill {
  opacity: 1;
  transform: translateY(-1px);
}

/* Live interactive console demo */
.terminal-window {
  --term-fg: #e6b800;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0c12;
  border: 1px solid rgba(202, 138, 4, 0.32);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.45);
  transition: border-color 0.25s ease;
}

.terminal-window[data-color="red"]    { --term-fg: #ff6b6b; border-color: rgba(255, 107, 107, 0.4); }
.terminal-window[data-color="green"]  { --term-fg: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.terminal-window[data-color="yellow"] { --term-fg: #fde047; border-color: rgba(253, 224, 71, 0.4); }
.terminal-window[data-color="cyan"]   { --term-fg: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.terminal-window[data-color="pink"]   { --term-fg: #f472b6; border-color: rgba(244, 114, 182, 0.4); }
.terminal-window[data-color="blue"]   { --term-fg: #60a5fa; border-color: rgba(96, 165, 250, 0.4); }
.terminal-window[data-color="purple"] { --term-fg: #c084fc; border-color: rgba(192, 132, 252, 0.4); }

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #131722;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.terminal-win-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.terminal-cmd-tag {
  padding: 2px 6px;
  border-radius: 5px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #facc15;
  font-size: 0.68rem;
  font-weight: 500;
}

.term-reset-btn {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.term-reset-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.terminal-body {
  padding: 18px 20px;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  color: var(--term-fg);
  font-size: 0.81rem;
  line-height: 1.55;
}

.terminal-ascii {
  font-size: clamp(0.3rem, 0.85vw, 0.62rem);
  line-height: 1.15;
  color: var(--term-fg);
  overflow-x: auto;
  margin-bottom: 12px;
  user-select: none;
}

.terminal-banner {
  padding: 6px 0;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
  border-top: 1px dashed currentColor;
  border-bottom: 1px dashed currentColor;
  opacity: 0.92;
}

.terminal-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.term-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--term-fg);
  font-family: inherit;
  font-size: 0.81rem;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.term-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.terminal-output {
  min-height: 210px;
  padding: 6px 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-output[hidden],
.terminal-menu[hidden] {
  display: none;
}

.term-line {
  display: block;
}

.term-back-btn {
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--term-fg);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.term-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.terminal-prompt {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.77rem;
}

.prompt-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.prompt-input-wrap input {
  width: 52px;
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.81rem;
}

/* 8 clickable module feature cards */
.project-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.feature-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.feature-copy {
  min-width: 0;
}

.feature-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(202, 138, 4, 0.14);
  color: #a16207;
}

html[data-theme="dark"] .feature-num {
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
}

.feature-item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.feature-item p {
  margin-top: 3px;
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.48;
}

.usage-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
}

.usage-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.usage-steps {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.usage-steps strong {
  color: var(--ink);
  font-weight: 600;
}

.usage-steps em {
  color: var(--ink-muted);
  font-style: normal;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.project-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-left: auto;
}

/* Collapsible source code drawer */
.source-drawer {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0f19;
  color: #e2e8f0;
}

.source-drawer[hidden] {
  display: none;
}

.source-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #121826;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.source-filename {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.8rem;
  color: #facc15;
}

.source-copy-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.source-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.source-code {
  margin: 0;
  padding: 16px;
  max-height: 360px;
  overflow: auto;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #cbd5e1;
  tab-size: 4;
}

.projects-next {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px dashed var(--border-hover);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.next-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
  flex-shrink: 0;
}

/* Social cards — clean symmetric 2x2 grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.social-github::before {
  background: radial-gradient(circle at top right, rgba(36, 41, 47, 0.12), transparent 62%);
}

html[data-theme="dark"] .social-github::before {
  background: radial-gradient(circle at top right, rgba(236, 242, 255, 0.12), transparent 62%);
}

.social-discord::before {
  background: radial-gradient(circle at top right, rgba(88, 101, 242, 0.16), transparent 62%);
}

.social-youtube::before {
  background: radial-gradient(circle at top right, rgba(255, 0, 51, 0.14), transparent 62%);
}

.social-instagram::before {
  background: radial-gradient(circle at top right, rgba(225, 48, 108, 0.15), transparent 62%);
}

.social-card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.social-card:hover::before {
  opacity: 1;
}

.social-link-area {
  position: relative;
  z-index: 1;
  display: block;
  text-decoration: none;
  color: inherit;
}

.social-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-github .social-icon {
  background: rgba(21, 34, 61, 0.09);
  color: #15223d;
}

html[data-theme="dark"] .social-github .social-icon {
  background: rgba(236, 242, 255, 0.12);
  color: #ecf2ff;
}

.social-discord .social-icon {
  background: rgba(88, 101, 242, 0.13);
  color: #5865f2;
}

.social-youtube .social-icon {
  background: rgba(255, 0, 51, 0.11);
  color: #e6002e;
}

.social-instagram .social-icon {
  background: rgba(225, 48, 108, 0.12);
  color: #d62976;
}

html[data-theme="dark"] .social-discord .social-icon { color: #818cf8; }
html[data-theme="dark"] .social-youtube .social-icon { color: #ff4d6d; }
html[data-theme="dark"] .social-instagram .social-icon { color: #f472b6; }

.social-card:hover .social-icon {
  transform: scale(1.06);
}

.social-arrow {
  font-size: 1.1rem;
  color: var(--ink-muted);
  transition: transform 0.22s ease, color 0.22s ease;
}

.social-card:hover .social-arrow {
  color: var(--ink);
  transform: translate(3px, -3px);
}

.social-name {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

.social-handle {
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  word-break: break-all;
}

.social-desc {
  margin-top: 12px;
  font-size: 0.89rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.copy-btn {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-btn:hover {
  color: var(--ink);
  background: var(--tag-bg);
  border-color: var(--border-hover);
}

/* Clean FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 20px 24px;
  border-radius: 20px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.91rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.faq-answer code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--tag-bg);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--ink);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px 36px;
}

.footer-inner {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-copy strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-links a,
.footer-share-btn {
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-share-btn:hover {
  color: var(--ink);
}

/* Floating Back-to-Top button */
.back-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.back-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.back-top-btn svg {
  width: 18px;
  height: 18px;
}

/* Frosted-Glass Command Palette (Ctrl + K) */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  padding: 14vh 18px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cmd-backdrop[hidden] {
  display: none;
}

.cmd-panel {
  width: min(540px, 100%);
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.cmd-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}

.cmd-search-row svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.cmd-search-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.93rem;
}

.cmd-search-row kbd {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.cmd-list {
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cmd-item {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 0.89rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.cmd-item:hover,
.cmd-item.is-selected {
  background: var(--tag-bg);
}

.cmd-item-sub {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.cmd-empty {
  padding: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(1120px, 94vw);
  max-height: 88vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

/* Signature BİNDFİRE inversion spotlight circle */
.cursor-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 15;
  width: var(--lens-size);
  height: var(--lens-size);
  border-radius: 50%;
  background-color: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0) translate(-50%, -50%) scale(0.35);
}

/* Toast notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 95;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), translate 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ============================================================
 * NEW FEATURES: .bat BUILDER, LIVE GITHUB, GAMER LAB, COMPOSER, STUDIO
 * ============================================================ */
.btn-sm {
  padding: 8px 15px;
  font-size: 0.83rem;
}

/* Custom .bat Builder */
.bat-builder {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.builder-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.builder-heading {
  font-family: "Outfit", sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
}

.builder-sub {
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.builder-sub code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tag-bg);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.8rem;
  color: var(--ink);
}

.builder-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.check-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.check-tile:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.check-tile input {
  margin-top: 3px;
  accent-color: var(--btn-primary-bg);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.check-tile span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.check-tile strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.check-tile small {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.builder-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.builder-color-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.builder-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cmd-color-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmd-color-chip.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  border-color: transparent;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.builder-preview {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0f19;
  min-height: 280px;
}

.builder-line-count {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.74rem;
  color: #94a3b8;
}

.builder-code {
  flex: 1;
  max-height: 310px;
}

/* Live GitHub Strip */
.github-live {
  margin-top: 18px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gh-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gh-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gh-avatar-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.gh-avatar-wrap svg {
  width: 22px;
  height: 22px;
}

.gh-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gh-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.gh-sync-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--accent-live);
  font-size: 0.72rem;
  font-weight: 600;
}

.gh-sub {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.gh-repos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gh-repos[hidden] {
  display: none;
}

.gh-repo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gh-repo-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.gh-repo-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.gh-repo-desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.gh-repo-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* Interactive Gamer & FPS Lab (#araclar) */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lab-monitor {
  grid-column: span 2;
}

.lab-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.lab-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.lab-card-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

.monitor-body {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 18px;
  align-items: stretch;
}

.fps-live-box {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.fps-readout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fps-number-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.fps-number {
  font-family: "Outfit", "JetBrains Mono", sans-serif;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.fps-unit {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.fps-status-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--accent-live);
  font-size: 0.76rem;
  font-weight: 600;
}

.fps-graph {
  width: 100%;
  height: 78px;
  border-radius: 12px;
  background: var(--tag-bg);
  display: block;
}

.fps-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.79rem;
  color: var(--ink-muted);
}

.fps-caption strong {
  color: var(--ink);
  font-family: "JetBrains Mono", Consolas, monospace;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spec-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.spec-box dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-box dd {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.38;
}

/* Reaction & CPS Game Cards */
.lab-game {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.best-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink);
}

.reaction-pad,
.cps-pad {
  position: relative;
  width: 100%;
  min-height: 162px;
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  transition: transform 0.12s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.reaction-pad:active,
.cps-pad:active {
  transform: scale(0.985);
}

.reaction-pad[data-state="waiting"] {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #b45309;
}

html[data-theme="dark"] .reaction-pad[data-state="waiting"] {
  color: #fcd34d;
}

.reaction-pad[data-state="ready"] {
  background: #16a34a;
  border-color: #15803d;
  color: #ffffff;
}

.reaction-pad[data-state="early"] {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.42);
  color: #dc2626;
}

html[data-theme="dark"] .reaction-pad[data-state="early"] {
  color: #fca5a5;
}

.pad-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.2;
}

.pad-sub {
  font-size: 0.83rem;
  opacity: 0.8;
  max-width: 300px;
}

.cps-dur-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  gap: 3px;
}

.dur-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.dur-btn.is-active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(21, 34, 61, 0.08);
}

.cps-bar-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--tag-bg);
}

.cps-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff6a00, #ffb703, #00b4d8);
  transition: width 0.08s linear;
}

.game-stats-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.mini-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--tag-bg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-stat span {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.mini-stat strong {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--ink);
}

.inline-action-btn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.inline-action-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* Quick Message / Project Suggestion Composer */
.composer-card {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.composer-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.composer-sub {
  margin-top: 4px;
  font-size: 0.89rem;
  color: var(--ink-soft);
}

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-pill:hover {
  color: var(--ink);
  border-color: var(--border-hover);
}

.topic-pill.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  border-color: transparent;
}

.composer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.composer-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glass-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-input::placeholder {
  color: var(--ink-muted);
}

.glass-input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px var(--tag-bg);
}

.glass-textarea {
  resize: vertical;
  min-height: 86px;
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Floating Appearance & Color Studio Popover */
.studio-popover {
  position: fixed;
  top: 78px;
  right: max(20px, calc((100vw - 1020px) / 2));
  z-index: 80;
  width: min(312px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-popover[hidden] {
  display: none;
}

.studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--ink);
}

.studio-reset {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}

.studio-reset:hover {
  color: var(--ink);
}

.studio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.swatch-btn.is-active {
  border-color: var(--ink);
  background: var(--tag-bg);
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch-cloudflare { background: linear-gradient(135deg, #ff6a00, #ff4d6d, #00b4d8); }
.swatch-ember      { background: linear-gradient(135deg, #ff2e00, #ff7b00, #ffb703); }
.swatch-ocean      { background: linear-gradient(135deg, #00b4d8, #6366f1, #a855f7); }
.swatch-emerald    { background: linear-gradient(135deg, #10b981, #06b6d4, #84cc16); }

.seg-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.seg-btn {
  padding: 7px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seg-btn.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  border-color: transparent;
}

.studio-toggle-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.sound-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.sound-pill[aria-pressed="true"] {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  border-color: transparent;
}

/* ============================================================
 * MULTI-PAGE PROJECTS BANNER, TEASER & TWO-CHANNEL FEEDBACK
 * ============================================================ */
.flow-text {
  background-image: var(--text-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textRibbonFlow var(--flow-speed-text) linear infinite;
}

.page-banner {
  padding: 52px 0 28px;
}

.banner-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.back-pill svg {
  width: 15px;
  height: 15px;
}

.back-pill:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(-2px);
}

.banner-kicker {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.page-title {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  display: inline-block;
}

.page-lead {
  margin-top: 10px;
  max-width: 680px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.page-lead code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--tag-bg);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.84rem;
  color: var(--ink);
}

.banner-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tight {
  padding-top: 24px;
}

/* Compact Repo Teaser Card on index.html */
.repo-teaser {
  margin-top: 20px;
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.repo-teaser-copy {
  max-width: 580px;
}

.repo-teaser-title {
  margin-top: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
}

.repo-teaser-desc {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.repo-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Two-Channel Selector (Discord / E-Posta) */
.channel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.channel-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.channel-switch {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  gap: 4px;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.channel-btn svg {
  width: 16px;
  height: 16px;
}

.channel-btn:hover {
  color: var(--ink);
}

.channel-btn.is-active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(21, 34, 61, 0.1);
}

.channel-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
}

.composer-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.composer-status {
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.87rem;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  line-height: 1.5;
}

.composer-status[hidden] {
  display: none;
}

.composer-status.is-success {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

html[data-theme="dark"] .composer-status.is-success {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(22, 163, 74, 0.16);
  color: #86efac;
}

.composer-status.is-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

html[data-theme="dark"] .composer-status.is-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid,
  .project-features,
  .social-grid,
  .bat-builder,
  .monitor-body,
  .lab-grid,
  .gh-repos,
  .composer-row-2 {
    grid-template-columns: 1fr;
  }

  .lab-monitor {
    grid-column: span 1;
  }

  .project-meta {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .builder-checks,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 12px 14px 0;
  }

  .topbar-inner {
    padding: 8px 10px 8px 12px;
  }

  .brand-name {
    display: none;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .content {
    padding: 0 16px 64px;
  }

  .hero {
    min-height: calc(100dvh - 70px);
    padding: 24px 0 40px;
  }

  .glass-card,
  .social-card {
    padding: 22px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mist-left, .mist-right, .brand-title, .flow-text,
  #hakkimda .section-kicker, #hakkimda .section-title, #hakkimda .profile-name,
  #hakkimda .profile-alias, #hakkimda .about-text, #hakkimda .tag,
  #hakkimda .facts-heading, #hakkimda .fact-item dt,
  #hakkimda .fact-item dd:not(.fact-live), #hakkimda .fact-live-text,
  #sss .section-kicker, #sss .section-title,
  #sss .faq-question > span:first-child, #sss .faq-answer { animation: none; }
  .reveal { opacity: 1; translate: none; transition: none; }
}
