/**
 * Talha Keskin Pro - Modern Senior Developer & Software Architect Theme CSS
 * Zero Bloat | Dark & Light Modes | Modern Developer Glassmorphism & High-Contrast Typography
 * Version: 2.2.0
 */

:root {
  /* ========================================================
     MODERN WEB STANDARDS: Color Scheme, Accent & Scrollbars
     ======================================================== */
  color-scheme: light dark;
  accent-color: #0284c7;
  scrollbar-color: #94a3b8 transparent;

  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, 'Courier New', monospace;

  /* ========================================================
     LIGHT MODE PALETTE - Crisp High-Contrast Engineering
     ======================================================== */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(226, 232, 240, 0.9);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --border-color: #e2e8f0;
  --border-card: #e2e8f0;
  --border-hover: #cbd5e1;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-glow: rgba(2, 132, 199, 0.16);

  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: #d1fae5;
  --accent-glow: rgba(5, 150, 105, 0.16);

  --violet: #6366f1;
  --violet-glow: rgba(99, 102, 241, 0.15);

  --tag-bg: #e2e8f0;
  --tag-text: #0f172a;
  --header-bg: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 14px 30px -4px rgba(2, 132, 199, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.08);

  /* Code Block Styles (IDE Aesthetics) */
  --code-box-bg: #0b1120;
  --code-box-border: #1e293b;
  --code-box-header: #0f172a;
  --code-box-text: #e2e8f0;
  --code-inline-bg: rgba(2, 132, 199, 0.08);
  --code-inline-border: rgba(2, 132, 199, 0.22);
  --code-inline-text: #0284c7;
}

[data-theme="dark"] {
  /* ========================================================
     DARK MODE PALETTE - Obsidian Architect Glassmorphism
     ======================================================== */
  --bg-body: #070a12;
  --bg-surface: #0c1220;
  --bg-card: rgba(13, 20, 36, 0.78);
  --bg-card-hover: rgba(18, 27, 49, 0.92);
  --bg-subtle: #0f182c;
  --bg-glass: rgba(12, 18, 32, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(56, 189, 248, 0.35);

  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-light: rgba(56, 189, 248, 0.12);
  --primary-glow: rgba(56, 189, 248, 0.22);

  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-light: rgba(16, 185, 129, 0.12);
  --accent-glow: rgba(16, 185, 129, 0.22);

  --violet: #818cf8;
  --violet-glow: rgba(129, 140, 248, 0.2);

  --tag-bg: rgba(56, 189, 248, 0.1);
  --tag-text: #7dd3fc;
  --header-bg: rgba(7, 10, 18, 0.88);
  --card-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 14px 34px -4px rgba(56, 189, 248, 0.2), 0 0 1px 1px rgba(56, 189, 248, 0.3);

  /* Code Block Styles in Dark Mode */
  --code-box-bg: #070c18;
  --code-box-border: #1a253c;
  --code-box-header: #0d1629;
  --code-box-text: #f1f5f9;
  --code-inline-bg: rgba(56, 189, 248, 0.12);
  --code-inline-border: rgba(56, 189, 248, 0.25);
  --code-inline-text: #38bdf8;
}

/* ========================================================
   RESET & GLOBAL BASE
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light dark;
  accent-color: var(--primary);
  scroll-behavior: smooth;
  scroll-padding-top: calc(72px + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  overflow-wrap: anywhere;
}

/* Developer Ambient Radial Glow */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 550px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--primary-glow), transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ========================================================
   SITE HEADER & NAVIGATION
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--tag-bg);
  color: var(--primary);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  scroll-target-group: auto;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link:is(:target-current, .active)::after {
  width: 100%;
}

