/* Novamira: tam ekran bolum gecisleri + yonlu giris animasyonu (v11) */
/* Bolum bolum kaydirma (scroll-snap) ve tam ekran yukseklik SADECE masaustunde (769px+) aktif. */
/* Mobilde (768px ve alti) sayfa normal, duz kaydirma ile calisir - PC hali hic etkilenmez. */

@media (min-width: 769px) {
  :root {
    --nova-header-h: 0px;
  }

  html {
    scroll-snap-type: y mandatory;
  }

  .xpro-theme-builder-header {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #home {
    height: calc(100vh - var(--nova-header-h));
    box-sizing: border-box;
    overflow-y: hidden;
  }

  #hikayemiz,
  #proje,
  #hayat,
  #lakasyon,
  #yasam,
  #galeri,
  #iletisim {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: hidden;
  }

  #home.nova-scrollable,
  #hikayemiz.nova-scrollable,
  #proje.nova-scrollable,
  #hayat.nova-scrollable,
  #lakasyon.nova-scrollable,
  #yasam.nova-scrollable,
  #galeri.nova-scrollable,
  #iletisim.nova-scrollable {
    overflow-y: auto !important;
  }

  #home,
  #hikayemiz,
  #proje,
  #hayat,
  #lakasyon,
  #yasam,
  #galeri,
  #iletisim {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #home::-webkit-scrollbar,
  #hikayemiz::-webkit-scrollbar,
  #proje::-webkit-scrollbar,
  #hayat::-webkit-scrollbar,
  #lakasyon::-webkit-scrollbar,
  #yasam::-webkit-scrollbar,
  #galeri::-webkit-scrollbar,
  #iletisim::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}

/* --- Yonlu giris/cikis animasyonu (masaustu + mobil, her ikisinde de calisir) --- */
.nova-anim {
  opacity: 0.2;
  transition: opacity 1.6s ease, transform 1.6s ease;
  will-change: opacity, transform;
}
.nova-anim.novamira-in {
  opacity: 1;
  transform: none !important;
}
.nova-dir-left   { transform: translateX(-60px); }
.nova-dir-right  { transform: translateX(60px); }
.nova-dir-top    { transform: translateY(-60px); }
.nova-dir-bottom { transform: translateY(60px); }

@media (max-width: 768px) {
  .nova-dir-left   { transform: translateX(-30px); }
  .nova-dir-right  { transform: translateX(30px); }
  .nova-dir-top    { transform: translateY(-30px); }
  .nova-dir-bottom { transform: translateY(30px); }
}

@media (prefers-reduced-motion: reduce) {
  .nova-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- MOBIL HEADER: sadece Alemara logosu (ortada) + hamburger menu (sagda) (768px ve alti) --- */
@media (max-width: 768px) {
  .elementor-element-459dac2,
  .elementor-element-369b8ac,
  .elementor-element-21a5b58,
  .elementor-element-81b5071 {
    display: none !important;
  }

  .xpro-theme-builder-header .elementor-element-9b856fa {
    position: relative !important;
    min-height: 64px !important;
    height: auto !important;
    padding: 10px 16px !important;
    justify-content: flex-end !important;
  }

  /* Alemara logosu tam ortada, hamburger konumundan bagimsiz */
  .elementor-element-674d78e {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    max-width: 55% !important;
    margin: 0 !important;
  }
  .elementor-element-674d78e img {
    max-height: 40px;
    width: auto;
  }

  /* Hikayemiz ve Galeri bolumlerinde mobilde asiri bosluk yaratan tam-ekran yukseklik zorlamasi kaldirilir */
  #hikayemiz,
  #galeri {
    min-height: auto !important;
  }
}

