/* ================================================================
   ARER OTOMASYON — CORPORATE DESIGN SYSTEM v3
   White/light header & footer · Scroll animations · Cinematic hero
   ================================================================ */

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

:root {
  --white:      #ffffff;
  --near-white: #f8f9fb;
  --light:      #f0f2f6;
  --muted:      #e4e8ef;
  --border:     #dde2ea;
  --navy:       #111827;
  --navy-soft:  #1e293b;
  --slate:      #475569;
  --steel:      #64748b;
  --fog:        #94a3b8;
  --accent:     #1e3a5f;
  --radius-sm:  2px;
  --radius:     8px;
  --shadow-sm:  0 1px 4px rgba(17,24,39,.06), 0 2px 8px rgba(17,24,39,.04);
  --shadow-md:  0 4px 20px rgba(17,24,39,.10), 0 1px 4px rgba(17,24,39,.06);
  --shadow-lg:  0 16px 48px rgba(17,24,39,.14), 0 2px 8px rgba(17,24,39,.06);
  --ease:       cubic-bezier(.25,.46,.45,.94);
  --ease-out:   cubic-bezier(0,.5,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* page transition removed */

/* ── CONTAINER ───────────────────────────────────────────────── */
.container { width: min(1280px, 92%); margin: 0 auto; }

/* ================================================================
   HEADER — white
   ================================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 40px;
  border-right: 1px solid var(--border);
  height: 100%;
}

.brand-logo { height: 42px; object-fit: contain; display: block; transition: opacity .2s; }
.brand a:hover .brand-logo { opacity: .75; }

.nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #111827;
  padding: 0 20px;
  white-space: nowrap;
  position: relative;
  transition: color .18s;
  border-right: 1px solid var(--border);
}
.nav a:first-child { border-left: 1px solid var(--border); }

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--navy); }

.lang-btn {
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--slate);
  transition: all .18s;
  white-space: nowrap;
  margin-left: 18px;
  flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--near-white); }
.lang-btn svg { flex-shrink: 0; }

.nav .lang-mobile-link {
  display: none;
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 1px; transition: all .3s; }

/* ================================================================
   HERO — cinematic
   ================================================================ */
/* Hero alanını ekranın tamamını kaplayacak şekilde ayarla */
/* Ana kapsayıcıyı hizalama için hazırlıyoruz */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: block; /* Flexbox varsa iptal etmek veya içeriği bağımsız yönetmek için */
}

/* Resim ayarları (Önceki adımda yaptığımız gibi) */
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50px;
  left: 3%;
  width: auto;
  max-width: 55%;
  margin: 0;
  text-align: left;
  z-index: 3;
}

.hero-content h1,
.hero-content p {
  text-shadow: none;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8B0A1E;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(14px);
  animation: slideUp .7s var(--ease-out) .2s forwards;
}

.hero-content h1 {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 50px;
  font-weight: 700;
  color: #8B0A1E;
  line-height: 1.25;
  letter-spacing: -.2px;
  margin-bottom: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(26px);
  animation: slideUp .9s var(--ease-out) .4s forwards;
}

.hero-content p {
  font-size: clamp(20px, 10vw, 22px);
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(18px);
  animation: slideUp .7s var(--ease-out) .7s forwards;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--white); color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover { background: var(--near-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: transparent; color: rgba(255,255,255,.80);
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  text-decoration: none; border: 1px solid rgba(255,255,255,.30);
  border-radius: var(--radius-sm); transition: all .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.60); color: #fff; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 1;
}
.hero-scroll span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(0,0,0,.45); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(0,0,0,.4), transparent); }

/* ================================================================
   SCROLL REVEAL SYSTEM
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .28s; }
.reveal-d4 { transition-delay: .38s; }
.reveal-d5 { transition-delay: .48s; }
.reveal-d6 { transition-delay: .58s; }

/* ── DIRECTIONAL REVEAL MODIFIERS (add alongside .reveal) ─── */
.reveal.from-left  { transform: translateX(-52px); }
.reveal.from-right { transform: translateX(52px); }
.reveal.from-left.in-view,
.reveal.from-right.in-view { transform: translateX(0); opacity: 1; }

.reveal.reveal-scale { transform: scale(0.90) translateY(20px); }
.reveal.reveal-scale.in-view { transform: scale(1) translateY(0); opacity: 1; }

/* ── SECTION TITLE WRAP (animated underline) ─────────────── */
.section-title-wrap { display: block; }
.section-title-wrap .section-title { margin-bottom: 6px; }
.section-title-wrap::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 0;
  border-radius: 1px;
  transition: width 1.1s var(--ease-out) .3s;
}
.reveal.in-view .section-title-wrap::after { width: 72px; }

/* ================================================================
   SERVICES
   ================================================================ */
