:root {
  --primary-bg: #0f121b;
  --accent-green: #00FF66;
  --text-main: #FFFFFF;
  --text-muted: #E5E7EB;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --border-radius-base: 8px;
  --button-radius: 4px;
  --scrollbar-size: 10px;
  --scrollbar-track: rgba(13, 17, 23, 0.92);
  --scrollbar-thumb-fill: transparent;
  --scrollbar-thumb-glow: rgba(0, 255, 102, 0.38);
  --scrollbar-thumb-glow-hover: rgba(0, 255, 102, 0.55);
  --scrollbar-firefox-thumb: rgba(0, 255, 102, 0.32);
}

body {
  background-color: var(--primary-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

p {
  padding-block: 20px;
  min-height: 0;
}

.site-footer p,
.navbar p,
.modal-header p,
.solution-card p,
.projeler-card-body,
.portfolio-item p,
.form-container p,
.contact-success p {
  padding-block: 12px;
}

/* İçi boş neon scrollbar (WebKit + Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-firefox-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
  margin: 4px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-fill);
  border: 2px solid var(--accent-green);
  border-radius: 999px;
  box-shadow:
    0 0 10px var(--scrollbar-thumb-glow),
    inset 0 0 0 1px rgba(0, 255, 102, 0.12);
}

*::-webkit-scrollbar-thumb:hover {
  border-color: var(--accent-green);
  box-shadow:
    0 0 14px var(--scrollbar-thumb-glow-hover),
    inset 0 0 0 1px rgba(0, 255, 102, 0.22);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

a {
  text-decoration: none;
}

.text-accent {
  color: var(--accent-green) !important;
}

.icon-accent {
  color: var(--accent-green);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

/* Digital Grid Background */

#digital-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background-color: transparent;
  /* Daha görünür nokta ızgarası: daha koyu nötr + accent */
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.09) 1px, transparent 1.5px),
    radial-gradient(circle at center, rgba(0, 255, 102, 0.22) 1px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

@supports (height: 100dvh) {
  #digital-grid {
    min-height: 100dvh;
    height: 100dvh;
  }
}

#smooth-wrapper {
  position: relative;
  z-index: 1;
}

/* Navbar & Logo */

.custom-navbar {
  z-index: 1030;
  background: rgba(8, 10, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-navbar .nav-link {
  color: var(--text-main);
  transition: color 0.3s;
}

.custom-navbar .nav-link:hover, .custom-navbar .nav-link.active {
  color: var(--accent-green);
}

/* CMS / medya logo (PNG, JPG, SVG): boyutları navbar belirler; SVG intrinsic genişlik-yükseklik taşmaz */
.custom-navbar .navbar-brand .twd-nav-logo {
  display: block;
  max-height: 2.5rem;
  max-width: min(12.5rem, 46vw);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  align-self: center;
}

.logo-wrapper {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-t {
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  z-index: 2;
}

.logo-ude {
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  z-index: 2;
}

.logo-works {
  font-weight: 300;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.logo-roof {
  position: absolute;
  top: 2px;
  left: 0;
  height: 2px;
  background-color: var(--accent-green);
  width: 0;
  z-index: 1;
}

/* main.js giriş animasyonu yalnızca ana sayfada; alt sayfalarda çizgi tam genişlik */
body:not(.home-page) .logo-roof {
  width: 100%;
}

/* Custom Buttons */

.btn-custom {
  background-color: transparent;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  border-radius: var(--button-radius);
  transition: all 0.3s ease;
  padding: 10px 24px;
}

.btn-custom:hover {
  background-color: var(--accent-green);
  color: var(--primary-bg);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.btn-custom-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--button-radius);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  padding: 10px 24px;
  min-height: 44px;
}

.btn-custom-outline:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
  background-color: rgba(0, 255, 102, 0.06);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.15);
}

.btn-lang {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  min-width: 2.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-muted);
  line-height: 1.2;
}

.btn-lang:hover {
  color: var(--accent-green);
  border-color: rgba(0, 255, 102, 0.45);
}

.btn-lang.active {
  color: var(--primary-bg);
  background: var(--accent-green);
  border-color: var(--accent-green);
}

/* Sections */

.parallax-section {
  position: relative;
  z-index: 1;
  background-color: transparent;
  width: 100%;
}

/* Container Pointer Events Trick to reach wheel behind */

.container-pointer-events {
  pointer-events: none;
}

.container-pointer-events * {
  pointer-events: auto;
}

/* Hero: terminal + UI composite (CSS + GSAP; no WebGL)
   Katman: #digital-grid (0) < .hero-anim-region (2) < .hero-foreground (10) */

.hero-home {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: clamp(520px, 58vh, 740px);
  overflow-x: clip;
  padding: calc(4.75rem + env(safe-area-inset-top, 0px)) 0 2.5rem;
}

/* Bootstrap min-vh-100 row hero içinde boyutu patlatamasın */
.hero-home .min-vh-100 {
  min-height: 0 !important;
}

/* Değişen kelime sarma yaptığında h1 yüksekliği değişmemeli */
#changing-text {
  display: inline-block;
  white-space: nowrap;
}

