@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ═══════════════════════════════════════════
   THEME VARIABLES
═══════════════════════════════════════════ */

/* ── LIGHT (default) ── */
:root {
  --bg:          #ffffff;
  --bg2:         #f5f5f5;
  --bg3:         #eeeeee;
  --fg:          #111111;
  --fg2:         #444444;
  --fg3:         #888888;
  --accent:      #FFE600;
  --accent-fg:   #000000;
  --border:      #e0e0e0;
  --border-dark: #cccccc;

  /* "black box" sections stay dark in both themes */
  --ink:         #111111;
  --ink-fg:      #ffffff;
  --ink2:        #1a1a1a;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── DARK ── */
[data-theme="dark"] {
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #1a1a1a;
  --fg:          #ffffff;
  --fg2:         #cccccc;
  --fg3:         #888888;
  --border:      #2a2a2a;
  --border-dark: #333333;
  --ink:         #FFE600;
  --ink-fg:      #000000;
  --ink2:        #1a1a1a;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background 0.35s ease, color 0.35s ease;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg3); border-radius: 3px; }
::selection { background: var(--accent); color: var(--accent-fg); }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.0; letter-spacing: 0.02em; color: var(--fg); }
h1 { font-size: clamp(56px, 9vw, 120px); }
h2 { font-size: clamp(44px, 7vw, 90px); }
h3 { font-size: clamp(26px, 4vw, 48px); }
h4 { font-size: clamp(18px, 2.5vw, 28px); }
p  { font-size: 17px; line-height: 1.85; color: var(--fg2); }
a  { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section     { padding: 120px 0; }
.section-sm  { padding: 80px 0; }
hr.divider   { border: none; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════
   SECTION LABEL
═══════════════════════════════════════════ */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--fg3);
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

/* Yellow button — primary in light mode */
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.15);
}

/* Outline dark button */
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
}
.btn-outline:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
}

/* Outline accent */
.btn-outline-accent {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--border-dark);
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  transform: translateY(-2px);
}


/* Nav link text crossfade animation — CSS grid overlay approach.
   Both spans sit in the same grid cell; opacity fades between them.
   No absolute positioning needed → no container width collapse. */
.nli {
  display: inline-grid;
  vertical-align: middle;
  pointer-events: none;
}
.ns {
  display: grid;
}
.ns span {
  grid-row: 1;
  grid-column: 1;
  transition: opacity 260ms cubic-bezier(0.2, 0, 0, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  white-space: nowrap;
}
.ns span:first-child { opacity: 1; }
.ns span:last-child  { opacity: 0; color: inherit; }
.nav-links a:hover .ns span:first-child,
.nav-links a.active .ns span:first-child { opacity: 0; }
.nav-links a:hover .ns span:last-child,
.nav-links a.active .ns span:last-child  { opacity: 1; }
/* INK (on dark sections — always white/black) */
.btn-ink {
  background: var(--ink-fg);
  color: var(--ink);
}
.btn-ink:hover {
  background: var(--accent);
  color: var(--accent-fg);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   THEME SWITCH (moon/sun slider)
═══════════════════════════════════════════ */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}
.theme-switch:hover {
  opacity: 0.85;
}

.theme-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.theme-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  transition: background 0.5s ease;
  background: #9ca3af; /* light mode default */
}

[data-theme="dark"] .theme-switch-slider {
  background: #0a1a44;
}

.theme-switch-slider::before {
  content: '';
  position: absolute;
  height: 1.4em;
  width: 1.4em;
  border-radius: 50%;
  left: 10%;
  bottom: 15%;
  background: #9ca3af;
  box-shadow: inset 15px -4px 0px 15px #fff000; /* sun */
  transform: translateX(1.4em);
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

[data-theme="dark"] .theme-switch-slider::before {
  background: #0a1a44;
  box-shadow: inset 8px -4px 0px 0px #fff000; /* crescent moon */
  transform: translateX(0);
}

/* ═══════════════════════════════════════════
   BORDER RADIUS — rounded corners everywhere
═══════════════════════════════════════════ */
.btn { border-radius: 8px; }
.service-card { border-radius: 12px; }
.testimonial-card { border-radius: 12px; }
.blog-card { border-radius: 12px; }
.project-full-card { border-radius: 12px; }
.project-scroll-card { border-radius: 12px; }
.stat-item { border-radius: 0; }
.process-step { border-radius: 10px; }
.service-full-item { border-radius: 0; }
.palette-preset { border-radius: 12px; }
.palette-generator { border-radius: 12px; }
.color-swatch-item { border-radius: 8px; overflow: hidden; }
.slide-card { border-radius: 12px; }
.slide-card-inner { border-radius: 12px; }
.project-scroll-card { border-radius: 12px; overflow: hidden; }
.hero-slider-wrap { border-radius: 0; }
.mobile-menu { border-radius: 0; }
.testimonial-avatar { border-radius: 8px; }
.contact-item { border-radius: 0; }
.form-group input,
.form-group textarea,
.form-group select { border-radius: 8px; }
.filter-tab:first-child { border-radius: 8px 0 0 8px; }
.filter-tab:last-child  { border-radius: 0 8px 8px 0; }
.filter-tabs { border-radius: 8px; overflow: hidden; }
.service-tag { border-radius: 4px; }
.blog-card h3 { border-radius: 0; }
.nav { border-radius: 0; }
.marquee-wrap { border-radius: 0; }
.cta-banner { border-radius: 0; }
.footer { border-radius: 0; }

/* ═══════════════════════════════════════════
   NAVIGATION — MINI DARK PILL
═══════════════════════════════════════════ */
.gd-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  pointer-events: all;
  background: rgba(31, 31, 31, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
  background-clip: padding-box;
}

.nav-logo {
  flex: 1;
  display: flex;
  align-items: center;
  pointer-events: all;
}
.nav-logo img {
  height: 30px;
  width: auto;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.7; }

/* Separator — hidden, kept for compatibility */
.nav-sep { display: none; }

/* Nav links — içindeki pill stili kaldırıldı, .nav kendisi pill */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  /* Increase vertical padding so the animated text has enough room */
  padding: 12px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
  transition: color 0.25s, background 0.25s;
}

.nav-links a {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.nav-links a:focus,
.nav-links a:active {
  outline: none;
  box-shadow: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Removed site-wide solid background on nav links (user requested).
   Keep animation-layer fixes applied earlier, but avoid forcing opaque backgrounds.
   If ghosting persists we increase nav height below. */
.nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
}

/* Active link uses yellow accent color */
.nav-links a.active,
.nav-links a.active .ns span {
  color: #FFEC00 !important;
}
.nav-links a.active {
  background: rgba(255,255,255,0.12) !important;
}

/* Ensure active link shows only the second (colored) span */
.nav-links a.active .ns span:first-child { opacity: 0 !important; }
.nav-links a.active .ns span:last-child  { opacity: 1 !important; }


.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: all;
}

