*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* SIFIR KAYDIRMA (Strict 100vh lock) */
html,
body {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden !important;
  position: fixed;
  background-color: #070709;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   ARKA PLAN: heronoob.webp (DENGELİ KOYULUK)
   ========================================= */
.bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bg-container.active {
  opacity: 1;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
  transform: scale(1.02);
  filter: brightness(0.68) contrast(1.1) saturate(0.95);
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(7, 7, 9, 0.78) 0%, rgba(7, 7, 9, 0.45) 45%, rgba(7, 7, 9, 0.15) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.6) 0%, transparent 25%, rgba(7, 7, 9, 0.6) 100%);
  pointer-events: none;
}

/* Particle Canvas */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

/* =========================================
   INTRO STAGE & LOGO TRANSFORMATION
   ========================================= */
.intro-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 80; /* Navbar (60) ve arka planın üstünde, logo asla kaybolmaz */
}

/* 1. mini.webp */
.mini-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center bottom;
  will-change: transform, opacity;
  z-index: 38;
}

.mini-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
}

.mini-wrapper.jumping {
  animation: miniJumpPure 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes miniJumpPure {
  0% {
    transform: translate(-50%, -50%) scale(1, 1);
    opacity: 1;
  }
  20% {
    transform: translate(-50%, calc(-50% + 18px)) scale(1.22, 0.78);
    opacity: 1;
  }
  45% {
    transform: translate(-50%, calc(-50% - 50px)) scale(0.9, 1.2);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, calc(-50% - 95px)) scale(0.96, 1.05);
    opacity: 1;
  }
  90% {
    transform: translate(-50%, calc(-50% - 100px)) scale(0.7, 0.7);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, calc(-50% - 102px)) scale(0.2, 0.2);
    opacity: 0;
  }
}

/* 2. logo.webp */
.full-logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
  transform-origin: center center;
  z-index: 90;
  will-change: transform, top, left, width, opacity;
}

.full-logo {
  width: 400px;
  max-width: 85vw;
  height: auto;
  object-fit: contain;
  display: block;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.full-logo-wrapper.revealed {
  animation: logoSettleClean 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoSettleClean {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 85px)) scale(0.45);
  }
  25% {
    opacity: 1;
  }
  60% {
    transform: translate(-50%, calc(-50% + 8px)) scale(1.04, 0.96);
  }
  80% {
    transform: translate(-50%, calc(-50% - 3px)) scale(0.99, 1.01);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Logo Bütünleşik Navbarın Sol Yuvasına İner */
.full-logo-wrapper.to-corner {
  opacity: 1;
  top: 30px;
  left: 52px;
  transform: translate(0, 0) scale(1);
  transition: top 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              left 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  z-index: 95;
}

.full-logo-wrapper.to-corner .full-logo {
  width: 185px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.9));
}

/* =========================================
   BÜYÜTÜLMÜŞ & DÜZGÜN OYUN NAVBARI (/ SLANTED)
   ========================================= */
.top-nav-bar {
  position: absolute;
  top: 28px;
  left: 36px;
  display: flex;
  align-items: center;
  z-index: 60; /* Dropdown ve navbar her zaman en üstte */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-nav-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Bütünleşik Gövde: clip-path ::before katmanına alındı (Dropdown'un kesilmesini önler) */
.unified-navbar {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 32px 0 16px;
}

.unified-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 14, 19, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* Belirgin / kesik kenarlar arka plana uygulanır */
  clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}

/* Logo Alanı */
.nav-logo-dock {
  position: relative;
  width: 200px;
  height: 100%;
  background: transparent;
  flex-shrink: 0;
  z-index: 2;
}

/* Logo ile Menü Arasındaki / Köprü */
.nav-bridge-slash {
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.18);
  margin: 0 16px 0 8px;
  user-select: none;
  transform: skewX(-14deg);
  z-index: 2;
}

/* Menü Butonları Şeridi */
.gaming-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Sekmeler Arasındaki / Çizgiler */
.track-slash {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.14);
  margin: 0 8px;
  user-select: none;
  transform: skewX(-14deg);
}

/* Sekme Butonu (Sade, temiz, abartısız) */
.track-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 9px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.65);
  transform: skewX(-14deg);
  border-radius: 4px;
  transition: color 0.15s ease;
}

.tab-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: skewX(14deg);
}

.track-tab:hover {
  color: #ffffff;
}

.track-tab.active {
  color: #ffffff;
  background: rgba(255, 106, 0, 0.15);
  border: 1px solid rgba(255, 120, 20, 0.4);
  box-shadow: none;
}

.tab-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7b1a;
}

.tab-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 106, 0, 0.2);
  color: #ff8c38;
}

/* =========================================
   i18n LANGUAGE DROPDOWN
   ========================================= */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 10;
}

.lang-current-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  transform: skewX(-14deg);
  border-radius: 4px;
  outline: none;
  transition: background 0.15s ease;
}