.hero-anim-region {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.hero-foreground {
  position: relative;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.coder-animasyon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(520px, 96%);
  max-width: 100%;
  flex-shrink: 0;
  z-index: 1;
  pointer-events: none;
  margin: 0 auto;
}

/*
  Kutular terminalin ÜZERİNDE (z-index) ama başlık+gövde opak ve daha üstte —
  stream alanı kutularla örtüşse bile okunur.
*/
.coder-terminal-slot {
  position: relative;
  z-index: 5;
  isolation: isolate;
}

.hero-terminal--mock {
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.hero-terminal--mock .terminal-header {
  position: relative;
  z-index: 12;
  background: #161b22;
}

.coder-terminal-body {
  position: relative;
  z-index: 12;
  background: #0d1117;
  padding: 12px 14px 14px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.coder-stream-wrap {
  max-height: 132px;
  overflow: hidden;
  margin-bottom: 0.25rem;
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}

.coder-stream {
  min-height: 1.5rem;
}

.coder-line {
  margin-bottom: 0.2rem;
  min-height: 1.15em;
  word-break: break-word;
}

.coder-line--out .coder-line-text {
  color: var(--text-muted);
  opacity: 0.92;
}

/* Terminal “beautify” — VS Code / GitHub Dark benzeri token renkleri */
.coder-terminal-body .coder-line-text {
  font-family: ui-monospace, "Cascadia Code", "Fira Code", Consolas, monospace;
}

.coder-line-text .tok-out-glyph {
  color: var(--accent-green);
  opacity: 0.92;
  margin-right: 0.15em;
}

.coder-line-text .tok-out {
  color: #8b949e;
}

.coder-line-text .tok-out-dim {
  color: #6e7681;
}

.coder-line-text .tok-out-key {
  color: #7ee787;
  font-weight: 500;
}

.coder-line-text .tok-out-num {
  color: #79c0ff;
}

.coder-line-text .tok-out-url {
  color: #a5d6ff;
}

.coder-line-text .tok-sep {
  color: #484f58;
  padding: 0 0.12em;
}

.coder-line-text .tok-cmd {
  color: #ff7b72;
  font-weight: 600;
}

.coder-line-text .tok-subcmd {
  color: #d2a8ff;
}

.coder-line-text .tok-flag {
  color: #79c0ff;
}

.coder-line-text .tok-path {
  color: #ffa657;
}

.coder-line-text .tok-url {
  color: #a5d6ff;
  text-decoration: underline;
  text-decoration-color: rgba(165, 214, 255, 0.35);
  text-underline-offset: 2px;
}

.coder-line-text .tok-str {
  color: #a5d6a5;
}

.coder-line-text .tok-arg {
  color: #c9d1d9;
}

.coder-line-text .tok-num {
  color: #79c0ff;
}

.coder-cursor-row {
  font-size: 0.72rem;
  line-height: 1.3;
}

.coder-stream-cursor {
  color: var(--accent-green);
  animation: hero-cursor-blink 1s step-end infinite;
}

@keyframes hero-cursor-blink {
  50% {
    opacity: 0;
  }
}

.coder-terminal-slot .coder-ui-panel {
  position: absolute;
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(0, 255, 102, 0.22);
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateZ(0);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 -2px 24px rgba(0, 255, 102, 0.06);
  overflow: hidden;
  will-change: transform, opacity;
}

/*
  Hafif “yığın” hissi: z-index + 1–2px margin kaydırma (transform yok — GSAP scale ile çakışmaz).
  Kutular farklı köşelerde; içerik alanları birbirini kapatmaz.
*/
.coder-terminal-slot .coder-ui-panel--a {
  z-index: 6;
}

.coder-terminal-slot .coder-ui-panel--b {
  z-index: 7;
}

.coder-terminal-slot .coder-ui-panel--c {
  z-index: 9;
}

/* Panel A alternatif başlık / gövde (layout’a göre) */
.coder-panel-a-head--cards,
.coder-panel-a-body--tiles {
  display: none;
}

.coder-ui-head--cards {
  justify-content: flex-start;
  gap: 5px;
  padding: 7px 8px;
}

.coder-mini-card {
  width: 22px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.coder-mini-card--accent {
  background: rgba(0, 255, 102, 0.16);
  border-color: rgba(0, 255, 102, 0.25);
}

.coder-mini-card--wide {
  width: 32px;
}

.coder-ui-panel-body--tiles {
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 9px 10px;
}

.coder-tile {
  width: calc(50% - 3px);
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.coder-tile--accent {
  border-color: rgba(0, 255, 102, 0.3);
  background: rgba(0, 255, 102, 0.08);
}

.coder-tile--tall {
  height: 40px;
  width: 100%;
}

.coder-b-body--log {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
}

.coder-log-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
}

.coder-log-t {
  color: rgba(0, 255, 102, 0.85);
  font-family: ui-monospace, monospace;
  min-width: 1.6rem;
}

.coder-log-t--slow {
  color: rgba(255, 200, 80, 0.9);
}

.coder-log-p {
  color: var(--text-muted);
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— index.html — terminalin ALTINDA (slot dışı, akışta) —— */
.coder-ui-panel--file {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  margin-top: 14px;
  width: min(272px, 94%);
  min-width: 220px;
  max-width: 100%;
  border-radius: 11px;
  border-color: rgba(0, 255, 102, 0.28);
  flex-shrink: 0;
  z-index: 6;
  transform-origin: center top;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 -2px 24px rgba(0, 255, 102, 0.06);
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateZ(0);
  overflow: hidden;
}

.coder-file-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: rgba(22, 27, 34, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.coder-page-icon {
  display: flex;
  color: rgba(0, 255, 102, 0.85);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.coder-page-icon-svg {
  width: 100%;
  height: 100%;
}

.coder-file-name {
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.coder-page-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.coder-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: rgba(8, 10, 14, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coder-preview-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.coder-preview-url {
  flex: 1;
  font-size: 0.5rem;
  color: var(--text-muted);
  opacity: 0.88;
  text-align: center;
  font-family: ui-monospace, monospace;
}

.coder-preview-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 5px;
  padding: 5px 9px;
  font-size: 0.52rem;
  background: rgba(12, 14, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.coder-bc-item {
  color: rgba(0, 255, 102, 0.75);
  font-family: ui-monospace, monospace;
}

.coder-bc-item--dim {
  color: var(--text-muted);
  opacity: 0.65;
}

.coder-bc-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.45rem;
}

.coder-preview-layout {
  display: flex;
  gap: 8px;
  padding: 9px 8px 8px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
  min-height: 168px;
}

.coder-preview-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  flex-shrink: 0;
}

.coder-side-skel {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transform-origin: left center;
}

.coder-side-skel--on {
  background: rgba(0, 255, 102, 0.22);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.15);
}

.coder-preview-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coder-preview-hero {
  text-align: center;
  padding: 4px 2px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coder-tw-logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.coder-tw-logo--solo {
  justify-content: center;
  margin: 0 auto;
}

.coder-tw-letter {
  display: inline-block;
  color: var(--text-main);
}

.coder-tw-t {
  animation: coder-tw-letter 2.4s ease-in-out infinite;
}

.coder-tw-w {
  animation: coder-tw-letter 2.4s ease-in-out infinite 0.2s;
}

@keyframes coder-tw-letter {
  0%, 100% {
    color: var(--text-main);
    text-shadow: none;
    transform: translateY(0) scale(1);
  }
  40% {
    color: var(--accent-green);
    text-shadow: 0 0 14px rgba(0, 255, 102, 0.35);
    transform: translateY(-2px) scale(1.05);
  }
}

.coder-preview-tagline {
  margin: 6px 0 0;
  font-size: 0.52rem;
  color: var(--text-muted);
  opacity: 0.85;
  line-height: 1.3;
}

.coder-preview-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.coder-pv-btn {
  height: 14px;
  width: 36px;
  border-radius: 4px;
  background: rgba(0, 255, 102, 0.2);
  border: 1px solid rgba(0, 255, 102, 0.25);
}

.coder-pv-btn--ghost {
  width: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.coder-pv-btn--accent {
  width: 44px;
  background: rgba(0, 255, 102, 0.12);
}

.coder-preview-blocks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.coder-preview-line {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  transform-origin: left center;
}

.coder-preview-line--mid {
  width: 88%;
}

.coder-preview-line--short {
  width: 58%;
}

.coder-preview-grid {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.coder-pv-cell {
  flex: 1;
  height: 22px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.coder-pv-cell--wide {
  flex: 1.4;
  border-color: rgba(0, 255, 102, 0.15);
}

.coder-preview-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 8, 12, 0.9);
}

.coder-foot-pill {
  height: 5px;
  width: 28px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.coder-foot-pill--dim {
  width: 20px;
  opacity: 0.5;
}

.coder-foot-stat {
  margin-left: auto;
  font-size: 0.48rem;
  font-family: ui-monospace, monospace;
  color: rgba(0, 255, 102, 0.65);
}

/*
  Layout: index paneli diğer kutularla ~≤%15 örtüşecek şekilde ayrı kenarlarda.
  A üst-sağ → file alt-sağ sütun; B sol üst → file sağ orta (A altında).
*/
.coder-terminal-slot.layout-0 .coder-ui-panel--a {
  top: 8%;
  left: 100%;
  margin-left: 10px;
  width: min(158px, 33vw);
  min-width: 128px;
  transform-origin: left top;
}

.coder-terminal-slot.layout-0 .coder-ui-panel--b {
  top: 14%;
  right: 100%;
  margin-right: 10px;
  bottom: auto;
  width: min(150px, 31vw);
  min-width: 124px;
  transform-origin: right top;
  border-radius: 10px;
}

.coder-terminal-slot.layout-0 .coder-ui-panel--c {
  bottom: 100%;
  left: auto;
  right: 4px;
  margin-bottom: 7px;
  width: min(118px, 26vw);
  min-width: 96px;
  transform-origin: bottom right;
  border-color: rgba(0, 255, 102, 0.32);
}

.coder-terminal-slot.layout-0 .coder-b-list--queue { display: flex; flex-direction: column; }
.coder-terminal-slot.layout-0 .coder-b-body--log { display: none !important; }

.coder-terminal-slot.layout-1 .coder-ui-panel--a {
  top: 5%;
  right: 100%;
  margin-right: 11px;
  left: auto;
  width: min(158px, 32vw);
  transform-origin: right top;
  border-radius: 12px;
}

.coder-terminal-slot.layout-1 .coder-ui-panel--b {
  bottom: 9%;
  left: 100%;
  margin-left: 10px;
  top: auto;
  right: auto;
  width: min(162px, 33vw);
  transform-origin: left bottom;
}

.coder-terminal-slot.layout-1 .coder-ui-panel--c {
  bottom: 100%;
  left: 8%;
  right: auto;
  margin-bottom: 7px;
  width: min(112px, 26vw);
  transform-origin: bottom left;
}

.coder-terminal-slot.layout-1 .coder-panel-a-head--tabs,
.coder-terminal-slot.layout-1 .coder-panel-a-body--inspector {
  display: none !important;
}

.coder-terminal-slot.layout-1 .coder-panel-a-head--cards,
.coder-terminal-slot.layout-1 .coder-panel-a-body--tiles {
  display: flex !important;
}

.coder-terminal-slot.layout-1 .coder-b-list--queue {
  display: none !important;
}

.coder-terminal-slot.layout-1 .coder-b-body--log {
  display: flex !important;
}

.coder-terminal-slot.layout-2 .coder-ui-panel--a {
  bottom: 7%;
  right: 100%;
  margin-right: 10px;
  left: auto;
  top: auto;
  width: min(156px, 32vw);
  transform-origin: right bottom;
}

.coder-terminal-slot.layout-2 .coder-ui-panel--b {
  top: 7%;
  left: 100%;
  margin-left: 10px;
  bottom: auto;
  right: auto;
  width: min(154px, 32vw);
  transform-origin: left top;
}

.coder-terminal-slot.layout-2 .coder-ui-panel--c {
  bottom: 100%;
  left: auto;
  right: 10%;
  margin-bottom: 8px;
  width: min(120px, 26vw);
  transform-origin: bottom right;
}

.coder-terminal-slot.layout-2 .coder-b-list--queue { display: none !important; }
.coder-terminal-slot.layout-2 .coder-b-body--log { display: flex !important; }

.coder-terminal-slot.layout-3 .coder-ui-panel--a {
  top: 7%;
  left: 100%;
  margin-left: 10px;
  width: min(162px, 33vw);
  transform-origin: left top;
  border-radius: 6px;
}

.coder-terminal-slot.layout-3 .coder-ui-panel--b {
  bottom: 8%;
  right: 100%;
  margin-right: 10px;
  left: auto;
  top: auto;
  width: min(152px, 31vw);
  transform-origin: right bottom;
}

.coder-terminal-slot.layout-3 .coder-ui-panel--c {
  bottom: 100%;
  left: 14%;
  right: auto;
  margin-bottom: 6px;
  width: min(116px, 25vw);
  transform-origin: bottom left;
}

.coder-terminal-slot.layout-3 .coder-panel-a-head--tabs,
.coder-terminal-slot.layout-3 .coder-panel-a-body--inspector {
  display: none !important;
}

.coder-terminal-slot.layout-3 .coder-panel-a-head--cards,
.coder-terminal-slot.layout-3 .coder-panel-a-body--tiles {
  display: flex !important;
}

.coder-terminal-slot.layout-3 .coder-b-list--queue { display: flex; flex-direction: column; }
.coder-terminal-slot.layout-3 .coder-b-body--log { display: none !important; }

/* —— Panel A: sekmeli inspector —— */
.coder-ui-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(18, 22, 30, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.coder-ui-head--tabs {
  flex-wrap: wrap;
  gap: 4px 8px;
}

.coder-tab {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.65;
  padding: 2px 6px;
  border-radius: 4px;
}

.coder-tab--on {
  opacity: 1;
  color: var(--accent-green);
  background: rgba(0, 255, 102, 0.1);
}

.coder-ui-panel-body--inspector {
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
  padding: 8px 9px 10px;
}

.coder-inspector-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.coder-glyph {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(0, 255, 102, 0.35);
  border: 1px solid rgba(0, 255, 102, 0.25);
}

.coder-glyph--dim {
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
}

.coder-inspector-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coder-tag-row {
  margin-top: 2px;
}

.coder-tag {
  font-size: 0.62rem;
  font-family: ui-monospace, monospace;
  color: rgba(0, 255, 102, 0.75);
}

/* —— Panel B: kuyruk listesi —— */
.coder-ui-head--plain {
  gap: 8px;
  padding: 7px 10px;
}

.coder-head-ico {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), rgba(0, 255, 102, 0.3));
  flex-shrink: 0;
}

.coder-head-title {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.coder-queue-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coder-queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-ico {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.q-ico--accent {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.35);
}

.q-line {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  transform-origin: left center;
}

.q-line--mid {
  max-width: 88%;
}

.q-line--short {
  max-width: 62%;
}

/* —— Panel C: sparkline / metrik —— */
.coder-ui-head--badge {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 255, 102, 0.85);
  padding: 5px 8px;
  background: rgba(0, 255, 102, 0.08);
  border-bottom: 1px solid rgba(0, 255, 102, 0.15);
  justify-content: center;
}

.coder-ui-panel-body--chart {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coder-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.coder-stat-val {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--accent-green);
}

.coder-stat-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.8;
}

.coder-spark-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 36px;
  padding: 0 2px;
}

.coder-spark-bar {
  flex: 1;
  max-width: 10px;
  height: var(--bar-h, 50%);
  min-height: 20%;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, rgba(0, 255, 102, 0.55), rgba(0, 255, 102, 0.12));
  transform-origin: bottom center;
}

.coder-ui-panel-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.coder-ui-skel {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(0, 255, 102, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  transform-origin: left center;
}

.coder-ui-skel--lg {
  width: 100%;
}

.coder-ui-skel--mid {
  width: 82%;
}

.coder-ui-skel--sm {
  width: 58%;
}

.coder-ui-skel--xs {
  width: 72%;
  height: 5px;
}

@media (max-width: 991.98px) {
  .hero-anim-region {
    width: 55%;
  }

  .coder-animasyon {
    width: min(320px, 92%);
  }

  .coder-terminal-slot.layout-0 .coder-ui-panel--a {
    width: min(136px, 31vw);
  }

  .coder-terminal-slot.layout-0 .coder-ui-panel--b {
    width: min(126px, 30vw);
  }

  .coder-terminal-slot.layout-0 .coder-ui-panel--c {
    width: min(100px, 25vw);
    right: 2px;
  }

}

@media (max-width: 575.98px) {
  .hero-home {
    min-height: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 3rem;
  }

  .hero-anim-region {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    top: auto;
    right: auto;
    left: auto;
    order: 2;
    margin-top: 1.25rem;
    align-items: center;
    justify-content: center;
    padding-top: 0;
  }

  .hero-foreground {
    order: 1;
    width: 100%;
  }

  .hero-home .min-vh-100 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .coder-animasyon {
    width: min(300px, 88vw);
  }

  .coder-stream-wrap {
    max-height: 100px;
  }

  .coder-terminal-slot .coder-ui-panel--c {
    display: none !important;
  }

  .coder-ui-panel--file {
    width: min(260px, 92vw);
    min-width: 0;
    margin-top: 10px;
  }

  .isometric-box {
    height: 220px;
  }
}

@media (min-width: 576px) {
  .hero-foreground,
  .hero-anim-region {
    order: 0;
  }
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 15, 0.92);
  margin-top: auto;
}

.logo-wrapper--footer {
  font-size: 1.15rem;
}

.terminal-input,
.form-select.terminal-input {
  font-size: 1rem;
  min-height: 44px;
}

.contact-form-terminal textarea.terminal-input {
  min-height: 6rem;
}

.terminal-form-hint {
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .coder-stream-cursor {
    animation: none;
    opacity: 1;
  }

  .coder-tw-t,
  .coder-tw-w {
    animation: none;
  }
}

/* Solution Cards */

.solution-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-base);
  transition: transform 0.3s, border-color 0.3s;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 102, 0.3);
}

/* Portfolio Visuals */

.isometric-box {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(0,0,0,0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-base);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s;
}

.blinking-cursor {
  color: var(--accent-green);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

.isometric-box:hover {
  border-color: var(--accent-green);
}

.tech-overlay {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.5;
}

.stack-list li {
  margin-bottom: 0.5rem;
}

/* Projeler — çift marquee */

.projeler-section {
  overflow: hidden;
}

.projeler-marquee {
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding-block: 0.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.projeler-marquee:last-child {
  margin-bottom: 0;
}

.projeler-marquee-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: projeler-marquee-right 42s linear infinite;
  will-change: transform;
}

.projeler-marquee--left .projeler-marquee-track {
  animation-name: projeler-marquee-left;
}

.projeler-marquee:hover .projeler-marquee-track {
  animation-play-state: paused;
}

/* JS-driven marquee: auto-scroll + drag (see marquee-scroll-drag.js) */
.projeler-marquee.projeler-marquee--draggable {
  cursor: grab;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

@media (pointer: coarse) {
  .projeler-marquee.projeler-marquee--draggable {
    touch-action: none;
  }
}

.projeler-marquee.projeler-marquee--draggable img,
.projeler-marquee.projeler-marquee--draggable a {
  -webkit-user-drag: none;
  user-drag: none;
}

.projeler-marquee.projeler-marquee--draggable.is-marquee-dragging {
  cursor: grabbing;
}

.projeler-marquee[data-marquee-active="1"] .projeler-marquee-track {
  animation: none;
}

@keyframes projeler-marquee-right {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes projeler-marquee-left {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.projeler-marquee-group {
  display: flex;
  gap: 1.25rem;
  flex-shrink: 0;
}

.projeler-card {
  flex: 0 0 auto;
  width: min(600px, 92vw);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-base);
  overflow: hidden;
  color: var(--text-main);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  transform: translateZ(0);
}

.projeler-card:hover {
  border-color: rgba(0, 255, 102, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.projeler-card-media {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.projeler-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projeler-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 1rem 0.75rem;
}

.projeler-card-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-green);
  opacity: 0.9;
}

.projeler-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Proje detay — galeri */

.project-detail-hero-img {
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.project-detail-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Galeri bento grid (masaüstü / tablet) */
.project-detail-story-gallery .project-gallery-bento {
  margin-top: 0.25rem;
}

/* Mobilde bento gizle, v2 göster */
.project-gallery-bento {
  display: none;
}

.project-gallery-v2 {
  display: flex;
}

@media (min-width: 576px) {
  .project-gallery-bento {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(80px, 10.5vw);
  }

  .project-gallery-v2 {
    display: none;
  }
}

.project-gallery-cell {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--border-radius-base) - 2px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
  text-align: left;
}

.project-gallery-cell:hover,
.project-gallery-cell:focus-visible {
  border-color: rgba(0, 255, 102, 0.45);
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 255, 102, 0.2);
}

.project-gallery-cell--a {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
}

.project-gallery-cell--b {
  grid-column: 4 / 7;
  grid-row: 1 / 2;
}

.project-gallery-cell--c {
  grid-column: 4 / 6;
  grid-row: 2 / 4;
}

.project-gallery-cell--d {
  grid-column: 6 / 7;
  grid-row: 2 / 4;
}

.project-gallery-cell--e {
  grid-column: 1 / 4;
  grid-row: 3 / 4;
}

.project-gallery-cell-media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  overflow: hidden;
}

.project-gallery-cell-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
}

@media (prefers-reduced-motion: no-preference) {
  .project-gallery-cell-media img {
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .project-gallery-cell:hover .project-gallery-cell-media img {
    transform: scale(1.07) rotate(1.25deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .project-gallery-cell:focus-visible .project-gallery-cell-media img {
    transform: scale(1.07) rotate(1.25deg);
  }
}

@media (max-width: 991.98px) {
  .project-gallery-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(110px, 26vw);
  }

  .project-gallery-cell--a {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
  }

  .project-gallery-cell--b {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .project-gallery-cell--c {
    grid-column: 2 / 3;
    grid-row: 3 / 5;
  }

  .project-gallery-cell--d {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
  }

  .project-gallery-cell--e {
    grid-column: 1 / -1;
    grid-row: 5 / 6;
  }
}

/* Galeri v2: featured + thumbnail strip (mobil) */
.project-gallery-v2 {
  flex-direction: column;
  gap: 0.5rem;
}

/* Featured büyük görsel */
.project-gallery-featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
}

.project-gallery-featured-media {
  display: block;
  width: 100%;
  height: 100%;
}

.project-gallery-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
}

@media (prefers-reduced-motion: no-preference) {
  .project-gallery-featured-media img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.25s ease;
  }
}

/* Zoom / aç butonu (featured üstünde) */
.project-gallery-open-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-family: var(--font-heading, sans-serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  z-index: 2;
}

.project-gallery-open-btn:hover,
.project-gallery-open-btn:focus-visible {
  background: rgba(0, 255, 102, 0.18);
  border-color: rgba(0, 255, 102, 0.55);
  color: #fff;
  outline: none;
  transform: scale(1.04);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .project-gallery-featured:hover .project-gallery-featured-media img {
    transform: scale(1.04);
  }
}

/* Thumbnail strip */
.project-gallery-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 3px;
}

.project-gallery-strip::-webkit-scrollbar {
  display: none;
}

.project-gallery-thumb {
  flex: 0 0 100px;
  height: 66px;
  overflow: hidden;
  border-radius: calc(var(--border-radius-base) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  scroll-snap-align: start;
  display: block;
  flex-shrink: 0;
}

.project-gallery-thumb:hover,
.project-gallery-thumb:focus-visible {
  border-color: rgba(0, 255, 102, 0.45);
  outline: none;
}

.project-gallery-thumb.is-active {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 1px rgba(0, 255, 102, 0.3);
}

.project-gallery-thumb-media {
  display: block;
  width: 100%;
  height: 100%;
}

.project-gallery-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
}

@media (prefers-reduced-motion: no-preference) {
  .project-gallery-thumb-media img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .project-gallery-thumb:hover .project-gallery-thumb-media img {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .project-gallery-thumb:focus-visible .project-gallery-thumb-media img {
    transform: scale(1.08);
  }
}

@media (max-width: 575.98px) {
  .project-gallery-thumb {
    flex: 0 0 80px;
    height: 54px;
  }

  .project-gallery-open-btn {
    font-size: 0.68rem;
    padding: 5px 9px 5px 7px;
    bottom: 8px;
    right: 8px;
  }
}

.project-detail-cta .project-detail-cta-inner {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.project-tech-list li {
  margin-bottom: 0.4rem;
}

/* Proje galeri lightbox (modal) */
#projectGalleryModal .modal-dialog.project-gallery-modal-dialog {
  max-width: min(96vw, 1100px);
  margin: 1rem auto;
}

#projectGalleryModal .project-gallery-modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#projectGalleryModal .project-gallery-modal-body {
  min-height: min(50vh, 420px);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-gallery-lightbox-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.project-gallery-lightbox-img-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: var(--border-radius-base);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.project-gallery-lightbox-img {
  display: block;
  max-height: min(78vh, 820px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-base);
}

.project-gallery-pixel-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  display: none;
  border-radius: var(--border-radius-base);
}

.project-gallery-lightbox-nav,
.project-gallery-lightbox-close {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(15, 18, 27, 0.92);
  color: rgba(255, 255, 255, 0.88);
  transform: translateZ(0);
  transition:
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.project-gallery-lightbox-nav svg,
.project-gallery-lightbox-close svg {
  flex-shrink: 0;
  pointer-events: none;
}

.project-gallery-lightbox-nav {
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
}

.project-gallery-lightbox-nav--prev {
  left: 10px;
}

.project-gallery-lightbox-nav--next {
  right: 10px;
}

.project-gallery-lightbox-close {
  width: 44px;
  height: 44px;
  top: 10px;
  right: 10px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .project-gallery-lightbox-nav:hover,
  .project-gallery-lightbox-nav:focus-visible,
  .project-gallery-lightbox-close:hover,
  .project-gallery-lightbox-close:focus-visible {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow:
      0 0 0 1px rgba(0, 255, 102, 0.35),
      0 0 22px rgba(0, 255, 102, 0.4),
      0 0 42px rgba(0, 255, 102, 0.12);
    outline: none;
  }

  .project-gallery-lightbox-nav:hover,
  .project-gallery-lightbox-nav:focus-visible {
    transform: translateY(-50%) scale(1.04);
  }

  .project-gallery-lightbox-close:hover,
  .project-gallery-lightbox-close:focus-visible {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-gallery-lightbox-nav:hover,
  .project-gallery-lightbox-nav:focus-visible,
  .project-gallery-lightbox-close:hover,
  .project-gallery-lightbox-close:focus-visible {
    border-color: var(--accent-green);
    color: var(--accent-green);
    outline: none;
  }
}

.project-gallery-lightbox-nav:focus-visible,
.project-gallery-lightbox-close:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .project-gallery-lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .project-gallery-lightbox-nav--prev {
    left: 6px;
  }

  .project-gallery-lightbox-nav--next {
    right: 6px;
  }

  .project-gallery-lightbox-close {
    width: 40px;
    height: 40px;
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projeler-marquee-track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .projeler-marquee-group[aria-hidden="true"] {
    display: none;
  }

  .projeler-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Terminal Contact Form */

.terminal-window {
  background: #0D1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-base);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.terminal-header {
  background: #161B22;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-mac {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.btn-mac.close {
  background: #FF5F56;
}

.btn-mac.minimize {
  background: #FFBD2E;
}

.btn-mac.maximize {
  background: #27C93F;
}

.terminal-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 30px;
}

.form-container .terminal-input-group {
  margin-bottom: 1.2rem;
}

.command-line {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0;
}

.command-line-text {
  margin-left: 10px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.55;
}

/* Eski .typing: yalnızca metin (iletişim vb.); yanıp sönen çubuk .terminal-cursor */
.typing {
  margin-left: 10px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.55;
}

.terminal-cursor {
  display: inline-block;
  width: 0.45ch;
  min-height: 1em;
  margin-left: 2px;
  border-right: 2px solid var(--accent-green);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

.command-line--prompt-only .terminal-cursor {
  margin-left: 6px;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-cursor {
    animation: none;
    border-color: var(--accent-green);
  }
}

.terminal-input-group label {
  font-size: 0.9rem;
}

.terminal-input {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--accent-green) !important;
  border-radius: 0;
  padding: 5px 0;
  box-shadow: none !important;
  font-family: monospace;
}

.terminal-input:focus {
  border-color: var(--accent-green) !important;
}

.terminal-input::placeholder {
  color: rgba(255,255,255,0.1);
}

.terminal-multi-hint {
  font-size: 0.72rem;
  color: rgba(229, 231, 235, 0.5);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  line-height: 1.45;
  max-width: 100%;
  text-align: left;
}

.terminal-multi-toggle {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.88);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.terminal-multi-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 255, 102, 0.25);
  color: var(--text-main);
}

.terminal-multi-toggle:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.terminal-multi-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.terminal-multi-toggle-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.terminal-multi-toggle-icon {
  flex-shrink: 0;
  font-size: 0.65rem;
  line-height: 1.2;
  margin-top: 0.2rem;
  color: var(--accent-green);
  transition: transform 0.2s ease;
}

.terminal-multi-toggle[aria-expanded="false"] .terminal-multi-toggle-icon {
  transform: rotate(-90deg);
}

.terminal-multi-toggle .terminal-multi-hint {
  margin-top: 0.35rem;
  margin-bottom: 0;
  display: block;
}

.terminal-multi-collapse .terminal-multi-box {
  margin-top: 0.25rem;
}

.terminal-multi-box {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0 0.65rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem;
}

.terminal-check {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  cursor: pointer;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0.55rem 0.55rem;
  line-height: 1.35;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--accent-green);
  border-radius: 2px;
  cursor: pointer;
}

.terminal-check-text {
  color: rgba(0, 255, 102, 0.82);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.terminal-check:hover .terminal-check-text {
  color: var(--accent-green);
}

.terminal-check input:checked + .terminal-check-text {
  color: var(--accent-green);
  opacity: 1;
  font-weight: 600;
}

.terminal-consent-row .terminal-check {
  grid-template-columns: 1.1rem 1fr;
  padding: 0.45rem 0.45rem;
}

.terminal-consent-link {
  color: rgba(229, 231, 235, 0.75);
  text-decoration: underline;
  text-decoration-color: rgba(229, 231, 235, 0.25);
  text-underline-offset: 2px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
}

.terminal-consent-link:hover {
  color: var(--accent-green);
  text-decoration-color: rgba(0, 255, 102, 0.35);
}

.tw-terminal-sending {
  margin-top: 0.35rem;
  min-height: 2.5rem;
}

/* Gönder: form gizli; gönderim katmanı içerik yüksekliğinde (altta boş terminal alanı yok) */
.form-container.tw-form-container--sending {
  position: relative;
}

.form-container .tw-terminal-sending.tw-terminal-sending--active {
  position: relative;
  z-index: 3;
  margin-top: 0;
  min-height: 0;
  width: 100%;
  padding: 0.15rem 0 0.35rem;
  background: var(--primary-bg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.terminal-window.tw-terminal-compact-body-phase .terminal-body {
  padding: 14px 16px 18px;
}

.form-container.tw-terminal-success-phase .command-line {
  margin-bottom: 0.65rem;
}

.form-container.tw-terminal-success-phase .contact-success-stream {
  padding-bottom: 0.45rem;
}

.form-container.tw-terminal-success-phase .contact-success-card {
  margin-top: 0.5rem !important;
}

@media (prefers-reduced-motion: reduce) {
  .form-container .tw-terminal-sending.tw-terminal-sending--active {
    transition: none !important;
  }
}

.contact-success-stream {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  color: rgba(0, 255, 102, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .tw-terminal-sending,
  .contact-success {
    transition: none !important;
  }
}

.contact-success-line {
  min-height: 1.2em;
  word-break: break-word;
}

.contact-success-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px 12px 14px;
}

.terminal-modal-content {
  background: #0D1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-modal-header,
.terminal-modal-footer {
  background: #161B22;
  border: none;
}

.terminal-modal-body {
  padding: 0;
}

.terminal-modal-scroll {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 16px 18px;
  color: rgba(229, 231, 235, 0.9);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* KVKK modal açıkken sayfayı kilitleme */
body.kvkk-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

body.kvkk-open.modal-open {
  overflow: auto !important;
}

.terminal-modal .modal-dialog {
  pointer-events: auto;
}

.btn-terminal {
  font-family: monospace;
  font-weight: bold;
}

/* Özel neon imleç (cursor-effects.js) */
html.tudeworks-cursor-on,
html.tudeworks-cursor-on * {
  cursor: none !important;
}

html.tudeworks-cursor-on input[type="text"],
html.tudeworks-cursor-on input[type="email"],
html.tudeworks-cursor-on input[type="tel"],
html.tudeworks-cursor-on input[type="url"],
html.tudeworks-cursor-on input[type="search"],
html.tudeworks-cursor-on input[type="password"],
html.tudeworks-cursor-on input:not([type]),
html.tudeworks-cursor-on textarea,
html.tudeworks-cursor-on select,
html.tudeworks-cursor-on [contenteditable="true"] {
  cursor: text !important;
}

/* KVKK: sistem imleci; neon canvas çizilmez (cursor-effects.js overNativeZone) */
html.tudeworks-cursor-on #kvkkModal,
html.tudeworks-cursor-on #kvkkModal * {
  cursor: auto !important;
}

/* İletişim (sayfa + popup): neon imleç — cursor-effects.js bu alanlarda çizmeye devam eder */
html.tudeworks-cursor-on #contact,
html.tudeworks-cursor-on #contact *,
html.tudeworks-cursor-on #contactModal.show,
html.tudeworks-cursor-on #contactModal.show *,
html.tudeworks-cursor-on #tw-df-modal-contact.show,
html.tudeworks-cursor-on #tw-df-modal-contact.show * {
  cursor: none !important;
}

html.tudeworks-cursor-on #contact button,
html.tudeworks-cursor-on #contact [role="button"],
html.tudeworks-cursor-on #contact .terminal-check,
html.tudeworks-cursor-on #contactModal.show button,
html.tudeworks-cursor-on #contactModal.show [role="button"],
html.tudeworks-cursor-on #contactModal.show .terminal-check,
html.tudeworks-cursor-on #tw-df-modal-contact.show button,
html.tudeworks-cursor-on #tw-df-modal-contact.show [role="button"],
html.tudeworks-cursor-on #tw-df-modal-contact.show .terminal-check {
  cursor: pointer !important;
}

/* Proje galeri lightbox: neon imleç (global canvas üstte); yerel imleç gizli */
html.tudeworks-cursor-on #projectGalleryModal.show,
html.tudeworks-cursor-on #projectGalleryModal.show * {
  cursor: none !important;
}

/* Diğer Bootstrap modalları (iletişim modalları hariç — yukarıda neon) */
html.tudeworks-cursor-on .modal.show:not(#projectGalleryModal):not(#contactModal):not(#tw-df-modal-contact),
html.tudeworks-cursor-on .modal.show:not(#projectGalleryModal):not(#contactModal):not(#tw-df-modal-contact) * {
  cursor: auto !important;
}

html.tudeworks-cursor-on .modal.show:not(#projectGalleryModal):not(#contactModal):not(#tw-df-modal-contact) button,
html.tudeworks-cursor-on .modal.show:not(#projectGalleryModal):not(#contactModal):not(#tw-df-modal-contact) [role="button"] {
  cursor: pointer !important;
}

/* Backdrop: galeri / iletişim popup neon; diğer modallarda sistem imleci */
html.tudeworks-cursor-on body.modal-open .modal-backdrop {
  cursor: auto !important;
}

html.tudeworks-cursor-on body.modal-open:has(#projectGalleryModal.show) .modal-backdrop {
  cursor: none !important;
}

html.tudeworks-cursor-on body.modal-open:has(#contactModal.show) .modal-backdrop,
html.tudeworks-cursor-on body.modal-open:has(#tw-df-modal-contact.show) .modal-backdrop {
  cursor: none !important;
}

html.tudeworks-cursor-on #contact input[type="text"],
html.tudeworks-cursor-on #contact input[type="email"],
html.tudeworks-cursor-on #contact input[type="tel"],
html.tudeworks-cursor-on #contact input[type="url"],
html.tudeworks-cursor-on #contact input[type="search"],
html.tudeworks-cursor-on #contact input[type="password"],
html.tudeworks-cursor-on #contact input:not([type]),
html.tudeworks-cursor-on #contact textarea,
html.tudeworks-cursor-on #contact select,
html.tudeworks-cursor-on #contactModal input[type="text"],
html.tudeworks-cursor-on #contactModal input[type="email"],
html.tudeworks-cursor-on #contactModal input[type="tel"],
html.tudeworks-cursor-on #contactModal input[type="url"],
html.tudeworks-cursor-on #contactModal input[type="search"],
html.tudeworks-cursor-on #contactModal input[type="password"],
html.tudeworks-cursor-on #contactModal input:not([type]),
html.tudeworks-cursor-on #contactModal textarea,
html.tudeworks-cursor-on #contactModal select,
html.tudeworks-cursor-on #tw-df-modal-contact input[type="text"],
html.tudeworks-cursor-on #tw-df-modal-contact input[type="email"],
html.tudeworks-cursor-on #tw-df-modal-contact input[type="tel"],
html.tudeworks-cursor-on #tw-df-modal-contact input[type="url"],
html.tudeworks-cursor-on #tw-df-modal-contact input[type="search"],
html.tudeworks-cursor-on #tw-df-modal-contact input[type="password"],
html.tudeworks-cursor-on #tw-df-modal-contact input:not([type]),
html.tudeworks-cursor-on #tw-df-modal-contact textarea,
html.tudeworks-cursor-on #tw-df-modal-contact select,
html.tudeworks-cursor-on #kvkkModal textarea {
  cursor: text !important;
}

/* —— Yapım aşaması (wip.html) —— */
.wip-float-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wip-float-terminal {
  position: absolute;
  width: min(220px, 42vw);
  opacity: 0.22;
  will-change: transform;
}

.wip-float-terminal .terminal-window {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 255, 102, 0.12);
}

.wip-float-terminal .terminal-header {
  padding: 6px 10px;
}

.wip-float-terminal .btn-mac {
  width: 8px;
  height: 8px;
  margin-right: 5px;
}

.wip-float-terminal .terminal-title {
  font-size: 0.62rem;
  margin-left: 0;
  margin-right: 0;
}

.wip-float-terminal .terminal-body {
  padding: 0.5rem 0.65rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.wip-float-terminal .wip-float-line {
  color: var(--accent-green);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wip-float-terminal:nth-child(odd) {
  animation: wip-drift 22s ease-in-out infinite alternate;
}

.wip-float-terminal:nth-child(even) {
  animation: wip-drift-alt 26s ease-in-out infinite alternate;
}

.wip-float-terminal:nth-child(1) { left: 4%; top: 14%; animation-delay: 0s; }
.wip-float-terminal:nth-child(2) { left: 72%; top: 10%; animation-delay: -4s; }
.wip-float-terminal:nth-child(3) { left: 12%; top: 58%; animation-delay: -2s; }
.wip-float-terminal:nth-child(4) { left: 76%; top: 48%; animation-delay: -7s; }
.wip-float-terminal:nth-child(5) { left: 38%; top: 24%; animation-delay: -11s; }
.wip-float-terminal:nth-child(6) { left: 52%; top: 68%; animation-delay: -5s; }
.wip-float-terminal:nth-child(7) { left: 6%; top: 40%; animation-delay: -9s; }
.wip-float-terminal:nth-child(8) { left: 82%; top: 30%; animation-delay: -13s; }
.wip-float-terminal:nth-child(9) { left: 28%; top: 76%; animation-delay: -6s; }
.wip-float-terminal:nth-child(10) { left: 58%; top: 8%; animation-delay: -15s; }

@keyframes wip-drift {
  0% {
    transform: translate(0, 0) rotate(-2deg);
  }
  100% {
    transform: translate(32px, -40px) rotate(2.5deg);
  }
}

@keyframes wip-drift-alt {
  0% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  100% {
    transform: translate(-28px, 36px) rotate(-2deg);
  }
}

.wip-main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6rem 1rem 3rem;
}

.wip-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  background: rgba(15, 18, 27, 0.95);
  border: 1px solid rgba(0, 255, 102, 0.14);
  border-radius: var(--border-radius-base);
  transform: translateZ(0);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
}

.wip-card .btn {
  min-height: 44px;
}

@media (max-width: 575.98px) {
  .wip-float-terminal {
    opacity: 0.14;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wip-float-terminal {
    animation: none !important;
    opacity: 0.16;
  }
}

/* —— 404 (404.html) —— tek ekran 100vh + 3D rakamlar —— */
.page-404-body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@supports (height: 100dvh) {
  .page-404-body {
    min-height: 100dvh;
  }
}

.page-404-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 3.75rem;
}

.page-404 {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  overflow: visible;
}

.notfound-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.notfound-hero {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  min-height: 0;
}

.notfound-copy-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  max-width: 34rem;
}

.notfound-code-3d-wrap {
  perspective: 720px;
  perspective-origin: 50% 42%;
  transform-style: preserve-3d;
  margin: 0.25rem 0 1.85rem;
  animation: notfound-code-glitch 7.5s steps(1, end) infinite;
}

.notfound-code-3d {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 8.5vw, 3.75rem);
  transform-style: preserve-3d;
}

.notfound-digit {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent-green);
  letter-spacing: -0.06em;
  transform-style: preserve-3d;
  backface-visibility: visible;
  -webkit-text-stroke: 3px rgba(0, 255, 102, 0.5);
  /* Ekstrüzyon (2× ölçek): ön yüz neon, gövde koyulaşan katmanlar */
  text-shadow:
    0 0 6px rgba(0, 255, 102, 0.95),
    0 2px 0 #5dff9e,
    0 4px 0 #00f06e,
    0 6px 0 #00e166,
    0 8px 0 #00d25e,
    0 10px 0 #00c356,
    0 12px 0 #00b44e,
    0 14px 0 #00a546,
    0 16px 0 #00963e,
    0 18px 0 #008736,
    0 20px 0 #00782e,
    0 22px 0 #006926,
    0 24px 0 #005a1e,
    0 26px 0 #004b18,
    0 28px 0 #003c12,
    0 30px 0 #002d0c,
    0 32px 0 #001e08,
    0 34px 52px rgba(0, 255, 102, 0.5),
    0 44px 84px rgba(0, 0, 0, 0.65),
    0 0 96px rgba(0, 255, 102, 0.38);
  font-size: clamp(7rem, min(42vw, 52vh), 22rem);
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
}