/* Theme switch — styles already defined in THEME SWITCH section above */

/* CTA button */
.nav-cta {
  display: flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  background: rgba(31, 31, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: all;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile menu — dark sheet */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 998;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 56px);
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s;
  line-height: 1.15;
  text-decoration: none;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .nav-cta {
  font-family: var(--font-body);
  font-size: 15px;
  margin-top: 28px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}
.mobile-menu .theme-switch {
  margin-top: 16px;
  align-self: flex-start;
}

/* ================================================================
   NAV DROPDOWN
   ================================================================ */
.nav-has-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  gap: 4px;
}
.nav-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-has-dropdown:hover .nav-chevron,
.nav-has-dropdown.open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 220px;
  /* padding-top köprü görevi görür: fare boşlukta hover'ı kaybetmez */
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
  pointer-events: none;
  z-index: 200;
}
.nav-dropdown__inner {
  background: rgba(20, 20, 20, 0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  background: none;
}
.nav-dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.nav-dropdown a.active {
  color: #FFEC00;
  background: rgba(255,236,0,0.08);
}
.nav-dropdown__icon {
  font-size: 15px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
/* Mobile sub-menu */
.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 24px;
  margin: 0;
}
.mobile-menu__sub a {
  font-family: var(--font-display) !important;
  font-size: clamp(22px, 5.5vw, 36px) !important;
  color: rgba(255,255,255,0.45) !important;
  padding: 8px 0 !important;
  border-bottom: none !important;
  line-height: 1.2;
}
.mobile-menu__sub a:hover { color: rgba(255,255,255,0.85) !important; }

/* Mobile menu group label */
.mobile-menu__label {
  font-family: var(--font-display);
  font-size: clamp(13px, 2.5vw, 16px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 0;
  margin-top: 4px;
  display: block;
}

/* ================================================================
   TOOLS — Araçlar sayfaları
   ================================================================ */
.tools-hero {
  background: #04040a;
  padding: 160px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tools-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,236,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.tools-hero .breadcrumb { justify-content: center; position: relative; z-index: 1; margin-bottom: 24px; }
.tools-hero h1 { font-size: clamp(48px, 8vw, 100px); line-height: 0.95; color: #fff; margin-bottom: 20px; position: relative; z-index: 1; }
.tools-hero h1 .accent { color: var(--accent); }
.tools-hero p { font-size: 17px; color: rgba(255,255,255,0.55); max-width: 520px; margin: 0 auto; position: relative; z-index: 1; }
@media (max-width: 768px) { .tools-hero { padding: 130px 24px 60px; } }

/* Tools grid (hub page) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.tool-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover { background: var(--bg2); }
.tool-card__icon {
  font-size: 36px;
  line-height: 1;
}
.tool-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.tool-card h3 {
  font-size: 22px;
  color: var(--fg);
  margin: 0;
}
.tool-card p {
  font-size: 14px;
  color: var(--fg3);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.tool-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.tool-card__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,236,0,0.12);
  color: var(--accent);
  border: 1px solid rgba(255,236,0,0.2);
}
.tool-card__badge--soon {
  background: rgba(255,255,255,0.06);
  color: var(--fg3);
  border-color: var(--border);
}

/* Tool workspace */
.tool-workspace {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}
@media (max-width: 768px) { .tool-workspace { padding: 40px 24px 60px; } }

.tool-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
}
@media (max-width: 600px) { .tool-panel { padding: 24px 20px; } }

.tool-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 10px;
  display: block;
}
.tool-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.tool-input:focus { border-color: var(--accent); }
.tool-textarea {
  resize: vertical;
  min-height: 80px;
}
.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) { .tool-row { grid-template-columns: 1fr; } }

.tool-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.tool-select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}
.tool-select:focus { border-color: var(--accent); }

/* QR preview */
.qr-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.qr-preview #qrcode canvas,
.qr-preview #qrcode img {
  border-radius: 8px;
}
.qr-placeholder {
  text-align: center;
  color: var(--fg3);
  font-size: 14px;
}
.qr-placeholder svg {
  display: block;
  margin: 0 auto 12px;
  opacity: 0.25;
}

/* Image resizer */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.drop-zone.dragging { border-color: var(--accent); background: rgba(255,236,0,0.04); }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone__icon { font-size: 40px; margin-bottom: 12px; }
.drop-zone__text { font-size: 15px; color: var(--fg2); margin-bottom: 4px; }
.drop-zone__hint { font-size: 13px; color: var(--fg3); }

.img-preview-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.img-preview-wrap img { width: 100%; height: 220px; object-fit: contain; display: block; }
.img-preview-wrap canvas { width: 100%; height: 220px; object-fit: contain; display: block; }

.tool-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.tool-btn--primary { background: var(--accent); color: var(--accent-fg); }
.tool-btn--primary:hover { background: #ffe800; }
.tool-btn--ghost { background: var(--bg3); color: var(--fg); border: 1px solid var(--border); }
.tool-btn--ghost:hover { background: var(--bg2); border-color: var(--fg3); }
.tool-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.tool-info {
  font-size: 13px;
  color: var(--fg3);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.tool-info span { display: flex; align-items: center; gap: 4px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-right .nav-cta, .nav-right .theme-switch { display: none; }
  .nav { left: 12px; right: 12px; padding: 8px 14px; }
}

/* ═══════════════════════════════════════════
   HERO — FULL-SCREEN GRADIENT
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}


.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Canvas always visible — same shader for both modes */

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 72px;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.8s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

/* Hero logo — sol üst, carousel ve içerikle çakışmaz */
.hero-logo-img {
  position: absolute;
  left: 0;
  top: 18%;
  width: 62%;
  max-width: none;
  height: auto;
  z-index: 4;
  pointer-events: none;
  animation: fadeUp 0.9s ease 0.15s both;
}

@media (max-width: 900px) {
  .hero-logo-img { width: 85%; top: 8%; }
}
@media (max-width: 600px) {
  .hero-logo-img { width: 100%; top: 6%; }
}

.hero-desc {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn-hero-outline {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.3);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  animation: fadeUp 1s ease 0.6s both;
  z-index: 2;
}
.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  animation: expandLine 1.5s ease-in-out infinite;
}
@keyframes expandLine {
  0%, 100% { width: 20px; }
  50% { width: 48px; }
}

/* Light mode hero: dark text on bright nebula */
[data-theme="light"] .hero-eyebrow {
  color: rgba(0,0,0,0.5);
}
[data-theme="light"] .hero-eyebrow::before {
  background: rgba(0,0,0,0.35);
}
[data-theme="light"] .hero-desc {
  color: rgba(0,0,0,0.6);
}
[data-theme="light"] .hero-scroll {
  color: rgba(0,0,0,0.35);
}
[data-theme="light"] .hero-scroll-line {
  background: rgba(0,0,0,0.25);
}
[data-theme="light"] .btn-hero-outline {
  color: rgba(0,0,0,0.85);
  border-color: rgba(0,0,0,0.25);
}

/* Dark mode: ensure hero outline button text is white */
[data-theme="dark"] .btn-hero-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}

