/* =========================================================
   EKT | Elektroliz Kaplama Teknolojileri — Ana Stil Dosyası
   ========================================================= */

/* --- TASARIM DEĞİŞKENLERİ --- */
:root {
  /* Marka */
  --brand: #00a2e8;
  --brand-600: #0088c7;
  --brand-50: #e8f6fd;

  /* Koyu tonlar (hero, projeler, footer) */
  --ink-950: #070b12;
  --ink-900: #0b1220;
  --ink-800: #121b2b;
  --line-dark: rgba(255, 255, 255, 0.09);
  --on-dark: #e9eef5;
  --on-dark-2: #9aa7b9;

  /* Açık tonlar (kurumsal bölümler) */
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --line: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;

  --white: #ffffff;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.35s var(--ease);
  --section-y: clamp(80px, 10vw, 128px);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

::selection {
  background: var(--brand);
  color: var(--white);
}

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* --- ORTAK TİPOGRAFİ --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--text);
}

.lead {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--text-2);
}

.on-dark .h2 {
  color: var(--white);
}

.on-dark .lead {
  color: var(--on-dark-2);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .lead {
  justify-self: end;
}

.head-copy .lead {
  margin-top: 18px;
}

/* --- BUTONLAR --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn i {
  font-size: 0.85em;
  transition: transform 0.3s var(--ease);
}

.btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(0, 162, 232, 0.7);
}

.btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

/* --- HEADER / NAVİGASYON --- */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

header.scrolled {
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
  transition: height 0.35s ease;
}

header.scrolled .nav-inner {
  height: 70px;
}

.logo-container {
  position: relative;
  z-index: 1002;
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 50px;
  width: auto;
  transition: height 0.35s ease;
}

header.scrolled .logo-container img {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: rgba(233, 238, 245, 0.78);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:not(.nav-cta):not(.nav-phone)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 8px;
  padding-left: 28px;
  border-left: 1px solid var(--line-dark);
}

.nav-links .nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--on-dark);
}

.nav-links .nav-phone i {
  color: var(--brand);
}

.nav-links .nav-cta {
  padding: 11px 20px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--brand-600);
}

.mobile-menu-btn {
  display: none;
  position: relative;
  z-index: 1002;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999; /* header (1000) ve menü panelinin altında */
  background: rgba(5, 8, 12, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* --- HERO --- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 84px;
  overflow: hidden;
  background: var(--ink-950);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Görsel, admin panelinden seçilir (şablonda style ile verilir) */
  background-color: var(--ink-950);
  background-position: 62% center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.82) 38%, rgba(7, 11, 18, 0.35) 70%, rgba(7, 11, 18, 0.55) 100%),
    linear-gradient(0deg, rgba(7, 11, 18, 0.95) 0%, transparent 35%);
}

/* İnce teknik ızgara dokusu */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 64px 48px;
}

.hero .eyebrow {
  color: var(--on-dark);
}

.hero .eyebrow::before {
  background: var(--brand);
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #36c3ff, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--on-dark-2);
}

