/* ===== NAVBAR ===== */
.navbar {
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  padding: 4px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--surface-soft);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .navbar {
  background: var(--bg-body);
  color: var(--text);
}

body.dark-theme .site-header {
  background: var(--surface-soft);
  border-bottom-color: var(--nav-border);
}

body.dark-theme .site-header::after {
  opacity: 0.7;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  width: 100%;
  border-radius: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
  background: linear-gradient(to bottom, #1e3a8a 0, #0b2a5a 3px, #2fd17d 3px, #1bb36a 6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6px 14px;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header.compact {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.site-header.compact .header-inner {
  padding: 8px 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background: #fff;
  padding: 2px;
  border: 2px solid var(--dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--text);
  border-radius: 20px;
  transition: all 0.3s ease;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--nav-bg);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border: 1px solid var(--text);
  position: relative;
}

.nav a,
.nav button,
.theme-toggle-header {
  color: var(--text);
  font-weight: 500;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.03em;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  opacity: 0.72;
}

body.dark-theme .nav a,
body.dark-theme .nav button,
body.dark-theme .theme-toggle-header {
  color: var(--white);
  opacity: 1;
  background: unset;
}

.nav a:hover,
.nav a.active,
.nav .theme-toggle:hover,
.nav .drop-trigger:hover,
.theme-toggle-header:hover {
  opacity: 1;
  color: var(--nav-link-hover);
  background: none;
}

.dark-theme .nav a:hover,
.dark-theme .nav a.active,
.dark-theme .nav .theme-toggle:hover,
.dark-theme .nav .drop-trigger:hover{
  color: var(--white);
}

.nav a:hover::after,
.nav a.active::after,
.nav .theme-toggle:hover::after,
.theme-toggle-header:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  border-radius: 20px;
  opacity: 0.6;
}

.body.dark-theme .nav a:hover::after,
.body.dark-theme .nav a.active::after{
  opacity: 1;
}




body.dark-theme .nav a:hover::after,
body.dark-theme .nav .theme-toggle:hover::after,
body.dark-theme .theme-toggle-header:hover::after{
  background: var(--nav-link-hover);
}

.nav a.active::after {
  opacity: 1;
  background: var(--nav-link-hover);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.drop-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--text);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.drop-trigger::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.2s;
}

.dropdown.active .drop-trigger::after {
  transform: rotate(180deg);
}

.dropdown .menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

body.dark-theme .dropdown .menu {
  border-radius: 0;
  border: 1px solid var(--nav-border);
  background: var(--surface-soft);
}

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

.dropdown .menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  margin: 4px;
  border-bottom: 1px solid transparent;
}

body.dark-theme .dropdown .menu a {
  border-radius: 0;
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

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

.dropdown .menu a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown .menu a::after {
  display: none;
}

/* Language Toggle */
.lang-toggle {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.5) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--text) !important;
  border-radius: 999px;
  padding: 8px 12px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  position: relative !important;
  overflow: hidden;
}

.dark-theme .lang-toggle {
  color: var(--white) !important;
  border-color: var(--white) !important;
  background: unset !important;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background: rgba(255, 255, 255, 0.95);
}

.lang-toggle::after {
  display: none;
}

/* Theme Toggle - base */
.theme-toggle-icon {
  font-size: 13px;
}

