.navbarr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background: #2c3e50;
  transition: all 0.3s ease;
}

.nav-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* LOGO STYLES */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  gap: 10px; /* logo ile yazı arası boşluk */
}

.logo a:hover {
  color: #3498db;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.logo span {
  /* Metin biraz alt hizalı ve kalın */
  display: inline-block;
  vertical-align: middle;
  font-weight: 700;
}

/* NAV LIST */

.nav-list {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-list li {
  list-style: none;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-list > li > a {
  text-decoration: none;
  color: #ecf0f1;
  font-size: 16px;
  padding: 0 5px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown > a {
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-left: 3px;
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

.nav-list li.active a {
  color: #3498db;
}

.nav-list li.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #3498db;
  border-radius: 3px 3px 0 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 10px 0;
}

.nav-list .dropdown-menu li.active {
  background-color: #3498db;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  color: #2c3e50 !important;
  padding: 10px 20px !important;
  display: block;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-menu li a:hover {
  color: #fff !important;
  background-color: #3498db;
  padding-left: 25px !important;
}

/* MOBILE TOGGLE */
.menu-toggle {
  display: none;
  cursor: pointer;
  color: #fff;
  font-size: 28px;
  padding: 10px;
  transition: all 0.3s ease;
  user-select: none;
  position: absolute;
  right: 5px;
}

.menu-toggle:hover {
  color: #3498db;
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: #2c3e50;
    flex-direction: column;
    padding: 20px;
    transition: all 0.4s ease;
    overflow-y: auto;
    z-index: 9999;
  }

  .nav-list.active {
    left: 0;
  }

  .nav-list {
    gap: 15px;
    height: auto;
    align-items: flex-start;
  }

  .nav-list li {
    height: auto;
    width: 100%;
  }

  .nav-list > li > a {
    height: auto;
    padding: 8px 0;
  }

  .dropdown > a::after {
    position: absolute;
    right: 0;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: rgba(0, 0, 0, 0.1);
    margin: 5px 0 0;
    padding: 5px 0;
    border-radius: 0;
  }

  .dropdown-menu li a {
    color: #ecf0f1 !important;
    padding: 8px 15px !important;
  }

  .dropdown-menu li a:hover {
    background: rgba(52, 152, 219, 0.3) !important;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* Scrolled navbar */

.navbarr.scrolled {
  height: 70px;
  background: rgba(44, 62, 80, 0.98);
  backdrop-filter: blur(5px);
}

.navbarr.scrolled .nav-header {
  height: 70px;
}
@media (max-width: 992px) {
  .nav-list {
    position: fixed;
    top: 0;
    left: -100%; /* gizli durum */
    width: 280px;
    height: 100vh;
    background: #2c3e50;
    flex-direction: column;
    padding: 20px;
    transition: left 0.4s ease;
    overflow-y: auto;
    z-index: 9999;
  }

  .nav-list.active {
    left: 0; /* menü görünür */
  }

  .menu-toggle {
    display: block;
  }
}