.services-section {
  background: var(--white);
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  display: block;
  font-size: 10.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--fog); margin-bottom: 12px;
  position: relative;
  padding-left: 14px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 11px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400; color: var(--navy); letter-spacing: -.3px; line-height: 1.15;
  margin-bottom: 48px;
}

.services-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 52px; gap: 24px; }
.services-header .section-title { margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: background .22s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height .35s var(--ease);
}
.service-card:hover { background: var(--near-white); }
.service-card:hover::before { height: 100%; }

.service-num { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--fog); margin-bottom: 18px; }
.service-card h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.service-card p { font-size: 13.5px; line-height: 1.75; color: var(--steel); }

.service-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .5px;
  color: var(--accent); text-decoration: none;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .22s, transform .22s;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ================================================================
   NEWS / CERTIFICATES
   ================================================================ */
.news-section {
  background: var(--near-white);
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

.news-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--near-white);
}

.info-icon {
  width: 24px; height: 24px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; font-style: italic;
  flex-shrink: 0;
}

.news-card-header h3 { font-size: 11.5px; font-weight: 700; color: var(--navy); letter-spacing: 1.5px; text-transform: uppercase; }

.news-card-content { padding: 18px 22px; }
.news-card-content p { font-size: 13.5px; line-height: 1.7; color: var(--slate); margin-bottom: 14px; }

.news-image { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.news-image img { width: 100%; height: auto; display: block; transition: transform .4s var(--ease); }
.news-card:hover .news-image img { transform: scale(1.03); }
.clickable-image { cursor: zoom-in; }

/* ================================================================
   FOOTER — light grey professional
   ================================================================ */
.site-footer { background: #d0d3d8; border-top: none; }

.footer-inner { padding: 36px 0 28px; border-bottom: 1px solid rgba(0,0,0,.08); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-logo { height: 34px; object-fit: contain; display: block; margin-bottom: 12px; opacity: .85; }

.footer-tagline { font-size: 13px; line-height: 1.7; color: var(--steel); max-width: 260px; margin-bottom: 18px; }

.footer-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--fog); margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.footer-contact-list { display: flex; flex-direction: column; gap: 9px; }

.footer-contact-row { display: flex; flex-direction: column; gap: 2px; }

.contact-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--fog);
}

.footer-contact-row > span:last-child,
.footer-contact-row > a { font-size: 13px; color: var(--slate); text-decoration: none; transition: color .18s; }
.footer-contact-row > a:hover { color: var(--navy); }

.footer-nav-links { display: flex; flex-direction: column; }
.footer-nav-links a {
  font-size: 13px; color: var(--slate); text-decoration: none;
  padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.07);
  display: flex; align-items: center; gap: 0;
  transition: color .18s, padding-left .2s;
}
.footer-nav-links a .arrow { font-size: 12px; opacity: 0; width: 0; overflow: hidden; transition: opacity .18s, width .18s; }
.footer-nav-links a:hover { color: var(--navy); padding-left: 5px; }
.footer-nav-links a:hover .arrow { opacity: 1; width: 14px; }
.footer-nav-links a:last-child { border-bottom: none; }

.footer-address { font-style: normal; display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.footer-address strong { font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fog); }
.footer-address span { font-size: 12.5px; line-height: 1.6; color: var(--slate); }

.footer-directions {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--steel); text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.15); padding-bottom: 1px;
  transition: color .18s, border-color .18s;
}
.footer-directions:hover { color: var(--navy); border-color: var(--slate); }

.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid rgba(0,0,0,.12); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel); text-decoration: none; transition: all .18s;
}
.social-link:hover { border-color: rgba(0,0,0,.25); color: var(--navy); background: rgba(0,0,0,.06); }
.social-link.whatsapp:hover { border-color: #25D366; color: #25D366; background: rgba(37,211,102,.06); }
.social-link.linkedin:hover { border-color: #0A66C2; color: #0A66C2; background: rgba(10,102,194,.06); }

.footer-bottom { padding: 12px 0; background: rgba(0,0,0,.08); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 11.5px; color: var(--fog); }

/* ================================================================
   PAGE HERO (sub-pages)
   ================================================================ */
.page-hero { position: relative; width: 100%; overflow: hidden; }

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

.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,.72) 0%, rgba(17,24,39,.28) 52%, rgba(17,24,39,.00) 100%);
  display: flex; align-items: flex-end; padding-bottom: 52px; z-index: 1;
}
.page-hero-overlay .container { z-index: 2; }

