@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Open+Sans:wght@400;600&display=swap');
html {
  font-size: 14px; /* Varsayılan genelde 16px, bunu düşürmek her şeyi küçültür */
}

body {
  background: #07080b;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  overflow-x: hidden;
}
header{
    position: relative;
}
#particles-nav, #particles-hero, #slider-particles {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
nav, .hero-header, .slider-section {
  position: relative; /* overlay için şart */
}

.cyber-navbar {
  background: linear-gradient(90deg, #050506 80%, #121319 100%);
  box-shadow: 0 4px 24px #000a;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 22px;
  height: 80px;
  z-index: 10;
}
.cyber-navbar .brand {
  font-family: 'Inter', 'Arial Black', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 12px #0002;
  flex: 1;
}

.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  display: none;
  cursor: pointer;
  z-index: 30;
}
.menu-toggle:focus { outline: none; }

.cyber-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
  align-items: stretch;
}
.cyber-menu > li {
  position: relative;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}
.cyber-menu > li > a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  color: #fff;
  font-size: 0.96rem;
  letter-spacing: .1px;
  text-transform: none;
  background: none;
  border: none;
  outline: none;
  transition: color .18s, background .25s;
  border-radius: 8px 8px 0 0;
  text-decoration: none !important;
  font-weight: 500;
}
.cyber-menu > li > a:hover,
.cyber-menu > li.open > a {
  color: #e63946;
  background: #191a21;
}

.cyber-menu li ul {
  display: block;
  position: absolute;
  left: 0; top: 100%;
  min-width: 200px;
  background: #15161d;
  border-radius: 0 0 13px 13px;
  box-shadow: 0 10px 28px #000b, 0 0 8px #e6394622;
  padding: 0;
  margin: 0;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transform: translateX(20px);
  transition:
    max-height .42s cubic-bezier(.6,1.5,.4,1),
    opacity .32s,
    transform .28s cubic-bezier(.7,1.3,.5,1);
}

.cyber-menu li.open > ul,
.cyber-menu > li:hover > ul {
  opacity: 1;
  max-height: 500px;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0.10s;
}
.cyber-menu li ul li {
  position: relative;
}
.cyber-menu li ul li a {
  padding: 10px 22px;
  display: block;
  color: #f8f9fa;
  font-size: 0.88rem;
  border-radius: 0;
  text-transform: none;
  transition: background .18s, color .18s;
  font-weight: 400;
  text-decoration: none !important;
}
.cyber-menu li ul li a:hover {
  background: #23242b;
  color: #e63946;
}

/* --- SAĞDAKİ ALT MENÜLERİ Sola Aç --- */
@media (min-width: 992px) {
  .cyber-menu > li:last-child > ul,
  .cyber-menu > li:nth-last-child(2) > ul {
    left: auto;
    right: 0;
    transform: translateX(-20px);
  }
  .cyber-menu > li:last-child.open > ul,
  .cyber-menu > li:last-child:hover > ul,
  .cyber-menu > li:nth-last-child(2).open > ul,
  .cyber-menu > li:nth-last-child(2):hover > ul {
    transform: translateX(0);
  }
}
/* Mobil hamburger butonu zaten menu.js ile toggle ediyor */
@media (max-width: 991px) {
  .menu-toggle {
    display: block !important;
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 200;
  }

  .cyber-menu {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 0; right: 0;
    height: 100vh !important;
    width: 100vw !important;
    background: #07080b !important;
    padding-top: 80px !important;  /* header yüksekliğine göre ayarla */
    transform: translateX(100%) !important;
    transition: transform .4s ease;
    z-index: 180;
    overflow-y: auto !important;
  }

  .cyber-menu.open {
    transform: translateX(0) !important;
  }

  .cyber-menu > li > a {
    padding: 16px 24px !important;
    border-bottom: 1px solid #191a21 !important;
  }
  /* Alt menüleri JS toggle ile aç/kapa */
  .cyber-menu li ul {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height .3s ease !important;
  }
  .cyber-menu li.open > ul {
    max-height: 500px !important;
  }
  .cyber-menu li ul li a {
    padding: 12px 36px !important;
  }
}

