/* ==========================================================
   Zydex Bilişim — Gaming/RGB Neon Tema
   ========================================================== */

:root {
  --zx-bg: #05060b;
  --zx-bg-2: #0b0f1c;
  --zx-bg-3: #111827;
  --zx-primary: #1E40AF;
  --zx-primary-2: #2563eb;
  --zx-accent: #06b6d4;
  --zx-neon-1: #00e5ff;
  --zx-neon-2: #ff00d4;
  --zx-neon-3: #00ff88;
  --zx-text: #e5e7eb;
}

html, body { background: var(--zx-bg); color: var(--zx-text); }
body {
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(30,64,175,0.25), transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, rgba(6,182,212,0.18), transparent 60%),
    radial-gradient(800px 800px at 50% 120%, rgba(255,0,212,0.10), transparent 60%);
  background-attachment: fixed;
}

/* Grid / circuit arka plan ----------------------------- */
.zx-grid-bg {
  background-image:
    linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.zx-scanline::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

/* RGB Gradient ----------------------------------------- */
.zx-rgb-text {
  background: linear-gradient(90deg, #00e5ff, #2563eb, #ff00d4, #00ff88, #00e5ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: zxRgbMove 6s linear infinite;
}
@keyframes zxRgbMove {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* RGB border kart — dönen 1px gökkuşağı border ------------ */
@keyframes zxSpinRot { to { transform: translate(-50%, -50%) rotate(360deg); } }

.zx-rgb-card {
  position: relative;
  background: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(5,6,11,0.92));
  border-radius: 14px;
  border: 1px solid rgba(71,85,105,0.45);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .35s ease, transform .35s ease;
}
/* Arkada dönen koca konik gradient (1px border'ı oluşturur) */
.zx-rgb-card::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 250%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    #00e5ff, #2563eb, #ff00d4, #00ff88, #ffd200,
    #ff00d4, #00e5ff, #2563eb, #00e5ff);
  z-index: -2;
  opacity: 0;
  transition: opacity .35s ease;
  animation: zxSpinRot 4s linear infinite;
  pointer-events: none;
}
/* Üstüne 1px boşluk bırakarak iç yüzeyi kapatan katman → ring border */
.zx-rgb-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: #070a14;
  border-radius: 13px;
  z-index: -1;
  pointer-events: none;
}
.zx-rgb-card:hover {
  border-color: transparent;
  transform: translateY(-3px);
}
.zx-rgb-card:hover::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .zx-rgb-card::before { animation: none; }
}

/* RGB buton -------------------------------------------- */
/* ── Gaming buttons ─────────────────────────────────────── */
.zx-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 2.1rem;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
  background: transparent;
  isolation: isolate;
  filter: drop-shadow(0 0 1.5px rgba(0,229,255,.55));
  transition: transform .25s ease, filter .3s ease;
  border: none; outline: none; cursor: pointer;
  text-decoration: none;
}
/* Dönen rainbow katmanı */
.zx-btn::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 250%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(#00e5ff, #2563eb, #ff00d4, #00ff88, #ffd200, #ff00d4, #00e5ff);
  z-index: -2;
  opacity: 0;
  transition: opacity .35s ease;
  animation: zxSpinRot 3s linear infinite;
  pointer-events: none;
}
/* İç koyu dolgu — aynı paralel kenar ama 1.5px içeride */
.zx-btn::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: linear-gradient(145deg, #091525 0%, #0d2040 50%, #091525 100%);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  z-index: -1;
  pointer-events: none;
}
.zx-btn:hover {
  transform: translateY(-2px) scaleX(1.02);
  filter: drop-shadow(0 0 8px rgba(0,229,255,.5)) drop-shadow(0 0 20px rgba(255,0,212,.3));
}
.zx-btn:hover::before { opacity: 1; }
.zx-btn:active { transform: translateY(0) scaleX(1); }

