@font-face {
  font-family: 'asimovian-bold';
  src: url('../Fonts/Asimovian-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'asimovian';
  src: url('../Fonts/Asimovian-Regular.ttf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'asimovian';
  src: url('../Fonts/Asimovian-Regular.ttf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url('../BackgroundImage/Background.jpg') center center/cover no-repeat;
  z-index: -1;
  background-image: url('../BackgroundImage/Background.jpg');
  background-size: cover;
  background-position: center;
  animation: zoomInBg 6s ease-in-out forwards;
}

@keyframes zoomInBg {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

.main-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 60px 0 60px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.castle-icon {
  width: 75px;
  height: 100px;
  display: block;
}

.header-center {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  margin-top: 0;
  justify-content: flex-start;
  height: 54px;
  /* Yükseklik ve hizalama için */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.main-logo {
  width: 350px;
  height: 150px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
  margin-top: 0;
}

.main-title {
  text-align: center;
  margin-top: 0;
}

.main-title-top {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  display: block;
  line-height: 1.1;
}

.main-title-bottom {
  color: #d6d6d6;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 7px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  display: block;
  margin-top: 2px;
  line-height: 1.1;
}

.header-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 3000;
  min-width: 40px;
  max-width: 100%;
  overflow-x: hidden;
  pointer-events: auto;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.menu-toggle .hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle .bar {
  width: 45px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle .menu-text {
  font-size: 10px;
  color: #fff;
  margin-top: 2px;
  transition: opacity 0.3s ease 0.2s;
  font-family: 'asimovian-bold';
  font-weight: 700;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(16px) rotate(45deg);
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.4);
  background: #fff;
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-16px) rotate(-45deg);
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.4);
  background: #fff;
}

.menu-toggle.active .menu-text {
  opacity: 0;
}

.menu-toggle:hover .bar {
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.5);
}

.menu-toggle.active:hover .bar:nth-child(1),
.menu-toggle.active:hover .bar:nth-child(3) {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.6);
  background: #fff;
}

/* Sol & Sağ Paneller */
.panel {
  position: fixed;
  top: 0;
  width: 50%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  transform: translateX(0);
}

.panel.left {
  left: 0;
  transform: translateX(-100%);
}

.panel.right {
  right: 0;
  transform: translateX(100%);
}

.panel.show.left {
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel.show.right {
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Menü İçeriği */
.menu-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  padding: 50px;
}

.menu-content.open {
  pointer-events: auto;
  opacity: 1;
  transition-delay: 0.6s;
}

/* Hamburger Buton Container */
.menu-toggle-container {
  position: absolute;
  top: 65px;
  right: 80px;
  z-index: 9999;
  pointer-events: auto;
}

/* Menü Linkleri */
.menu-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-links ul li {
  margin: 15px 0;
  font-size: 32px;
  opacity: 0;
  transform: translateX(50px) scale(0.8);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.68, -0.55, .27, 1.55), filter 0.8s ease;
}

.menu-content.open .menu-links ul li {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

/* Stagger gecikme */
.menu-content.open .menu-links ul li:nth-child(1) {
  transition-delay: 0.6s;
}

.menu-content.open .menu-links ul li:nth-child(2) {
  transition-delay: 0.75s;
}

.menu-content.open .menu-links ul li:nth-child(3) {
  transition-delay: 0.9s;
}

.menu-content.open .menu-links ul li:nth-child(4) {
  transition-delay: 1.05s;
}

.menu-content.open .menu-links ul li:nth-child(5) {
  transition-delay: 1.2s;
}

.menu-content.open .menu-links ul li:nth-child(6) {
  transition-delay: 1.35s;
}

.menu-links ul li a {
  font-family: 'asimovian-bold';
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 30px;
  transition: color 0.3s ease;
  font-weight: 700;
  letter-spacing: 2px;
}

.menu-links ul li a:hover {
  color: #ff4141;
}

.menu-links ul li a .menu-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Sağ taraf: Görsel */
.menu-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 40%;
}

.menu-image img {
  margin-left: -300px;
  width: 850px;
  height: 850px;
  object-fit: contain;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 999;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}



/* Menü Logo */
.menu-logo {
  position: absolute;
  top: 35px;
  left: 60px;
  z-index: 1003;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s ease;
}

.menu-content.open .menu-logo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* Animasyon Tanımı */
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* Logo için temel stiller */
.menu-logo-img {
  width: 75px;
  height: 100px;
  object-fit: contain;
  display: block;
  cursor: pointer;
  /* Üzerine gelinebilir olduğunu belirtir */
  /* Parlama efektinin yumuşak bir şekilde kaybolması için geçiş efekti */
  transition: filter 0.3s ease-in-out;
}

/* Fare üzerine geldiğinde uygulanacak stiller */
.menu-logo-img:hover {
  /* 1. Efekt: Arkadan ışık çıkması */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));

  /* 2. Efekt: Kalp atışı animasyonu */
  /* animation: animasyon-adı süre zamanlama-fonksiyonu tekrar-sayısı; */
  animation: heartbeat 0.5s ease-in-out 1;
}

