@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;600;700;900&display=swap');

:root {
  --bg-primary: #070d14;
  --bg-secondary: #0d1b2a;
  --bg-card: #0f2233;
  --border: #1a3a55;
  --accent-blue: #0a84ff;
  --accent-red: #c0392b;
  --accent-cyan: #00d4ff;
  --text-primary: #e8f4fd;
  --text-secondary: #7ba7c4;
  --text-muted: #3d6680;
  --nav-height: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  /* Sayfa Geçiş Animasyonu */
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

body.fade-out {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* ─── ARKA PLAN EFEKTLERİ KESİN ÇÖZÜM (KAYMA ENGELLENDİ) ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 132, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2; /* En arkaya gömüldü */
}

/* Sorunlu divler fixed yapıldı, sayfa akışından çıkarıldı */
.grid-glow {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh; 
  pointer-events: none; 
  z-index: -1; 
  background: radial-gradient(600px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(0, 212, 255, 0.08), transparent 40%);
  transition: opacity 0.3s ease;
}

#particles-js { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh; 
  z-index: 0; 
  pointer-events: auto; 
}

/* ─── SİBER KAYDIRMA VE METİN SEÇİMİ ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }
::selection { background: var(--accent-cyan); color: #000; text-shadow: none; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(7, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 58, 85, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand img {
  height: 44px; width: 44px; border-radius: 50%;
  border: 2px solid var(--accent-blue);
  filter: drop-shadow(0 0 8px rgba(10, 132, 255, 0.4));
}

.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-title {
  font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--accent-cyan); letter-spacing: 2px; text-transform: uppercase;
}
.nav-brand-sub { font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; color: var(--text-muted); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

@media (min-width: 769px) {
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  color: var(--text-secondary); padding: 0.5rem 1rem; border-radius: 4px;
  transition: all 0.2s ease; position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--accent-cyan); transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent-cyan); text-shadow: 0 0 8px rgba(0, 212, 255, 0.4); }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; box-shadow: 0 0 10px var(--accent-cyan); }

/* ─── HAMBURGER MENÜ ─── */
.hamburger {
  display: none; flex-direction: column; gap: 6px; cursor: pointer;
  background: none; border: none; padding: 8px; z-index: 1001;
}
.hamburger span {
  display: block; width: 28px; height: 2px; background: var(--accent-cyan);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--accent-red); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--accent-red); }

/* ─── KARTLAR (CARDS) ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden;
}

.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
  .card:hover { border-color: var(--accent-blue); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10, 132, 255, 0.15); }
  .card:hover::before { opacity: 1; }
}

/* ─── ANA BÖLÜM VE KAYMA ÖNLEME (PADDING FIX) ─── */
main { position: relative; z-index: 1; }

.section { 
  /* Menü boyu + ekstra boşluk ekleyerek sayfanın aşağı itilmesini engeller */
  padding: calc(var(--nav-height) + 4rem) 2rem 6rem; 
  max-width: 1200px; 
  margin: 0 auto; 
  position: relative;
  z-index: 10;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-label { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--accent-cyan); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.section-title { font-family: 'Rajdhani', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.section-title span { color: var(--accent-cyan); text-shadow: 0 0 15px rgba(0,212,255,0.3); }
.section-divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)); margin: 1.5rem auto 0; border-radius: 2px; box-shadow: 0 0 10px var(--accent-cyan); }

/* ─── BUTONLAR VE ETİKETLER ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  padding: 0.8rem 1.8rem; border-radius: 6px; cursor: pointer; transition: all 0.3s ease; border: none;
}
.btn-primary { background: var(--accent-blue); color: #fff; box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2); }
.btn-primary:hover { background: var(--accent-cyan); box-shadow: 0 0 25px rgba(0, 212, 255, 0.5); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.btn-outline:hover { background: rgba(0, 212, 255, 0.1); box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); transform: translateY(-2px); }

.tag { display: inline-block; font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; padding: 0.3rem 0.7rem; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; font-weight: bold; }
.tag-blue { background: rgba(10, 132, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(10, 132, 255, 0.3); }
.tag-red { background: rgba(192, 57, 43, 0.15); color: #ff4757; border: 1px solid rgba(192, 57, 43, 0.3); }
.tag-green { background: rgba(39, 174, 96, 0.15); color: #2ecc71; border: 1px solid rgba(39, 174, 96, 0.3); }
.tag-orange { background: rgba(230, 126, 34, 0.15); color: #ffa502; border: 1px solid rgba(230, 126, 34, 0.3); }

/* ─── FOOTER ─── */
footer { position: relative; z-index: 10; border-top: 1px solid var(--border); background: var(--bg-secondary); padding: 4rem 2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand img { height: 55px; width: 55px; border-radius: 50%; margin-bottom: 1rem; border: 2px solid var(--border); }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 250px; }
.footer-col h4 { font-family: 'Rajdhani', sans-serif; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; transition: all 0.2s ease; }
.footer-col ul a:hover { color: var(--accent-cyan); padding-left: 5px; }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--text-muted); }

