/* ============================================================
   Websiteks showroom — template-008 (sahil evi, threejs-archviz)
   Temiz oda yeniden yazımı: orijinal tasarımın ölçüleri/renkleri
   BİREBİR hedeflendi (kaynak main.css analiz edildi, kod sıfırdan).
   Tek ekran, scroll'suz 3D durum makinesi.
   ============================================================ */

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Archivo', sans-serif;
  font-size: 13px;
  line-height: 24px;
  overscroll-behavior: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
  color: whitesmoke;
}

/* ---------- Yükleme ekranı: 8 noktalı krem spinner ---------- */
.lds-roller {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f9f0ec;
  margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) { animation-delay: -0.036s; }
.lds-roller div:nth-child(1):after { top: 63px; left: 63px; }
.lds-roller div:nth-child(2) { animation-delay: -0.072s; }
.lds-roller div:nth-child(2):after { top: 68px; left: 56px; }
.lds-roller div:nth-child(3) { animation-delay: -0.108s; }
.lds-roller div:nth-child(3):after { top: 71px; left: 48px; }
.lds-roller div:nth-child(4) { animation-delay: -0.144s; }
.lds-roller div:nth-child(4):after { top: 72px; left: 40px; }
.lds-roller div:nth-child(5) { animation-delay: -0.18s; }
.lds-roller div:nth-child(5):after { top: 71px; left: 32px; }
.lds-roller div:nth-child(6) { animation-delay: -0.216s; }
.lds-roller div:nth-child(6):after { top: 68px; left: 24px; }
.lds-roller div:nth-child(7) { animation-delay: -0.252s; }
.lds-roller div:nth-child(7):after { top: 63px; left: 17px; }
.lds-roller div:nth-child(8) { animation-delay: -0.288s; }
.lds-roller div:nth-child(8):after { top: 56px; left: 12px; }
@keyframes lds-roller {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Koyu gradient perde (60deg lacivert -> siyah) */
#loading-text-intro {
  z-index: 3;
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 100;
  color: #f9f0ec;
  background: linear-gradient(60deg, rgb(45 52 90 / 100%) 0%, rgb(0 0 0 / 100%) 100%);
}

/* Ekranın %70,5'inde 2px yükleme çubuğu */
.loading-bar {
  position: absolute;
  top: 70.5%;
  width: 100%;
  height: 2px;
  background: #f9f0ec;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
  z-index: 10;
}
.loading-bar.ended { transform: scaleX(0); }

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  outline: none;
  z-index: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ---------- Hero CTA: pill + SVG daire animasyonu ---------- */
#button-scroll {
  cursor: pointer;
  margin-top: 30px;
  pointer-events: all;
  width: 380px;
  height: 45px;
  border: 1px solid white;
  padding: 18px;
  border-radius: 50px;
  visibility: hidden;
  opacity: 0;
}
#button-scroll p {
  display: inline;
  width: 300px;
  margin: 0;
  padding: 0 20px;
  position: absolute;
  font-size: 20px;
  font-weight: 500;
}
#button-scroll .svg-circle {
  transform: rotate(-90deg);
  transition: all 1200ms ease-in-out;
}
#button-scroll:hover .svg-circle {
  stroke-dasharray: 3;
  stroke-dashoffset: 200;
  animation: ilkAnimasyon 4s linear forwards infinite;
  transform: rotate(-90deg) scale(120%);
}
@keyframes ilkAnimasyon {
  to { stroke-dashoffset: 0; }
}

/* ---------- Keşfe giriş: pulse'lı büyüteç ---------- */
#button-zoom {
  align-self: end;
  cursor: pointer;
  position: absolute;
  bottom: 80px;
  right: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  z-index: 2;
  pointer-events: visible;
  visibility: hidden;
}
#button-zoom img {
  border-radius: 90px;
  animation: nabiz 2s infinite;
  transition: all 800ms ease-in-out;
}
#button-zoom img:hover { transform: scale(140%); }
@keyframes nabiz {
  0%   { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.4); }
  100% { box-shadow: 0 0 0 20px rgba(0, 0, 0, 0); }
}

/* ---------- Keşiften geri dönüş butonu ---------- */
#btn-continue-explore {
  position: fixed;
  margin-bottom: auto;
  align-content: center;
  justify-content: center;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  z-index: 8;
  visibility: hidden;
  display: none;
  align-items: center;
  height: 100%;
}
#btn-continue-explore a {
  align-self: center;
  background: #fff;
  height: 60px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: rgb(0 0 0);
  text-decoration: none;
  font-weight: normal;
  letter-spacing: 0.5px;
  margin-bottom: 80px;
  width: 60px;
  transition: 1s ease-in-out;
  margin-top: auto;
  font-size: 12px;
  border-radius: 60px;
  pointer-events: auto;
}
#btn-continue-explore a:hover {
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 2px;
  transform: scale(1.2);
}