.main-content {
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  margin: 30px 0 0 0;
  width: 650px;
  max-width: 98vw;
  /* margin-left kaldırıldı */
}

.main-btn {
  font-family: 'asimovian';
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(179, 0, 0, 0.35) 0%, rgba(58, 110, 165, 0.25) 100%);
  border: none;
  border-radius: 20px;
  padding: 36px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 2px;
  width: 100%;
  outline: none;
  backdrop-filter: blur(2px);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-btn:hover {
  background: linear-gradient(135deg, rgba(179, 0, 0, 0.55) 0%, rgba(58, 110, 165, 0.45) 100%);
  transform: translateY(-4px) scale(1.04);
}

.main-btn,
.main-btn:hover {
  text-decoration: none;
}

/* Masaüstü için slogan-bar ve kale-slogan */
.kale-slogan {
  position: absolute;
  left: 73%;
  bottom: auto;
  top: 90%;
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 10;
}

.slogan-bar {
  width: 2px;
  height: 120px;
  background: #fff;
  border-radius: 2px;
  margin-left: -260px;
  opacity: 1;
  display: block;
}

.slogan-text {
  color: #fff;
  font-family: 'asimovian';
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  text-align: left;
  margin-bottom: 0;
}

.referanslarimiz-etiket {
  position: fixed;
  left: 290px;
  bottom: 30px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #fff;
  font-size: 16px;
  font-family: 'Telegraf', sans-serif;
  letter-spacing: 2px;
  font-weight: bold;
  z-index: 1000;
  opacity: 0.85;
  user-select: none;
  transform: rotate(180deg);
}

.referanslarimiz-mobile {
  display: none;
}

.reference-slider {
  position: absolute;
  left: -830px;
  bottom: 10px;
  width: 800px;
  height: 100px;
  overflow: hidden;
  z-index: 2;
}

.reference-slider-inner {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: slider-move 20s linear infinite;
}

@keyframes slider-move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* DOĞRU KOD BU */
  }
}

@keyframes slider-move-mobile {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* DOĞRU KOD BU */
  }
}

@keyframes slider-move-tablet {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* DOĞRU KOD BU */
  }
}

