@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  position: relative;
}
.hidden {
  display: none;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  color: #fff;
  background: url("../../assets/BgHesapmakinesi.jpg") no-repeat center
    center/cover fixed;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}
body.no-scroll {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

/* ===== Header + Navigation ===== */
header.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 3000;
  background: transparent;
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  margin-bottom: 100px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
@media (max-width: 1100px) {
  header.site-header {
    margin-bottom: 56px;
  }
}
@media (max-width: 768px) {
  header.site-header {
    margin-bottom: 36px;
  }
}

.topbar {
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 32px;
}
.navigation_block {
  display: none;
}
.icon-nav {
  display: inline-flex;
}
.top-section .icon-nav img,
.top-section .icon-nav svg {
  cursor: pointer;
}

/* logo */
.Logo {
  font-size: 2.8em;
  font-weight: 800;
  color: #fff;
  user-select: none;
  margin: 0;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}
@media (max-width: 1200px) {
  .Logo {
    font-size: 2.3em;
  }
}

/* nav (desktop) */
#siteNav.navigation {
  display: flex;
  position: static;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
#siteNav.navigation a {
  display: inline-block;
  position: relative;
  font-size: 1.2em;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  user-select: none;
  padding: 10px 12px;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s, color 0.3s;
}
#siteNav.navigation a:hover {
  color: #fff;
  background: #ff7e00;
  border-radius: 6px;
}
#siteNav.navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 5px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s;
}
#siteNav.navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== Hero: HomeNote + Boxes ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: min(1200px, 96vw);
  margin: 40px auto;
}
.HomeNote {
  flex: 1;
  color: #fff;
  font-size: 1.4em;
  line-height: 1.6;
  text-align: left;
}
.boxes {
  flex: 1;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

/* Auth wrapper */
.wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 20px auto;
  padding: 40px;
  background: transparent;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-1vh) !important;
  margin-top: 1vh !important;
}
.wrapper.active-popup {
  transform: scale(1);
  z-index: 999;
}
.wrapper.active {
  height: 520px;
  z-index: 999;
}
.wrapper .form-box {
  width: 100%;
  display: none;
}
.wrapper .form-box.active {
  display: block;
}

.form-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background: #162938;
}
.form-tabs button {
  background: #162938;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}
.form-tabs button:hover {
  background: #1f3b50;
}
.form-box h2 {
  font-size: 2em;
  color: #fff;
  text-align: center;
}

/* Inputs */
.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  border-bottom: 2px solid #162938;
  margin: 30px 0;
}
.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  color: #fff;
  font-weight: 600;
  padding: 0 73px 0 5px;
}
.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  color: #fff;
  font-weight: 500;
  pointer-events: none;
  transition: 0.5s;
}
.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -5px;
}
.input-box .icon {
  position: absolute;
  right: 8px;
  line-height: 57px;
  display: flex;
  align-items: center;
  color: #162938;
  font-size: 1.2em;
  top: 25%;
}
.input-box .icon img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* Remember / Forgot */
.remember-forgot {
  font-size: 0.9em;
  color: #fff;
  font-weight: 400;
  margin: -15px 0 15px;
  display: flex;
  justify-content: space-between;
}
.remember-forgot label input {
  accent-color: #162938;
  margin-right: 5px;
}
.remember-forgot a {
  color: #fff;
  text-decoration: none;
}
.remember-forgot a:hover {
  text-decoration: underline;
}