/* ---------- Gün ışığı ön ayar düğmeleri ---------- */
.sunset, .midday {
  cursor: pointer;
  pointer-events: visible;
  transition: all 0.5s ease-out;
  padding: 15px 40px;
  border-radius: 50px;
  border: 1px solid;
  margin: 0 5px;
}
.sunset:hover, .sunset.active,
.midday:hover, .midday.active {
  background: black;
  color: white;
}

/* ---------- Sinematik mod düğmesi ---------- */
.toggle-effects {
  cursor: pointer;
  pointer-events: visible;
  transition: all 0.5s ease-out;
  padding: 15px 40px;
  margin-top: 30px;
  border-radius: 50px;
  border: 1px solid;
  text-align: center;
}
.toggle-effects:hover, .toggle-effects.active {
  background: black;
  color: white;
}
.toggle-effects-aditional {
  opacity: 0;
  height: 0;
  line-height: 14px;
  padding: 0 40px;
  text-align: center;
  transition: all 0.8s ease-in-out;
  overflow: hidden;
}
.toggle-effects-aditional.active {
  opacity: 1;
  height: auto;
  overflow: visible;
}
.toggle-effects-aditional > #ssao {
  text-decoration: underline;
  cursor: pointer;
  pointer-events: all;
  margin-top: 6px;
}
.toggle-effects-aditional > small {
  text-align: center;
  width: 250px;
  line-height: 14px;
  display: inline-block;
}

/* ---------- Kaydırıcılar (güneş konumu) ---------- */
input[type="range"] {
  outline: 0;
  border: 0;
  border-radius: 500px;
  width: 250px;
  max-width: 100%;
  transition: box-shadow 0.2s ease-in-out;
  pointer-events: all;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  input[type="range"] {
    overflow: hidden;
    height: 40px;
    -webkit-appearance: none;
    background-color: rgb(240, 240, 240);
  }
  input[type="range"]::-webkit-slider-runnable-track {
    height: 40px;
    -webkit-appearance: none;
    color: rgb(204, 204, 204);
    transition: box-shadow 0.2s ease-in-out;
  }
  input[type="range"]::-webkit-slider-thumb {
    width: 40px;
    -webkit-appearance: none;
    height: 40px;
    cursor: ew-resize;
    background: #fff;
    box-shadow: -340px 0 0 320px #202020, inset 0 0 0 40px #202020;
    border-radius: 50%;
    transition: box-shadow 0.2s ease-in-out;
    position: relative;
  }
  input[type="range"]:active::-webkit-slider-thumb {
    background: #fff;
    box-shadow: -340px 0 0 320px #202020, inset 0 0 0 3px #202020;
  }
}

/* ---------- Hero bölümü: dev serif başlık ---------- */
#section-logo {
  visibility: hidden;
  width: 85%;
  pointer-events: none;
}
#section-logo h1 {
  font-size: 19vh;
  letter-spacing: -12px;
  text-align: left;
  color: whitesmoke;
  font-family: 'Libre Baskerville', serif;
  line-height: 17vh;
  margin: 100px 0 0;
}
.section {
  user-select: none;
  -webkit-user-select: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding-left: 5%;
  padding-right: 5%;
  z-index: 1;
  width: 65%;
}

/* ---------- Menü ---------- */
.menu--item {
  cursor: pointer;
  pointer-events: all;
  transition: all 0.4s ease-in-out;
}
.menu--item:hover { color: black; }

/* ---------- Yüzen "Özelleştir" (dikey, sağ kenar) ---------- */
.customize--button--container {
  display: block;
  background: none;
  position: absolute;
  right: 20px;
  top: 50%;
  z-index: 10;
}
.customize--floating {
  display: none;
  background-color: white;
  cursor: pointer;
  color: #000;
  transition: all 0.5s ease-out;
  padding: 15px 40px;
  border-radius: 50px;
  border: 1px solid;
  margin: 0 5px;
  pointer-events: all;
  transform: rotate(-90deg);
}
.customize--floating:hover {
  background-color: black;
  color: white;
}

