/* Genel Sıfırlama */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* Regular */
  background: #af2e38; /* Beyaz */
  color: #333;
  min-height: 100vh;
  transition: background-color 1s ease
}

body.menu-open {
  background-color: #ffffff;
}



/* FRAME: Sarı çerçeve alanı */
.frame {
  position: relative;
  border: 6px solid #e2B574;
  margin: 40px;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2000;
  
}

.frame.bordo-border {
  border: 6px solid #af2e38;
  margin: 40px; /* Sarı çerçeveyle aynı */
  height: calc(100vh - 80px); /* Aynı hizayı korur */
  padding: 0; /* Gerekirse içerik boşluğu */

}




/* Header */
header {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20%;
}
/* Menü Butonu */
#menuButton {
  background-color: #af2e38;
  border: none;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

#menuButton img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

#menuButton.white-bg {
   background-color: #ffffff;
}

@media (max-width: 768px) {
  #menuButton {
    left: 3px; 
    background-color: transparent;
  
  }
}

#closeIcon {
  width: 20px;
  height: 20px;
  background-color: #ffffff; /* zaten eklemişsin */
  object-fit: contain;
}
button#menuButton img#closeIcon {
  width: 24px;
  height: 24px;
}

#closeIconWrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* ikon ile yazı arası boşluk */
}

#closeIconWrapper .close-text {
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* Regular */
  color: #3f3632; 
  letter-spacing: 3px;
  opacity: 0.5;

}

@media (max-width: 768px) {
  #closeIconWrapper {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-left: -4px; /* ikon ve yazı daha da sola yaklaşır */
  }

  #closeIconWrapper .close-text {
    font-size: 12px;
    text-align: right;
    margin-left: 0px; /* ikon ve yazı daha da sola yaklaşır */
    letter-spacing: 1px;
  }
}


/* Menü Paneli */

nav#menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  padding: 43px;
  box-sizing: border-box;
  padding: 40px;



}



/* Menü Açılınca */
nav#menu.show {
  transform: translateX(0);
}


/* Menü Linkleri */
nav#menu ul {
  list-style: none;
  width: 100%;
}
nav#menu ul li {
  margin: 20px 0;
}
nav#menu ul li a {
  text-decoration: none;
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  display: block;
  letter-spacing: 4px;
}

@media (max-width: 768px) {

nav#menu ul li a {
      text-decoration: none;
      font-size: 14px;
      font-family: 'Montserrat', sans-serif;
      display: block;
      letter-spacing: normal;
  
    }
nav#menu ul li {
  margin: 5px 0;
}

nav#menu {

 height: 90%;
}
}



.menu-heading {

  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* Regular */
  color: #AF2E38; /* bordo tonu */
  font-size: 24px;
  /*margin: 40px 0 10px 0px;*/
  letter-spacing: 3px;
}


.menu-list {
  display: flex;
  flex-direction: row; /* Yanyana */
  flex-wrap: wrap; /* Gerekirse alt satıra geçer */
  gap: 32px; /* Linkler arası boşluk */
  list-style: none;
  padding-left: 0;
  margin-top: 40px;
  justify-content: center; /* Ortala */
  width: 100%;
}


.menu-list li {
  margin: 0; /* Alt boşluk kaldır */
}


.menu-list li a {
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #000000;
  letter-spacing: 3px;
  text-decoration: none;
  display: inline-block;
}

.arrow {
  
  color: #AF2E38;
  margin-left: 8px;
  font-weight: 600;
}

@media (max-width: 768px) {
    .menu-list {
      flex-direction: column;   /* Mobilde alt alta dizilsin */
      align-items: center;      /* Ortalı kalsın */
      display: flex;
      flex-wrap: nowrap; /* Gerekirse alt satıra geçer */
      gap: 5px; /* Linkler arası boşluk */
      margin-top: 0px;
   
    }

    .menu-list li {
      margin: 0; /* Aradaki boşluğu sıfırla */
      padding: 0;
      line-height: 2;
    }

    .menu-list li a {
      font-size: 16px;
      line-height: 1;
      letter-spacing: 1.5px;
      font-weight: 400;
      padding: 2px 0; 
    }

    .menu-heading {
      font-size: 16px;
      margin-top: 0px; /* Logo ile metin arası */
      margin-bottom: 10px;
      line-height: 1.5;
      letter-spacing: 1.2px;
    }
    .arrow {
      font-size: 18px;
      margin-right: 4px;
    }
}


.menu-content {
  width: 100%;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 22%;
  margin-bottom: auto;
  text-align: center;
  letter-spacing: 1.5px;
}

@media (max-width: 768px) {
  .menu-content {
    padding-top: 100px; /* Mobilde Logo ile metin arasına genel boşluk */
    margin-top: 45%;
    letter-spacing: 1.5px;
  }
}


/* Gizli Sınıf */
.hidden {
  display: none !important;
}
/* Ana İçerik */

main {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

main h1 {
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* Regular */
  color: #AF2E38;
}


/* HERO: Görsel + yazı bir arada, tam merkezde */
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 90vw;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ortalama */
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}


/* GÖRSEL: Ortada, yazı arkasında */
.bina-cizim {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 60vw, 500px);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

/* Logo Görselin üzerinde */
.beylerbeyisarilogo {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 20vw, 400px);
  z-index: 1;
  pointer-events: none;
}


