/* Reset ve Genel Stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-header {
  position: fixed;
  top: 5px;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  width: 100%;
  height: 15vh;
  display: grid;
  grid-template-columns: 92% 8%;
  background-color: white;
  overflow: visible; /* Bu da önemli! */
}

.container {
  width: 100%;
  height: 15vh;
  margin: 0 auto;
  padding: 0 20px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* clip-path'i kaldırıyoruz - dropdown'u kesiyor */
  /* clip-path: polygon(0% 0%, 100% 0%, 98% 100%, 0% 100%); */
  overflow: visible;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  overflow: visible;
  position: relative;
}

/* Navigasyon Stilleri */
.navigation {
  position: static;
  z-index: 1002;
  display: block !important; /* Zorla görünür yapın */
  width: 100%;
  margin-top: 10px;
}

.navigation ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.navigation ul li {
  position: relative;
}

.navigation ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: large;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(81, 105, 83, 0.1);
  transform: translateY(-2px);
  color: #516953;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #516953, #7fb069);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 80%;
}

.header-right-menu {
  width: 100%;
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(21% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition: all 0.3s ease;
  list-style-type: none;
}

.header-right-menu:hover {
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}
.header-right-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: large;
}

/* .fa-bars {
  font-size: 50px;
  margin-left: 5px;
  color: black;
  transition: all 0.3s ease;
  cursor: pointer;
}

.fa-bars:hover {
  color: #555;
  transform: scale(1.1);
} */

/* Dropdown Menu Styles - Düzeltilmiş */
.dropdown {
  position: relative;
  z-index: 1003;
}

.dropdown .nav-link {
  display: flex;
  align-items: center;
}

.dropdown .nav-link i {
  margin-left: 8px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s ease;
  z-index: 9999;
  padding: 1rem 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background: rgba(81, 105, 83, 0.05);
  color: #516953;
  border-left-color: #7fb069;
  padding-left: 2rem;
}

/* Dropdown hover alanını genişlet */
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -30px;
  right: -30px;
  height: 30px;
  background: transparent;
  z-index: 1003;
}
.logo {
  width: 60%;
  height: auto;
}
.logo img {
  width: 30%;
  height: auto;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 20px;
  }

  .navigation ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo img {
    width: 40%;
  }

  body {
    padding-top: 120px;
  }
}

@media (max-width: 480px) {
  .navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    text-align: center;
    padding: 0.7rem 1rem;
  }

  .logo img {
    width: 50%;
  }

  body {
    padding-top: 200px;
  }
}

/* Mevcut CSS kodlarınızın sonuna ekleyin */

/* Responsive Medya Sorguları */
@media screen and (max-width: 1200px) {
  .main-header .container {
    padding: 0 15px;
  }

  .navigation ul li {
    margin-right: 15px;
  }
}

@media screen and (max-width: 992px) {
  .main-header {
    grid-template-columns: 85% 15%;
  }

  .logo img {
    max-width: 180px;
  }

  .navigation ul li {
    margin-right: 10px;
  }

  .nav-link {
    font-size: 14px;
  }

  .dropdown-menu {
    width: 200px;
  }
}

@media screen and (max-width: 768px) {
  .main-header {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px 0;
  }

  .container {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .logo {
    margin-bottom: 15px;
    text-align: center;
  }

  .navigation {
    width: 100%;
    display: block !important;
  }

  .navigation ul {
    flex-direction: column;
    align-items: center;
  }

  .navigation ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
    margin-top: 10px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .header-right-menu {
    width: 100%;
    clip-path: none;
    margin-top: 10px;
    justify-content: center;
  }

  .header-right-menu a {
    padding: 10px;
  }

  /* Mobil menü için hamburger icon görüntüleme */
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
  }

  /* Mobil menü açık/kapalı durumları için */
  .navigation.mobile-active {
    display: block !important;
  }

  .navigation:not(.mobile-active) {
    display: block !important;
  }
}

@media screen and (max-width: 576px) {
  .main-header {
    padding: 5px 0;
  }

  .logo img {
    max-width: 150px;
  }

  .dropdown-link {
    padding: 8px 10px;
  }

  .nav-link {
    font-size: 13px;
  }

  .dropdown-menu {
    padding: 5px;
  }
}

/* Mevcut kodunuza ekleyin - Hamburger menü ve mobil navigasyon için */

.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

/* Mobil menü toggle butonu */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 30px;
  cursor: pointer;
  z-index: 1010;
  transition: all 0.3s ease;
}

.mobile-menu-toggle i {
  font-size: 24px;
  color: #333;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active i {
  color: #516953;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .logo {
    margin-bottom: 0;
    z-index: 1005;
  }

  .navigation {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    opacity: 0;
    visibility: hidden;
    padding: 0;
  }

  .navigation.mobile-active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 15px 0;
  }

  .navigation ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .navigation ul li {
    width: 100%;
    margin: 0;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
  }

  .navigation ul li:last-child {
    border-bottom: none;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: none;
    background: #f9f9f9;
    border-radius: 0;
  }

  .dropdown-menu.show-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    padding: 10px 0;
    margin-top: 10px;
  }

  .dropdown-link {
    padding: 10px 0;
    text-align: center;
  }

  .header-right-menu {
    position: absolute;
    width: auto;
    bottom: -50px;
    right: 15px;
    clip-path: none;
    background: transparent;
  }

  .header-right-menu li {
    display: inline-block;
  }

  .header-right-menu a {
    font-size: 14px;
    background: #516953;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .logo img {
    max-width: 150px;
  }

  .mobile-menu-toggle {
    top: 10px;
    right: 10px;
  }

  .main-header {
    padding: 5px 0;
  }

  .navigation.mobile-active {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* CSS dosyanıza ekleyin */
.nav-link.active,
.dropdown-link.active {
  color: #8b4513 !important;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #8b4513;
}

/* CSS dosyanıza eklenecek stiller */
.logos-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cretos-logo,
.dolunay-logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.cretos-logo:hover,
.dolunay-logo:hover {
  transform: scale(1.05);
}

.logo-separator {
  font-size: 24px;
  font-weight: bold;
  color: #8b4513;
  margin: 0 10px;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
  .logos-container {
    gap: 10px;
  }

  .cretos-logo,
  .dolunay-logo {
    height: 35px;
  }

  .logo-separator {
    font-size: 18px;
    margin: 0 5px;
  }
}

@media (max-width: 480px) {
  .logos-container {
    gap: 8px;
  }

  .cretos-logo,
  .dolunay-logo {
    height: 30px;
  }

  .logo-separator {
    font-size: 16px;
    margin: 0 3px;
  }
}