/* Desktop: only nav toggles visible (theme + lang in nav) */
@media (min-width: 769px) {
  .theme-toggle-header,
  .lang-toggle-header {
    display: none;
  }
  
  .theme-toggle-nav,
  .lang-toggle-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header-inner {
    padding: 12px 6px 12px 6px;
  }
  
  .logo {
    width: 70px;
    height: 70px;
    border-width: 1px;
  }
  
  .brand {
    font-size: 18px;
  }
  
  .nav {
    gap: 12px;
    padding: 4px 12px;
  }
  
  .nav a,
  .nav button {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
    padding: 12px 6px 12px 6px;
  }
  
  .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }
  
  .brand {
    order: 0;
  }
  
  /* Mobile: show theme + lang in header (nav toggles hidden) */
  .theme-toggle-nav,
  .lang-toggle-nav {
    display: none;
  }
  
  .theme-toggle-header,
  .lang-toggle-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  
  .lang-toggle-header {
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  /* Nav overlay: absolute so açılınca sayfa aşağı kaymaz */
  .nav {
    order: 3;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--border);
    transition: max-height 0.35s ease, padding 0.35s ease;
    z-index: 999;
  }
  
  body.dark-theme .nav {
    background: var(--surface-soft);
    border-top-color: var(--nav-border);
  }
  
  .nav.active {
    max-height: 80vh;
    max-height: 80dvh;
    padding: 12px 0;
    overflow-y: auto;
  }
  
  .nav a,
  .nav button {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    opacity: 1;
    border-radius: 0;
    background: transparent;
    margin: 0;
  }
  
  .nav a:hover::after,
  .nav a.active::after {
    display: none;
  }
  
  .nav a:hover,
  .nav a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
  }
  
  body.dark-theme .nav a,
  body.dark-theme .nav button {
    border-bottom-color: rgba(148, 163, 184, 0.25);
  }
  
  body.dark-theme .nav a:hover,
  body.dark-theme .nav a.active {
    background: rgba(37, 99, 235, 0.12);
  }
  
  .dropdown {
    width: 100%;
  }
  
  .drop-trigger {
    width: 100%;
    padding: 12px 16px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: transparent;
    border-radius: 0;
  }
  
  body.dark-theme .drop-trigger {
    border-bottom-color: rgba(148, 163, 184, 0.25);
  }
  
  .dropdown .menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(37, 99, 235, 0.05);
    margin: 0;
    padding: 0;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  body.dark-theme .dropdown .menu {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  
  .dropdown.active .menu {
    max-height: 300px;
    padding: 8px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
  }
  
  body.dark-theme .dropdown.active .menu {
    border-top-color: rgba(148, 163, 184, 0.25);
  }
  
  .dropdown .menu a {
    padding: 10px 32px;
    margin: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 14px;
    background: transparent;
    border-radius: 0;
  }
  
  .dropdown .menu a:last-child {
    border-bottom: none;
  }
  
  body.dark-theme .dropdown .menu a {
    color: var(--text);
    border-bottom-color: rgba(148, 163, 184, 0.2);
  }
  
  body.dark-theme .dropdown .menu a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
  }
  
  .nav .lang-toggle {
    width: 100%;
    margin-top: 0;
    padding: 12px 16px !important;
    font-size: 14px !important;
    text-align: center;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }
  
  body.dark-theme .nav .lang-toggle {
    border-bottom-color: rgba(148, 163, 184, 0.25);
  }
}

/* ===== PAGE INTRO - PARALLAX HERO SECTION ===== */
.page-intro.parallax {
  width: 100%;
  position: relative;
  overflow: hidden; 
}

.page-intro.parallax .jarallax-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-intro.parallax .parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.page-intro.parallax .parallax-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  text-align: left;
}


.breadcrumb-nav {
  margin-bottom: 0;
}

.breadcrumb {
  background: var(--dark);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.breadcrumb-item {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--white);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: rgba(255, 255, 255, 0.7);
  padding: 0 10px;
  font-size: 16px;
  font-weight: 300;
}

.page-intro-title {
  color: var(--white) !important;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-intro-lede {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  max-width: 700px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .page-intro.parallax .parallax-content {
    padding: 50px 30px;
  }
  
  .page-intro-title {
    font-size: clamp(26px, 3.5vw, 40px);
  }
  
  .page-intro-lede {
    font-size: clamp(15px, 2vw, 19px);
  }
}

@media (max-width: 768px) {
  .page-intro.parallax {
    min-height: 240px;
  }
  
  .page-intro.parallax .parallax-content {
    padding: 60px 20px 40px;
  }
  
  .breadcrumb {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .page-intro-title {
    font-size: clamp(24px, 4vw, 36px);
  }
  
  .page-intro-lede {
    font-size: clamp(14px, 2vw, 18px);
  }

  
}

@media (max-width: 480px) {
  .page-intro.parallax {
    min-height: 200px;
  }
  
  .page-intro.parallax .parallax-content {
    padding: 50px 16px 32px;
  }
  
  .breadcrumb {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .page-intro-title {
    font-size: clamp(20px, 5vw, 32px);
  }
  
  .page-intro-lede {
    font-size: clamp(13px, 2.5vw, 16px);
    margin-top: 10px;
  }
}