.biristanbulsirri {
  position: absolute;
  bottom: 30px; /* Sarı çizgiye olan mesafe */
  left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 20vw, 400px);
  z-index: 2;
  pointer-events: none;
}

.biristanbulsirri.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 0 !important; /* Gerekirse */
}



.beylerbeyi-logo-menu {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translate(-50%);
  width: clamp(120px, 25vw, 180px); /* Küçük ekranlar*/
  z-index: 3000; /* bina çiziminin üstünde olacak */
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease;
}

body,
#menu,
#menuButton {
  transition: background-color 1s ease;
}

body.white-bg{
  background-color: white !important;
  border: none !important;
  box-shadow: none !important;
}

#menu.white-bg {
  background-color: transparent;
  box-shadow: none !important;
}


.istanbul-metni {
  position: absolute;
  bottom: 20px;
  font-family: 'Baskerville', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #000;
  text-align: center;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  opacity: 1; /* ⛔ opacity sıfır olursa scroll bar görünmez */
  transition: opacity 1s ease;
  max-height: calc(45vh - 220px); /* header + alt boşluk yüksekliği ayarlanır */
  padding: 18px;
  letter-spacing: 2px;
  scrollbar-color: #a3242c #d8d8d8; /* Firefox */
  scrollbar-width:thin;
  -webkit-overflow-scrolling: touch; /* iOS için yumuşak kaydırma */
  scrollbar-gutter: stable both-edges; /* Chrome 94+ */
  overflow-y: scroll;
  
}

.istanbul-metni.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.istanbul-metni .bordo {
  color: #af2e38;
  font-weight: bold;
  font-variant: small-caps;
  display: inline;
}

/* Gradient overlay */
.istanbul-metni::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 80px; /* geçişin yüksekliği */
  width: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
  pointer-events: none; /* tıklamayı engellemesin */
  transition: opacity 0.3s ease;
  opacity: 1;
}

.istanbul-metni.transparan {
  opacity: 0.3; /* transparanlık seviyesi */
  filter: blur(1px); /* isteğe bağlı: hafif bulanıklık efekti */
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.istanbul-metni::-webkit-scrollbar {
  width: 12px;

}

.istanbul-metni.scrolled::after {
  opacity: 0; /* scroll varsa görünmez yap */
}

.istanbul-metni::-webkit-scrollbar-thumb {
  background-color: #a3242c; /* Bordo */
  border-radius: 10px;
  border: 3px solid transparent; /* scroll bar kenarları içeri gömük gibi görünür */
  background-clip: content-box;  /* içeriğe taşmasın */
}

.istanbul-metni::-webkit-scrollbar-track {
  background-color: #d8d8d8; /* Açık gri */
  border-radius: 10px;
}


body.menu-open .bina-cizim {
  opacity: 0.2;
}

html {
  height: 100%;
}

body {
  height: 100%;
  overflow: hidden;
}


@media (max-width: 768px) {
  .istanbul-metni {
    bottom: 20px;
    font-size: 12px;
    line-height: 1.2;
    max-height: calc(55vh - 220px);
    max-width: calc(65vh - 220px);
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS için smooth scroll */
    letter-spacing: 1.5px;
    
  }
}


.menu-footer {
  width: 100%;
  padding-top: 16px;
  margin-top: auto; /* En alta yaslanır */
  text-align: center;
  padding-bottom: 60px;
}

.menu-footer .footer-heading {
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #af2e38; /* Bordo */
  margin-bottom: 4px;
  letter-spacing: 1.5px;
}

.menu-footer .footer-email {
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  color: #000000; /* Siyah */
  margin-bottom: 0;
  letter-spacing: 1px;
  word-break: break-word; /* Mobilde uzun mail adresi taşmaz */
}

@media (max-width: 768px) {

  .menu-footer {
    width: 100%;
    padding-top: 16px;
    margin-top: auto; /* En alta yaslanır */
    text-align: center;
    padding-bottom: 30px;
  }

  .menu-footer .footer-heading {
    font-size: 14px;
  }

  .menu-footer .footer-email {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
.bina-cizim {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 60vw, 300px);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

nav#menu ul li {
  margin: 0px 0;
}

nav#menu {

  box-sizing: content-box ;
  padding: 0px;

}


.istanbul-metni {

  padding: 0px;
  max-height: calc(50vh - 220px);
  letter-spacing: 1.8px;
}

}

@media (min-width: 1280px) {

.istanbul-metni {

  padding: 0px;
  max-height: calc(45vh - 220px);
}

.bina-cizim {

  width: clamp(200px, 60vw, 400px);

}

}

@media (width: 768px) {


.istanbul-metni {

  max-height: calc(45vh - 220px);
  max-width: calc(85vh - 220px);
}

}


@media (width: 540px) {


.istanbul-metni {

  max-height: calc(55vh - 220px);
  max-width: calc(85vh - 220px);
}

}


@media (width: 1024px) and (height: 1366px){
.bina-cizim {

  top: 30%;
  width: clamp(200px, 60vw, 500px);

}
}

@media (width: 430px) or (width: 390px){

.frame {

  height: calc(95vh - 80px);

  
}


.frame.bordo-border {
 
  height: calc(93vh - 80px); 


}

}


@media (min-height: 350px) and (max-height: 400px) {

}