.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Hero alt şeridi: kısa bilgiler */
.hero-facts {
  border-top: 1px solid var(--line-dark);
  background: rgba(7, 11, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-facts .container {
  display: grid;
  grid-auto-flow: column; /* panelden 1-4 bilgi girilebilir */
  grid-auto-columns: 1fr;
}

.fact {
  padding: 26px 28px;
  border-left: 1px solid var(--line-dark);
}

.fact:first-child {
  padding-left: 0;
  border-left: none;
}

.fact strong {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.fact span {
  font-size: 0.86rem;
  color: var(--on-dark-2);
}

/* --- VİTRİN: KAYDIRDIKÇA DÜZLEŞEN KART --- */
.scroll-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80rem;
  padding: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 58%, rgba(0, 162, 232, 0.13), transparent 70%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
}

.showcase-stage {
  position: relative;
  width: 100%;
  padding: 160px 0;
  perspective: 1000px;
}

.showcase-header {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  will-change: transform;
}

.showcase-title {
  margin-bottom: 4.5rem;
  color: var(--white);
}

.showcase-big {
  display: block;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.showcase-big span {
  color: var(--brand);
}

.showcase-card {
  max-width: 64rem;
  width: 100%;
  height: 40rem;
  margin: -3rem auto 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, #1a2333, #111826);
  box-shadow:
    0 0 #0000004d,
    0 9px 20px #0000004a,
    0 37px 37px #00000042,
    0 84px 50px #00000026,
    0 149px 60px #0000000a,
    0 233px 65px #00000003,
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(20deg) scale(1.05);
  will-change: transform;
}

.showcase-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink-800);
}

.showcase-media {
  overflow: hidden;
  background: linear-gradient(135deg, #8a8a8a 0%, #e3e2e2 45%, #f2f0f1 100%);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 48px 44px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 162, 232, 0.12), transparent 55%),
    var(--ink-800);
}

.showcase-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.showcase-info h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.showcase-info p {
  color: var(--on-dark-2);
}

.showcase-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
  list-style: none;
}

.showcase-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  font-size: 0.95rem;
}

.showcase-points i {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 162, 232, 0.35);
  border-radius: 8px;
  color: var(--brand);
  font-size: 0.8rem;
}

/* --- NEDEN BİZ --- */
#neden-biz {
  background: var(--paper-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: var(--transition);
}

.feature:hover {
  border-color: rgba(0, 162, 232, 0.45);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25);
  transform: translateY(-4px);
}

.feature-num {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 1.3rem;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-2);
}

/* --- KAPLAMA SÜRECİ --- */
#surec {
  background: var(--paper);
}

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  list-style: none;
}

/* Adımları birleştiren çizgi */
.process::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--line) 60%);
}

.step {
  position: relative;
  padding-right: 12px;
}

.step-num {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.step:hover .step-num {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-2);
}

/* --- PROJELER --- */
#projeler {
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(0, 162, 232, 0.12), transparent 70%),
    var(--ink-900);
  color: var(--white);
}

.project-filters {
  display: inline-flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.project-filters:empty {
  display: none;
}

.filter-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--on-dark-2);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--white);
}

.filter-btn.active {
  background: var(--white);
  color: var(--ink-900);
}

/* Elastik galeri: aktif panel genişler, diğerleri dar şerit olarak kalır */
.elastic-gallery {
  --ease-elastic: cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  gap: 14px;
  width: 100%;
  height: clamp(460px, 66vh, 580px);
  overflow-x: auto;
  scrollbar-width: none;
}

.elastic-gallery::-webkit-scrollbar {
  display: none;
}

.elastic-item {
  position: relative;
  flex: 1 1 0;
  min-width: 76px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: #0b0f14;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    flex-grow 0.7s var(--ease-elastic),
    min-width 0.7s var(--ease-elastic),
    border-color 0.4s ease;
}

.elastic-item.is-active {
  flex-grow: 4;
  min-width: 320px;
  border-color: rgba(0, 162, 232, 0.4);
  cursor: zoom-in;
}

.elastic-item.is-hidden {
  display: none;
}

.elastic-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.elastic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  /* Pasif panellerde yalnızca görsel kararır; yazılar okunaklı kalır */
  filter: brightness(0.4) saturate(0.85);
  transition: transform 1s ease, filter 0.7s var(--ease-elastic);
}

.elastic-item:hover .elastic-img {
  filter: brightness(0.6) saturate(0.9);
}

.elastic-item.is-active .elastic-img {
  transform: scale(1);
  filter: none;
}

.elastic-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 8, 12, 0.88) 0%, rgba(5, 8, 12, 0.25) 45%, transparent 75%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.elastic-item.is-active .elastic-shade {
  opacity: 1;
}

.elastic-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.elastic-item.is-active .elastic-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.elastic-tag {
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.elastic-title {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
}

.elastic-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
}