.zx-btn-ghost {
  filter: drop-shadow(0 0 1px rgba(99,102,241,.4));
  color: #94a3b8;
}
.zx-btn-ghost::after {
  background: rgba(5, 6, 11, .85);
}
.zx-btn-ghost:hover { color: #fff; }

/* Neon glow ------------------------------------------- */
.zx-neon { text-shadow: 0 0 8px rgba(0,229,255,.7), 0 0 22px rgba(37,99,235,.6); }
.zx-neon-pink { text-shadow: 0 0 8px rgba(255,0,212,.7), 0 0 22px rgba(255,0,212,.45); }

/* Animated underline link */
.zx-link {
  position: relative; padding-bottom: 2px;
}
.zx-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: linear-gradient(90deg, #00e5ff, #ff00d4);
  transition: right .3s ease;
}
.zx-link:hover::after, .zx-link.active::after { right: 0; }

/* Pulse dot */
.zx-pulse {
  width: 10px; height: 10px; border-radius: 999px;
  background: #00ff88;
  box-shadow: 0 0 0 0 rgba(0,255,136,0.7);
  animation: zxPulse 1.6s infinite;
}
@keyframes zxPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,136,0.7); }
  70%  { box-shadow: 0 0 0 14px rgba(0,255,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); }
}

/* Globe rainbow ring ---------------------------------------- */
.zx-globe-border {
  position: absolute;
  top: 50%; left: 50%;
  width: 81%; height: 81%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  padding: 2px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.zx-globe-border::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    #00e5ff, #2563eb, #ff00d4, #00ff88,
    #ffd200, #ff00d4, #00e5ff);
  animation: zxSpinRot 3s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .zx-globe-border::before { animation: none; }
}

/* Reveal on scroll */
.zx-reveal { opacity: 0; transform: translateY(24px); transition: all .8s ease; }
.zx-reveal.in { opacity: 1; transform: translateY(0); }

/* Section title underline */
.zx-title-bar {
  display: inline-block; height: 4px; width: 64px; border-radius: 4px;
  background: linear-gradient(90deg, #00e5ff, #2563eb, #ff00d4);
  animation: zxRgbMove 5s linear infinite;
  background-size: 300% 100%;
}

/* Glitch hover for cards */
.zx-glitch:hover { animation: zxGlitch .35s linear 1; }
@keyframes zxGlitch {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-1px,1px); }
  50%  { transform: translate(1px,-1px); }
  75%  { transform: translate(-1px,-1px); }
  100% { transform: translate(0,0); }
}

/* Marquee */
.zx-marquee { overflow: hidden; }
.zx-marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: zxMarquee 25s linear infinite;
}
@keyframes zxMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Header rainbow bottom border */
.zx-header-border { position: relative; }
.zx-header-border::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    #00e5ff 0%, #a855f7 20%, #ff0080 40%, #f59e0b 60%, #00e5ff 80%, #a855f7 100%);
  background-size: 200% 100%;
  animation: zxHeaderFlow 4s linear infinite;
}
@keyframes zxHeaderFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05060b; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1E40AF, #06b6d4);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff00d4, #00e5ff); }

/* Hero glow ring */
.zx-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #00e5ff, #2563eb, #ff00d4, #00ff88, #00e5ff);
  filter: blur(40px); opacity: .35;
  animation: zxSpin 10s linear infinite;
}

/* Specs table */
.zx-specs td { padding: .5rem .75rem; border-bottom: 1px dashed rgba(148,163,184,.2); }
.zx-specs td:first-child { color: #94a3b8; width: 40%; }
.zx-specs td:last-child  { color: #e2e8f0; font-weight: 600; }

/* Badge */
.zx-badge {
  display: inline-block; padding: .25rem .6rem; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; border-radius: 6px;
  color: #001018; background: linear-gradient(90deg, #00e5ff, #00ff88);
  box-shadow: 0 0 18px rgba(0,229,255,.45);
}

/* Prose tweaks */
.zx-prose p { margin: .75rem 0; line-height: 1.7; color: #cbd5e1; }
.zx-prose h2, .zx-prose h3 { color: #fff; margin: 1.25rem 0 .5rem; font-weight: 700; }
.zx-prose ul { list-style: disc; padding-left: 1.25rem; color: #cbd5e1; }