/* Header-specific overrides: make eyebrow and description pure white in both themes */
.hero .hero-eyebrow,
.hero .hero-desc {
  color: #ffffff;
}
.hero .hero-eyebrow::before {
  background: #ffffff;
}

/* Ensure the "Aşağı kaydır" (hero-scroll) looks the same in light mode as dark mode */
[data-theme="light"] .hero-scroll {
  color: rgba(255,255,255,0.35);
}
[data-theme="light"] .hero-scroll-line {
  background: rgba(255,255,255,0.3);
}
[data-theme="light"] .btn-hero-outline:hover {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.5);
}

/* Force hero-scoped button colors to ensure readability when hero background is dark
   (overrides theme-based rules inside the hero area) */
.hero .btn-hero-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}
.hero .btn-hero-outline:hover {
  background: rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════
   HERO CAROUSEL
═══════════════════════════════════════════ */
.hero-carousel {
  position: absolute;
  left: 46%;
  right: 0;
  bottom: 72px;
  height: 210px;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
  /* Fade to transparent at the left edge (green line effect) */
  mask-image: linear-gradient(to right, transparent 0px, rgba(0,0,0,0.4) 60px, black 160px);
  -webkit-mask-image: linear-gradient(to right, transparent 0px, rgba(0,0,0,0.4) 60px, black 160px);
}

.hero-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: 100%;
  will-change: transform;
}

.hero-carousel-card {
  flex-shrink: 0;
  width: 240px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 900px) {
  .hero-carousel { display: none; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 24px 64px; }
  .hero-scroll { right: 24px; }
}

/* ═══════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════ */
.marquee-wrap {
  background: var(--ink);
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item { display: flex; align-items: center; }
.marquee-item span {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--ink-fg);
  padding: 0 28px;
  white-space: nowrap;
}
.marquee-item .dot {
  color: rgba(255,255,255,0.2);
  font-size: 18px;
  padding: 0;
}
[data-theme="dark"] .marquee-wrap {
  background: #0a0a0a;
}
[data-theme="dark"] .marquee-item span {
  color: #FFE600;
}
[data-theme="dark"] .marquee-item .dot {
  color: #ffffff;
}

/* Light mode: marquee background white, text black, dots yellow */
[data-theme="light"] .marquee-wrap {
  background: #ffffff;
}
[data-theme="light"] .marquee-item span {
  color: #111111;
}
[data-theme="light"] .marquee-item .dot {
  color: #FFEC00;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* ═══════════════════════════════════════════
   PROJECTS SHOWCASE — Split (homepage)
═══════════════════════════════════════════ */
.projects-showcase {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 600px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .projects-showcase { grid-template-columns: 1fr; }
}

.projects-showcase-left {
  padding: 80px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}

@media (max-width: 1024px) {
  .projects-showcase-left { border-right: none; border-bottom: 1px solid var(--border); padding: 60px 24px; }
}

.projects-showcase-left h2 {
  font-size: clamp(52px, 7vw, 90px);
  line-height: 0.95;
  margin-bottom: 24px;
}

.projects-showcase-left p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg2);
  margin-bottom: 40px;
  max-width: 300px;
}

/* Right: horizontal scrolling cards */
.projects-showcase-right {
  overflow: hidden;
  position: relative;
  background: var(--bg2);
}

.projects-scroll-track {
  display: flex;
  height: 100%;
  min-height: 520px;
  gap: 2px;
  animation: projectsScroll 20s linear infinite;
  width: max-content;
}

.projects-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes projectsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.project-scroll-card {
  width: 320px;
  height: 100%;
  min-height: 520px;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.project-scroll-card:hover .project-scroll-overlay { opacity: 1; }
.project-scroll-card:hover .pscard-img { transform: scale(1.08); filter: grayscale(0%); }

.pscard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.5s ease;
  filter: grayscale(40%);
}

/* Placeholder for when no image */
.pscard-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg3);
  transition: background 0.3s;
}
.project-scroll-card:hover .pscard-placeholder { background: var(--ink); }

.pscard-number {
  font-family: var(--font-display);
  font-size: 100px;
  color: var(--border);
  line-height: 1;
  transition: color 0.3s;
}
.project-scroll-card:hover .pscard-number { color: var(--accent); }

.project-scroll-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.project-scroll-overlay .p-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.project-scroll-overlay h4 {
  font-size: 22px;
  color: #ffffff;
}

/* ═══════════════════════════════════════════
   SERVICES GRID (homepage)
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--ink);
  transition: width 0.4s ease;
}
.service-card:hover { background: var(--bg2); }
.service-card:hover::after { width: 100%; }

.service-number {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.service-card:hover .service-number { color: var(--fg3); }

.service-card h3 { font-size: 34px; margin-bottom: 14px; color: var(--fg); }
.service-card p  { font-size: 15px; line-height: 1.8; color: var(--fg2); }

/* ═══════════════════════════════════════════
   SERVICES CARD STACK
═══════════════════════════════════════════ */
.svc-stack-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) {
  .svc-stack-layout { grid-template-columns: 1fr; gap: 48px; }
}

.svc-stack-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg2);
  max-width: 380px;
  margin-top: 16px;
}

.svc-stack-right {
  display: flex;
  flex-direction: column;
}

.svc-stack-container {
  position: relative;
  height: 360px;
  width: 100%;
  overflow: hidden;
}

/* Individual stacked card */
.svc-stack-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(480px, 100%);
  height: 268px;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  overflow: hidden;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .svc-stack-card {
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.svc-stack-card-img {
  width: 100%;
  height: 164px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.svc-stack-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 16px;
  gap: 12px;
  flex: 1;
}

.svc-stack-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.svc-stack-card-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--fg3);
  margin-bottom: 3px;
}