@keyframes notfound-code-glitch {
  0%,
  100% {
    transform: translate3d(0, 0, 0) skew(0deg, 0deg);
    filter: none;
  }
  1.8% {
    transform: translate3d(-2px, 1px, 0) skew(-2deg, 0.6deg);
    filter: hue-rotate(28deg) saturate(1.12) contrast(1.04);
  }
  2.2% {
    transform: translate3d(2px, -1px, 0) skew(1.5deg, -1deg);
    filter: hue-rotate(-14deg) contrast(1.06);
  }
  2.6% {
    transform: translate3d(-1px, 1px, 0) skew(-0.8deg, 0deg);
  }
  3% {
    transform: translate3d(0, 0, 0) skew(0deg, 0deg);
    filter: none;
  }
  41% {
    transform: translate3d(0, 0, 0);
  }
  41.4% {
    transform: translate3d(1px, 0, 0) skew(2deg, 0deg);
    filter: saturate(1.1);
  }
  41.8% {
    transform: translate3d(-2px, 1px, 0) skew(-1.5deg, 1deg);
  }
  42.2% {
    transform: translate3d(0, 0, 0) skew(0deg, 0deg);
    filter: none;
  }
  68% {
    transform: translate3d(0, 0, 0);
  }
  68.25% {
    transform: translate3d(3px, -1px, 0) skew(-2.5deg, 0.5deg);
    filter: hue-rotate(42deg) contrast(1.05);
    opacity: 0.97;
  }
  68.5% {
    transform: translate3d(-2px, 2px, 0) skew(1.2deg, -1.2deg);
    opacity: 1;
  }
  68.85% {
    transform: translate3d(1px, 0, 0) skew(-0.5deg, 0deg);
  }
  69.2% {
    transform: translate3d(0, 0, 0) skew(0deg, 0deg);
    filter: none;
    opacity: 1;
  }
  88% {
    transform: translate3d(0, 0, 0);
  }
  88.35% {
    transform: translate3d(-2px, -1px, 0) skew(1.8deg, -0.8deg);
    filter: hue-rotate(-22deg) saturate(1.08);
  }
  88.7% {
    transform: translate3d(2px, 1px, 0) skew(-1.2deg, 0.8deg);
  }
  89.1% {
    transform: translate3d(0, 0, 0) skew(0deg, 0deg);
    filter: none;
  }
}