.lang-current-btn:hover,
.lang-dropdown-wrapper.open .lang-current-btn {
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn-inner {
  gap: 6px;
}

.lang-flag-icon {
  width: 17px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

.lang-current-code {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.lang-chevron-icon {
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, color 0.2s ease;
  display: block;
}

.lang-dropdown-wrapper.open .lang-chevron-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Açılır Menü (Artık asla kesilmez, üst katmanda) */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 155px;
  background: #0f1017;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 99999;
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
  display: flex;
}

/* Menü Öğeleri */
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: background 0.12s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
  background: rgba(255, 106, 0, 0.16);
}

.lang-option-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

.lang-option-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}

.lang-option.active .lang-option-name {
  color: #ff8c38;
}

.lang-option-code {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.lang-option.active .lang-option-code {
  color: #ff8c38;
}

/* =========================================
   HERO COMING SOON SECTION
   ========================================= */
.page-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 48px;
  z-index: 20;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-container {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 90px;
}

.main-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(42px, 4.8vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

/* Düzgün, Canlı ve Parlak Turuncu */
.accent-orange {
  color: #ff6a00;
  text-shadow: 0 2px 20px rgba(255, 106, 0, 0.4);
}

.sub-paragraph {
  font-size: 17px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin-bottom: 38px;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  user-select: text;
  -webkit-user-select: text;
}

/* =========================================
   ACTION BUTTONS ROW (DİSCORD & GİTHUB - PARLAMA/HOVER YOK)
   ========================================= */
.actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 14px;
  min-width: 250px;
  cursor: pointer;
  /* Hover hareketi, kalkma, parlama efektleri tamamen kaldırıldı */
}

/* Discord Butonu (Mat, dengeli, parlamasız) */
.discord-btn {
  background: #5865F2;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none; /* Parlama sıfırlandı */
}

.discord-btn:hover {
  background: #4752c4;
  /* Zıplama, translate ve ekstra gölge yok */
}

.discord-icon-bg {
  background: rgba(255, 255, 255, 0.15);
}

/* GitHub Butonu (Mat, sade, parlamasız) */
.github-btn {
  background: rgba(15, 16, 22, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none; /* Parlama sıfırlandı */
}

.github-btn:hover {
  background: rgba(25, 27, 36, 0.9);
  /* Zıplama, translate ve parlama yok */
}

.github-icon-bg {
  background: rgba(255, 255, 255, 0.1);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.btn-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.btn-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  margin-top: 1px;
}

.btn-arrow {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   RESPONSIVE UYUMLULUK
   ========================================= */
@media (max-width: 900px) {
  .nav-logo-dock {
    width: 165px;
  }

  .unified-navbar {
    height: 56px;
    padding: 0 20px 0 12px;
  }

  .track-tab {
    padding: 7px 14px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .top-nav-bar {
    top: 18px;
    left: 16px;
    right: 16px;
  }

  .unified-navbar {
    width: 100%;
    height: 52px;
    justify-content: space-between;
    clip-path: none;
    border-radius: 14px;
  }

  .nav-bridge-slash {
    display: none;
  }

  .track-tab {
    transform: none;
    padding: 6px 8px;
    font-size: 11px;
  }

  .tab-label {
    transform: none;
  }

  .track-tab span:not(.tab-status-dot) {
    display: none;
  }

  .discord-mini-icon {
    display: block !important;
  }

  .full-logo-wrapper.to-corner {
    top: 22px;
    left: 24px;
  }

  .full-logo-wrapper.to-corner .full-logo {
    width: 140px;
  }

  .page-wrapper {
    padding: 0 20px;
    align-items: flex-end;
    padding-bottom: 45px;
  }

  .main-heading {
    font-size: 34px;
  }

  .sub-paragraph {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .actions-row {
    flex-direction: column;
    gap: 10px;
  }

  .action-btn {
    width: 100%;
    min-width: 0;
  }
}

.not-found-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 45; /* Arka planın (1), heronun (20) ve logonun altında, navbarın (60) altında */
  background: #070709; /* heronoob.webp kesinlikle görünmez */
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 54px;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.not-found-screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* React Bits Plasma Arka Plan Katmanı */
.plasma-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070709;
  z-index: 1;
}

#plasmaCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.plasma-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(7, 7, 9, 0.4) 0%, rgba(7, 7, 9, 0.92) 85%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.8) 0%, transparent 40%, rgba(7, 7, 9, 0.85) 100%);
  pointer-events: none;
}

/* 404 İçerik Kutusu */
.not-found-content {
  position: relative;
  z-index: 5;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 50px;
}

/* Büyük, cesur ve düzgün turuncu 404 tipografisi */
.not-found-status-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
  color: #ff6a00;
  margin-bottom: 8px;
  text-shadow: 0 4px 25px rgba(255, 106, 0, 0.45);
  display: inline-block;
}

.not-found-glitch-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.9);
}

.not-found-paragraph {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: 32px;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 22, 30, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.back-home-btn:hover {
  background: rgba(32, 35, 48, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
}

.full-logo-wrapper.to-corner {
  cursor: pointer;
}
