/* Bu kodlar Emin Kişioğlu tarafından yazıldı */

/* Genel sıfırlama */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Arka plan video */
video.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/* Navbar */
.navbar {
  height: 80px;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0);
}

/* Navbar Link Hover Effect */
.menu a {
  margin: 0 1rem;
  color: white;
  text-decoration: none;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: white;
  transition: width 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  padding: 8px 12px;
  border: 1px solid white;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
  display: none;
}

/* Cam efektli içerik kutusu */
.glass {
  margin-top: 150px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Referans butonu */
.reference-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.reference-button:hover .arrow {
  transform: translateX(5px);
}

.arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Dil butonları */
.lang-switch {
  border: 1px solid white;
  background-color: transparent;
  color: white;
  padding: 6px 14px;
  margin-left: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.4s, color 0.4s;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.lang-switch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: white;
  z-index: 0;
  transition: width 0.4s ease;
  mix-blend-mode: difference;
}

.lang-switch:hover::before {
  width: 100%;
}

.lang-switch:hover {
  color: black;
}

.lang-switch span,
.lang-switch {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

  .menu.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .logo {
    position: static;
    transform: none;
    z-index: auto;
  }
}

/* Footer */
footer {
  position: relative;
  width: 100%;
  min-height: 140px;
  padding: 2rem;
  color: white;
  font-size: 1rem;
  background: rgba(50, 50, 50, 0.3);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
@media screen and (max-width: 600px) {
  .lang-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-right: 1rem;
  }

  .lang-switch {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Contact sayfasındaki 3 cam kutu için özel stil */
.glass.contact-box {
  max-width: 800px;
  margin: 0 auto 16px auto;
  padding: 2rem;
  color: white;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  animation: fadeInUp 1s ease-in-out;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Son kutuya özel ekstra alt boşluk */
.glass.contact-box:last-of-type {
  margin-bottom: 120px;
}

/*logolar*/
.reference-group {
  max-width: 1000px;
  margin: 40px auto;
  padding: 2rem;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  color: white;
  text-align: center;
  animation: fadeInUp 1s ease-in-out;
}

.reference-group h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.logo-grid img {
  width: 100%;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.logo-grid img:hover {
  transform: scale(1.05);
}

body {
  background-color: #000;
  min-height: 100vh;
  position: relative;
}

.background-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* Sayfa özel görseller */
.about-bg {
  background-image: url("assets/about-bg.jpg");
}

.management-bg {
  background-image: url("assets/management-bg.jpg");
}

.education-bg {
  background-image: url("assets/education-bg.jpg");
}

.franchising-bg {
  background-image: url("assets/franchising-bg.jpg");
}

.references-bg {
  background-image: url("assets/references-bg.jpg");
}

.contact-bg {
  background-image: url("assets/contact-bg.jpg");
}

.intl-bg {
  background-image: url("assets/international-bg.jpg");
}
/* =========================================================
   MOBİL & DAR-ASPECT-RATIO DÜZELTMELERİ
   ========================================================= */

/* 1) Varsayılan: masaüstü / geniş ekran – her şey cover */
video.background,
.background-fixed {
  object-fit: cover;          /* geniş ekran dolsun        */
  background-size: cover;
  object-position: center;    /* isteğe göre değiştirebilirsiniz */
}

/* 2) Telefon-portre, dikey tablet veya genel olarak EN/BOY
      oranı 0 – 0.75 (3:4) arası olan tüm dar ekranlar */
@media (max-width: 768px), (max-aspect-ratio: 3/4) {

  /* Videoları ve sabit arka-plan div’lerini kırpmadan göster */
  video.background,
  .background-fixed {
    width: 100% !important;       /* tam genişlik             */
    height: auto !important;      /* orantılı yükseklik       */
    min-height: 100vh;            /* yine de ekranı doldursun */
    object-fit: contain !important;
    background-size: contain !important;
    object-position: center top;  /* üstten hizala - isteğe bağlı */
    background-position: center top !important;
    background-attachment: scroll !important; /* iOS sabit kaydırma sorunu */
       transform: scale(1);
    transform-origin: center center;   /* her yöne eşit büyüsün */

    /* Taşan kısımların kaydırmada gözükmemesi için */
   overflow: hidden;
  }

  /* Örnek: kahraman (hero) veya banner satırlarını düşey yığmak
     – yalnızca ihtiyaç varsa kullanın */
  .hero,
  .banner {
    flex-direction: column;
    text-align: center;
  }
}

/* 3) İsteğe bağlı: telefon yatay (landscape) için ayrı ayar
   @media (orientation: landscape) and (max-height: 500px) { ... }
*/


/* ===== MOBİL & DAR ORAN DÜZELTMESİ – 24 May 2025 ===== */
video.background,
.background-fixed {                /* Masaüstü kalıbı */
  object-fit: cover;
  background-size: cover;
  object-position: center;
}

@media (max-width: 768px), (max-aspect-ratio: 3/4) {
  video.background,
  .background-fixed {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh;
    object-fit: contain !important;
    background-size: contain !important;
    object-position: center top;
    background-position: center top !important;
    background-attachment: scroll !important;   /* iOS uyumu */
  }
}

/* (İsteğe bağlı) Masaüstünde parallax’ı tekrar açmak istersen: */
@media (min-width: 769px) and (min-aspect-ratio: 4/3) {
  .background-fixed { background-attachment: fixed; }
}
/* ===== Education arka plan hizalama – masaüstü ===== */
@media (min-width: 769px) {          /* yalnızca PC / geniş ekran */
  .education-bg {
    /* Yatay eksen aynı, dikey ekseni %45’e çek (ortanın biraz altı)   */
    background-position: center 35%;
    /* İstersen ince ayar:   50% = tam orta,  60% = daha aşağı */
  }
}
/* ==========================================================
   1) HER SAYFA İÇİN DÜZ RENK – sadece BURAYI değiştir
   ========================================================== */
body.index       { --page-bg: #0a061b; }  /* ana sayfa (siyah)       */
body.about       { --page-bg: #0a061b; }  /* about (açık bej)       */
body.education   { --page-bg: #0a061b; }  /* education (gece mavi)  */
body.management  { --page-bg: #0a061b; }  /* management (lacivert)  */
body.franchising { --page-bg: #0a061b; }  /* franchising (koyu kah.)*/
body.contact     { --page-bg: #0a061b; }  /* contact (koyu gri)     */
/* yeni sayfa ekliyorsan aynı kalıpla renk ata */

/* ==========================================================
   2) GENEL ARKA PLAN ELEMANLARI
   ========================================================== */
video.background,
.background-fixed {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;              /* masaüstü: tam dolsun          */
  background-size: cover;
  background-position: center;
  z-index: -1;                    /* içerikten geride              */
}

/* ==========================================================
   3) MOBİL & DAR ORAN  (≤768 px  veya  en/boy ≤0.75)
   ========================================================== */
@media (max-width: 768px), (max-aspect-ratio: 3/4) {

  /* — Kırpmayı kaldır — */
  video.background,
  .background-fixed  {
    object-fit: contain !important;      /* tam kadraj              */
    background-size: contain !important;
    background-position: center top !important;
    background-attachment: scroll !important;
  }

  /* — Görüntünün ALT KENARINI renge solduran GRADIENT — */
  /*    ▸ video elementine pseudo atayamayız (replaced element),
        ▸ bu yüzden tek, sayfa-genel bir örtü kullanıyoruz       */
  body::after {
    content: "";
    position: fixed;
    left: 0; right: 0; bottom: 0;        /* ekranın altına yapışık  */
    height: 35vh;                        /* gradient uzunluğu       */
    pointer-events: none;
    z-index: 0;                          /* video -1  < 0 < içerik  */

    /* 0% tamamen saydam   →   100% sayfa rengi */
    background: linear-gradient(
                 to bottom,
                 rgba(0,0,0,0) 0%,
                 var(--page-bg, #000) 100%);
  }
}
body.index .glass {
  margin-top: 220px !important;
}
body.about .glass {
  margin-top: 220px !important;
}
body.international .glass {
  margin-top: 220px !important;
}
body.management .glass {
  margin-top: 220px !important;
}
body.franchising .glass {
  margin-top: 220px !important;
}
body.education .glass {
  margin-top: 220px !important;
}