.notfound-digit--1 {
  animation: notfound-3d-d1 7s ease-in-out infinite;
}

.notfound-digit--2 {
  animation: notfound-3d-d2 8.2s ease-in-out infinite;
  animation-delay: 0.4s;
}

.notfound-digit--3 {
  animation: notfound-3d-d3 7.6s ease-in-out infinite;
  animation-delay: 0.75s;
}

@keyframes notfound-3d-d1 {
  0%,
  100% {
    transform: perspective(560px) rotateX(4deg) rotateY(-14deg) rotateZ(-1deg) translateZ(0) scale(1);
  }
  50% {
    transform: perspective(560px) rotateX(-2deg) rotateY(7deg) rotateZ(0.5deg) translateZ(28px) scale(1.008);
  }
}

@keyframes notfound-3d-d2 {
  0%,
  100% {
    transform: perspective(560px) rotateX(-5deg) rotateY(5deg) rotateZ(0deg) translateZ(6px) scale(1);
  }
  50% {
    transform: perspective(560px) rotateX(5deg) rotateY(-9deg) rotateZ(-0.5deg) translateZ(32px) scale(1.01);
  }
}

@keyframes notfound-3d-d3 {
  0%,
  100% {
    transform: perspective(560px) rotateX(3deg) rotateY(12deg) rotateZ(1deg) translateZ(0) scale(1);
  }
  50% {
    transform: perspective(560px) rotateX(-3deg) rotateY(-6deg) rotateZ(-1deg) translateZ(30px) scale(1.008);
  }
}