.svc-stack-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.svc-stack-card-desc {
  font-size: 12px;
  color: var(--fg3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-stack-card-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.svc-stack-card-cta:hover { opacity: 0.75; }

.svc-stack-footer {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}

.svc-stack-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-body);
}
.svc-stack-btn:hover  { background: var(--bg2); color: var(--fg); }
.svc-stack-btn:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════
   FAN CARD STACK — Hizmetlerimiz
═══════════════════════════════════════════ */
.fanstack-section { overflow: visible; }
.fanstack-section h2 { margin-bottom: 0; }

.fanstack-stage {
  position: relative;
  height: 420px;
  margin-top: 64px;
  perspective: 1200px;
  perspective-origin: 50% 90%;
  overflow: visible;
}

/* spotlight blurs (decorative) */
.fanstack-stage::before,
.fanstack-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.fanstack-stage::before {
  top: 16px;
  width: 70%;
  height: 180px;
  background: rgba(0,0,0,0.04);
  filter: blur(48px);
}
[data-theme="dark"] .fanstack-stage::before {
  background: rgba(255,255,255,0.04);
}
.fanstack-stage::after {
  bottom: 0;
  width: 76%;
  height: 140px;
  background: rgba(0,0,0,0.09);
  filter: blur(48px);
}
[data-theme="dark"] .fanstack-stage::after {
  background: rgba(0,0,0,0.28);
}

.fanstack-card {
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: min(460px, 82vw);
  height: 300px;
  border-radius: 16px;
  border: 3px solid rgba(0,0,0,0.08);
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  transition:
    transform 0.48s cubic-bezier(0.34,1.06,0.64,1),
    opacity  0.32s ease,
    box-shadow 0.3s ease;
}
[data-theme="dark"] .fanstack-card {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.fanstack-card--active {
  cursor: grab;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}
.fanstack-card--active:active { cursor: grabbing; }
[data-theme="dark"] .fanstack-card--active {
  box-shadow: 0 20px 60px rgba(0,0,0,0.60);
}

.fanstack-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.fanstack-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
  pointer-events: none;
}

.fanstack-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 20px;
  z-index: 2;
}

.fanstack-card-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 5px;
  display: block;
}

.fanstack-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
}

.fanstack-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dot navigation */
.fanstack-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.fanstack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-dark);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.fanstack-dot--active {
  background: var(--fg);
  transform: scale(1.35);
}
.fanstack-dot:hover:not(.fanstack-dot--active) {
  background: var(--fg3);
}

@media (max-width: 600px) {
  .fanstack-stage { height: 340px; margin-top: 40px; }
  .fanstack-card  { height: 240px; }
}

/* ═══════════════════════════════════════════
   STATS
═══════════════════════════════════════════ */
.stats-section { background: var(--ink); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-item {
  padding: 56px 40px;
  text-align: center;
  background: var(--ink);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 88px;
  color: var(--ink-fg);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
[data-theme="dark"] .stat-label { color: rgba(255,230,0,0.4); }

/* ═══════════════════════════════════════════
   PROCESS STEPS
═══════════════════════════════════════════ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}
.process-step {
  background: var(--bg);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 36px;
  padding: 44px 48px;
  align-items: center;
  transition: background 0.25s;
}
.process-step:hover { background: var(--bg2); }
.process-step-num {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--fg3);
  line-height: 1;
}
.process-step h4 { font-size: 26px; margin-bottom: 8px; color: var(--fg); }
.process-step p  { font-size: 15px; color: var(--fg2); }
@media (max-width: 600px) { .process-step { grid-template-columns: 1fr; gap: 12px; padding: 32px 24px; } }

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 40px;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}
.testimonial-quote {
  font-size: 52px;
  color: var(--fg3);
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--fg2);
  margin-bottom: 28px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 46px; height: 46px;
  background: var(--ink);
  color: var(--ink-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 15px; color: var(--fg); margin-bottom: 2px; }
.testimonial-role { font-size: 12px; color: var(--fg3); }

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   MESH GRADIENT CTA
═══════════════════════════════════════════ */
.mesh-cta {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mesh-cta__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.mesh-cta__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.22);
  transition: background 0.4s;
}
[data-theme="dark"] .mesh-cta__veil {
  background: rgba(0,0,0,0.32);
}
.mesh-cta__inner {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 100px 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.mesh-cta__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  color: #0a0a0a;
  margin-bottom: 28px;
}
[data-theme="dark"] .mesh-cta__title { color: #ffffff; }
.mesh-cta__desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  max-width: 540px;
  margin: 0 auto 44px;
}
[data-theme="dark"] .mesh-cta__desc { color: rgba(255,255,255,0.75); }
.mesh-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 52px;
  border-radius: 9999px;
  border: 3px solid rgba(0,0,0,0.12);
  background: rgba(20,20,20,0.88);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.mesh-cta__btn:hover {
  background: rgba(0,0,0,1);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
[data-theme="dark"] .mesh-cta__btn {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.12);
}
[data-theme="dark"] .mesh-cta__btn:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════
   LOCATION MAP CARD
═══════════════════════════════════════════ */
.lmap-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
}
.lmap-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 16px;
}
.lmap {
  position: relative;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}
.lmap-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 240px;
  height: 140px;
  transition: width .45s cubic-bezier(.34,1.2,.64,1),
              height .45s cubic-bezier(.34,1.2,.64,1),
              transform .15s ease;
  transform-style: preserve-3d;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
[data-theme="dark"] .lmap-card {
  background: #1c1c1c;
  border-color: rgba(255,255,255,0.1);
}
.lmap.expanded .lmap-card { width: 360px; height: 280px; }

/* Gradient overlay */
.lmap-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, transparent 50%, rgba(0,0,0,0.07) 100%);
}
[data-theme="dark"] .lmap-overlay {
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%, rgba(0,0,0,0.12) 100%);
}

