/* ------------ TEMEL STIL AYARLARI -------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  position: relative;
  margin: 0;
  padding: 0;
}

body {
  background: #111;
  font-family: 'Exo 2', Arial, sans-serif;
  color: #ececec;
  border: none !important;
  outline: none !important;
  overflow-x: hidden;
  width: 100% !important;
  max-width: 100% !important;
}

/* ------------ SOL SAĞ ÇERÇEVE SORUNU GİDERME -------------- */
body::before, body::after {
  display: none !important;
  content: none !important;
}

/* Tüm görünmez çerçeveleri zorla kaldır */
html, body, #bg-slider, .bg-image, .company-bar, .site-footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  border: none !important;
  outline: none !important;
}

/* ------------ BACKGROUND YAZISI GIZLEME -------------- */
[id*="background" i]:not(#bg-slider),
[class*="background" i]:not(.bg-image) {
  display: none !important;
  visibility: hidden !important;
}

/* ------------ ARKA PLAN SLIDER -------------- */
#bg-slider {
  pointer-events: none;
  z-index: 0;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  filter: grayscale(1) contrast(1.08) brightness(0.9);
  transition: opacity 3s ease-in-out;
  will-change: opacity;
  pointer-events: none;
  background: #111;
}

.bg-image.active {
  opacity: 0.617 !important;
  z-index: 2;
}

/* ------------ ÜST BAŞLIK (SABİT) -------------- */
.company-bar {
  position: fixed;
  z-index: 990;
  width: 100%;
  top: 0;
  left: 0;  
  padding: 36px 0 28px 0;
  text-align: center;
  font-size: 2.25em;
  font-family: 'Exo 2', Arial, sans-serif;
  color: #ececec;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-shadow: 0 1px 10px #181a20, 0 3px 32px #000b;
  background: transparent; /* Şeffaf arka plan */
}

/* ------------ DİL & BAYRAK SEÇİCİ -------------- */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1201;
  display: flex;
  flex-direction: row;
  direction: ltr !important;
  gap: 8px;
  background: rgba(30,30,30,0.06);
  border-radius: 14px;
  padding: 3px 9px;
  box-shadow: 0 2px 12px #0003;
}

.lang-switcher a {
  transition: transform 0.15s;
  border-radius: 8px;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: rgba(65,200,255,0.09);
  transform: scale(1.11);
}

.lang-switcher img {
  width: 28px;
  height: 20px;
  display: block;
  border-radius: 6px;
  box-shadow: 0 1px 6px #0002;
}

.lang-switcher a.active img {
  border: 2.2px solid #26c8fa;
  box-shadow: 0 0 8px #3aceff91;
}

/* ------------ 4 ANA BAŞLIK BUTONLARI -------------- */
.slices.noir {
  display: flex;
  width: 100vw;
  height: calc(100vh - 180px); /* Başlık için daha fazla boşluk */
  min-height: 350px;
  position: relative;
  z-index: 9;
  background: none;
  margin-top: 120px; /* Başlık yüksekliği */
}

.slice {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 600;
  color: #f3f3f3;
  cursor: pointer;
  transition: color .21s;
  z-index: 10;
  opacity: 0.97;
  letter-spacing: 0.01em;
  user-select: none;
  text-align: center;
  text-shadow: 0 3px 26px #000b, 0 2px 3px #191921;
  background: none !important;
  min-height: 90px;
  position: relative;
}

/* İLETİŞİM BUTONU SORU İŞARETİ KALDIR - SUPER SEÇİCİ */
.slice4:after,
.slice4:before,
.slice4::after,
.slice4::before,
.slice4 > *:after,
.slice4 > *:before,
.slice4 > *::after,
.slice4 > *::before,
.slice4::after[class*="question"],
.slice4::before[class*="question"],
.slice4 *[class*="question"],
div[class*="slice"][onclick*="iletisim"]::before,
div[class*="slice"][onclick*="iletisim"]::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
}

.slice:hover, .slice.active {
  color: #fffefa;
  text-shadow: 0 0 0px #fff, 0 1px 16px #fff3;
  opacity: 1;
}

.slice span {
  pointer-events: none;
}

/* ------------ MODAL İÇERİK ALANI -------------- */
.full-content {
  display: none;
  position: fixed;
  z-index: 50;
  top: 90px; /* Üstte başlık için boşluk */
  left: 0;
  width: 100vw;
  height: calc(100vh - 90px - 90px); /* 90px üst, 90px alt (footer için fazla yer) */
  background: rgba(18,18,18,0.85);
  font-family: 'Exo 2', Arial, sans-serif;
  color: #ededed;
  overflow-y: auto;
  box-sizing: border-box;
  animation: fadein .47s cubic-bezier(.37,1,.38,.99);
  backdrop-filter: blur(1.5px) grayscale(0.19);
  padding: 30px 16vw 90px 16vw; /* Alt padding artırıldı: footer'la çakışmasın */
  text-align: justify;
  margin-bottom: 0;
}