.notfound-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.88rem, 2.4vw, 1.05rem);
  line-height: 1.35;
  margin: 0;
  max-width: 34rem;
}

.notfound-hint {
  color: var(--text-muted);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  line-height: 1.35;
  margin: 0;
  opacity: 0.9;
  max-width: 32rem;
}

.notfound-terminal {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(13, 17, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-base);
  padding: 0.55rem 0.75rem;
  margin: 0 auto;
  max-width: 100%;
  width: min(100%, 26rem);
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.notfound-terminal-line {
  margin-bottom: 0.2rem;
}

.notfound-terminal .prompt {
  color: var(--accent-green);
}

.notfound-terminal .cmd {
  color: var(--text-main);
  word-break: break-all;
}

.notfound-terminal .err {
  color: #ff7b72;
  margin-top: 0.35rem;
}

.notfound-cursor {
  display: inline-block;
  width: 0.5ch;
  border-right: 2px solid var(--accent-green);
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

.page-404 .notfound-actions {
  margin-top: 0;
}

.page-404 .notfound-actions .btn {
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

.page-404-body .site-footer--compact {
  flex-shrink: 0;
  margin-top: 0;
}

.page-404-body .site-footer--compact .logo-wrapper--footer {
  font-size: 1rem;
}

.page-404-body .notfound-footer-copy {
  font-size: 0.7rem;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .notfound-code-3d-wrap {
    animation: none;
  }

  .notfound-digit--1,
  .notfound-digit--2,
  .notfound-digit--3 {
    animation: none;
  }

  .notfound-digit--1 {
    transform: perspective(560px) rotateX(4deg) rotateY(-12deg) translateZ(8px);
  }

  .notfound-digit--2 {
    transform: perspective(560px) rotateX(-4deg) rotateY(5deg) translateZ(12px);
  }

  .notfound-digit--3 {
    transform: perspective(560px) rotateX(3deg) rotateY(10deg) translateZ(8px);
  }

  .notfound-cursor {
    animation: none;
    border-color: transparent;
  }
}

/* WIP: tek ekran + terminal içerik */
.page-wip-body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@supports (height: 100dvh) {
  .page-wip-body {
    min-height: 100dvh;
  }
}

.page-wip-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 3.75rem;
}

.page-wip-body .wip-main {
  flex: 1;
  min-height: 0;
  padding: 0.35rem 0.65rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wip-terminal-scroll {
  width: 100%;
  max-width: 640px;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.wip-terminal-panel .terminal-body {
  padding: 0.85rem 1rem 1rem;
  line-height: 1.6;
}

.wip-terminal-panel .terminal-body .command-line {
  margin-bottom: 0.85rem;
}

.subpage-terminal-line {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.72rem, 2.1vw, 0.82rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  text-align: left;
}

.wip-terminal-actions {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wip-terminal-actions .btn {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  min-height: 40px;
}

.page-wip-body .site-footer--compact {
  flex-shrink: 0;
}

/* CMS: WIP içeriği #smooth-wrapper / #smooth-content içinde; statik wip.html ile aynı flex yüksekliği */
.page-wip-body #smooth-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.page-wip-body #smooth-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.page-wip-body #smooth-content > .page-wip-shell {
  flex: 1 1 auto;
  min-height: 0;
}

/* 404: metin bloğu tam terminal penceresi */
.notfound-main-terminal {
  width: min(100%, 28rem);
  margin: 0 auto;
  text-align: left;
}

.notfound-main-terminal .terminal-body {
  padding: 0.85rem 1rem 1rem;
  line-height: 1.6;
}

.notfound-main-terminal .command-line {
  margin-bottom: 0.65rem;
}

.notfound-main-terminal .notfound-actions {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.notfound-main-terminal .notfound-actions .btn {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
}

.notfound-main-terminal .terminal-body .err {
  color: #ff7b72;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.72rem, 2.1vw, 0.82rem);
  line-height: 1.45;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* İletişim popup (404 / WIP) */
#contactModal .modal-dialog {
  max-width: min(960px, 100vw - 1rem);
}

/* KVKK, iletişim modalının üstünde kalsın (üst üste açılım) */
#kvkkModal.modal.show {
  z-index: 1075;
}

body.modal-open .modal-backdrop + .modal-backdrop {
  z-index: 1070;
}

/* 404 / WIP — düz tipografi içerik */
.subpage-article {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.subpage-article h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.subpage-article h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.8vw, 1.22rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.subpage-article p {
  color: var(--text-muted);
  font-size: clamp(0.94rem, 2.4vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: 0;
  text-wrap: pretty;
}

.subpage-article p:last-of-type {
  margin-bottom: 0;
}

.subpage-article .subpage-actions {
  margin-top: 0.25rem;
}

#contactModal .terminal-window {
  box-shadow: none;
  border-radius: 0 0 12px 12px;
}

#contactModal .terminal-body {
  max-height: min(68vh, 540px);
  overflow-y: auto;
  padding: 1rem 1.1rem 1.25rem;
}

#contactModal .terminal-body .form-container {
  margin-top: 0.75rem;
}

@media (max-width: 575.98px) {
  #contactModal .terminal-body {
    max-height: min(72vh, 480px);
    padding: 0.75rem 0.75rem 1rem;
  }

  #contactModal .terminal-multi-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Proje listesi (/projects) — site dilinde (koyu zemin, accent çizgiler) ——— */

.projects-list-page .projects-list-container {
  max-width: min(1200px, 100%);
}

.projects-list-page #smooth-content {
  padding-top: 76px;
}

.projects-list-page-hero {
  padding-top: 0.5rem;
}

.projects-list-page-hero__title {
  letter-spacing: -0.02em;
}

.projects-list-page-hero__lead {
  max-width: 42rem;
}

.projects-list-category-row {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
}

.projects-list-category-card {
  min-height: min(100%, 480px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-base);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  transform: translateZ(0);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.projects-list-category-card:hover {
  border-color: rgba(0, 255, 102, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .projects-list-category-card:hover {
    transform: none;
  }
}

.projects-list-category-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.2;
  text-align: center;
  color: var(--text-main);
  margin: 0 0 1rem;
}

.projects-list-category-card__body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

.projects-list-category-mosaic {
  min-height: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-base);
  padding: 0.65rem;
  height: 100%;
  align-self: stretch;
}

/* Kategori mozaiği — proje adedine göre yerleşim */

.project-category-mosaic {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  min-height: 200px;
}

.project-category-mosaic--is-1 {
  grid-template-columns: 1fr;
  min-height: clamp(220px, 40vw, 420px);
}

.project-category-mosaic--is-2 {
  grid-template-columns: repeat(2, 1fr);
  min-height: clamp(200px, 32vw, 360px);
}

.project-category-mosaic--is-3 {
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: clamp(220px, 36vw, 400px);
}

.project-category-mosaic--is-3 .project-category-mosaic__tile:first-child {
  grid-row: 1 / -1;
}

.project-category-mosaic--is-3 .project-category-mosaic__tile:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.project-category-mosaic--is-3 .project-category-mosaic__tile:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.project-category-mosaic--is-many {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: minmax(140px, auto);
  min-height: 0;
}

.project-category-mosaic__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--border-radius-base) - 2px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.project-category-mosaic__tile:hover,
.project-category-mosaic__tile:focus-visible {
  border-color: rgba(0, 255, 102, 0.45);
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 255, 102, 0.15);
}