/* Map background */
.lmap-mapbg {
  position: absolute; inset: 0;
  background: #f1f5f9;
  color: #1e293b;
  opacity: 0;
  transition: opacity .4s ease .1s;
  pointer-events: none;
}
[data-theme="dark"] .lmap-mapbg { background: #27272a; color: #e4e4e7; }
.lmap.expanded .lmap-mapbg { opacity: 1; }

/* Roads */
.lmap-roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.lmap-road-main  { stroke: currentColor; stroke-width: 4;   opacity: .25; }
.lmap-road-sec   { stroke: currentColor; stroke-width: 3;   opacity: .18; }
.lmap-road-minor { stroke: currentColor; stroke-width: 1.5; opacity: .1;  }
.lmap-roads line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0s;
}
.lmap.expanded .lmap-roads line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .8s ease;
}
.lmap.expanded .lmap-roads line:nth-child(1)  { transition-delay: .20s; }
.lmap.expanded .lmap-roads line:nth-child(2)  { transition-delay: .30s; }
.lmap.expanded .lmap-roads line:nth-child(3)  { transition-delay: .40s; }
.lmap.expanded .lmap-roads line:nth-child(4)  { transition-delay: .50s; }
.lmap.expanded .lmap-roads line:nth-child(5)  { transition-delay: .60s; }
.lmap.expanded .lmap-roads line:nth-child(6)  { transition-delay: .65s; }
.lmap.expanded .lmap-roads line:nth-child(7)  { transition-delay: .70s; }
.lmap.expanded .lmap-roads line:nth-child(8)  { transition-delay: .72s; }
.lmap.expanded .lmap-roads line:nth-child(9)  { transition-delay: .74s; }
.lmap.expanded .lmap-roads line:nth-child(10) { transition-delay: .76s; }
.lmap.expanded .lmap-roads line:nth-child(11) { transition-delay: .78s; }

/* Buildings */
.lmap-building {
  position: absolute;
  border-radius: 3px;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .4s ease, transform .4s ease;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.08);
}
[data-theme="dark"] .lmap-building {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.07);
}
.lmap.expanded .lmap-building { opacity: 1; transform: scale(1); }
.lmap.expanded .lmap-building:nth-child(2) { transition-delay: .50s; }
.lmap.expanded .lmap-building:nth-child(3) { transition-delay: .58s; }
.lmap.expanded .lmap-building:nth-child(4) { transition-delay: .66s; }
.lmap.expanded .lmap-building:nth-child(5) { transition-delay: .54s; }
.lmap.expanded .lmap-building:nth-child(6) { transition-delay: .62s; }
.lmap.expanded .lmap-building:nth-child(7) { transition-delay: .70s; }

/* Pin */
.lmap-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1) .3s;
  filter: drop-shadow(0 0 8px rgba(255,236,0,.5));
  z-index: 2;
}
.lmap.expanded .lmap-pin { transform: translate(-50%,-50%) scale(1); }
.lmap-pin-circle { fill: white; }
[data-theme="dark"] .lmap-pin-circle { fill: #1c1c1c; }

/* Bottom fade */
.lmap-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, rgba(241,245,249,.65), transparent);
  pointer-events: none;
}
[data-theme="dark"] .lmap-fade {
  background: linear-gradient(to top, rgba(39,39,42,.65), transparent);
}

