.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;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  cursor: pointer;
  position: relative;
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7vw;
  margin-left: 0.5vw;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 350px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 12px 0;
  margin-top: 15px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  color: #555;
  text-decoration: none;
  font-size: 1vw;
  font-weight: 400;
  transition: all 0.3s ease;
  margin-right: 0;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #000;
  padding-left: 24px;
}

.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 Dropdown Styles */
.menu-content .dropdown {
  position: relative;
  width: 100%;
  display: block;
  clear: both;
}

.menu-content .dropdown-toggle {
  display: block;
  width: 100%;
  text-decoration: none;
  font-size: 18px;
  color: #333;
  padding: 10px 0;
  text-align: center;
  position: relative;
}

.menu-content .dropdown-toggle::after {
  content: " ▼";
  font-size: 12px;
  transition: transform 0.3s ease;
}

.menu-content .dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.menu-content .dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  margin-top: 0;
  margin-left: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  width: 100%;
  clear: both;
}

.menu-content .dropdown.active .dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
}

.menu-content .dropdown-menu a {
  padding: 12px 20px;
  font-size: 18px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
  font-weight: 400;
  text-align: left;
  display: block;
  width: 100%;
  margin-left: 0;
}

.menu-content .dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #000;
  padding-left: 20px;
}

.menu-content .dropdown-menu a:last-child {
  border-bottom: none;
}

.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 .dropdown-toggle {
    font-size: 3.5vw;
    text-align: center;
    display: block;
  }

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

  .menu-content .dropdown-menu a {
    font-size: 3.2vw;
    text-align: left;
    padding: 10px 15px;
    width: 100%;
    margin-left: 0;
  }

  .menu-content .dropdown.active .dropdown-menu {
    max-height: 500px;
    overflow-y: visible;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-left: 0;
    clear: both;
  }

  .menu-content .dropdown-toggle::after {
    font-size: 2.5vw;
  }

  .menu-content .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* 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 .dropdown-toggle {
    font-size: 3.5vw;
    text-align: center;
    width: 100%;
    display: block;
  }

  .menu-content .dropdown-toggle::after {
    font-size: 2.5vw;
  }

  .menu-content .dropdown-menu a {
    font-size: 3.3vw;
    text-align: left;
    padding: 10px 15px;
    width: 100%;
    margin-left: 0;
  }

  .menu-content .dropdown.active .dropdown-menu {
    max-height: 500px;
    overflow-y: visible;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-left: 0;
    clear: both;
  }
}

/* Mini Menu Styles */
.mini-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.mini-apply-btn {
  background-color: #000000;
  color: white;
  padding: 1vw 2vw;
  border-radius: 25px;
  text-decoration: none;
  font-size: 2.5vw;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mini-apply-btn:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

/* Desktop styles for mini menu */
@media only screen and (min-width: 769px) {
  .mini-menu {
    display: none;
  }
}

/* Mobile styles for mini menu */
@media only screen and (max-width: 768px) {
  .mini-menu {
    display: flex;
    margin-left: auto;
    margin-right: 3vw;
  }

  .mini-apply-btn {
    font-size: 3vw;
    padding: 1.5vw 3vw;
  }
}

/* Very small screens */
@media only screen and (max-width: 480px) {
  .mini-apply-btn {
    font-size: 3.5vw;
    padding: 2vw 4vw;
  }

  .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 .dropdown-toggle {
    font-size: 3.5vw;
    text-align: center;
    width: 100%;
    display: block;
  }

  .menu-content .dropdown-toggle::after {
    font-size: 2.5vw;
  }

  .menu-content .dropdown-menu a {
    font-size: 3.5vw;
    text-align: left;
    padding: 10px 15px;
    width: 100%;
    margin-left: 0;
  }

  .menu-content .dropdown.active .dropdown-menu {
    max-height: 500px;
    overflow-y: visible;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-left: 0;
    clear: both;
  }
}