/* ---------- Özelleştirme paneli (sağdan beyaz kart) ---------- */
.customize--container {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  user-select: none;
  -webkit-user-select: none;
}
.customize--container.visible { display: flex; }
.customize--close {
  position: absolute;
  margin-left: auto;
  right: 10px;
  top: 10px;
  opacity: 0.4;
  pointer-events: all;
  transition: all 0.4s ease-in-out;
}
.customize--close:hover { cursor: pointer; transform: scale(1.1); }
.customize--box {
  display: flex;
  right: 10%;
  position: absolute;
  z-index: 5;
  background: white;
  width: 350px;
  border-radius: 20px;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 20px 7px #00000052;
  color: rgb(53, 53, 53);
  height: 560px;
  transition: height 0.8s ease-in-out;
}
.customize--box.active { height: 640px; }
.customize--title {
  margin-top: 32px;
  margin-bottom: 6px;
}
.customize--title:hover { cursor: move; }
.customize--nota {
  width: 260px;
  text-align: center;
  line-height: 15px;
  margin: 0 0 22px;
  color: #777;
}
.customize--sunlight {
  list-style: none;
  margin: 0 0 30px 0;
  padding: 0;
  display: inline-flex;
}

/* ---------- Hakkında paneli (ortada beyaz kart) ---------- */
.about--container {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}
.about--container.visible { display: flex; }
.about--close {
  position: absolute;
  margin-left: auto;
  right: 10px;
  top: 10px;
  opacity: 0.4;
  pointer-events: all;
  transition: all 0.4s ease-in-out;
}
.about--close:hover { cursor: pointer; transform: scale(1.1); }
.about--box {
  display: flex;
  position: absolute;
  z-index: 5;
  background: white;
  width: 440px;
  height: 600px;
  border-radius: 20px;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 20px 7px #00000052;
  color: rgb(53, 53, 53);
  padding: 0 50px;
}
.about--title {
  margin-top: 44px;
  margin-bottom: 18px;
  align-self: flex-start;
  font-size: 30px;
}
.about--box p {
  margin: 7px 0;
  line-height: 20px;
}
.about--list {
  list-style: none;
  margin: 28px 0 0 0;
  padding: 0;
  display: inline-flex;
}
.about--list > li { margin: 0 10px; }
.about--list > li a { text-decoration: none; color: #000; }
.about--buttons a {
  cursor: pointer;
  pointer-events: visible;
  transition: all 0.5s ease-out;
  padding: 15px 30px;
  border-radius: 50px;
  border: 1px solid;
  margin: 0 5px;
}
.about--buttons a:hover { background: black; color: white; }

/* ---------- Header (keşif modunda yukarıdan iner) ---------- */
.headerContainer {
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 90px;
  position: absolute;
  margin-right: auto;
  background: linear-gradient(180deg, rgb(19 22 30 / 2%) 0%, rgba(1, 1, 1, 0) 100%);
}
.sectionContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#header {
  position: absolute;
  display: none;
  width: 70vw;
  height: 70px;
  user-select: none;
  -webkit-user-select: none;
  letter-spacing: -2px;
  pointer-events: none;
  z-index: 5;
  transform: translateY(-70px);
  align-items: center;
  top: 20px;
}
#header.down { animation: yukaridanIn 2s cubic-bezier(.19, 1, .22, 1) forwards; }
@keyframes yukaridanIn {
  from { transform: translateY(-70px); }
  to   { transform: translateY(0); }
}
#header.up { animation: yukariCik 2s cubic-bezier(.19, 1, .22, 1) forwards; }
@keyframes yukariCik {
  from { transform: translateY(0); }
  to   { transform: translateY(-70px); }
}
#middle-menu {
  flex-grow: 1;
  display: inline-flex;
  justify-content: flex-end;
  align-self: center;
  margin-right: 60px;
  height: 100%;
  align-items: center;
}
#middle-menu p {
  font-size: 13px;
  padding-left: 30px;
  margin-top: 20px;
  letter-spacing: 1px;
}
#header h1 {
  font-size: 2rem;
  padding-left: 30px;
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 200;
  letter-spacing: 0;
}

/* ---------- Müzik düğmesi ---------- */
#music {
  border-radius: 50%;
  top: 3px;
  box-shadow: 0 0 0 0 #000, 0 0 0 0 #000;
  cursor: pointer;
  height: 38px;
  position: relative;
  pointer-events: all;
  right: 34px;
  transition: 1.1s cubic-bezier(.19, 1, .22, 1);
  width: 38px;
  user-select: none;
  -webkit-user-select: none;
}
#music img {
  margin-top: 15px;
  margin-right: 0;
  height: 22px;
  margin-left: 2px;
}
#music:hover {
  box-shadow: 0 0 0 2px rgb(255, 255, 255), 0 0 0 2px rgb(255, 255, 255);
  cursor: pointer;
}
#music.kapali img { opacity: 0.35; }
#header img { filter: invert(1); }

