/* ========================================
   HEADER - PREMIUM UNIFIED DESIGN
   ======================================== */

/* Ana Header Container */
.chy-header-1-area {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky Header Effect */
.chy-header-1-area.sticky {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

/* Header Container */
.chy-container-1 {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Wrap - Perfect Layout */
.chy-header-1-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0;
  height: 80px;
  position: relative;
  transition: height 0.3s ease;
  gap: 20px;
}

.chy-header-1-area.sticky .chy-header-1-wrap {
  height: 70px;
}

/* ========================================
   SOL MENÜ - NAVIGATION
   ======================================== */
.header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

.chy-main-menu-1 {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-navigation {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.main-navigation ul li {
  margin: 0;
  position: relative;
}

.main-navigation ul li a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 12px 8px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

/* Hover Underline Animation */
.main-navigation ul li a::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--chy-pr-1), var(--chy-pr-2));
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.main-navigation ul li a:hover {
  color: var(--chy-pr-1);
  transform: translateY(-2px);
}

.main-navigation ul li a:hover::before {
  transform: translateX(-50%) scaleX(1);
}

/* Active State */
.main-navigation ul li a.active {
  color: var(--chy-pr-1);
  font-weight: 600;
}

.main-navigation ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--chy-pr-1), var(--chy-pr-2));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(var(--chy-pr-1-rgb), 0.3);
}

/* ========================================
   MERKEZ LOGO - PERFECT CENTER
   ======================================== */
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  grid-column: 2;
}

.chy-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.chy-logo img {
  height: 55px;
  width: auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
  object-fit: contain;
}

.chy-header-1-area.sticky .chy-logo img {
  height: 48px;
}

.chy-logo:hover img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* ========================================
   SAĞ BUTONLAR - AUTH
   ======================================== */
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  grid-column: 3;
  padding-right: 8px;
}

.header-auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Login Button */
.login-btn {
  background: transparent;
  color: var(--chy-pr-1);
  border-color: var(--chy-pr-1);
}

.login-btn:hover {
  background: var(--chy-pr-1);
  color: #ffffff;
  border-color: var(--chy-pr-1);
}

/* Register Button */
.register-btn {
  background: var(--chy-pr-1);
  color: #ffffff;
  border-color: var(--chy-pr-1);
}

.register-btn:hover {
  background: var(--chy-pr-2);
  border-color: var(--chy-pr-2);
}

/* Button Icons */
.btn-icon {
  font-size: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.auth-btn:hover .btn-icon {
  transform: translateX(2px);
}

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--chy-pr-1);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-toggle:hover span {
  background: var(--chy-pr-2);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: calc(100vh - 80px);
  background: #ffffff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Mobile Navigation */
.mobile-navigation {
  padding: 24px 0;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-list li a i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: #6b7280;
  transition: all 0.3s ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
  background: linear-gradient(90deg, rgba(var(--chy-pr-1-rgb), 0.08), transparent);
  color: var(--chy-pr-1);
}

.mobile-nav-list li a:hover i,
.mobile-nav-list li a.active i {
  color: var(--chy-pr-1);
  transform: scale(1.1);
}

.mobile-nav-list li a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--chy-pr-1), var(--chy-pr-2));
}

/* Mobile Auth Section */
.mobile-auth-section {
  padding: 24px;
  border-top: 1px solid #e5e7eb;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.mobile-login-btn {
  background: transparent;
  color: var(--chy-pr-1);
  border-color: var(--chy-pr-1);
}

.mobile-login-btn:hover {
  background: var(--chy-pr-1);
  color: #ffffff;
}

.mobile-register-btn {
  background: linear-gradient(135deg, var(--chy-pr-1), var(--chy-pr-2));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--chy-pr-1-rgb), 0.25);
}

.mobile-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--chy-pr-1-rgb), 0.35);
}

