.menu {
  width: 100vw;
  height: 6vw;
}

/* menu */

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900; /* toggle butonundan düşük */
  height: 20vw;
  background-color: #ffff;
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: #ffffff;
  z-index: 1000;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-top: 1vw;
  padding-bottom: 1vw;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(65, 65, 65, 0.1);
}

.logo {
  font-size: 1vw;
  font-weight: 400;
  line-height: 1.2;
  width: auto;
  flex-shrink: 0;
}

.logo img {
  width: 13vw;
  height: auto;
  filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(1000%)
    hue-rotate(200deg) brightness(1);
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  margin-left: 3vw;
  box-sizing: border-box;
  height: 100%;
  gap: 1.9vw;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  font-size: 1vw;
  font-weight: 500;
  transition: color 0.3s;
  line-height: 1;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a:hover {
  color: black;
}

.apply-btn {
  background-color: #000000;
  color: #fff !important;
  font-weight: 500;
  border-radius: 9px;
  padding: 8px 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 0vw !important;
  border: none;
  transition: all 0.3s ease;
  gap: 6px;
  text-decoration: none;
  font-size: 1.3vw;
  letter-spacing: 0;
  min-width: 100px;
  height: 40px;
}

.apply-btn:hover {
  color: #fff !important;
  text-decoration: none;
}

.apply-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  fill: none;
  stroke: #fff;
  stroke-width: 3px;
}

.apply-btn:hover svg {
  stroke: #fff;
}

.apply-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 46, 55, 0.2);
}

.apply-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(18, 46, 55, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .apply-btn {
    padding: 8px 15px;
    font-size: 3.5vw;
    letter-spacing: 0;
    min-width: 100px;
    height: 40px;
  }

  .apply-btn svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    stroke-width: 3px;
  }
}

/* Mobile Menü */

.menu-toggle {
  width: 10vw;
  height: 6vw;
  cursor: pointer;
  display: none; /* Desktop'ta gizle */
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  right: 5vw;
  transform: translateY(-50%);
  z-index: 1001;
  pointer-events: auto;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-menu.active .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-content {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: none;
  transition: top 0.4s ease;
  z-index: 999;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding-top: 15vw;
  height: auto;
  min-height: auto;
  max-height: 100vh;
  overflow-y: auto;
}

.menu-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-content li {
  margin-bottom: 20px;
  text-align: center;
}

.menu-content a {
  text-decoration: none;
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.mobile-menu.active .menu-content {
  top: 0;
}

@media only screen and (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  .menu-toggle {
    display: flex; /* Mobilde göster */
  }

  .nav-links {
    display: none;
  }

  .menu-content {
    height: auto;
    min-height: auto;
    max-height: 100vh;
  }

  .navbar {
    position: fixed;
    background-color: #ffffff !important;
    backdrop-filter: unset !important;
    left: 0;
    width: 100%;
    padding-left: 2vw;
    border-bottom: 1px solid #e0e0e0;
  }

  .logo img {
    width: 45vw;
    padding: 3vw;
    height: auto;
  }

  .header {
    margin-top: 25vw;
  }

  .menu-toggle span {
    height: 0.5vw;
    border-radius: 99vw;
  }

  .menu-toggle {
    width: 6vw !important;
    height: 5vw !important;
    border-radius: 99vw;
  }

  .menu-content a {
    font-size: 3.5vw;
  }

  .menu-content ul {
    margin-right: 0;
  }
}

/* Medium mobile screens */
@media only screen and (max-width: 600px) and (min-width: 481px) {
  .menu-content {
    height: auto;
    min-height: auto;
    max-height: 100vh;
  }

  .menu-content ul {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .menu-content a {
    font-size: 3.5vw;
    text-align: center;
    width: 100%;
    display: block;
  }
}

/* Very small screens */
@media only screen and (max-width: 480px) {
  .menu-content {
    padding: 10px;
    padding-top: 20vw;
    height: auto;
    min-height: auto;
    max-height: 100vh;
  }

  .menu-content ul {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .menu-content a {
    font-size: 3.5vw;
    text-align: center;
    width: 100%;
    display: block;
  }
}