.project-category-mosaic__media {
  flex: 1 1 auto;
  display: block;
  min-height: 100px;
  overflow: hidden;
}

.project-category-mosaic__media img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-category-mosaic__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.06);
}

.project-category-mosaic__label {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-category-mosaic--empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px dashed rgba(0, 255, 102, 0.22);
  border-radius: var(--border-radius-base);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 991.98px) {
  .project-category-mosaic--is-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .project-category-mosaic--is-3 .project-category-mosaic__tile:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 200px;
  }

  .project-category-mosaic--is-3 .project-category-mosaic__tile:nth-child(2),
  .project-category-mosaic--is-3 .project-category-mosaic__tile:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 575.98px) {
  .project-category-mosaic--is-2,
  .project-category-mosaic--is-many {
    grid-template-columns: 1fr;
  }
}

.projects-list-blurb-section {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
}

.projects-list-blurb-panel {
  max-width: 860px;
  margin: 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-base);
}

.projects-list-blurb-panel__text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.45;
  text-align: center;
  color: var(--text-muted);
}

.projects-list-band--contact:not(.project-detail-cta) {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(0, 255, 102, 0.12);
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
}

.projects-list-band--footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-list-band__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--text-main);
}

.projects-list-band__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.projects-list-band__footer-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Tüm projeler (/projects/all) — zigzag */

.projects-all-page #smooth-content {
  padding-top: 0;
}

.projects-zigzag-media {
  transition: border-color 0.3s, box-shadow 0.3s;
}

.projects-zigzag-media:hover {
  border-color: rgba(0, 255, 102, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(0, 255, 102, 0.12);
}

.projects-zigzag-row + .projects-zigzag-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .project-category-mosaic__media img {
    transition: none;
  }

  .project-category-mosaic__tile:hover .project-category-mosaic__media img,
  .project-category-mosaic__tile:focus-visible .project-category-mosaic__media img {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .project-category-mosaic__tile:hover .project-category-mosaic__media img,
  .project-category-mosaic__tile:focus-visible .project-category-mosaic__media img {
    transform: scale(1.04);
  }
}


/* ── Form validasyon hata mesajları ────────────────────────────────────── */
.tw-field-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
  font-size: 12px;
  color: #ff6b6b;
  line-height: 1.5;
  font-family: inherit;
  animation: twErrFadeIn .15s ease;
}
.tw-field-error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: #ff4d4d;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}
@keyframes twErrFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