.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400; color: #fff; letter-spacing: -.3px; margin-bottom: 10px; line-height: 1.1;
  opacity: 0; transform: translateY(20px);
  animation: slideUp .7s var(--ease-out) .2s forwards;
}
.page-hero p {
  font-size: 15px; color: rgba(255,255,255,.65); max-width: 600px; line-height: 1.65;
  opacity: 0; transform: translateY(16px);
  animation: slideUp .6s var(--ease-out) .45s forwards;
}

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.content-section { padding: 80px 0; background: var(--near-white); }
.content-section.white-bg { background: var(--white); }

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

.item-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.item-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.item-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.item-card:hover::after { transform: scaleX(1); }

.item-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); line-height: 1.25; }
.item-card p { font-size: 13.5px; line-height: 1.75; color: var(--steel); }
.item-card a.pdf-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--slate); text-decoration: none; transition: color .18s; }
.item-card a.pdf-link:hover { color: var(--accent); }
.items-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.schema-section { background: var(--white); padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.schema-label { font-size: 10.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--fog); text-align: center; margin-bottom: 24px; }
.schema-container { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.schema-container img { width: 100%; height: auto; display: block; }

.info-card-corp { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.info-card-header { background: var(--accent); padding: 28px 36px; }
.info-card-header h2 { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; color: #fff; }
.info-card-body { padding: 36px; }
.info-card-body > p { font-size: 14.5px; line-height: 1.8; color: var(--slate); margin-bottom: 28px; max-width: 700px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.info-item, .info-contact { background: var(--near-white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; }
.info-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--fog); margin-bottom: 5px; }
.info-value { display: block; font-size: 14px; line-height: 1.7; color: var(--navy); }
.info-value a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--border); transition: border-color .18s; }
.info-value a:hover { border-color: var(--accent); }
.info-link-corp { margin-top: 4px; }
.info-link-corp a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--accent); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; border-radius: var(--radius-sm); transition: background .18s, transform .18s; }
.info-link-corp a:hover { background: var(--navy-soft); transform: translateY(-1px); }


/* ================================================================
   COMPACT CARDS (index page — 4 columns, small, gray)
   ================================================================ */
.compact-cards-section {
  background: var(--near-white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.compact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.compact-card {
  background: #f0f2f6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.compact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.compact-card-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.compact-card-top .info-icon {
  flex-shrink: 0;
  margin-top: 1px;
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.compact-card-top h3 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.35;
}

.compact-card > p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--slate);
}

.compact-card-img {
  margin-top: 4px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.compact-card-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}

.compact-card:hover .compact-card-img img {
  transform: scale(1.04);
}

@media (max-width: 1100px) {
  .compact-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .compact-cards-grid { grid-template-columns: 1fr; }
}

/* ── SCADA FEATURES GRID ───────────────────────────────────── */
.scada-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

.scada-feature-card {
  background: var(--near-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.scada-feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.scada-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.scada-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.scada-feature-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--steel);
}

/* SCADA app cards with left accent border */
.item-card.scada-app-card {
  border-left: 3px solid var(--accent);
}

