/* ═══════════════════════════════════════════════════════════════════
   ADA TRUSTAR MÜHENDİSLİK — Modern Industrial Design System
   Typography: Bebas Neue + Inter + JetBrains Mono + Teko
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg:         #07080d;
  --bg-soft:    #0a0c14;
  --surface:    #0e1118;
  --surface-2:  #131720;
  --panel:      #161b26;
  --card:       #1a1f2e;
  --line:       rgba(255,255,255,.06);
  --line-2:     rgba(255,255,255,.1);
  --ink:        #ffffff;
  --ink-soft:   #e6edf7;
  --ink-muted:  #a8b3c7;
  --ink-dim:    #6b7689;
  --accent:     #d4922a;
  --accent-2:   #e8a83c;
  --accent-bg:  rgba(212,146,42,.1);
  --steel:      #4a6fa5;
  --ok:         #22c55e;
  --err:        #ef4444;
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-ui:      'Teko', 'Oswald', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --nav-h:      78px;
  --topbar-h:   44px;
  --max-w:      1440px;
  --gutter:     clamp(18px, 4vw, 60px);
  --ease:       cubic-bezier(.16,1,.3,1);
}

[data-theme="light"] {
  --bg:         #f6f7f9;
  --bg-soft:    #eef1f5;
  --surface:    #ffffff;
  --surface-2:  #fafbfc;
  --panel:      #f3f5f8;
  --card:       #ffffff;
  --line:       rgba(10,14,26,.08);
  --line-2:     rgba(10,14,26,.14);
  --ink:        #0a0e1a;
  --ink-soft:   #1a1f2e;
  --ink-muted:  #4b5668;
  --ink-dim:    #8695a8;
}
[data-theme="light"] body { background: var(--bg); color: var(--ink); }
[data-theme="light"] .topbar { background: #0a0e1a; }
[data-theme="light"] .main-nav { background: rgba(255,255,255,.97); }
[data-theme="light"] .nav-logo-dark { display:none!important; }
[data-theme="light"] .nav-logo-light { display:block!important; }
[data-theme="dark"] .nav-logo-dark { display:block!important; }
[data-theme="dark"] .nav-logo-light { display:none!important; }
[data-theme="light"] .nav-list > li > a { color: #1a1f2e; }
[data-theme="light"] .nav-dropdown { background: var(--surface)!important; border-color: var(--line-2); }
[data-theme="light"] .nav-dropdown a { color: var(--ink-soft)!important; }
[data-theme="light"] .page-hero{background:#0a0e1a}
[data-theme="light"] .footer{background:#0a0e1a}
[data-theme="light"] .section-dark { background: var(--surface); }

*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}
img { max-width:100%; display:block; }
a { color: inherit; text-decoration:none; }
button { font: inherit; cursor:pointer; background:none; border:none; color:inherit; }
ul { list-style:none; }
::selection { background: var(--accent); color: #000; }

.t-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.t-label::before {
  content:'';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.t-g { color: var(--accent); }

.cursor-dot, .cursor-ring {
  position: fixed; top:0; left:0;
  pointer-events:none; z-index: 10000;
  transform: translate(-50%,-50%);
}
.cursor-dot { width:6px; height:6px; border-radius:50%; background: var(--accent); }
.cursor-ring { width:38px; height:38px; border-radius:50%; border: 1px solid rgba(212,146,42,.4); transition: transform .16s, width .22s, height .22s; }
@media (pointer:coarse) { .cursor-dot, .cursor-ring { display:none; } }

.page-loader {
  position: fixed; inset:0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items:center; justify-content:center;
  animation: loaderFade .5s 1s ease forwards;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: 54px;
  letter-spacing: .04em;
  color: var(--ink);
  position: relative;
}
.loader-logo::after {
  content:'';
  position:absolute; left:0; right:0; bottom: -10px;
  height: 2px; background: var(--accent);
  animation: loaderLine 1s ease;
}
@keyframes loaderFade { 0%{opacity:1} 100%{opacity:0;visibility:hidden;pointer-events:none} }
@keyframes loaderLine { 0%{transform:scaleX(0);transform-origin:left} 100%{transform:scaleX(1)} }
.page-loader.done { display:none!important; }

.topbar {
  height: var(--topbar-h);
  background: #06080c;
  border-bottom: 1px solid var(--line);
  display: flex; align-items:center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  position: relative;
  z-index: 150;
}
.tb-left, .tb-right { display:flex; align-items:center; gap: 22px; }
.tb-left a, .tb-right a { color: rgba(240,248,255,.92); transition: color .2s; }
.tb-left a:hover, .tb-right a:hover { color: var(--accent-2); }
.tb-left svg { color: var(--accent); margin-right: 5px; vertical-align: middle; }
.lang-btn {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(240,248,255,.8);
  transition: all .2s;
}
.lang-btn.active, .lang-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.theme-btn {
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 10px;
  display: inline-flex; align-items:center;
  color: rgba(240,248,255,.8);
  transition: all .2s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .icon-moon { display:block; }
[data-theme="dark"] .icon-sun { display:none; }
[data-theme="light"] .icon-moon { display:none; }
[data-theme="light"] .icon-sun { display:block; }
@media (max-width: 768px) {
  .topbar { padding: 0 14px; height: 40px; font-size: 12px; }
  .tb-left > *:nth-child(n+4) { display:none; }
}

.main-nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items:center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(7,8,13,.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.main-nav.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.nav-logo { display:flex; align-items:center; height: 100%; }
.nav-logo-img { height: 54px; width: auto; object-fit: contain; }
.nav-list { display:flex; align-items:center; gap: 2px; }
.nav-list > li > a {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(220,232,250,.9);
  padding: 10px 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.nav-list > li > a::after {
  content:'';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--ink); }
.nav-list > li > a:hover::after, .nav-list > li > a.active::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% - 2px); left: 0;
  min-width: 240px;
  background: #0a0e1a;
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--accent);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .22s, transform .22s;
  z-index: 250;
  box-shadow: 0 24px 48px rgba(0,0,0,.5);
}
.has-dropdown:hover .nav-dropdown { opacity:1; pointer-events:all; transform:none; }
.nav-dropdown a {
  display: block;
  padding: 11px 20px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(220,232,250,.88);
  transition: all .18s;
  border-left: 2px solid transparent;
}
.nav-dropdown a:hover { color: var(--accent); background: rgba(212,146,42,.07); border-left-color: var(--accent); padding-left: 24px; }

.nav-cta {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .22s;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212,146,42,.3); }

.hamburger { display:none; flex-direction:column; gap:5px; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.mob-nav { display:none; }
@media (max-width: 1100px) {
  .nav-list, .nav-cta { display:none; }
  .hamburger { display: flex; }
  .mob-nav {
    display: flex; flex-direction: column;
    position: fixed;
    top: calc(var(--topbar-h) + var(--nav-h));
    left: 0; right: 0;
    background: rgba(7,8,13,.98);
    backdrop-filter: blur(20px);
    padding: 20px var(--gutter);
    border-top: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s, opacity .3s;
    z-index: 199;
    max-height: calc(100vh - var(--topbar-h) - var(--nav-h));
    overflow-y: auto;
  }
  .mob-nav.open { transform: translateY(0); opacity:1; pointer-events: all; }
  .mob-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-ui);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .mob-cta {
    background: var(--accent);
    color: #000 !important;
    text-align: center;
    margin-top: 10px;
    padding: 14px!important;
    border-bottom: none!important;
  }
  .nav-logo-img { height: 44px; }
}

.btn {
  display: inline-flex; align-items: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .22s;
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212,146,42,.3); }
.btn-outline { background: transparent; color: var(--ink-soft); border: 1px solid rgba(255,255,255,.25); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 12px 24px; }
.btn-ghost:hover { color: var(--accent); }

.section { padding: clamp(60px, 8vw, 110px) var(--gutter); position: relative; }
.section-tight { padding: clamp(50px, 6vw, 80px) var(--gutter); }
.section-dark { background: var(--surface); }
.section-darker { background: var(--bg-soft); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 60px);
  flex-wrap: wrap;
}
.sec-h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 88px);
  line-height: .88;
  letter-spacing: .02em;
  color: var(--ink);
  margin-top: 14px;
  max-width: 900px;
}
.sec-h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 60px);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--ink);
  margin-top: 12px;
}

.hero-slider {
  position: relative;
  height: calc(100vh - var(--topbar-h) - var(--nav-h));
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
}
.slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease); }
.slide.active { opacity: 1; pointer-events: all; }
.slide-bg { position:absolute; inset: 0; }
.slide-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.32) saturate(.55);
  transform: scale(1.06);
  transition: transform 10s linear;
}
.slide.active .slide-bg img { transform: scale(1); }
.slide-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(212,146,42,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(212,146,42,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.slide-ov {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(7,8,12,.92) 0%, rgba(7,8,12,.5) 50%, transparent 100%), linear-gradient(to top, rgba(7,8,12,.4) 0%, transparent 50%);
}
.slide-content {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(80px, 12vh, 140px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.slide-body { max-width: 720px; }
.slide-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--accent);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.slide-num::before { content:''; width: 40px; height: 1px; background: var(--accent); }
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(54px, 9vw, 124px);
  line-height: .86;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.slide-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(230,237,247,.82);
  margin-bottom: 36px;
  max-width: 560px;
}
.slide-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.slider-dots {
  position: absolute; right: var(--gutter);
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 768px) { .slider-dots { right: 18px; bottom: 30px; top: auto; transform: none; flex-direction: row; } }
.s-dot { width: 3px; height: 28px; background: rgba(255,255,255,.2); cursor: pointer; transition: all .3s var(--ease); }
.s-dot.active { background: var(--accent); height: 52px; }
@media (max-width: 768px) {
  .s-dot { width: 28px; height: 3px; }
  .s-dot.active { width: 48px; height: 3px; }
}
.slide-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--accent); z-index: 10; transition: width .1s linear; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .28em; color: rgba(255,255,255,.35); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, rgba(212,146,42,.7)); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(1); opacity:.5; } 50% { transform: scaleY(1.3); opacity:1; } }
@media (max-width: 768px) { .scroll-hint { display:none; } }

.marquee {
  background: var(--accent);
  color: #0a0e1a;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-top: 1px solid rgba(0,0,0,.1);
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.marquee-track { display: inline-flex; gap: 50px; animation: marquee 45s linear infinite; padding-left: 50px; }
.marquee-item { font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.marquee-item::after { content: '◆'; margin-left: 50px; color: rgba(0,0,0,.5); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat-cell { background: var(--bg-soft); padding: clamp(22px, 3vw, 36px) 24px; text-align: center; transition: background .25s; position: relative; }
.stat-cell:hover { background: var(--surface); }
.stat-cell::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.stat-cell:hover::before { transform: scaleX(1); }
.stat-n { font-family: var(--font-display); font-size: clamp(48px, 5.5vw, 80px); line-height: 1; color: var(--accent); }
.stat-l { font-family: var(--font-ui); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-top: 4px; }

.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); }
@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--card);
  text-decoration: none;
  transition: all .3s var(--ease);
}
.prod-card-bg { position: absolute; inset: 0; z-index: 0; }
.prod-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.35) saturate(.5);
  transition: filter .55s var(--ease), transform .8s var(--ease);
}
.prod-card:hover .prod-card-bg img { filter: brightness(.55) saturate(.85); transform: scale(1.08); }
.prod-card-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, transparent 100%); z-index: 1; }
.prod-card-body { position: relative; z-index: 2; padding: 24px 22px; }
.prod-card-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .28em; color: var(--accent); margin-bottom: 10px; }
.prod-card-title { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--ink); letter-spacing: .02em; }
.prod-card-arrow {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: translate(10px,-10px) rotate(-20deg);
  transition: all .35s var(--ease);
}
.prod-card:hover .prod-card-arrow { opacity: 1; transform: translate(0,0) rotate(0); }

.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 900px) { .editorial { grid-template-columns: 1fr; } }
.editorial-img { position: relative; min-height: 420px; overflow: hidden; }
.editorial-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.8); transition: transform .8s var(--ease); }
.editorial:hover .editorial-img img { transform: scale(1.04); }
.editorial-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  z-index: 2;
}
.editorial-body {
  background: var(--surface);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 60px);
  display: flex; flex-direction: column;
  justify-content: center;
}
.editorial-lead { font-size: 17px; font-weight: 400; line-height: 1.7; color: var(--ink-soft); margin: 20px 0 18px; max-width: 560px; }
.editorial-body-text { font-size: 15.5px; font-weight: 400; line-height: 1.75; color: var(--ink-muted); }

.pill-list { display: flex; flex-direction: column; gap: 0; margin-top: 28px; }
.pill {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px; font-weight: 400;
  color: var(--ink-muted);
}
.pill:last-child { border-bottom: none; }
.pill-n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; flex-shrink: 0; width: 40px; padding-top: 3px; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 3px; }
.proj-tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 3/2;
  text-decoration: none;
  transition: all .3s var(--ease);
  overflow: hidden;
}
.proj-tile::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.proj-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); border-color: rgba(212,146,42,.25); }
.proj-tile:hover::before { transform: scaleX(1); }
.proj-logo { max-width: 170px; max-height: 70px; object-fit: contain; transition: transform .35s; }
.proj-tile:hover .proj-logo { transform: scale(1.05); }
.proj-name {
  font-family: var(--font-ui);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(240,245,255,.78);
  text-align: center;
}
.proj-loc {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity .3s;
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
}
.proj-tile:hover .proj-loc { opacity: 1; }

.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 3px; }
.ref-cell {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px 22px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  aspect-ratio: 2/1;
  transition: border-color .25s, background .25s;
  cursor: pointer;
}
.ref-cell:hover { border-color: rgba(212,146,42,.35); background: var(--panel); }
.ref-cell img { max-width: 160px; max-height: 72px; object-fit: contain; transition: transform .3s; }
.ref-cell:hover img { transform: scale(1.06); }
.ref-name { font-family: var(--font-ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); text-align: center; }
.ref-cell:hover .ref-name { color: var(--ink-muted); }

.gallery-masonry { columns: 4 260px; column-gap: 3px; }
.gallery-card {
  break-inside: avoid;
  margin-bottom: 3px;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--card);
  display: block;
}
.gallery-card img {
  width: 100%; height: auto;
  display: block;
  filter: brightness(.92) saturate(.95);
  transition: filter .35s var(--ease), transform .55s var(--ease);
}
.gallery-card:hover img { filter: brightness(1.05) saturate(1.1); transform: scale(1.03); }
.gallery-card-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  display: flex; align-items: flex-end;
  padding: 16px;
}
.gallery-card:hover .gallery-card-ov { opacity: 1; }
.gallery-card-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color .25s, transform .3s;
  text-decoration: none;
}
.news-card:hover { border-color: rgba(212,146,42,.3); transform: translateY(-3px); }
.news-img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--bg-soft); }
.news-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); transition: filter .4s, transform .6s var(--ease); }
.news-card:hover .news-img img { filter: brightness(1); transform: scale(1.05); }
.news-body { padding: 20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.news-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.news-title { font-family: var(--font-display); font-size: 22px; line-height: 1.05; color: var(--ink); letter-spacing: .01em; margin-bottom: 10px; flex: 1; }
.news-excerpt { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin-bottom: 14px; }
.news-meta {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-dim);
}

.cta-band {
  background: var(--bg-soft);
  padding: clamp(60px, 8vw, 110px) var(--gutter);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band::before, .cta-band::after { content:''; position: absolute; left: 0; right: 0; height: 1px; background: var(--accent); }
.cta-band::before { top: 0; }
.cta-band::after { bottom: 0; }
.cta-heading { font-family: var(--font-display); font-size: clamp(46px, 6vw, 86px); line-height: .92; color: var(--ink); letter-spacing: .02em; margin-top: 14px; }
.cta-body { font-size: 16px; line-height: 1.75; color: var(--ink-muted); margin-bottom: 20px; }
.cta-contacts { display: grid; gap: 12px; margin-bottom: 24px; }
.cta-contact {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  transition: background .2s;
  text-decoration: none;
}
.cta-contact:hover { background: var(--panel); }
.cta-contact-icon { width: 40px; height: 40px; background: rgba(212,146,42,.1); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.cta-contact-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 3px; }
.cta-contact-value { font-size: 15px; color: var(--ink-soft); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.full { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.form-input, .form-textarea, .form-select {
  font-family: var(--font-sans);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 13px 16px;
  font-size: 14.5px;
  transition: border-color .2s, background .2s;
  outline: none;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); background: var(--surface); }
.form-textarea { resize: vertical; min-height: 120px; }

.footer {
  background: #06080c;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding: clamp(50px, 6vw, 90px) var(--gutter) 30px;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img { height: 46px; margin-bottom: 18px; }
.footer-about { font-size: 14px; line-height: 1.75; color: var(--ink-muted); max-width: 340px; }
.footer-col-title { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.footer-col a, .footer-col div {
  display: block;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(200,212,228,.72);
  transition: color .2s;
  padding: 2px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: .08em;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  transition: all .2s;
  font-size: 14px;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

.page-hero { position: relative; height: 380px; background: var(--bg-soft); overflow: hidden; display: flex; align-items: flex-end; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.3) saturate(.6); }
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(212,146,42,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(212,146,42,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,12,.9), transparent); }
.page-hero-inner { position: relative; z-index: 2; padding: 0 var(--gutter) 50px; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.page-hero-title { font-family: var(--font-display); font-size: clamp(44px, 6vw, 86px); line-height: .9; letter-spacing: .02em; color: var(--ink); margin-top: 14px; }
.page-hero-sub { font-size: 16px; color: rgba(200,212,228,.7); margin-top: 14px; max-width: 580px; }

.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: .08em;
  padding: 18px var(--gutter);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.breadcrumb a { color: var(--ink-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--ink-soft); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.96); z-index: 9998; display: none; align-items: center; justify-content: center; padding: 40px; backdrop-filter: blur(12px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(0,0,0,.7);
  color: var(--ink);
  border: 1px solid var(--line-2);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-ui);
}
.lb-close { top: 30px; right: 30px; }
.lb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 30px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.rv { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════
   v4.8 FIXES — Apr 2026
   Topbar polish · bigger logo · WhatsApp size · project logos · refs
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --topbar-h: 48px;
  --nav-h:    88px;
}

/* ── TOPBAR: Bigger, cleaner, better social icons ─────────── */
.topbar {
  height: var(--topbar-h);
  font-size: 14.5px;
  background: linear-gradient(180deg, #06080c 0%, #0a0c14 100%);
  border-bottom: 1px solid rgba(212,146,42,.12);
}
.tb-left { gap: 28px; }
.tb-right { gap: 14px; }
.tb-left a, .tb-right a {
  color: rgba(240,248,255,.92);
  font-weight: 500;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tb-left > svg:first-child { display: none; }

/* Social icon pills — much better looking */
.tb-left a[rel="noopener"] {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(240,248,255,.85);
  background: rgba(255,255,255,.03);
}
.tb-left a[rel="noopener"]:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.lang-btn { padding: 7px 14px; font-size: 12.5px; font-weight: 600; }
.theme-btn { padding: 7px 12px; }
.theme-btn svg { width: 16px; height: 16px; }

/* Hide the first (empty) svg in tb-left */
.tb-left > svg { display: none !important; }

@media(max-width:768px){
  .topbar { height: 44px; font-size: 12px; padding: 0 14px; }
  .tb-left { gap: 14px; }
  .tb-left > a:nth-child(n+4) { display: none; }
  .tb-left a[rel="noopener"] { width: 26px; height: 26px; }
}

/* ── NAV: Bigger logo, bigger text, better spacing ────────── */
.main-nav {
  height: var(--nav-h);
  background: rgba(7,8,13,.98);
}
.nav-logo-img {
  height: 64px !important;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}
.nav-list > li > a {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  letter-spacing: .08em;
}
.nav-cta {
  padding: 13px 22px !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: .12em;
}
@media(max-width:1200px){
  .nav-list > li > a { font-size: 14px; padding: 10px 12px; }
  .nav-logo-img { height: 58px !important; }
}
@media(max-width:992px){
  .nav-logo-img { height: 52px !important; }
}

/* Mobile nav — make it work properly */
@media(max-width:992px){
  .nav-list, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ── DARK PNG LOGO VISIBILITY — WHITE BG WRAPPER ──────────── */
/* For project/reference logos that are dark PNG and invisible on dark theme */
.logo-safe-bg {
  background: #ffffff !important;
  padding: 8px 14px !important;
  border-radius: 4px;
}
/* Auto-apply to reference logos */
.ref-cell img,
.ref-item img {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 3px;
  filter: none !important;
  max-width: 160px !important;
  max-height: 70px !important;
}
[data-theme="light"] .ref-cell img,
[data-theme="light"] .ref-item img {
  background: transparent;
  padding: 0;
}

/* Project detail — logo band fix */
.proj-logo-band img {
  background: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 4px;
  max-width: 240px !important;
  max-height: 80px !important;
  object-fit: contain;
}
[data-theme="light"] .proj-logo-band img { background: transparent !important; padding: 0 !important; }

/* Project card logos in list */
.proj-card-logo {
  background: #ffffff !important;
  padding: 6px 12px;
  border-radius: 3px;
}

/* ── WHATSAPP BUTTON FIX — correct size ───────────────────── */
.whatsapp-fab,
a[href^="https://wa.me"] svg,
.footer-social a[aria-label="WhatsApp"] svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 18px;
  max-height: 18px;
}
.footer-social a {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  transition: all .22s;
}
.footer-social a:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer-social { display: flex; gap: 10px; }

/* CTA card whatsapp — constrain icon */
.cta-contact svg {
  width: 22px !important;
  height: 22px !important;
}

/* ── HOMEPAGE LINK IN NAV — make it visible ───────────────── */
.nav-home-link {
  display: none;
}
@media(max-width:1100px){
  .nav-home-link { display: inline-flex !important; }
}

/* ── FOOTER FIXES — Proper 4-column layout ───────────────── */
.footer {
  background: #05080f !important;
  border-top: 2px solid var(--accent);
  padding: 60px var(--gutter) 0 !important;
}
/* footer-top has 2 children: footer-brand + footer-cols */
.footer-top {
  display: grid !important;
  grid-template-columns: 1.3fr 3fr !important;
  gap: 60px !important;
  padding-bottom: 48px !important;
  border-bottom: 1px solid var(--line) !important;
  align-items: start;
}
/* footer-cols itself holds 3 sub-columns (Products, Company, Contact) */
.footer-cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1.2fr !important;
  gap: 48px !important;
}
.footer-col { min-width: 0; }
.footer-brand { max-width: 280px; }
.footer-logo { height: 52px !important; margin-bottom: 20px; }
.footer-tagline {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 22px;
  font-weight: 300;
}
.footer-col-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent) !important;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--ink-muted) !important;
  transition: all .2s;
  display: inline-block;
  text-decoration: none;
}
.footer-col ul li a:hover {
  color: var(--accent) !important;
  transform: translateX(4px);
}
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.7;
  font-weight: 300;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.footer-contact-list a {
  color: var(--ink-muted) !important;
  text-decoration: none;
  transition: color .2s;
}
.footer-contact-list a:hover { color: var(--accent) !important; }
.footer-contact-list svg { flex-shrink: 0; color: var(--accent); margin-top: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-lang-sw { display: flex; gap: 8px; }
.footer-lang-sw a {
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  text-decoration: none;
  transition: all .2s;
}
.footer-lang-sw a.active,
.footer-lang-sw a:hover { border-color: var(--accent); color: var(--accent); }
/* Responsive breakpoints */
@media(max-width:1100px){
  .footer-top { grid-template-columns: 1fr !important; gap: 40px !important; }
  .footer-brand { max-width: none; }
}
@media(max-width:768px){
  .footer-cols { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .footer { padding: 48px 18px 0 !important; }
}
@media(max-width:480px){
  .footer-cols { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── ENSURE DARK THEME IS DEFAULT EVERYWHERE ──────────────── */
html:not([data-theme]) { background: var(--bg); color-scheme: dark; }
html:not([data-theme]) body { background: var(--bg); color: var(--ink-soft); }

/* ── HERO FIXES FOR SMALL SCREENS ─────────────────────────── */
@media(max-width:768px){
  .hero-title { font-size: clamp(44px, 10vw, 72px) !important; }
  .hero-subtitle { font-size: 14px; }
}

/* ── PROJECT CARD FIXES — for projeler.php list ───────────── */
.proj-card-logo-wrap {
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
.proj-card-logo-wrap img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
}

/* Ada Trustar logo in project detail — always dark version on white bg */
.ada-logo-on-white {
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 4px;
  display: block;
}
[data-theme="light"] .ada-logo-on-white {
  background: transparent;
  padding: 0;
}