/* Müzik bilgi baloncuğu */
.muzik-baloncuk {
  position: absolute;
  top: 52px;
  right: -10px;
  width: 230px;
  background: #fff;
  color: #353535;
  font-size: 12px;
  line-height: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 6px 18px #00000040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
  text-align: left;
  letter-spacing: 0;
  z-index: 20;
}
.muzik-baloncuk.gorunur { opacity: 1; visibility: visible; }

a, button, input, select { pointer-events: auto; }
.invert { filter: invert(100%); }

/* ---------- Odak noktaları (8 anlatı soketi) ---------- */
.point {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  pointer-events: all;
}
.point .label {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff12;
  border: 1px solid #ffffff40;
  color: #ffffff;
  text-align: center;
  line-height: 40px;
  font-weight: 100;
  font-size: 14px;
  cursor: zoom-in;
  transform: scale(0, 0);
  transition: transform 0.3s;
  z-index: 4;
}
.point.visible .label { transform: scale(1, 1); }
/* Anlatı soketi: orijinaldeki 95px tooltip, showroom cümleleri
   için 230px'e genişletildi — tasarım dili (beyaz hap) aynı */
.point .text {
  position: absolute;
  top: -28px;
  left: 14px;
  width: 230px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #353535;
  line-height: 1.35em;
  font-weight: 400;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 6;
  text-align: left;
}
.point .text strong { font-weight: 700; }
.point:hover .text { opacity: 1; }
#div-points {
  top: 0;
  left: 0;
  position: fixed;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
#div-points.ended { opacity: 1; }

/* ---------- Websiteks rozeti + teklif CTA (showroom imzası) ---------- */
.rozet {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  pointer-events: all;
}
.rozet--kart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 6px 18px #00000040;
  color: #10141c;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-decoration: none;
}
.rozet--kart img { height: 15px; display: block; }
.rozet--cta {
  background: #ffffff14;
  border: 1px solid #ffffff40;
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.4s ease-out;
}
.rozet--cta:hover { background: #ffffff; color: #10141c; }

/* ---------- Hareket azaltma (zorunlu erişilebilirlik) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- Mobil (660px) ---------- */
@media only screen and (max-width: 660px) {
  .section {
    height: 100vh;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
    width: 85%;
  }
  #header { width: 100vw; height: 70px; }
  #header h1 { font-size: 20px; flex-grow: 1; }
  .customize--container { justify-content: center; }
  .customize--box {
    background: none;
    box-shadow: none;
    color: inherit;
    right: 0;
    backdrop-filter: blur(3px);
    z-index: 10;
    position: relative;
    height: 100vh;
    justify-content: center;
  }
  .customize--close {
    position: absolute;
    margin-bottom: 23%;
    bottom: 0;
    opacity: 1;
    z-index: 40;
    right: auto;
    top: auto;
    transform: scale(1.5);
  }
  .about--buttons > a { padding: 15px 20px; }
  .about--list > li { margin: 0; }
  .about--box {
    background: white;
    width: 80%;
    height: 630px;
    padding: 0 30px;
    z-index: 10;
    line-height: 20px;
  }
  #middle-menu {
    flex-grow: 1;
    display: inline-flex;
    justify-content: center;
    align-self: center;
    margin-right: 40px;
    height: 100%;
    align-items: center;
  }
  #section-logo {
    overflow-y: hidden;
    justify-content: center;
    pointer-events: none;
  }
  #section-logo h1 {
    font-size: 20vw;
    line-height: 1em;
    letter-spacing: -6px;
  }
  #button-scroll { margin-top: 20px; margin-left: 0; border: none; }
  #button-scroll p { width: 240px; font-size: 13px; }
  .loading-bar { top: 60.5%; }
  #button-zoom {
    align-self: end;
    position: absolute;
    margin-bottom: -10%;
    right: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    z-index: 22;
  }
  #div-points { height: 100vh; }
  #btn-continue-explore { height: 100vh; }
  #music { right: 25px; }
  .customize--button--container { display: none; visibility: hidden; opacity: 0; }
  .point .text { width: 170px; }
  .rozet { left: 12px; bottom: 12px; }
}