@media (max-width: 900px) {
  .scada-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scada-features-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── PLAY-ICON GRID (ortak — tüm sayfalarda kullanılır) ────── */
.play-icon {
  width: 42px; height: 42px; min-width: 42px;
  border: 2px solid #222; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s;
}
.play-icon svg { width: 14px; height: 14px; fill: #222; margin-left: 2px; transition: fill .3s; }

.mes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
  margin-top: 48px;
}
.mes-item { display: flex; flex-direction: column; gap: 12px; }
.mes-title-row { display: flex; align-items: center; gap: 14px; }

.mes-item:hover .play-icon { background: #222; border-color: #222; }
.mes-item:hover .play-icon svg { fill: #fff; }

.mes-title-row h3 {
  font-size: 1.2rem; font-weight: 700; color: #111;
  text-decoration: underline; text-underline-offset: 4px;
  margin: 0; line-height: 1.3;
}
.mes-desc {
  font-size: 0.95rem; color: #444; line-height: 1.6;
  padding-left: 56px; margin: 0;
}
.mes-pdf {
  padding-left: 56px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: .5px;
  color: var(--accent); text-decoration: none; text-transform: uppercase;
  transition: color .18s;
}
.mes-pdf:hover { color: var(--navy); }

@media (max-width: 900px) {
  .mes-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
}
@media (max-width: 600px) {
  .mes-grid { grid-template-columns: 1fr; gap: 32px; }
  .mes-desc, .mes-pdf { padding-left: 0; }
}

/* ── MODAL ─────────────────────────────────────────────────── */
.modal { display: none; position: fixed; inset: 0; background: rgba(17,24,39,.90); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-content { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); box-shadow: 0 40px 100px rgba(0,0,0,.5); animation: scaleIn .25s var(--ease-out); }
@keyframes scaleIn { from{transform:scale(.93);opacity:0} to{transform:scale(1);opacity:1} }
.modal-close { position: absolute; top: 22px; right: 28px; font-size: 28px; color: rgba(255,255,255,.55); cursor: pointer; transition: color .18s; line-height: 1; }
.modal-close:hover { color: #fff; }

/* ── Chat mesajı içindeki resimler ─────────────────────────── */
.arer-msg img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-top: 6px;
  cursor: zoom-in;
}

/* ================================================================
   STATS STRIP
   ================================================================ */
.stats-strip {
  background: var(--navy);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, #c0392b 50%, var(--accent) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: gradShift 6s linear infinite;
}
.stats-strip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,.07);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: rgba(255,255,255,.09);
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-count { display: inline; }
.stat-suffix {
  color: #e05252;
  font-size: .55em;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.36);
}

/* ── KEYFRAMES ─────────────────────────────────────────────── */
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { to { opacity: 1; } }
@keyframes gradShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .items-grid { grid-template-columns: repeat(2, 1fr); }
  .items-grid.two-col { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .brand { padding-right: 20px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--border); z-index: 999; height: auto; box-shadow: var(--shadow-md); }
  .nav.is-open { display: flex; }
  .nav a { border-right: none; border-left: none; border-top: 1px solid var(--border); padding: 15px 20px; }
  .nav a:first-child { border-top: none; }
  .nav a::after { display: none; }
  .nav .lang-mobile-link { display: block; }
  .hamburger { display: flex; }
  .lang-btn { display: none !important; }
  .header-inner { position: relative; }
  .page-hero-img { width: 100%; height: auto; }
  .hero-scroll { display: none; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card-body { padding: 24px 20px; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 28px 0 22px; }
}

@media (max-width: 640px) {
  .items-grid, .items-grid.two-col { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 26px; }
  .content-section { padding: 52px 0; }
  .hero { min-height: 480px; }
  .hero-content { width: 88%; left: 4%; top: 76px; }
  .news-grid { gap: 16px; }
}

/* ── STATS STRIP RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.08);
  }
  .stat-item { background: var(--navy); }
  .stat-item + .stat-item::before { display: none; }
  .stats-strip { padding: 44px 0; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 36px; }
}

/* ── ENHANCED CARD HOVER EFFECTS ───────────────────────────── */
.service-card { transition: background .22s, transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── NAV LINK HOVER REFINEMENT ─────────────────────────────── */
.nav a { transition: color .2s, background .2s; }
.nav a:hover { background: var(--near-white); }

/* ── FOOTER SOCIAL SCALE EFFECT ────────────────────────────── */
.social-link { transition: all .22s var(--ease); }
.social-link:hover { transform: translateY(-2px); }

/* ── HERO CTA BUTTONS POLISH ───────────────────────────────── */
.btn-primary { transition: background .22s, transform .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ================================================================
   RESPONSIVE — Hero & Sub-page Overlays
   ================================================================ */

/* Hero h1 nowrap kırılımı */
@media (max-width: 900px) {
  .hero-content h1 {
    white-space: normal;
    font-size: 36px;
  }
  .hero-content {
    max-width: 85%;
    left: 4%;
  }
  .hero-content p {
    font-size: 17px;
  }
}
@media (max-width: 540px) {
  .hero-content h1 {
    font-size: 24px;
  }
  .hero-content p {
    font-size: 14px;
  }
  .hero-content {
    max-width: 92%;
    left: 4%;
    top: 28px;
  }
}

/* ── Sub-page hero tek satır caption (kontrol-scada) ──────── */
.page-hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  padding: 18px 28px;
  font-size: 16px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .page-hero-caption {
    padding: 10px 14px;
  }
  .page-hero-caption p {
    font-size: 12px !important;
    letter-spacing: 0.3px !important;
  }
}

/* ── Sub-page hero iki kolon overlay (dijital-fabrikalar) ─── */
.page-hero-twocol {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.93);
  border-top: 1px solid #dde2ea;
  font-size: 14px;
}
.page-hero-twocol > div {
  flex: 1;
  min-width: 240px;
}
@media (max-width: 600px) {
  .page-hero-twocol {
    position: static;
    flex-direction: column;
  }
  .page-hero-twocol > div {
    min-width: auto;
    padding: 20px 16px !important;
  }
  .page-hero-twocol > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid #dde2ea;
  }
  .page-hero-twocol p {
    font-size: 13px !important;
  }
}

/* ── Genel sayfa bölümleri padding küçültme ─────────────── */
@media (max-width: 600px) {
  .products-section,
  .content-section { padding: 48px 0 !important; }
  .dijital-schema { padding: 32px 0; }
  .mes-grid { margin-top: 28px; }
  .services-section { padding: 52px 0 !important; }
  .brand { padding-right: 14px; }
  .brand-logo { height: 34px; }
}
