/* ==========================================================================
   1. BASE.CSS - Değişkenler, Arka Plan Aurora, Siber Izgara ve Navigasyon
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

:root {
  --bg-deep: #050508;
  --bg-card: rgba(15, 15, 23, 0.86);
  --bg-card-hover: rgba(22, 22, 34, 0.94);
  --bg-darker: #0a0a0f;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(129, 140, 248, 0.45);
  --text-main: #f4f4f6;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --emerald: #10b981;
  --purple: #a855f7;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --cyan: #06b6d4;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  letter-spacing: -0.012em;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  text-rendering: optimizeLegibility;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

::selection { background-color: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6366f1, #10b981); border-radius: 9999px; }

.scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4, #10b981);
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
  z-index: 9999;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

#bg-particles {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 0;
}

.ambient-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.cyber-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, transparent 75%);
}

.glow-orb { position: absolute; border-radius: 50%; opacity: 0.55; will-change: transform; pointer-events: none; }
.glow-orb-1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%); top: -180px; left: -150px; animation: orbFloat1 16s ease-in-out infinite alternate; }
.glow-orb-2 { width: 650px; height: 650px; background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.05) 40%, transparent 70%); bottom: -10%; right: -160px; animation: orbFloat2 20s ease-in-out infinite alternate; }
.glow-orb-3 { width: 540px; height: 540px; background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%); top: 32%; left: 20%; animation: orbFloat3 18s ease-in-out infinite alternate; }
.glow-orb-4 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%); top: 10%; right: 10%; animation: orbFloat1 22s ease-in-out infinite alternate-reverse; }

@keyframes orbFloat1 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(55px, 65px, 0); } }
@keyframes orbFloat2 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-60px, -65px, 0); } }
@keyframes orbFloat3 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(45px, -50px, 0); } }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.13) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
  pointer-events: none; z-index: 1; will-change: transform;
  transform: translate3d(-9999px, -9999px, 0); transition: opacity 0.3s ease; opacity: 0;
}

.click-ripple {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 9998;
  border: 2px solid rgba(129, 140, 248, 0.75);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), inset 0 0 12px rgba(6, 182, 212, 0.4);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleExpand 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rippleExpand {
  0% { width: 0px; height: 0px; opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
  100% { width: 130px; height: 130px; opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

header {
  position: sticky; top: 0; z-index: 50;
  background-color: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: var(--sat); height: calc(64px + var(--sat));
}

.nav-container { max-width: 920px; margin: 0 auto; padding: 0 1.25rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand-btn { background: transparent; border: none; font-size: 1.3rem; font-weight: 800; color: #fff; cursor: pointer; letter-spacing: -0.03em; display: flex; align-items: center; gap: 0.45rem; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand-btn:hover { transform: scale(1.04); }
.brand-btn:active { transform: scale(0.95); }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #06b6d4); box-shadow: 0 0 12px #6366f1; animation: statusPulse 2s infinite; }
.brand-btn span.accent { background: linear-gradient(90deg, #818cf8, #38bdf8, #c084fc); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: textShine 4s linear infinite; }

.nav-tabs { display: flex; gap: 0.45rem; align-items: center; }
.tab-btn { text-decoration: none; padding: 0.45rem 1rem; min-height: 40px; border-radius: 0.8rem; font-size: 0.875rem; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); background: transparent; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.35rem; }
.tab-btn:hover { color: #fff; background-color: rgba(255, 255, 255, 0.06); transform: translateY(-1px); text-decoration: none; }
.tab-btn:active { transform: scale(0.95); }
.tab-btn.active { background-color: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }

.sparkle-icon { display: inline-block; animation: sparkleTwinkle 2.2s ease-in-out infinite; }
@keyframes sparkleTwinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.25) rotate(18deg); } }
@keyframes statusPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

main { position: relative; z-index: 2; max-width: 920px; width: 100%; margin: 0 auto; padding: 1.5rem 1.25rem 3.5rem 1.25rem; flex: 1; }
.stagger-item { opacity: 0; transform: translateY(18px); animation: staggerReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--delay, 0s); }
@keyframes staggerReveal { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.fade-in { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }

footer { position: relative; z-index: 2; border-top: 1px solid var(--border-subtle); padding: 2rem 1.25rem calc(2rem + var(--sab)) 1.25rem; text-align: center; font-size: 0.8rem; color: var(--text-faint); background-color: rgba(5, 5, 8, 0.92); }
.footer-inner { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }

@media (hover: none) {
  .cursor-glow { display: none !important; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 1rem; }
  .brand-btn { font-size: 1.15rem; gap: 0.35rem; }
  .nav-tabs { gap: 0.3rem; }
  .tab-btn { padding: 0.38rem 0.72rem; font-size: 0.8rem; min-height: 38px; white-space: nowrap; }
  main { padding: 0.85rem 1rem 3rem 1rem; }
  .glow-orb { width: 300px !important; height: 300px !important; }
}

@media (max-width: 360px) {
  .brand-btn { font-size: 1.05rem; }
  .tab-btn { padding: 0.32rem 0.58rem; font-size: 0.76rem; }
}