/* Grid */
.lmap-grid {
  position: absolute; inset: 0; pointer-events: none;
  color: #000;
  transition: opacity .3s;
}
[data-theme="dark"] .lmap-grid { color: #fff; }
.lmap.expanded .lmap-grid { opacity: 0; }

/* Content */
.lmap-content {
  position: relative; z-index: 10;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 20px;
}
.lmap-top { display: flex; align-items: flex-start; justify-content: space-between; }
.lmap-icon { color: #FFEC00; transition: opacity .3s; }
.lmap.expanded .lmap-icon { opacity: 0; }
.lmap-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 9999px;
  background: rgba(0,0,0,0.05);
  transition: background .2s;
}
[data-theme="dark"] .lmap-badge { background: rgba(255,255,255,0.06); }
.lmap:hover .lmap-badge { background: rgba(0,0,0,0.09); }
[data-theme="dark"] .lmap:hover .lmap-badge { background: rgba(255,255,255,0.1); }
.lmap-dot { width: 6px; height: 6px; border-radius: 50%; background: #FFEC00; }
.lmap-badge span:last-child {
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #6b7280;
}
[data-theme="dark"] .lmap-badge span:last-child { color: rgba(255,255,255,0.45); }

.lmap-bottom { display: flex; flex-direction: column; gap: 4px; }
.lmap-title {
  font-size: 13px; font-weight: 500; line-height: 1.5;
  color: #111; margin: 0;
  transition: transform .25s ease;
}
[data-theme="dark"] .lmap-title { color: #fff; }
.lmap:hover .lmap-title { transform: translateX(4px); }

.lmap-coords {
  font-size: 11px; font-family: monospace;
  color: #6b7280; margin: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .25s ease, opacity .25s ease;
}
[data-theme="dark"] .lmap-coords { color: rgba(255,255,255,0.45); }
.lmap.expanded .lmap-coords { max-height: 40px; opacity: 1; }

.lmap-underline {
  height: 1px;
  background: linear-gradient(to right, rgba(255,236,0,.55), rgba(255,236,0,.25), transparent);
  transform-origin: left; transform: scaleX(.3);
  transition: transform .4s ease;
}
.lmap:hover .lmap-underline,
.lmap.expanded .lmap-underline { transform: scaleX(1); }

/* Hint */
.lmap-hint {
  position: absolute; bottom: -22px; left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 10px; color: #6b7280; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
[data-theme="dark"] .lmap-hint { color: rgba(255,255,255,0.35); }
.lmap-hint--open { display: none; }
.lmap.expanded .lmap-hint--collapse { display: none; }
.lmap.expanded .lmap-hint--open { display: block; }

.lmap:hover:not(.expanded) .lmap-hint--collapse,
.lmap.expanded:hover .lmap-hint--open {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 80px 48px 40px;
}

/* Footer grid animation layers (injected by JS) */
.footer-grid-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.footer-grid-static { opacity: 0.06; }
.footer-grid-hover  { opacity: 0.35; }

[data-theme="light"] .footer-grid-layer { color: #111; }
[data-theme="dark"]  .footer-grid-layer { color: #fff; }

/* Glow blobs */
.footer-glow-1, .footer-glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.footer-glow-1 {
  right: -15%; top: -40%;
  width: 40%; height: 80%;
  background: rgba(249, 115, 22, 0.15);
  filter: blur(100px);
}
.footer-glow-2 {
  left: -10%; bottom: -40%;
  width: 40%; height: 80%;
  background: rgba(99, 102, 241, 0.15);
  filter: blur(100px);
}

/* Ensure footer content sits above grid */
.footer > .container { position: relative; z-index: 1; }

/* Footer logo images — removed */
.footer-logo-for-light { display: none !important; }
.footer-logo-for-dark  { display: none !important; }

/* Footer typing animation */
.footer-typing-wrap {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  min-height: 44px;
}
.footer-typing-text {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #111;
  transition: color 0.3s;
}
[data-theme="dark"] .footer-typing-text {
  color: #fff;
}
.footer-typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: #111;
  margin-left: 4px;
  vertical-align: middle;
  animation: footerCursorBlink 0.8s ease-in-out infinite alternate;
  transition: background 0.3s;
}
[data-theme="dark"] .footer-typing-cursor {
  background: #fff;
}
@keyframes footerCursorBlink {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Gündüz (light) mod: beyaz arka plan, siyah yazı */
.footer {
  background: #fff;
  color: #111;
  border-top: 1px solid #e0e0e0;
}

/* Gece (dark) mod: siyah arka plan, beyaz yazı */
[data-theme="dark"] .footer {
  background: #111;
  color: #fff;
  border-top: 1px solid #222;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 900px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px)  { .footer { padding: 60px 24px 32px; } }

.footer-logo img { height: 50px; margin-bottom: 20px; display: block; }
.footer-logo p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.4); max-width: 260px; }
[data-theme="dark"] .footer-logo p { color: rgba(255,255,255,0.35); }

/* Gündüz mod: siyah yazı */
.footer-logo p {
  color: #111;
}
/* Gece mod: beyaz yazı */
[data-theme="dark"] .footer-logo p {
  color: #fff;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 18px;
}
[data-theme="dark"] .footer-col h5 {
  color: #fff;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--ink-fg); }

/* Gündüz mod: siyah linkler */
.footer-col ul a {
  color: #111;
}
.footer-col ul a:hover {
  color: #555;
}
/* Gece mod: beyaz ve sarı linkler */
[data-theme="dark"] .footer-col ul a {
  color: #fff;
}
[data-theme="dark"] .footer-col ul a:hover {
  color: #ffe600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }

/* Gündüz mod: siyah yazı */
.footer-bottom p {
  color: #111;
}
/* Gece mod: beyaz yazı */
[data-theme="dark"] .footer-bottom p {
  color: #fff;
}

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  border: 1px solid #e0e0e0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: #111;
  transition: all 0.2s;
  font-weight: 700;
}
.footer-socials a:hover {
  border-color: #111;
  color: #555;
}
/* Gece mod: beyaz ve sarı ikonlar */
[data-theme="dark"] .footer-socials a {
  border: 1px solid #222;
  color: #fff;
}
[data-theme="dark"] .footer-socials a:hover {
  border-color: #ffe600;
  color: #ffe600;
}

/* ═══════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════ */
.page-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 148px 48px 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Blog hero — cybernetic grid shader */
.blog-hero {
  position: relative;
  overflow: hidden;
  background: #000;
}
.blog-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.blog-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.4s;
}
[data-theme="light"] .blog-hero__veil { background: rgba(0,0,0,0.18); }
[data-theme="dark"]  .blog-hero__veil { background: rgba(0,0,0,0.18); }
.blog-hero .page-hero-inner { position: relative; z-index: 1; }
.blog-hero h1  { color: #fff !important; }
.blog-hero p   { color: rgba(255,255,255,0.7) !important; }
.blog-hero .breadcrumb a { color: rgba(255,255,255,0.5) !important; }
.blog-hero .breadcrumb span { color: rgba(255,255,255,0.35) !important; }
.blog-hero .accent { color: var(--accent) !important; }
@media (max-width: 768px) { .page-hero { padding: 120px 24px 60px; } }

.page-hero-inner { max-width: 1320px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: clamp(64px, 12vw, 150px); color: var(--fg); line-height: 0.9; margin-bottom: 24px; }
.page-hero .accent { color: var(--accent); }
.page-hero p { max-width: 580px; font-size: 18px; color: var(--fg2); margin-left: auto; margin-right: auto; }
.page-hero .breadcrumb { justify-content: center; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg3); margin-bottom: 28px;
  font-weight: 500; letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--fg3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb .sep { color: var(--border-dark); }
.hh-breadcrumb {
  justify-content: center;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
}
.hh-breadcrumb a { color: rgba(255,255,255,0.4); }
.hh-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.hh-breadcrumb .sep { color: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════
   SERVICES PAGE — Full list
═══════════════════════════════════════════ */
.services-full {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}
.service-full-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background: var(--bg);
  transition: background 0.25s;
}
.service-full-item:hover { background: var(--bg2); }
@media (max-width: 768px) { .service-full-item { grid-template-columns: 1fr; } }

.service-full-left {
  padding: 52px 44px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.service-full-left .num {
  font-family: var(--font-display);
  font-size: 96px; color: var(--border); line-height: 1; margin-bottom: 16px;
  transition: color 0.3s;
}
.service-full-item:hover .num { color: var(--fg3); }
.service-full-left h3 { font-size: 36px; color: var(--fg); }
.service-full-right { padding: 52px 44px; }
.service-full-right p { font-size: 16px; line-height: 1.85; color: var(--fg2); margin-bottom: 28px; }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 5px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
  transition: all 0.2s;
}
.service-full-item:hover .service-tag {
  border-color: var(--fg3);
  color: var(--fg);
}

/* ═══════════════════════════════════════════
   PROJECTS PAGE — Full grid
═══════════════════════════════════════════ */
.projects-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}
@media (max-width: 768px) { .projects-full { grid-template-columns: 1fr; } }

.project-full-card {
  background: var(--bg2);
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: background 0.25s;
}
.project-full-card::before {
  content: attr(data-number);
  position: absolute; top: 20px; right: 28px;
  font-family: var(--font-display);
  font-size: 110px; color: var(--border); line-height: 1;
  transition: color 0.3s; z-index: 0;
}
.project-full-card:hover { background: var(--bg3); }
.project-full-card:hover::before { color: rgba(0,0,0,0.05); }
[data-theme="dark"] .project-full-card:hover::before { color: rgba(255,230,0,0.06); }

.project-full-card-content { position: relative; z-index: 1; }
.project-cat {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 10px;
}
.project-full-card h3 { font-size: 38px; color: var(--fg); margin-bottom: 10px; }
.project-full-card p  { font-size: 14px; color: var(--fg2); line-height: 1.7; }
.project-full-card .arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg); opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}
.project-full-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════════
   BLOG
═══════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--bg);
  padding: 40px;
  transition: background 0.25s;
  cursor: pointer;
}
.blog-card:hover { background: var(--bg2); }
.blog-card-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 16px;
}
.blog-card h3 {
  font-family: var(--font-body);
  font-size: 19px; font-weight: 700;
  line-height: 1.45; color: var(--fg); margin-bottom: 14px;
}
.blog-card p { font-size: 14px; line-height: 1.8; color: var(--fg2); margin-bottom: 24px; }
.blog-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg3);
  padding-top: 18px; border-top: 1px solid var(--border);
}
.blog-card-footer .read-more {
  color: var(--fg); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.blog-card:hover .read-more { gap: 10px; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-item { border-left: 3px solid var(--fg); padding-left: 22px; }
.contact-item h4 {
  font-family: var(--font-body); font-size: 11px;
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 6px;
}
.contact-item p { font-size: 17px; color: var(--fg); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg3);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--fg); }
.form-group textarea { resize: vertical; min-height: 148px; }