.nav-link:is(:target-current, .active) {
  color: var(--primary);
  font-weight: 600;
}

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

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 40px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-cta {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  min-height: 42px;
  box-shadow: 0 4px 16px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  border-color: var(--primary);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

/* Hamburger to X transition when active */
.mobile-menu-btn.menu-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.menu-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.menu-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 24px 26px;
  animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:is(:target-current, .active) {
  background: var(--bg-subtle);
  color: var(--primary);
}

/* ========================================================
   HERO SECTION & DEVELOPER TERMINAL
   ======================================================== */
.hero-section {
  padding: 85px 0 65px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  margin-bottom: 22px;
  box-shadow: 0 0 16px var(--accent-glow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-dot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.status-dot-pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.status-sla {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--text-main);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-lead {
  font-size: 1.16rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.75;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tech-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.tech-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item .check {
  color: var(--accent);
  font-weight: bold;
}

/* Developer Terminal Window (Hero Right) */
.terminal-window {
  background: var(--code-box-bg);
  border: 1px solid var(--code-box-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-window:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 30px var(--primary-glow);
}

.terminal-header {
  background: var(--code-box-header);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--code-box-border);
  gap: 12px;
  user-select: none;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
}

.terminal-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.t-dot.red { background: #ff5f56; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #27c93f; }

.terminal-tabs {
  display: flex;
  gap: 4px;
}

.t-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.t-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.t-tab.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-weight: 600;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.terminal-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.terminal-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: var(--primary);
}

.terminal-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent);
  color: #34d399;
}

.terminal-body {
  padding: 22px;
  color: var(--code-box-text);
  font-size: 0.88rem;
  line-height: 1.8;
  min-height: 250px;
  max-height: 380px;
  overflow-y: auto;
}

.t-prompt-line {
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.t-user {
  color: #38bdf8;
  font-weight: 600;
}

.t-path {
  color: #a78bfa;
}

.t-cmd {
  color: #f8fafc;
  font-weight: 600;
}

.t-output {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.t-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.t-key {
  color: #64748b;
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 95px;
}

.t-val-highlight {
  color: #f1f5f9;
  font-weight: 600;
}

.t-val-accent {
  color: #38bdf8;
  font-weight: 600;
}

.t-str {
  color: #34d399;
}

.t-num {
  color: #fb923c;
}

.t-json-key {
  color: #7dd3fc;
}

.t-code-view {
  font-family: inherit;
  font-size: 0.85rem;
  margin: 0;
  padding: 0;
  background: transparent !important;
  color: inherit !important;
  border: none !important;
}

.t-table-ascii {
  white-space: pre;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8;
  overflow-x: auto;
}

.t-status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.t-pulse {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.t-cursor-line {
  margin-top: 10px;
}

.t-cursor {
  display: inline-block;
  color: #38bdf8;
  font-weight: bold;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.terminal-footer {
  background: var(--code-box-header);
  border-top: 1px solid var(--code-box-border);
  padding: 8px 16px;
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========================================================
   METRICS & IMPACT SECTION
   ======================================================== */
.metrics-section {
  padding: 44px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.metric-card {
  padding: 24px 20px;
  text-align: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px -6px var(--primary-glow);
}

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

.metric-icon-wrap {
  font-size: 1.5rem;
  margin-bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.metric-number-badge {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.metric-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========================================================
   SECTION WRAPPER & HEADINGS
   ======================================================== */
.section-wrapper {
  padding: 85px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text-main);
  line-height: 1.25;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================================
   HAKKIMDA (ABOUT GRID & ARCHITECT PILLARS)
   ======================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.about-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.about-card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-card-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 0.98rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.pillar-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.pillar-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.about-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.info-val {
  font-weight: 600;
  font-size: 1rem;
}

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

/* ========================================================
   PROJECT FILTER PILLS (ARCHIVE & FRONT-PAGE)
   ======================================================== */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 38px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: var(--primary-light);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* ========================================================
   CASE STUDIES (PROJECTS) GRID
   ======================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.case-thumb {
  height: 230px;
  background: #090e18;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.case-card:hover .case-thumb img {
  transform: scale(1.05);
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #090e18 0%, #162238 50%, #090e18 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.badge-cat-fallback {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 1;
}

.icon-code-fallback {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
  z-index: 1;
}

.case-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case-client {
  font-weight: 700;
  color: var(--accent);
}

.case-title {
  font-size: 1.38rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.case-title a {
  color: inherit;
}
.case-title a:hover {
  color: var(--primary);
}

.case-challenge {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
  flex: 1;
}

.case-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-tag-sm {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 9px;
  border-radius: 6px;
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.case-link {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-metric-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 9px;
  border-radius: 6px;
}

/* ========================================================
   SERVICES CARDS (PROFESSIONAL SOLUTIONS)
   ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 26px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.35;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ========================================================
   TECH STACK MATRIX
   ======================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.matrix-col {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 26px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.matrix-col:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.matrix-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matrix-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.matrix-item:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.matrix-item-name {
  font-weight: 500;
}

.matrix-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ========================================================
   BLOG & TECHNICAL ARTICLES GRID
   ======================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.post-thumb {
  height: 200px;
  background: #090e18;
  overflow: hidden;
  position: relative;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-cat {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.72rem;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.post-title a {
  color: inherit;
}
.post-title a:hover {
  color: var(--primary);
}

.post-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

/* ========================================================
   CATEGORY PILLS BAR (BLOG & ARCHIVES)
   ======================================================== */
.category-pills-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.cat-pill:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 2px 7px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.cat-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ========================================================
   SEARCH BAR & SEARCH RESULTS
   ======================================================== */
.search-bar-wrap {
  max-width: 620px;
  margin: 28px auto 0;
  width: 100%;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 6px 8px 6px 18px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--card-shadow-hover);
}

.search-icon {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-right: 12px;
  user-select: none;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-subtle);
  font-size: 0.92rem;
}

.search-submit-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.search-card-project {
  border-top: 3px solid var(--accent);
}

.cat-project-badge {
  background: var(--accent-glow) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* ========================================================
   EMPTY STATE CARD & SUGGESTED TOPICS
   ======================================================== */
.empty-state-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 50px 32px;
  text-align: center;
  max-width: 660px;
  margin: 40px auto 0;
  backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1;
}

.empty-state-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.empty-state-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto;
}

.suggested-topics-wrap {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.suggested-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.suggested-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 540px;
}

.suggested-chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.suggested-chip span {
  color: var(--primary);
  margin-right: 2px;
}

.suggested-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ========================================================
   NUMERIC PAGINATION (BLOG, ARCHIVES, SEARCH)
   ======================================================== */
.tk-pagination-wrap,
.navigation.pagination {
  margin-top: 55px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.tk-pagination-wrap .page-numbers,
.navigation.pagination .nav-links,
ul.page-numbers {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.page-numbers,
ul.page-numbers li a,
ul.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.page-numbers:hover,
ul.page-numbers li a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.page-numbers.current,
ul.page-numbers li span.current {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.page-numbers.prev,
.page-numbers.next,
ul.page-numbers li a.prev,
ul.page-numbers li a.next {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0 18px;
}

.page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
  cursor: default;
}

/* ========================================================
   CODE BLOCKS & DEVELOPER SYNTAX ISOLATION
   ======================================================== */
:not(pre) > code {
  font-family: var(--font-mono) !important;
  font-size: 0.88em !important;
  font-weight: 600 !important;
  color: var(--code-inline-text) !important;
  background: var(--code-inline-bg) !important;
  border: 1px solid var(--code-inline-border) !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  vertical-align: baseline;
  word-break: break-word;
}

.code-window-card {
  margin: 30px 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: var(--code-box-bg) !important;
  border: 1px solid var(--code-box-border) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
}

.code-window-bar {
  background: var(--code-box-header) !important;
  border-bottom: 1px solid var(--code-box-border) !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.code-window-dots {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.code-dot {
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
}
.code-dot.red { background: #ff5f56 !important; }
.code-dot.yellow { background: #ffbd2e !important; }
.code-dot.green { background: #27c93f !important; }

.code-window-badge {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  color: #8b949e !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #c9d1d9 !important;
  border-radius: 6px !important;
  padding: 5px 12px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 32px !important;
  transition: all 0.2s ease !important;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}

.code-copy-btn.copied {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border-color: #10b981 !important;
}

pre, pre.wp-block-code {
  font-family: var(--font-mono) !important;
  font-size: 0.9rem !important;
  line-height: 1.75 !important;
  background: var(--code-box-bg) !important;
  color: var(--code-box-text) !important;
  padding: 20px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 0 0 12px 12px !important;
  border: none !important;
  tab-size: 2 !important;
  white-space: pre !important;
}

pre code, pre.wp-block-code code {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  line-height: inherit !important;
}

/* ========================================================
   ENTRY CONTENT & PROSE TYPOGRAPHY
   ======================================================== */
.entry-content {
  line-height: 1.85;
  font-size: 1.12rem;
  color: var(--text-main);
}

.entry-content p {
  margin-bottom: 22px;
}

.entry-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 40px 0 18px;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-main);
  line-height: 1.35;
}

.entry-content ul, .entry-content ol {
  margin: 0 0 24px 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 26px 0;
  color: var(--text-muted);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 22px 0;
  border: 1px solid var(--border-color);
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 24px 0;
}
.entry-content th, .entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
}
.entry-content th {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text-main);
}

.single-post-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.author-bio-card {
  margin-top: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

/* Utility Classes */
.d-none {
  display: none !important;
}

.tk-toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}
.tk-toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.tk-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tk-toc-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-block;
}
.tk-toc-list a:hover {
  color: var(--primary);
}
.tk-toc-list li.toc-h3 {
  padding-left: 18px;
  font-size: 0.88rem;
}

/* ========================================================
   CONTACT & CONSULTATION SECTION
   ======================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
}

.contact-info-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.contact-info-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-main);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.c-link-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  color: var(--primary);
}

.c-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-glow);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-control {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  min-height: 46px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control:user-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ========================================================
   SITE FOOTER
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 48px 0 30px;
}

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

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ========================================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   ======================================================== */
@media (max-width: 1024px) {
  .nav-menu { display: none !important; }
  .desktop-only { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; gap: 32px; }
  .hero-terminal, .terminal-window { max-width: 100%; min-width: 0; }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
  }

  .container {
    padding: 0 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .nav-wrapper {
    height: 64px;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 8px;
    max-width: calc(100% - 95px);
  }

  .brand-badge {
    display: none !important;
  }

  .hero-grid, .about-grid, .services-grid, .matrix-grid, .contact-grid, .projects-grid, .posts-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hero-terminal, .terminal-window {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .terminal-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px !important;
  }

  .terminal-controls {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .terminal-tabs {
    flex-wrap: nowrap !important;
  }

  .t-tab {
    white-space: nowrap !important;
    font-size: 0.76rem !important;
    padding: 5px 9px !important;
  }

  .terminal-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .t-table-ascii, pre, pre.wp-block-code, .t-code-view {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  .t-table-ascii {
    font-size: 0.72rem !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 36px 0 28px !important;
    overflow: hidden !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
    line-height: 1.2;
    margin-bottom: 14px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .status-pill {
    max-width: 100%;
    flex-wrap: wrap;
    font-size: 0.76rem !important;
    padding: 5px 12px !important;
    margin-bottom: 16px !important;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn-cta, .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Metrics Grid 2x2 */
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .metric-card {
    padding: 16px 10px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .metric-number {
    font-size: 1.65rem !important;
  }
  .metric-label {
    font-size: 0.82rem !important;
    word-break: break-word;
  }
  .metric-sub {
    font-size: 0.72rem !important;
  }

  /* Section Spacing */
  .section-wrapper {
    padding: 45px 0 !important;
  }
  .section-head {
    margin-bottom: 28px !important;
  }
  .section-title {
    font-size: clamp(1.5rem, 5vw, 1.85rem) !important;
    word-break: break-word;
  }

  /* About */
  .about-card {
    padding: 24px 20px;
  }
  .about-card-title {
    font-size: 1.3rem;
  }

  /* Filter Pills Horizontal Scroll */
  .project-filters {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 10px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .project-filters::-webkit-scrollbar {
    display: none !important;
  }

  /* Case Studies */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* Category Pills Mobile Horizontal Scroll */
  .category-pills-bar {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 10px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .category-pills-bar::-webkit-scrollbar {
    display: none !important;
  }

  /* Search Bar Mobile */
  .search-input-group {
    padding: 4px 6px 4px 14px;
  }
  .search-submit-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  /* Empty State Mobile */
  .empty-state-card {
    padding: 36px 18px;
  }

  /* Pagination Mobile */
  .page-numbers,
  ul.page-numbers li a,
  ul.page-numbers li span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }
  .case-thumb {
    height: 190px;
  }
  .case-body {
    padding: 20px 18px;
  }
  .case-title {
    font-size: 1.25rem;
  }
  .case-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-card {
    padding: 24px 20px;
  }

  /* Tech Matrix */
  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .matrix-col {
    padding: 22px 18px;
  }

  /* Posts Grid */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Terminal Mobile */
  .terminal-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .terminal-controls {
    width: 100%;
  }
  .terminal-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .terminal-body {
    padding: 16px;
    font-size: 0.82rem;
  }

  /* Contact */
  .contact-grid {
    padding: 26px 18px;
    border-radius: 14px;
    gap: 30px;
  }
  .contact-info-title {
    font-size: 1.65rem;
  }

  /* Code Blocks Mobile */
  .code-window-card {
    margin: 20px 0 !important;
    border-radius: 10px !important;
  }
  pre, pre.wp-block-code {
    padding: 14px 12px !important;
    font-size: 0.82rem !important;
  }
  .code-window-bar {
    padding: 8px 12px !important;
  }

  /* Single Post & Project */
  .single-post-title {
    font-size: 1.7rem !important;
    line-height: 1.3 !important;
  }
  .project-actions-bar {
    flex-direction: column !important;
    width: 100% !important;
  }
  .project-actions-bar .btn-cta, .project-actions-bar .btn-outline {
    width: 100% !important;
    justify-content: center !important;
  }
  .author-bio-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px 16px !important;
    gap: 16px !important;
  }
  .entry-content {
    font-size: 1.02rem;
    line-height: 1.7;
  }
  .entry-content h2 {
    font-size: 1.45rem;
    margin: 32px 0 14px;
  }
  .entry-content h3 {
    font-size: 1.25rem;
    margin: 26px 0 12px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-badge {
    display: none !important;
  }
  #theme-toggle-text {
    display: none !important;
  }
  .theme-toggle-btn {
    padding: 8px 10px !important;
  }
  .hero-title {
    font-size: 1.7rem !important;
  }
  .status-pill {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
  }
  .cat-pill {
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
  }
  .search-submit-btn span:last-child {
    display: none !important;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .metric-card {
    padding: 14px 8px !important;
  }
  .metric-number {
    font-size: 1.45rem !important;
  }
  .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .metrics-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .brand-logo {
    font-size: 1.05rem !important;
  }
}

/* ========================================================
   FAQ Accordion (Sıkça Sorulan Sorular & Rich Snippet)
   ======================================================== */
.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.faq-item:hover {
  border-color: var(--border-hover) !important;
}
.faq-item[open] {
  border-color: var(--primary) !important;
  box-shadow: 0 6px 24px -4px var(--primary-glow);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary {
  user-select: none;
}
.faq-item[open] .faq-chevron {
  color: var(--accent) !important;
  transform: rotate(180deg);
}
.faq-item .faq-chevron {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Native ::details-content Animation */
.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.faq-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    transition: block-size 0.3s ease-in-out, content-visibility 0.3s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

