/* ================= HEADER ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 63px;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  transition: all 0.35s ease;
}

/* Sol, Orta, Sağ alanlar */
.navbar > div {
  display: flex;
  align-items: center;
}

.left {
  justify-content: flex-start;
  flex: 1;
}

.center {
  justify-content: center;
  flex: 1;
}

.right {
  justify-content: flex-end;
  flex: 1;
  gap: 20px;
}

/* Logo */
.logo img {
  display: block;
  height: 164px; /* büyük logo */
  width: auto;
  object-fit: contain;
  transform: translateY(18%);
  transition: all 0.4s ease;
}

/* Scroll sırasında logoyu küçült */
.navbar.scrolled .logo img {
  height: 115px;
  transform: translateY(5%);
}

/* ================= MENU ICON (SOL) ================= */
.menu-icon {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2100;
  padding: 0;
}

/* Çizgiler */
.menu-icon span {
  width: 100%;
  height: 2.2px;
  background: #0d1b48;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hover efekti */
.menu-icon:hover span:nth-child(1) { width: 70%; }
.menu-icon:hover span:nth-child(2) { width: 100%; }
.menu-icon:hover span:nth-child(3) { width: 85%; }

/* ================= ICONLAR ================= */
.icon img {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.2s ease;
}
.icon img:hover {
  transform: scale(1.1);
}

/* ================= LANGUAGE SECTION ================= */
.divider {
  width: 1px;
  height: 22px;
  background-color: #0d1b48;
  opacity: 0.8;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #0d1b48;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none; /* ✅ Alt çizgiyi kaldır */
  transition: opacity 0.3s ease;
}

.language-select:hover {
  opacity: 0.75;
  text-decoration: none; /* ✅ Hover’da da çizgi olmasın */
}

.language-select img {
  width: 22px;
  height: 22px;
}

/* ================= SOL DRAWER ================= */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: 85vw;
  background: #0d1b48;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 100px 32px 32px;
  z-index: 3000;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.close-btn {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 34px;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
}

/* Drawer nav */
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.drawer-nav.animate {
  opacity: 1;
  transform: translateX(0);
}

.drawer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  display: block;
  padding: 8px 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.drawer-nav a:hover {
  opacity: 0.9;
  transform: translateX(3px);
}

/* Backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 2500;
}

.backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ================= LANGUAGE DRAWER ================= */
.lang-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 360px;
  max-width: 90vw;
  background: #0d1b48;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 100px 32px 32px;
  z-index: 3100;
  overflow-y: auto;
}

.lang-drawer.open {
  transform: translateX(0);
}

.lang-content {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.lang-content.animate {
  opacity: 1;
  transform: translateX(0);
}

.lang-content h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.lang-content h2 img {
  width: 26px;
  height: 26px;
}

.lang-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lang-content li {
  margin-bottom: 14px;
}

.lang-content a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lang-content a:hover {
  opacity: 0.85;
  transform: translateX(4px);
}

/* DİL MENÜSÜ BACKDROP */
#langBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 3000;
}

#langBackdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .navbar {
    height: 60px;
    padding: 0 22px;
  }
  .logo img {
    height: 120px;
  }
  .drawer {
    padding-top: 90px;
  }
}

@media (max-width: 600px) {
  .navbar {
    height: 55px;
    padding: 0 18px;
  }
  .logo img {
    height: 95px;
  }
  .drawer {
    padding-top: 80px;
  }
}