/* SOSYAL İKONLAR */
.nav-socials { display: flex; gap: 1.2rem; align-items: center; margin-left: 2rem; }
.nav-socials a { color: var(--text-muted); width: 22px; height: 22px; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.nav-socials a:hover { color: var(--accent-cyan); transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8)); }
.nav-socials svg { width: 100%; height: 100%; fill: currentColor; }

/* ─── GÖRSEL HİZALAMA VE METİN AKIŞI EKLENTİSİ ─── */
.article-content::after {
  content: "";
  display: table;
  clear: both; 
}

.article-content img.align-left {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  max-width: 45%; 
  border-radius: 8px;
}

.article-content img.align-right {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 45%;
  border-radius: 8px;
}

.article-content img.align-center {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 8px;
}

/* ─── ALTIN NEON SİBER DUYURU RADARI ─── */
.cyber-alert-widget {
  background: rgba(255, 187, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 187, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 187, 0, 0.2);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  color: #ffbb00;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: alertPulseDesktop 2s infinite alternate;
  margin-top: 1.5rem;
  position: relative;
  z-index: 20;
}

.cyber-alert-widget:hover {
  background: rgba(255, 187, 0, 0.2);
  box-shadow: 0 0 30px rgba(255, 187, 0, 0.6);
  transform: scale(1.02);
}

.alert-icon {
  background: #ffbb00;
  color: #070d14;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.alert-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #ffbb00;
  animation: radarPulse 1.5s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

.alert-content { display: flex; flex-direction: column; text-align: left; }
.alert-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; letter-spacing: 2px; opacity: 0.8; margin-bottom: 2px; }
.alert-text { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; }

@keyframes radarPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes alertPulseDesktop {
  0% { box-shadow: 0 0 10px rgba(255,187,0,0.2); }
  100% { box-shadow: 0 0 25px rgba(255,187,0,0.6); border-color: #ffbb00; }
}

/* ─── SİBER MODAL (AÇILIR PENCERE) ─── */
.cyber-modal {
  display: none; 
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 20, 0.85); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000; 
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
}

.cyber-modal.show {
  display: flex;
  opacity: 1;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cyber-modal-content {
  background: var(--bg-card);
  border: 1px solid #ffbb00;
  box-shadow: 0 10px 40px rgba(255, 187, 0, 0.2);
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  padding: 2.5rem 2rem;
  position: relative;
  text-align: left;
  transform: scale(0.95);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover { color: #ffbb00; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}


/* ─── MOBİL APP DENEYİMİ ─── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-socials { display: none; }
  
  .navbar { padding: 0 1rem; }
  
  .nav-brand-title { font-size: 1.1rem; }
  .nav-brand-sub { font-size: 0.55rem; }

  /* MOBİL İÇİN EKRAN KAYMASI KESİN ÇÖZÜM PADDING */
  .section { padding: calc(var(--nav-height) + 2rem) 1.25rem 4rem; }

  /* TAM EKRAN NEON MOBİL MENÜ */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100dvh;
    background: rgba(7, 13, 20, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    
    transform: translateY(-20px) scale(0.98); 
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); 
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  .nav-links.open li { opacity: 1; transform: translateY(0); }
  .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.5s; }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.5rem; 
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-links a.active, .nav-links a:active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
  }

  .nav-links a::after { display: none; }

  /* MOBİL İÇİN HİZALAMA ÇÖZÜMÜ: Yazı sıkışmasın diye resimler otomatik alt alta dizilir */
  .article-content img.align-left,
  .article-content img.align-right {
    float: none;
    margin: 1.5rem auto;
    max-width: 100%;
    display: block;
  }

  .card {
    animation: mobileBreathing 4s infinite alternate ease-in-out;
  }
  
  @keyframes mobileBreathing {
    0% { box-shadow: 0 0 0 rgba(0, 212, 255, 0); border-color: var(--border); }
    100% { box-shadow: 0 5px 25px rgba(0, 212, 255, 0.15); border-color: rgba(0, 212, 255, 0.3); }
  }

  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .footer-brand { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .footer-col ul { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 1rem; }

  .cyber-alert-widget {
    animation: mobileAlertPop 2s infinite alternate cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  @keyframes mobileAlertPop {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(255,187,0,0.3); }
    100% { transform: scale(1.03); box-shadow: 0 0 35px rgba(255,187,0,0.7); border-color: #ffbb00; }
  }
}