/* --- MOBİL İÇİN --- */
@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .cyber-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 92vw;
    max-width: 330px;
    background: #07080b;
    box-shadow: -8px 0 40px #000c;
    padding-top: 5px;
    gap: 0;
    z-index: 100;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.5,1.6,.4,1);
  }
  .cyber-menu.open {
    display: flex;
    transform: translateX(0%);
  }
  .cyber-menu > li > a {
    padding: 17px 21px;
    font-size: 0.97rem;
    border-radius: 0;
    border-bottom: 1px solid #191a21;
    color: #fff;
  }
  .cyber-menu li ul {
    position: static;
    box-shadow: none;
    background: #101014;
    border-radius: 0 0 10px 10px;
    padding: 0;
    margin-bottom: 4px;
    transition: max-height .48s cubic-bezier(.7,1.4,.6,1), opacity .28s, transform .26s;
  }
  .cyber-menu li ul li a {
    padding: 12px 36px;
    font-size: 0.9rem;
    color: #f2f2f2;
  }
}
html {
  scroll-behavior: smooth;
}
.cyber-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.cyber-search-center {
  flex: 0 1 390px;
  display: flex;
  justify-content:flex-start;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
}

.cyber-search-form {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #161b23 80%, #232c 100%);
  border-radius: 16px;
  box-shadow: 0 0px 14px #20ffe428, 0 0px 22px #e6394620;
  padding: 2px 12px 2px 8px;
  border: 1.6px solid #20ffe438;
  transition: box-shadow .18s, border-color .16s;
}

.cyber-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #20ffe4;
  font-size: 1.05rem;
  font-family: inherit;
  padding: 9px 7px 9px 5px;
  width: 140px;
  min-width: 80px;
  transition: width .3s;
}

.cyber-search-input:focus {
  width: 200px;
  color: #fff;
}

.cyber-search-btn {
  background: none;
  border: none;
  padding: 4px 0 0 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform .15s;
}
.cyber-search-btn:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px #ff1a1acc);
}

/* Responsive */
@media (max-width: 900px) {
  .cyber-search-center {
    position: static;
    left: unset;
    transform: none;
    margin: 10px auto;
    width: 90vw;
    max-width: 400px;
    flex: 1 1 100%;
    justify-content: center;
  }
  .cyber-search-input { width: 90vw; min-width: 60px; }
}
.cyber-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.cyber-navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  gap: 18px; /* Elemanlar arası boşluk */
  padding: 0 22px;
  height: 80px;
}
.brand {
  margin-right: 28px;
  flex: 0 0 auto;
}
.cyber-search-center {
  margin-right: 36px;
  min-width: 190px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: static; /* ! DİKKAT: 'absolute' DEĞİL, 'static' olacak! */
  left: unset;
  transform: none;
  z-index: 21;
}
.cyber-menu {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.menu-toggle {
  margin-left: auto;
}




/* Responsive */
@media (max-width: 900px) {
  .cyber-search-center {
    position: static;
    left: unset;
    transform: none;
    margin: 10px auto;
    width: 90vw;
    max-width: 400px;
    flex: 1 1 100%;
    justify-content: center;
  }
  .cyber-search-input { width: 90vw; min-width: 60px; }
}

@media (max-width: 991px) {
  .cyber-menu > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 20px !important;       /* dikey ve yatay boşluk artır */
    font-size: 1.1rem !important;         /* biraz daha büyük yazı */
    line-height: 1.2 !important;          /* satır yüksekliği arttı */
    background: rgba(255,255,255,0.06) !important; /* hafif kart efekti */
    color: #fff !important;               /* kesin beyaz metin */
    white-space: normal !important;       /* kırılmaya izin ver */
    word-break: break-word !important;
    border-radius: 6px !important;
    margin: 6px 12px !important;          /* butonlar arasına boşluk */
  }
}
@media (max-width: 991px) {
  .cyber-menu {
    width: 80vw !important;        /* full-screen yerine daha dar panel */
    max-width: 300px !important;   /* ihtiyacın kadar daralt */
  }
}
/* ESKİ HALİ (tablet + mobil) 
@media (max-width: 991px) { … }
*/

/* YENİ HALİ: sadece 600px altı için */
@media (max-width: 600px) {
  .menu-toggle {
    display: block !important;
  }
  .cyber-menu {
    position: fixed !important;
                           /* nav yüksekliğine göre ayarla */
    right: 0;
    width: 92vw !important;
    max-width: 330px !important;
    height: calc(100vh - 80px) !important;       /* nav boşluğunu düş */
    background: #07080b !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s ease !important;
    z-index: 100 !important;
    overflow-y: auto !important;
    padding-top: 0 !important;
  }
  .cyber-menu.open {
    display: flex !important;
    transform: translateX(0) !important;
  }
  .cyber-menu > li > a {
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    background: rgba(255,255,255,0.06) !important;
    color: #fff !important;
    margin: 6px 12px !important;
    border-radius: 6px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}
/* menu.css sonuna ekleyin */