@keyframes fadein {
  from {opacity: 0;}
  to {opacity: 1;}
}

.full-content h2 {
  margin: 0 0 18px 0;
  color: #fff;
  font-weight: 800;
  font-size: 2.13em;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px #000a;
}

.full-content h3 {
  color: #bbb;
  font-size: 1.15em;
  margin-top: 33px;
  font-weight: 600;
}

.full-content p,
.full-content ul {
  font-size: 1.11em;
  color: #dadada;
  line-height: 1.61;
  text-align: justify;
}

.full-content ul {
  margin:1.17em 0 1.3em 26px;
  color: #ededed;
  padding-left: 11px;
}

.full-content ul li {
  margin-bottom: 0.5em;
  list-style: disc;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 42px;
  font-size: 2.3em;
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(30,30,30,0.86);
  color: #ededed;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 0.14s;
  z-index: 1202 !important;
  box-shadow: 0 2px 22px #000c;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.close-btn:hover {
  background: #fffcea !important;
  color: #181818;
}

/* ------------ İLETİŞİM FORMU -------------- */
.contact-box {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: flex-start;
  background: none !important; 
  box-shadow: none !important;
  border: none !important;
}

.contact-info {
  min-width: 180px;
  font-size: 1.13em;
  color: #b7bcc4;
}

.contact-info a {
  color: #49afff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  min-width: 270px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-form h3 {
  text-align: left;
  margin-bottom: 16px;
  color: #e8e9ea;
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: .4px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 11px;
}

.form-row label {
  color: #ededed;
  font-size: 0.98em;
  margin-bottom: 3px;
}

.form-row label span { 
  color: #ff9b3c; 
  font-size: 1.2em; 
  vertical-align: bottom;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  border: none;
  border-bottom: 1.5px solid #b9d1f56b;
  border-radius: 0;
  background: transparent;
  color: #e8e9ea;
  font-size: 1.03em;
  padding: 7px 3px 6px 2px;
  transition: border-bottom 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { 
  outline: none; 
  border-bottom: 2.4px solid #60cbdd; 
  background: transparent;
}

.contact-form textarea {
  resize: vertical;
  min-height: 70px;
  margin-bottom: 2px;
}

.contact-form button[type="submit"] {
  margin-top: 12px;
  background-color: #226466f0;
  color: #fffffb;
  border: none;
  padding: 10px 0;
  border-radius: 7px;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.7px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.17s;
}

.contact-form button[type="submit"]:hover {
  background: #29a9bebe;
}

/* KVKK checkbox özel ayar */
.form-kvkk {
  font-size: 0.97em;
  margin: 9px 0 2px 0;
}

.form-kvkk label {
  display: flex;
  align-items: flex-start;
  color: #bdbdbd !important;
  font-weight: 400;
}

.form-kvkk input[type="checkbox"] {
  margin-right: 7px;
  accent-color: #299eac;
  margin-top: 2.5px;
  min-width: 17px;
  min-height: 17px;
}

.form-kvkk a {
  color: #51caf3; 
  text-decoration: underline;
}

/* ------------ FOOTER -------------- */
.site-footer {
  width: 100%;
  color: #b5c8d3;
  font-size: 0.8em;
  padding: 14px 0 10px 0;
  text-align: center;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 999;
  letter-spacing: 0.01em;
  background: transparent !important;
  box-shadow: none !important;
  height: 80px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Footer içeriği alt alta düzenleme */
.site-footer div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.5;
}

/* | işaretini gizle (HTML değişikliği yapacaksa gerekli olmayabilir) */
.site-footer div strong::after {
  content: "";
}

/* Safari için özel düzeltmeler - Diğer tarayıcıları etkilemez */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) and (not (stroke-color:transparent)) {
    .site-footer {
      z-index: 9999 !important; /* Z-index'i artır */
      padding-bottom: 20px !important; /* Alt boşluk ekle */
    }
    
    .full-content {
      padding-bottom: 110px !important; /* Safari'de özel alt boşluk */
      height: calc(100vh - 90px - 100px) !important; /* Safari'de modal yüksekliği */
    }
  }
}

