@font-face {
  font-family: 'Telegraf';
  src: url('../Fonts/TelegrafRegular_272984568a25d8528fe2de8b20b29011.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Telegraf';
  src: url('../Fonts/Telegraf UltraBold 800.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Telegraf';
  src: url('../Fonts/Telegraf UltraLight 200.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Telegraf', sans-serif;
  background: #000000;
  color: white;
  min-height: 100vh;
}

.referanslar-bg .bg-image {
  background: rgb(32, 32, 32) center center/cover no-repeat;
}

@keyframes zoomInBg {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

/* Header */
.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;
  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;
}

.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;
}

/* Hamburger Menü */
.menu-toggle-container {
  position: absolute;
  top: 60px;
  right: 60px;
  z-index: 9999;
}

.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: 'Telegraf', sans-serif;
  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 4px 15px rgba(255, 255, 255, 0.7);
}

.menu-toggle.active:hover .bar:nth-child(1),
.menu-toggle.active:hover .bar:nth-child(3) {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 1);
  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;
}

/* 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;
}

.menu-logo-img {
  width: 75px;
  height: 100px;
  object-fit: contain;
  display: block;
}

/* 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: 'Telegraf', sans-serif;
  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 {
  width: 750px;
  height: 750px;
  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;
}

/* Ana İçerik */
.main-content {
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  padding: 100px 40px 40px 40px;
}

/* Sayfa Başlığı */
.page-title {
  text-align: center;
  margin-bottom: 60px;
}

.page-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.title-bar {
  width: 200px;
  height: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Referanslar Grid */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
}

/* Referans Kartı */
.reference-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  height: 300px;
  width: 300px;
}

.reference-card:hover {
  transform: translateY(-10px) scale(1.02);
  /* Hafifçe yukarı kalkar ve büyür */
  filter: brightness(1.50);
  /* Kutunun ve görselin parlaklığını %25 artırır */
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
  /* Etrafına yumuşak beyaz bir aura ekler */
  border-color: rgba(255, 255, 255, 0.2);
  /* Kenarlık rengini parlamayla uyumlu hale getirir */
}

.reference-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.reference-card:hover .reference-img {
  transform: scale(1.05);
}

.reference-info {
  padding: 20px;
}

.reference-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.reference-info p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
  font-weight: 400;
}

/* MOBİL (max-width: 700px) */
@media (max-width: 700px) {
  .main-header {
    padding: 18px 6px 0 6px;
  }

  .main-logo {
    width: 120px;
    height: 60px;
    margin-bottom: 4px;
  }

  .castle-icon {
    width: 32px;
    height: 38px;
  }

  .menu-toggle-container {
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }

  .references-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 8px;
    max-width: 98vw;
    margin: 36px auto 0 auto;
  }

  .reference-card {
    width: 100%;
    height: auto;
    /* Yüksekliği otomatik yap */
    aspect-ratio: 1 / 1;
    /* En-boy oranını 1:1 (kare) olarak ayarla */
    border-radius: 14px;
  }

  .reference-info {
    padding: 12px;
    font-size: 0.98rem;
  }

  .page-title h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .title-bar {
    width: 60px;
    height: 3px;
  }
}

/* TABLET DİKEY (701px - 1366px, portrait) */
@media (min-width: 701px) and (max-width: 1366px) and (orientation: portrait) {
  .main-header {
    padding: 24px 18px 0 18px;
  }

  .main-logo {
    width: 180px;
    height: 80px;
    margin-bottom: 8px;
  }

  .castle-icon {
    width: 48px;
    height: 54px;
  }

  .menu-toggle-container {
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
  }

  .references-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 16px;
    max-width: 90vw;
    margin: 60px auto 0 auto;
  }

  .reference-card {
    width: 100%;
    height: 260px;
    border-radius: 18px;
  }

  .reference-info {
    padding: 18px;
    font-size: 1.05rem;
  }

  .page-title h1 {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .title-bar {
    width: 80px;
    height: 4px;
  }
}

/* TABLET YATAY (701px - 1366px, landscape) */
@media (min-width: 701px) and (max-width: 1366px) and (orientation: landscape) {
  .main-header {
    padding: 32px 32px 0 32px;
  }

  .main-logo {
    width: 220px;
    height: 100px;
    margin-bottom: 10px;
  }

  .castle-icon {
    width: 60px;
    height: 70px;
  }

  .menu-toggle-container {
    top: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
  }

  .references-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding: 0 32px;
    max-width: 92vw;
    margin: 80px auto 0 auto;
  }

  .reference-card {
    width: 100%;
    height: 280px;
    border-radius: 22px;
  }

  .reference-info {
    padding: 22px;
    font-size: 1.12rem;
  }

  .page-title h1 {
    font-size: 2.3rem;
    margin-bottom: 18px;
  }

  .title-bar {
    width: 100px;
    height: 5px;
  }
}