/* ═══════════════════════════════════════════
   FILTER TABS
═══════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  width: fit-content;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 11px 22px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--fg3);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.filter-tab:last-child { border-right: none; }
.filter-tab:hover { color: var(--fg); background: var(--bg2); }
.filter-tab.active { background: var(--fg); color: var(--bg); }

/* ═══════════════════════════════════════════
   COLOR PALETTE TOOL
═══════════════════════════════════════════ */
.palette-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; align-items: center; }
.palette-generator { background: var(--bg2); border: 1px solid var(--border); padding: 56px 40px; margin-bottom: 56px; }
.palette-generator h3 { font-size: 40px; margin-bottom: 6px; }
.palette-generator .subtitle { color: var(--fg2); font-size: 16px; margin-bottom: 44px; }

.color-swatches { display: flex; border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px; }
.color-swatch-item {
  flex: 1; display: flex; flex-direction: column;
  position: relative; transition: flex 0.35s ease; cursor: pointer;
  min-height: 240px;
}
.color-swatch-item:hover { flex: 1.6; }
.swatch-color {
  flex: 1; min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.swatch-copy-hint {
  opacity: 0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(0,0,0,0.55); color: white;
  padding: 6px 12px; transition: opacity 0.2s;
}
.swatch-color:hover .swatch-copy-hint { opacity: 1; }
.swatch-info { padding: 14px 16px; background: var(--bg2); border-top: 1px solid var(--border); }
.swatch-hex { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 3px; }
.swatch-name { font-size: 11px; color: var(--fg3); margin-bottom: 10px; }
.swatch-actions { display: flex; gap: 6px; }
.swatch-btn {
  flex: 1; padding: 6px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--border);
  color: var(--fg3); cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.swatch-btn:hover { border-color: var(--fg); color: var(--fg); }
.swatch-btn.locked { border-color: var(--fg); color: var(--fg); background: var(--bg3); }

.palette-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 56px; }
.palette-preset {
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: border-color 0.3s, transform 0.3s;
}
.palette-preset:hover { border-color: var(--fg); transform: translateY(-4px); }
.preset-swatches { display: flex; height: 72px; }
.preset-swatch { flex: 1; }
.preset-label { padding: 14px 16px; background: var(--bg2); font-size: 12px; color: var(--fg2); }
.preset-name { font-weight: 700; color: var(--fg); font-size: 13px; margin-bottom: 4px; }

/* ═══════════════════════════════════════════
   COPIED TOAST
═══════════════════════════════════════════ */
.copied-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--ink-fg);
  padding: 13px 26px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; z-index: 9999;
  transition: transform 0.3s ease; pointer-events: none;
}
.copied-toast.show { transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   MISC
═══════════════════════════════════════════ */
.kbd {
  background: var(--bg3); color: var(--fg);
  padding: 3px 8px; font-family: monospace;
  font-size: 11px; border: 1px solid var(--border);
}

.info-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); margin-top: 56px;
}
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }
.info-item { background: var(--bg2); padding: 40px; }
.info-item h4 { font-size: 22px; margin-bottom: 12px; color: var(--fg); }
.info-item p  { font-size: 14px; color: var(--fg2); line-height: 1.75; }

/* ═══════════════════════════════════════════
   CONTACT HERO — Pong Canvas
═══════════════════════════════════════════ */
.contact-hero-anim {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: #000;
  padding: 0 48px 60px;
  border-bottom: 1px solid #222;
}