/* ------------ TABLET DÜZENLEMELER -------------- */
@media (max-width: 950px) {
  .company-bar { 
    font-size: 1.3em; 
    padding: 22px 0 18px 0;
    position: fixed;
  }
  
  .slices.noir { 
    min-height: 160px; 
    height: 36vh; 
    margin-top: 80px; /* Başlık için boşluk */
  }
  
  .slice {
    font-size: 1.08em;
  }
  
  .full-content {
    top: 80px; /* Üst başlık için boşluk */
    height: calc(100vh - 80px - 80px); /* Modal yüksekliği: footer için fazladan yer */
    padding: 30px 3vw 80px 3vw; /* Alt padding arttırıldı */
  }
  
  .contact-box {
    gap: 14px;
  }
  
  .site-footer { 
    font-size: 0.77em;
    height: 80px;
  }
  
  /* Safari için tablet düzeltmeleri */
  @media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) and (not (stroke-color:transparent)) {
      .site-footer {
        height: 85px !important; 
      }
      
      .full-content {
        height: calc(100vh - 80px - 95px) !important; 
      }
    }
  }
}

/* ------------ MOBİL DÜZENLEMELER -------------- */
@media (max-width: 700px) {
  .slices.noir { 
    flex-direction: column; 
    min-height: 53vh;
    margin-top: 70px; /* Başlık için boşluk */
  }
  
  .slice {
    min-height: 62px; 
    font-size: 1em;
  }
  
  .company-bar {
    font-size: 1.33em !important;
    padding: 22px 0 12px 0;
    height: 60px;
    position: fixed;
    background: transparent !important;
  }

  /* Lang-switcher daha aşağıda */
  .lang-switcher {
    top: 50px;
    right: 6px;
    gap: 4px;
    padding: 2px 5px;
  }
  
  .lang-switcher img {
    width: 18px;
    height: 13px;
  }
  
  /* Modal düzenlemesi */
  .full-content {
    top: 70px; /* Üstte başlık için boşluk */
    height: calc(100vh - 70px - 85px); /* Footer için ekstra alan */
    padding: 20px 2vw 85px 2vw !important; /* Alt padding arttırıldı */
    max-height: none;
    font-size: 1.08em;
    margin-bottom: 0;
    padding-bottom: 85px !important; /* Footer için ekstra boşluk */
  }
  
  .full-content h2 { 
    font-size: 1.38em; 
    margin-top: 3px; 
  }
  
  .full-content h3 { 
    font-size: 1.13em; 
  }
  
  .full-content p,
  .full-content ul,
  .full-content li {
    font-size: 1.09em;
    line-height: 1.59;
  }
  
  .close-btn {
    right: 10px; 
    top: 10px;
    font-size: 1.21em;
    width: 40px !important;
    height: 40px !important;
  }
  
  .contact-box {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  
  .contact-info {
    margin-bottom: 12px;
  }
  
  /* Mobilde de görünür footer - alt alta görünüm */
  .site-footer {
    font-size: 0.75em;
    padding: 8px 3vw 8px 3vw;
    height: 85px; /* Alt alta için yükseklik artırıldı */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    background: transparent !important;
    z-index: 1999 !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9);
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* Safari için mobil düzeltmeleri */
  @media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) and (not (stroke-color:transparent)) {
      .site-footer {
        height: 90px !important;
        z-index: 9999 !important;
        padding-bottom: 25px !important;
      }
      
      .full-content {
        padding-bottom: 120px !important;
        height: calc(100vh - 70px - 100px) !important;
      }
    }
  }
}

/* ------------ ARAPÇA DÜZENLEMELER -------------- */
html[lang="ar"] body {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .lang-switcher {
  right: 20px !important;
  left: auto !important;
  direction: ltr !important;
}

@media (max-width: 700px) {
  html[lang="ar"] .lang-switcher {
    right: 6px !important;
    left: auto !important;
    top: 65px !important;
  }
}

html[lang="ar"] .close-btn {
  right: auto;
  left: 42px;
  z-index: 1202 !important;
}

@media (max-width: 700px) {
  html[lang="ar"] .close-btn {
    right: auto;
    left: 10px;
    width: 45px !important;
    height: 45px !important;
  }
}

html[lang="ar"] .full-content p,
html[lang="ar"] .full-content h2,
html[lang="ar"] .full-content h3 {
  text-align: right;
}

html[lang="ar"] .full-content p {
  text-align: justify;
}

html[lang="ar"] .full-content ul {
  margin: 1.17em 26px 1.3em 0;
  padding-right: 11px;
  padding-left: 0;
}

html[lang="ar"] .contact-form h3 {
  text-align: right;
}

html[lang="ar"] .form-row label {
  text-align: right;
}

html[lang="ar"] .form-kvkk input[type="checkbox"] {
  margin-right: 0;
  margin-left: 7px;
}

html[lang="ar"] .form-kvkk label {
  flex-direction: row-reverse;
}

html[lang="ar"] .site-footer {
  direction: ltr !important;
  display: flex !important;
  background: transparent !important;
  align-items: center !important;
  justify-content: center !important;
}