.nova-mobile-menu-toggle,
.nova-mobile-menu-panel,
.nova-mobile-menu-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .nova-mobile-menu-panel,
  .nova-mobile-menu-backdrop {
    display: block;
  }

  .nova-mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100000;
  }
  .nova-mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #2A266D;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nova-mobile-menu-toggle.nova-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nova-mobile-menu-toggle.nova-open span:nth-child(2) {
    opacity: 0;
  }
  .nova-mobile-menu-toggle.nova-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nova-mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 78%;
    max-width: 320px;
    background: #152A20;
    z-index: 99998;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 90px 28px 28px;
    box-sizing: border-box;
    overflow-y: auto;
  }
  .nova-mobile-menu-panel.nova-open {
    transform: translateX(0);
  }
  .nova-mobile-menu-panel a {
    display: block;
    color: #F5EFE2;
    font-size: 18px;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(245,239,226,0.15);
  }
  .nova-mobile-menu-panel a:hover {
    color: #A9823D;
  }

  .nova-mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(21,42,32,0.5);
    z-index: 99997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nova-mobile-menu-backdrop.nova-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- MOBIL: home gorseli ortalaniyor + biraz daha yukseklik verilerek daha net gorunmesi saglanir --- */
@media (max-width: 768px) {
  #home {
    min-height: 62vh !important;
  }

  .elementor-element-6b30469::before,
  .elementor-93 .elementor-element.elementor-element-6b30469 > .elementor-background-video-container::before,
  .elementor-93 .elementor-element.elementor-element-6b30469 > .e-con-inner > .elementor-background-video-container::before,
  .elementor-93 .elementor-element.elementor-element-6b30469 > .elementor-background-slideshow::before,
  .elementor-93 .elementor-element.elementor-element-6b30469 > .e-con-inner > .elementor-background-slideshow::before,
  .elementor-93 .elementor-element.elementor-element-6b30469 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
    background-position: center center !important;
    background-size: cover !important;
  }
}

/* --- Sayfadaki tum resimler + galeri/kat planlari buyutme (lightbox) --- */
#proje img,
#hayat img,
#lakasyon img,
#yasam img,
#galeri .swiper-slide-image {
  cursor: zoom-in;
}

.nova-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(21, 42, 32, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nova-lightbox.nova-lightbox-open {
  opacity: 1;
  pointer-events: auto;
}

.nova-lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: none;
}

.nova-lightbox-close,
.nova-lightbox-nav {
  position: absolute;
  border: 1px solid #A9823D;
  background: transparent;
  color: #A9823D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nova-lightbox-close {
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
}

.nova-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 26px;
  line-height: 1;
}

.nova-lightbox-prev { left: 20px; }
.nova-lightbox-next { right: 20px; }

.nova-lightbox-close:hover,
.nova-lightbox-nav:hover {
  background: #A9823D;
  color: #152A20;
}

.nova-lightbox-nav[hidden] { display: none; }

.nova-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #A9823D;
  font-size: 14px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .nova-lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
  .nova-lightbox-prev { left: 8px; }
  .nova-lightbox-next { right: 8px; }
}

/* Galeri basligi: iki satir + ortali */
#galeri .elementor-element-e6fa82d {
  text-align: center !important;
}
#galeri .elementor-element-e6fa82d .elementor-heading-title {
  white-space: pre-line;
  width: 100%;
}

/* --- KVKK Aydinlatma Metni popup --- */
.nova-kvkk-link {
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
}

.nova-text-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(21, 42, 32, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nova-text-modal.nova-text-modal-open {
  opacity: 1;
  pointer-events: auto;
}
.nova-text-modal-box {
  background: #FCFCFC;
  color: #222222;
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 6px;
  padding: 36px 32px 28px;
  box-sizing: border-box;
  position: relative;
  font-family: Ubuntu, sans-serif;
}
.nova-text-modal-box h2 {
  font-size: 20px;
  margin: 0 0 16px;
  color: #2A266D;
}
.nova-text-modal-box h3 {
  font-size: 16px;
  margin: 20px 0 6px;
  color: #2A266D;
}
.nova-text-modal-box p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.nova-text-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #A9823D;
  background: transparent;
  color: #A9823D;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.nova-text-modal-close:hover {
  background: #A9823D;
  color: #FCFCFC;
}