/* Pong canvas — fills the section absolutely */
.contact-pong-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Content sits above the canvas, bottom-left, with nav clearance */
.contact-pong-wrap .cha-content {
  position: relative;
  z-index: 10;
  padding-bottom: 8px;
}
.contact-pong-wrap .cha-content h1        { color: #fff; }
.contact-pong-wrap .cha-content .accent   { color: #FFEC00; }
.contact-pong-wrap .cha-content p         { color: rgba(255,255,255,0.6); }
.contact-pong-wrap .cha-content .breadcrumb,
.contact-pong-wrap .cha-content .breadcrumb a { color: rgba(255,255,255,0.4); }
.contact-pong-wrap .cha-content .breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.contact-pong-wrap .cha-content .breadcrumb .sep  { color: rgba(255,255,255,0.2); }
.contact-pong-wrap .cha-content .breadcrumb { justify-content: center; }
.cha-bc {
  position: absolute;
  top: 136px;
  left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
}
.cha-bc .breadcrumb { color: rgba(255,255,255,0.4); justify-content: center; margin-bottom: 0; }
.cha-bc .breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.cha-bc .breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.cha-bc .breadcrumb .sep { color: rgba(255,255,255,0.2); }

.cha-content {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.cha-content h1 {
  font-size: clamp(64px, 12vw, 150px);
  line-height: 0.9;
  margin-bottom: 24px;
}

.cha-content p {
  max-width: 560px;
  font-size: 18px;
}

.cha-content .breadcrumb a { transition: color 0.2s; }

@media (max-width: 768px) {
  .contact-hero-anim { padding: 110px 24px 60px; }
}

/* ═══════════════════════════════════════════
   AURORA HERO — WebGL Shader (Renk Paleti)
═══════════════════════════════════════════ */
.aurora-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #060608;
  padding: 120px 48px 80px;
}

#auroraCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.aurora-content {
  position: relative;
  z-index: 10;
  max-width: 1320px;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.aurora-content h1 {
  color: #ffffff;
  font-size: clamp(64px, 12vw, 150px);
  line-height: 0.9;
  margin-bottom: 24px;
}

.aurora-content .accent { color: var(--accent); }

.aurora-content p {
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  font-size: 18px;
  margin-left: auto;
  margin-right: auto;
}

.aurora-content .breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.aurora-content .breadcrumb a:hover { color: #ffffff; }
.aurora-content .breadcrumb .sep { color: rgba(255,255,255,0.15); }
.aurora-content .breadcrumb { color: rgba(255,255,255,0.4); justify-content: center; }

.aurora-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 24px;
}
.aurora-hero-note strong { color: var(--accent); }

@media (max-width: 768px) {
  .aurora-hero { padding: 110px 24px 60px; }
}

/* ================================================================
   BLOG READER OVERLAY
   ================================================================ */
.br-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.br-overlay.open { display: block; }

.br-scroller {
  min-height: 100%;
  overflow: visible;
}

.br-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(31,31,31,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(12px);
  line-height: 1;
}
.br-close:hover { background: rgba(60,60,60,0.9); transform: rotate(90deg); }

.br-intro {
  padding: 140px 48px 72px;
  max-width: 860px;
}
@media (max-width: 768px) { .br-intro { padding: 100px 24px 56px; } }

.br-intro__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.br-intro__title {
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 1.06;
  color: var(--fg);
  margin-bottom: 20px;
}
.br-intro__meta {
  font-size: 14px;
  color: var(--fg2);
  opacity: 0.7;
}

.br-content { padding: 0 48px 72px; }
@media (max-width: 768px) { .br-content { padding: 0 24px 56px; } }

.br-article {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--fg2);
}
.br-article p + p { margin-top: 1.5em; }
.br-article h2 { font-size: 26px; color: var(--fg); margin: 2em 0 0.6em; }
.br-article h3 { font-size: 20px; color: var(--fg); margin: 1.6em 0 0.5em; }
.br-article strong { color: var(--fg); }
.br-content--after { padding-top: 60px; border-top: 1px solid var(--border); margin-top: 0; }

/* ================================================================
   HERO REVEAL — cinematic split section inside reader
   ================================================================ */
.hero-reveal {
  position: relative;
  overflow: hidden;
  background: #04040a;
  min-height: 100vh;
}
.hero-reveal__header {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #04040a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%, 0 50%, 100% 50%, 100% 100%, 0 100%);
}
.hero-reveal_split { width: 100%; overflow: hidden; text-align: center; }
.hero-reveal_split_item { overflow: hidden; }

.c-wide-text {
  font-size: clamp(56px, 13vw, 155px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  line-height: 0.95;
}

.hero-reveal__content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.hero-reveal__content-inner {
  position: relative;
  min-height: 100vh;
  padding: 80px 48px 80px;
  display: flex;
  align-items: flex-start;
}
@media (max-width: 768px) { .hero-reveal__content-inner { padding: 60px 24px; } }

.hero-reveal__parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-reveal__content-p {
  max-width: 600px;
  position: relative;
  z-index: 5;
  margin-top: 60px;
}
.hero-reveal__content-p p {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5em;
}

/* Parallax element anchors */
.hero-reveal__parallax-alice  { position: absolute; right: 10%; top: 4%; }
.hero-reveal__parallax-clock  { position: absolute; right: 38%; top: 16%; }
.hero-reveal__parallax-book   { position: absolute; right: 20%; top: 50%; }
.hero-reveal__parallax-kattle { position: absolute; right: 50%; top: 6%; }
.hero-reveal__parallax-card   { position: absolute; right: 2%;  top: 26%; }
@media (max-width: 900px) {
  .hero-reveal__parallax-alice  { right: 2%; }
  .hero-reveal__parallax-card   { display: none; }
  .hero-reveal__parallax-clock  { right: 60%; }
}

/* ================================================================
   DIGITAL PARALLAX ELEMENTS
   ================================================================ */

/* 1. Data Stream */
.dig-stream canvas {
  display: block;
  border: 1px solid rgba(255,236,0,0.15);
  border-radius: 6px;
  background: #000;
}

/* 2. Digital Clock */
.dig-clock {
  background: #070712;
  border: 1px solid rgba(255,236,0,0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Courier New', monospace;
  text-align: center;
  min-width: 130px;
}
.dig-clock__label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,236,0,0.4);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dig-clock__display {
  font-size: 24px;
  font-weight: 700;
  color: #FFEC00;
  letter-spacing: 4px;
  text-shadow: 0 0 14px rgba(255,236,0,0.55);
}

/* 3. Code Block */
.dig-code {
  background: #06060f;
  border: 1px solid rgba(255,236,0,0.18);
  border-radius: 6px;
  padding: 8px;
  width: 136px;
  height: 96px;
  overflow: hidden;
}
.dig-code__bar {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.dig-code__dot { width: 7px; height: 7px; border-radius: 50%; }
.dig-code__dot:nth-child(1) { background: #ff5f57; }
.dig-code__dot:nth-child(2) { background: #febc2e; }
.dig-code__dot:nth-child(3) { background: #28c840; }
.dig-code__lines {
  font-family: 'Courier New', monospace;
  font-size: 7px;
  line-height: 1.8;
  color: rgba(255,236,0,0.5);
  animation: dig-scroll 7s linear infinite;
}
@keyframes dig-scroll { to { transform: translateY(-50%); } }
.dig-code__lines .kw  { color: #c792ea; }
.dig-code__lines .fn  { color: #82aaff; }
.dig-code__lines .str { color: #c3e88d; }
.dig-code__lines .num { color: #f78c6c; }

/* 4. Circuit SVG */
.dig-circuit { display: block; }
.dig-circuit__line { stroke: rgba(255,236,0,0.5); }
.dig-circuit__node {
  fill: #FFEC00;
  transform-box: fill-box;
  transform-origin: center;
}
.dig-circuit__node:nth-child(1) { animation: dig-pulse 2.0s ease-in-out infinite 0.0s; }
.dig-circuit__node:nth-child(2) { animation: dig-pulse 2.0s ease-in-out infinite 0.5s; }
.dig-circuit__node:nth-child(3) { animation: dig-pulse 2.0s ease-in-out infinite 1.0s; }
.dig-circuit__node:nth-child(4) { animation: dig-pulse 2.0s ease-in-out infinite 1.5s; }
@keyframes dig-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

/* 5. Holographic Card */
.dig-card {
  width: 280px;
  height: 168px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #080818 0%, #0e0e22 100%);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.dig-card__shine {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, #FFEC0018, #00ffff18, #ff00ff18, #FFEC0018);
  animation: dig-holo 5s linear infinite;
}
.dig-card__inner {
  position: absolute;
  inset: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}
.dig-card__chip {
  width: 34px;
  height: 26px;
  border: 1px solid rgba(255,236,0,0.45);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  padding: 3px;
  background: rgba(255,236,0,0.04);
}
.dig-card__chip-cell { background: rgba(255,236,0,0.25); border-radius: 1px; }
.dig-card__num {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.55);
}
.dig-card__label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,236,0,0.35);
  text-transform: uppercase;
}
.dig-card__scan {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,236,0,0.7), transparent);
  animation: dig-scan 3.5s ease-in-out infinite;
}
@keyframes dig-scan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Scroll-following contact line — hide on small screens */
@media (max-width: 900px) { #scrollLineSvg { display: none; } }

/* blog-card read-more as button */
.read-more-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.read-more-btn:hover { opacity: 0.7; }