.elastic-cta svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* Pasif panel etiketi: masaüstünde dikey başlık */
.elastic-label {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.elastic-item.is-active .elastic-label {
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  transition-delay: 0s;
}

.elastic-label-text {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  max-height: calc(clamp(460px, 66vh, 580px) - 80px);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.elastic-label-num {
  display: none;
}

.project-empty {
  width: 100%;
  align-self: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-dark);
  border-radius: 16px;
  color: var(--on-dark-2);
  text-align: center;
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: rgba(5, 8, 12, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  max-width: 1000px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox img {
  max-height: calc(100vh - 180px);
  width: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox figcaption {
  text-align: center;
  color: var(--white);
}

.lightbox figcaption span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.lightbox figcaption strong {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lightbox figcaption p {
  max-width: 640px;
  margin-top: 6px;
  color: var(--on-dark-2);
  font-size: 0.95rem;
}

.lightbox figcaption p:empty {
  display: none;
}

.lightbox-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-btn:hover {
  border-color: var(--brand);
  background: var(--brand);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- REFERANSLAR (admin panelinden yönetilir) --- */
#referanslar {
  background: var(--paper-2);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ref-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a.ref-card:hover {
  border-color: rgba(0, 162, 232, 0.45);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25);
  transform: translateY(-4px);
}

.ref-logo {
  display: flex;
  align-items: center;
  height: 56px;
  margin-bottom: auto;
}

.ref-logo img {
  max-height: 52px;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.ref-card:hover .ref-logo img {
  filter: none;
  opacity: 1;
}

.ref-initials {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ref-card h3 {
  margin-top: 26px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ref-card p {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ref-arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--text-3);
  font-size: 0.85rem;
  transition: var(--transition);
}

a.ref-card:hover .ref-arrow {
  color: var(--brand);
  transform: translate(2px, -2px);
}

.ref-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--text-3);
  text-align: center;
}

/* --- ÇAĞRI BANDI --- */
.cta-band {
  background: linear-gradient(180deg, var(--paper-2) 50%, var(--paper) 50%);
}

.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(36px, 5vw, 64px);
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(0, 162, 232, 0.35), transparent 60%),
    var(--ink-900);
  color: var(--white);
}

.cta-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(270deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta-box p {
  max-width: 560px;
  margin-top: 12px;
  color: var(--on-dark-2);
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- İLETİŞİM --- */
#iletisim {
  background: var(--paper);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.contact-intro .lead {
  margin-bottom: 36px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.contact-icon-box {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 1.05rem;
  transition: var(--transition);
}

a.contact-item:hover .contact-icon-box {
  background: var(--brand);
  color: var(--white);
}

.contact-meta {
  min-width: 0;
}

.contact-meta span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contact-meta strong {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.directions-link:hover {
  text-decoration: underline;
}

.map-container {
  height: 260px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4);
  transition: filter 0.4s ease;
}

.map-container:hover iframe {
  filter: none;
}

/* Teklif Formu */
.contact-form {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-2);
}

.form-title {
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-sub {
  margin-bottom: 28px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-group label small {
  font-weight: 400;
  color: var(--text-3);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 162, 232, 0.14);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  margin-top: 12px;
  color: var(--brand-600);
  font-size: 0.92rem;
  text-align: center;
}

.form-status:empty {
  display: none;
}

/* --- FOOTER --- */
footer {
  background: var(--ink-950);
  color: var(--on-dark-2);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-block: 72px 56px;
}

.footer-brand img {
  height: 58px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 340px;
  font-size: 0.93rem;
}

.footer-col h4 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
}

.footer-col a,
.footer-col li {
  color: var(--on-dark-2);
  font-size: 0.93rem;
  text-decoration: none;
}

.footer-col a {
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col i {
  width: 20px;
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

/* --- GÖRÜNÜR OLUNCA BELİRME ANİMASYONU ---
   (JS yoksa içerik gizlenmez; animasyon bitince hover efektleri normal çalışır) */
.js .reveal {
  opacity: 0;
}

.js .reveal.visible {
  opacity: 1;
  animation: revealUp 0.8s var(--ease) backwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 1180px) {
  .nav-links {
    gap: 24px;
  }
  .nav-actions {
    padding-left: 20px;
  }
  .nav-links .nav-phone {
    display: none;
  }
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: 84%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 96px 32px 40px;
    border-left: 1px solid var(--line-dark);
    background: var(--ink-900);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s ease;
  }
  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-links li a:not(.nav-cta):not(.nav-phone) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.15rem;
  }
  .nav-links a.active::after {
    display: none;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    border: none;
  }
  .nav-links .nav-phone {
    display: inline-flex;
    justify-content: center;
  }
  .nav-links .nav-cta {
    padding: 14px 20px;
    text-align: center;
  }
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .section-head .lead,
  .project-filters {
    justify-self: start;
  }
  .hero-facts .container {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
  }
  .fact:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 28px;
  }
  .process::before {
    display: none;
  }
  .cta-box {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  /* Vitrin kartı: tablette görsel daralır, metne yer açılır */
  .scroll-showcase {
    padding: 40px;
  }
  .showcase-screen {
    grid-template-columns: 2fr 3fr;
  }
  .showcase-info {
    padding: 32px 28px;
  }
  /* Elastik galeri tablet ve mobilde dikey akordeon olur */
  .elastic-gallery {
    flex-direction: column;
    gap: 8px;
    height: auto;
    overflow: visible;
  }
  .elastic-item {
    flex: none;
    min-width: 0;
    height: 64px;
    transition:
      height 0.7s var(--ease-elastic),
      border-color 0.4s ease;
  }
  .elastic-item.is-active {
    min-width: 0;
    height: min(420px, 62vh);
  }
  .elastic-content {
    padding: 20px;
  }
  .elastic-label {
    left: 20px;
    right: 20px;
    bottom: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(50%);
  }
  .elastic-item.is-active .elastic-label {
    transform: translateY(50%) scale(0.9);
  }
  .elastic-label-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--brand);
  }
  .elastic-label-text {
    writing-mode: horizontal-tb;
    transform: none;
    max-height: none;
    font-size: 0.98rem;
  }
}

@media (max-width: 768px) {
  .scroll-showcase {
    height: 60rem;
    padding: 8px;
  }
  .showcase-stage {
    padding: 40px 0;
  }
  .showcase-title {
    margin-bottom: 4rem;
    padding: 0 12px;
  }
  .showcase-card {
    height: 30rem;
    padding: 8px;
    border-radius: 22px;
    transform: rotateX(20deg) scale(0.7);
  }
  .showcase-screen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .showcase-info {
    gap: 10px;
    padding: 20px;
  }
  .showcase-info p,
  .showcase-points {
    display: none;
  }
  .showcase-info .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }
  .nav-inner {
    height: 72px;
  }
  .logo-container img,
  header.scrolled .logo-container img {
    height: 42px;
  }
  .hero {
    padding-top: 72px;
  }
  .hero .btn-group .btn {
    flex: 1 1 100%;
  }
  .fact {
    padding: 20px 16px;
  }
  .fact:nth-child(odd) {
    padding-left: 0;
  }
  .feature-grid,
  .process {
    grid-template-columns: 1fr;
  }
  .ref-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ref-card {
    min-height: 150px;
    padding: 20px;
  }
  .ref-card h3 {
    margin-top: 16px;
    font-size: 0.98rem;
  }
  .ref-arrow {
    top: 18px;
    right: 18px;
  }
  .cta-actions .btn {
    flex: 1 1 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 56px 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .lightbox {
    padding: 70px 16px;
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .lightbox img {
    max-height: calc(100vh - 240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
  }
  .showcase-card,
  .showcase-header {
    transform: none !important;
  }
}