/* Buttons */
.Btn {
  width: 100%;
  height: 45px;
  background: rgba(255, 126, 0, 1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s;
}
.Btn:hover {
  background: rgba(255, 126, 0, 0.5);
}
.login-register {
  font-size: 0.9em;
  color: #fff;
  text-align: center;
  font-weight: 400;
  margin: 25px 0 10px;
}
.login-register p a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.login-register p a:hover {
  text-decoration: underline;
}

/* Forgot code field */
.send-passwordKod-form {
  display: none;
  position: relative;
  width: 100%;
  height: 50px;
  border-bottom: 2px solid #162938;
  margin: 30px 0 80px;
}
.send-passwordKod-form input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  color: #fff;
  font-weight: 600;
  padding: 0 73px 0 5px;
}
.send-passwordKod-form label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  color: #fff;
  font-weight: 500;
  pointer-events: none;
  transition: 0.5s;
}
.send-passwordKod-form input:focus ~ label,
.send-passwordKod-form input:valid ~ label {
  top: -5px;
}

/* Close icon */
.wrapper .icon-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: #162938;
  color: #fff;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  cursor: pointer;
  z-index: 1;
}
.wrapper .icon-close img {
  width: 30px;
  height: 30px;
}

/* ===== Modal (about/products/pricing/calc/contact) ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  justify-content: center;
  padding: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
  padding-top: 110px;
}

@media (max-width: 1100px) {
  .modal {
    padding-top: 96px;
  }
}
@media (max-width: 768px) {
  .modal {
    padding-top: 72px;
  }
}
.modal.open {
  display: flex;
}
.modal-content {
  position: relative;
  width: min(1100px, 92vw);
  max-height: calc(100vh - 110px - 24px); /* viewport – topPad – bottomPad */
  height: auto;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 16px 18px;
  background: transparent;
  border: none;
}
@media (max-width: 1100px) {
  .modal-content {
    max-height: calc(100vh - 96px - 24px);
  }
}
@media (max-width: 768px) {
  .modal-content {
    max-height: calc(100vh - 72px - 24px);
  }
}

.modal-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.modal-section-detail {
  position: relative;
  display: none;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  inset: 0;
  overflow: auto;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  padding: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-section-detail::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.modal-section-detail.active {
  display: block;
}
.close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  z-index: 1003;
}

.menus {
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  margin: 5vh auto 0;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: scale(0);
  transition: transform 0.5s, height 0.3s;
  z-index: 999;
}
.menus.active {
  transform: scale(1);
  display: block;
}
.menus iframe {
  display: none;
  max-width: 100%;
}
.menus iframe.active {
  display: block;
  width: 100%;
  height: 100%;
}

main {
  flex: 1 0 auto;
}
footer.footer-center {
  display: block;
  margin-top: auto;
  text-align: center;
  padding: 10px 0;
  color: whitesmoke;
  font-size: 0.95em;
}
.footer-center p {
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .footer-center {
    font-size: 0.8em;
    padding: 5px;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
  .navigation_block {
    display: none !important;
  }
  #siteNav.navigation {
    display: flex !important;
    position: static !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px 24px;
    flex-wrap: wrap;
    white-space: normal;
    width: 100%;
  }
  .Logo {
    font-size: 2.2em;
  }
  #siteNav.navigation a {
    font-size: 1.05em;
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .top-section {
    width: 100%;
    justify-content: space-between;
  }
  .navigation_block {
    display: flex;
    align-items: center;
    height: 28px;
    display: block !important;
  }
  .icon-nav {
    display: inline-flex;
  }
  #siteNav.navigation {
    display: none;
    position: absolute;
    top: 56px;
    right: 12px;
    background: rgba(255, 126, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px;
    flex-direction: column;
    gap: 10px;
    z-index: 1002;
    white-space: normal;
  }
  #siteNav.navigation.show {
    display: flex;
  }
  #siteNav.navigation a {
    color: #fff;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .HomeNote {
    text-align: center;
  }

  .modal {
    align-items: center;
    padding-top: 0;
  }
  .modal-content {
    height: 82vh;
  }
}

@media (max-width: 500px) {
  .wrapper {
    padding: 20px;
  }
  .input-box,
  .send-passwordKod-form {
    height: 45px;
  }
  .Btn {
    height: 40px;
    font-size: 0.9em;
  }
  .close {
    top: 24px;
    right: 32px;
  }
}