.ref-box {
  width: 100px;
  height: 100px;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.ref-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* TELEFON (max-width: 700px) */
@media (max-width: 700px) {

  .main-header {
    padding: 24px 16px 0 16px;
    align-items: center;
    /* <<< BU SATIRI EKLEYİN */
  }

  .main-logo {
    width: 140px;
    height: 120px;
    margin-top: -5px;
    /* Logoyu 15 piksel yukarı çeker */
  }

  .castle-icon {
    width: 40px;
    height: 55px;
  }

  .button-grid {
    width: 95vw;
    gap: 16px;
    margin: 130px 0 0 0;
    justify-content: center;
    align-items: center;
  }

  .main-btn {
    font-size: 1.4rem;
    padding: 22px 0;
  }

  .kale-slogan {
    left: 60%;
    top: 92%;
  }

  .slogan-bar {
    height: 70px;
  }

  .slogan-text {
    font-size: 1.5rem;
  }

  .reference-slider {
    left: -500px;
    width: 500px;
    height: 70px;
  }

  .reference-slider-inner {
    animation: slider-move-mobile 20s linear infinite;
  }

  .ref-box {
    width: 60px;
    height: 60px;
  }

  .kale-slogan {
    position: static;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin-top: 40px;
  }

  .slogan-text {
    text-align: center;
  }

  .slogan-bar {
    width: 80px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    margin: 30px auto 0 auto;
    display: block;
  }

  .reference-slider {
    position: static;
    margin: 46px auto 0 auto;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .referanslarimiz-mobile {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Telegraf', sans-serif;
    font-weight: bold;
    margin: 30px auto 0 auto;
    letter-spacing: 2px;
  }

  .referanslarimiz-etiket {
    display: none;
  }

  .menu-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 8px;
    justify-content: flex-start;
  }

  .menu-logo {
    position: static;
    margin-bottom: 24px;
    left: 0;
    top: 0;
    transform: none;
  }

  .menu-links ul li {
    font-size: 1.1rem;
    margin: 10px 0;
    gap: 10px;
  }

  .menu-links ul li a .menu-icon {
    width: 28px;
    height: 28px;
    gap: 10px;
  }

  .menu-image {
    display: block !important;
    margin: 32px 0 0 12vw;
    /* Sola kaydırmak için sağdan boşluk azalttık */
    text-align: left;
  }

  .menu-image img {
    width: 150vw;
    max-width: 250px;
    height: auto;
    margin-left: 0;
    display: block;
  }

  .menu-toggle-container {
    position: absolute;
    z-index: 9999;
    /* Varsayılan değer */
    top: 30px;
    right: 20px;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .menu-toggle .bar {
    width: 34px;
    height: 5px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
}

/* TABLET DİKEY (min-width: 701px) and (max-width: 1366px) and (orientation: portrait) */
@media (min-width: 701px) and (max-width: 1366px) and (orientation: portrait) {
  html {
    overflow-x: hidden;
  }

  .main-header {
    padding: 32px 32px 0 32px;
    align-items: center;
    /* <<< BU SATIRI EKLEYİN */
  }

  .main-logo {
    width: 240px;
    height: 110px;
    margin-top: -20px;
    /* Logoyu 20 piksel yukarı çeker */
  }

  .castle-icon {
    width: 60px;
  }

  .button-grid {
    width: 80vw;
    gap: 24px;
    margin: 100px 0 0 0;
    justify-content: center;
    align-items: center;
  }

  .main-btn {
    font-size: 1.8rem;
    padding: 28px 0;
  }

  .kale-slogan {
    position: static;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin-top: 90px;
  }

  .slogan-text {
    text-align: center;
    margin-bottom: 18px;
    font-size: 2.1rem;
  }

  .slogan-bar {
    width: 120px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    margin: 18px auto 0 auto;
    display: block;
  }

  .reference-slider {
    position: static;
    margin: 58px auto 0 auto;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .reference-slider-inner {
    animation: slider-move-tablet 35s linear infinite;
  }

  .ref-box {
    width: 80px;
    height: 80px;
  }

  .referanslarimiz-mobile {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Telegraf', sans-serif;
    font-weight: bold;
    margin: 40px auto 0 auto;
    letter-spacing: 2px;
  }

  .referanslarimiz-etiket {
    display: none;
  }

  .menu-content {
    padding: 32px 24px;
  }

  .menu-logo {
    left: 24px;
    top: 24px;
  }

  .menu-links ul li {
    font-size: 1.6rem;
    margin: 12px 0;
  }

  .menu-image {
    display: block !important;
    margin: 40px 0 0 10vw;
    /* Portrait için sola kaydır */
    text-align: left;
  }

  .menu-image img {
    width: 52vw;
    max-width: 320px;
    height: auto;
    margin-left: 0;
    display: block;
  }

  .menu-toggle-container {
    top: 32px;
    right: 24px;
  }
}

/* TABLET YATAY (min-width: 701px) and (max-width: 1366px) and (orientation: landscape) */
@media (min-width: 701px) and (max-width: 1366px) and (orientation: landscape) {
  html {
    overflow-x: hidden;
  }

  .main-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 36px 60px 0 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
  }

  .main-logo {
    width: 350px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
    margin-top: 0;
  }

  .castle-icon {
    width: 74px;
    height: 84px;
    display: block;
  }

  .button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    margin: -90px 0 0 0;
    width: 650px;
    max-width: 98vw;
  }

  .menu-content {
    padding: 40px 32px;
  }

  .menu-logo {
    left: 32px;
    top: 32px;
  }

  .menu-links ul li {
    font-size: 1.8rem;
    margin: 14px 0;
  }

  .menu-image {
    display: block !important;
    margin: 32px 0 0 6vw;
    /* Landscape için sola kaydır */
    text-align: left;
  }

  .menu-image img {
    width: 38vw;
    max-width: 280px;
    height: auto;
    margin-left: 0;
    display: block;
  }

  .menu-toggle-container {
    top: 36px;
    right: 32px;
  }

  .kale-slogan {
    position: absolute;
    left: 73%;
    bottom: auto;
    top: 67%;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 10;
  }

  .slogan-text {
    color: #fff;
    font-family: 'Telegraf';
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    text-align: left;
    margin-bottom: 0;
    margin-left: 40px;
  }

  .slogan-bar {
    width: 2px;
    height: 120px;
    background: #fff;
    border-radius: 2px;
    margin-left: -260px;
    opacity: 1;
    display: block;
  }

  .reference-slider {
    position: absolute;
    left: -765px;
    bottom: 10px;
    width: 800px;
    height: 100px;
    overflow: hidden;
    z-index: 2;
  }

  .reference-slider-inner {
    animation: slider-move-tablet 25s linear infinite;
  }

  .ref-box {
    width: 80px;
    height: 80px;
    margin: 0 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .referanslarimiz-mobile {
    display: block;
    position: absolute;
    left: -850px;
    bottom: 75px;
    transform: rotate(-90deg);
    color: #fff;
    font-size: 1rem;
    font-family: 'Telegraf';
    font-weight: bold;
    letter-spacing: 2px;
  }

  .referanslarimiz-etiket {
    display: none;
  }
}