/* ===== Header (Top Nav) ===== */

/* FLASH ÖNLEME - EN BAŞA EKLEYİN */
.nav-menu-footer,
.nav-menu-extra, 
.nav-menu-cta,
.nav-menu-social {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-menu:not(.active) {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
  }
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Solid background - blur kaldırıldı */
  background: #1f2937 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  /* Scroll'da da aynı solid background */
  background: #1f2937 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  /* Hafif gölge */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Scroll durduğunda */
.header.scroll-stopped {
  background: #1f2937 !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* HERO SECTION - DÜZELTİLDİ */
.hero {
  margin-top: 0; /* Header'ın üstüne gelsin */
  padding-top: 4rem; /* Desktop için header yüksekliği */
}

/* Mobilde hero padding'i düzelt */
@media (max-width: 768px) {
  .hero {
    padding-top: 3.5rem !important; /* Mobil header yüksekliği */
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* Desktop */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  height: 100%
}
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
  height: 100%;
}

.nav-logo-link:hover {
  opacity: 0.8; /* Hover efekti */
}

.nav-logo svg { 
  color: #f2faff; /* Açık renk */
}

.nav-logo img {
  height: 200px; /* ESKİ HALİ - orijinal boyut */
  width: auto;
  max-width: 200px; /* ESKİ HALİ */
  object-fit: contain; /* Orantıları koru */
  filter: brightness(0) invert(1); /* Siyah logoyu beyaza çevir */
  vertical-align: middle; /* Dikey hizalama */
  margin: 0; /* Varsayılan margin'leri kaldır */
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f2faff; /* Açık renk */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Nav link geçiş efektleri */
.nav-link {
  text-decoration: none;
  color: #d1d5db; /* Hafif gri-açık */
  font-weight: 500;
  /* BU İKİ SATIRI EKLEYİN ↓ */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem; /* İstediğiniz boyutu buraya yazın, 1rem genelde iyidir */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active { 
  color: #f2faff; /* Hover ve active'de tam açık */
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0; right: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

/* ===== DROPDOWN STYLES - BURAYA EKLEYİN ===== */
.nav-item {
  position: relative;
}

.nav-link .dropdown-arrow {
  display: none !important;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(225deg);
  margin-top: 2px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  z-index: 1001;
  margin-top: 0.5rem;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem; /* Sayfanın body font boyutundan bağımsız, her sayfada aynı */
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

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

.dropdown-item:hover {
  background: #f8fafc;
  color: #1f2937;
  transform: translateX(5px);
}

.dropdown-item:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3b82f6;
}
/* ===== DROPDOWN STYLES BİTİŞ ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Açık tema için */
}

.nav-toggle:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: #f2faff; /* Açık renk */
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #f2faff; /* Açık renk */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background: #2563eb !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-size: 1.2rem !important; /* Bu satırı ekleyin/değiştirin */
  font-weight: 600 !important; /* İsteğe bağlı: daha kalın yazı */
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ------- Responsive Design ------- */

/* Desktop - Ekstra alanları gizle */
@media (min-width: 769px) {
  .nav-menu-footer,
  .nav-menu-extra,
  .nav-menu-cta,
  .nav-menu-social {
    display: none !important;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  /* Tablet'te de ekstra alanları gizle */
  .nav-menu-footer,
  .nav-menu-extra,
  .nav-menu-cta,
  .nav-menu-social {
    display: none !important;
  }
}

/* Mobil - Ana düzeltmeler burada */
@media (max-width: 768px) {
  /* Container ve temel ayarlar - DÜZELTİLDİ */
  .nav-container {
    height: 3.5rem !important; /* Mobil header yüksekliği */
    padding: 0 1rem;
  }
  
  .nav-logo img {
    height: 200px !important; /* Mobilde logo boyutu - BÜYÜTÜLDÜ */
  }
  
  .nav-toggle {
    display: flex !important;
    position: relative;
    z-index: 1002;
  }
  
  .nav-actions {
    gap: 0.75rem;
  }
  
  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Mobil menü stilleri */
  .nav-menu {
    position: fixed;
    top: 3.5rem; /* Mobil header yüksekliği */
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    border-top: 1px solid #e5e7eb;
    
    /* Daha büyük alan */
    min-height: 70vh;
    max-height: 85vh;
    overflow-y: auto;
    
    /* Initially hidden */
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-menu.active {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Mobilde nav-item stilleri */
  .nav-item {
    width: 100% !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }
  
  /* Ana navigasyon linkleri */
  .nav-menu .nav-link {
    padding: 1.25rem 1rem !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    width: 100% !important;
    text-align: left !important;
    color: #1f2937 !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 0.25rem 0 !important;
    text-decoration: none !important;
    
    /* FLEX AYARLARI */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }
  
  .nav-menu .nav-link:hover {
    background: #f8fafc !important;
    color: #3b82f6 !important;
    transform: translateX(5px) !important;
  }
  
  /* Dropdown arrow mobilde */
  .dropdown-arrow {
    display: none !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  
  .nav-item.active .dropdown-arrow {
    transform: rotate(225deg) !important;
    margin-top: 2px !important;
  }
  
  /* Mobilde dropdown menu */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: #f8fafc !important;
    margin-top: 0 !important;
    display: none !important;
    min-width: auto !important;
    width: 100% !important;
  }
  
  .nav-item.active .dropdown-menu {
    display: block !important;
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem !important;
    margin-left: 1rem !important;
    border-left: 2px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #f8fafc !important;
    color: #374151 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    width: calc(100% - 1rem) !important;
    text-align: left !important;
  }
  
  .dropdown-item:hover {
    transform: none !important;
    background: #e5e7eb !important;
    color: #1f2937 !important;
  }
  
  .dropdown-item:hover::before {
    display: none !important;
  }
  
  /* Menü footer alanı */
  .nav-menu-footer {
    display: flex !important;
    flex-direction: column;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
  }
  
  /* Ekstra linkler */
  .nav-menu-extra {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .nav-menu-extra .nav-link {
    font-size: 1rem !important;
    padding: 1rem !important;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    margin: 0 !important;
    justify-content: flex-start !important;
  }
  
  .nav-menu-extra .nav-link:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    transform: none !important;
    border-color: #d1d5db !important;
  }
  
  /* CTA bölümü */
  .nav-menu-cta {
    display: block !important;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .nav-menu-cta h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
  }
  
  .nav-menu-cta p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
  }
  
  .nav-menu-cta .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
  }
  
  .nav-menu-cta .btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    margin-bottom: 0.75rem;
  }
  
  .nav-menu-cta .btn-primary:hover {
    background: #2563eb;
  }
  
  .nav-menu-cta .btn-secondary {
    background: white;
    color: #3b82f6;
    border: 1px solid #3b82f6;
  }
  
  .nav-menu-cta .btn-secondary:hover {
    background: #f8fafc;
  }
  
  /* Sosyal medya */
  .nav-menu-social {
    display: flex !important;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
  }
  
  .nav-menu-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .nav-menu-social a:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
  }
  
  /* Overlay effect */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
}

/* Very small mobile */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.75rem;
    height: 3.5rem !important; /* Tutarlılık için */
  }
  
  .nav-logo img {
    height: 200px !important; /* Çok küçük ekranlarda da görünür olsun */
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
  
  /* Get Started gizle, Sign In göster */
  .nav-actions .btn-primary {
    display: none !important;
  }
  
  .nav-actions .btn-ghost {
    display: flex !important;
    color: #f2faff;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .nav-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  /* Mobilde hero padding'i daha da küçük ekranlar için ayarla */
  .hero {
    padding-top: 3.5rem !important;
  }
}

/* Mobil menü açıkken body scroll engelle */
body.menu-open {
  overflow: hidden;
}

/* Animation keyframes */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}