/* Show Mobile Menu on Tablets and Below */
@media (max-width: 991px) {
  .mobile-menu-overlay,
  .mobile-menu {
    display: block;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Tablets & Medium Screens */
@media (max-width: 1199px) {
  .main-navigation ul {
    gap: 36px;
  }
  
  .main-navigation ul li a {
    font-size: 14px;
  }
  
  .auth-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .chy-header-1-wrap {
    height: 70px;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }
  
  .header-left {
    grid-column: 1;
    justify-content: flex-start;
  }
  
  .header-center {
    grid-column: 2;
    justify-content: center;
  }
  
  .header-right {
    grid-column: 3;
    justify-content: flex-end;
  }
  
  .chy-main-menu-1 {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .chy-logo img {
    height: 48px;
  }
  
  .header-auth-buttons {
    gap: 10px;
  }
  
  .auth-btn {
    padding: 7px 14px;
    font-size: 12px;
    gap: 5px;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .chy-container-1 {
    padding: 0 16px;
  }
  
  .chy-header-1-wrap {
    height: 65px;
    gap: 12px;
  }
  
  .chy-header-1-area.sticky .chy-header-1-wrap {
    height: 60px;
  }
  
  .chy-logo img {
    height: 42px;
  }
  
  .auth-btn {
    padding: 7px 14px;
    font-size: 12px;
    gap: 5px;
  }
  
  .btn-icon {
    font-size: 11px;
  }
  
  .mobile-menu-overlay {
    top: 65px;
  }
  
  .mobile-menu {
    top: 65px;
    height: calc(100vh - 65px);
  }
}

/* Mobile Medium */
@media (max-width: 576px) {
  .chy-container-1 {
    padding: 0 12px;
  }
  
  .chy-header-1-wrap {
    height: 60px;
    gap: 8px;
  }
  
  .chy-header-1-area.sticky .chy-header-1-wrap {
    height: 56px;
  }
  
  .chy-logo img {
    height: 38px;
  }
  
  .header-auth-buttons {
    gap: 6px;
  }
  
  .auth-btn .btn-text {
    display: none;
  }
  
  .auth-btn {
    padding: 8px;
    border-radius: 6px;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
  }
  
  .auth-btn .btn-icon {
    font-size: 14px;
  }
  
  .mobile-menu-toggle {
    width: 26px;
    height: 20px;
  }
  
  .mobile-menu-toggle span {
    height: 2.5px;
  }
  
  .mobile-menu-overlay {
    top: 60px;
  }
  
  .mobile-menu {
    top: 60px;
    height: calc(100vh - 60px);
    width: 280px;
  }
}

/* Mobile Small */
@media (max-width: 380px) {
  .chy-header-1-wrap {
    gap: 6px;
  }
  
  .chy-logo img {
    height: 34px;
  }
  
  .auth-btn {
    padding: 6px;
    min-width: 32px;
    min-height: 32px;
  }
  
  .auth-btn .btn-icon {
    font-size: 13px;
  }
  
  .mobile-menu {
    width: 260px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Page Offset for Fixed Header */
body {
  padding-top: 0;
}

/* Sayfa İçerikleri için Header Offset */
.chy-hero-1-area,
.chy-about-1-area,
.project-page-area,
.chy-price-card-1-area,
.chy-team-2-area,
.team-enhanced-area,
.chy-clients-page-area,
.faq-page-area,
.contact-page-area,
.blog-page-2-area,
.blog-details-area,
.body-bg-1,
.body-bg-2 {
  padding-top: 120px !important;
}

/* Hero bölümü için özel padding - daha yumuşak geçiş */
.chy-hero-1-area {
  padding-top: 100px !important;
}

/* Paketler sayfası için özel padding */
.packages-page-wrapper {
  padding-top: 0;
}

/* Responsive Padding Adjustments */
@media (max-width: 991px) {
  .chy-hero-1-area,
  .chy-about-1-area,
  .project-page-area,
  .chy-price-card-1-area,
  .chy-team-2-area,
  .team-enhanced-area,
  .chy-clients-page-area,
  .faq-page-area,
  .contact-page-area,
  .blog-page-2-area,
  .blog-details-area,
  .body-bg-1,
  .body-bg-2 {
    padding-top: 110px !important;
  }
  
  .chy-hero-1-area {
    padding-top: 90px !important;
  }
  
  .packages-page-wrapper {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .chy-hero-1-area,
  .chy-about-1-area,
  .project-page-area,
  .chy-price-card-1-area,
  .chy-team-2-area,
  .team-enhanced-area,
  .chy-clients-page-area,
  .faq-page-area,
  .contact-page-area,
  .blog-page-2-area,
  .blog-details-area,
  .body-bg-1,
  .body-bg-2 {
    padding-top: 100px !important;
  }
  
  .chy-hero-1-area {
    padding-top: 85px !important;
  }
  
  .packages-page-wrapper {
    padding-top: 0;
  }
}

@media (max-width: 576px) {
  .chy-hero-1-area,
  .chy-about-1-area,
  .project-page-area,
  .chy-price-card-1-area,
  .chy-team-2-area,
  .team-enhanced-area,
  .chy-clients-page-area,
  .faq-page-area,
  .contact-page-area,
  .blog-page-2-area,
  .blog-details-area,
  .body-bg-1,
  .body-bg-2 {
    padding-top: 90px !important;
  }
  
  .chy-hero-1-area {
    padding-top: 80px !important;
  }
  
  .packages-page-wrapper {
    padding-top: 0;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.main-navigation ul li a:focus,
.auth-btn:focus,
.chy-logo:focus {
  outline: 2px solid var(--chy-pr-1);
  outline-offset: 4px;
  border-radius: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .chy-header-1-area {
    border-bottom-width: 2px;
  }
  
  .main-navigation ul li a {
    font-weight: 600;
  }
}

