/* ===== Temel ===== */
:root {
  --bg: #05060a;
  --bg-2: #0a0b14;
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --violet: #8b5cff;
  --lime: #a6ff4d;
  --text: #e7ecff;
  --muted: #8a91b4;
  --line: rgba(120, 140, 255, 0.14);
  --glass: rgba(14, 17, 32, 0.55);
  --radius: 18px;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(255, 43, 214, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
strong { color: #fff; font-weight: 600; }

/* ===== Arka plan ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(90px);
  opacity: 0.5;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  width: 46vw;
  height: 46vw;
  min-width: 300px;
  min-height: 300px;
}
.blob-1 { background: rgba(0, 240, 255, 0.22); top: -12%; left: -8%; animation: drift1 20s ease-in-out infinite; }
.blob-2 { background: rgba(255, 43, 214, 0.18); top: 25%; right: -14%; animation: drift2 24s ease-in-out infinite; }
.blob-3 { background: rgba(139, 92, 255, 0.20); bottom: -18%; left: 30%; animation: drift3 28s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, 4vh) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw, 6vh) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw, -5vh) scale(1.2); } }

/* ===== İmleç ışığı ===== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 340px; height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.10), rgba(255, 43, 214, 0.06) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* ===== Navigasyon ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(6, 8, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line), 0 10px 40px rgba(0, 0, 0, 0.4);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}
.logo-bracket { color: var(--cyan); }

.nav-links { display: flex; gap: clamp(16px, 2.5vw, 38px); }
.nav-link {
  position: relative;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px var(--cyan);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 6vw, 80px) 80px;
}
.hero-inner { max-width: 900px; }

.hero-tag {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 3px;
  font-size: 0.95rem;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  margin-bottom: 18px;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 1.02;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 92, 255, 0.55));
}

/* Glitch efekti */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.85;
  clip-path: inset(0 0 0 0);
}
.glitch::before { color: var(--cyan); transform: translate(-2px, 0); animation: glitchTop 4s infinite linear alternate; mix-blend-mode: screen; }
.glitch::after { color: var(--magenta); transform: translate(2px, 0); animation: glitchBot 3.4s infinite linear alternate; mix-blend-mode: screen; }
.gradient-text.glitch::before, .gradient-text.glitch::after { color: inherit; background: inherit; -webkit-background-clip: text; background-clip: text; }

@keyframes glitchTop {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0,0); }
  93% { clip-path: inset(0 0 62% 0); transform: translate(-3px,-1px); }
  95% { clip-path: inset(18% 0 55% 0); transform: translate(3px,1px); }
  97% { clip-path: inset(48% 0 28% 0); transform: translate(-2px,0); }
}
@keyframes glitchBot {
  0%, 90%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0,0); }
  91% { clip-path: inset(58% 0 12% 0); transform: translate(3px,1px); }
  94% { clip-path: inset(30% 0 44% 0); transform: translate(-3px,-1px); }
  96% { clip-path: inset(8% 0 74% 0); transform: translate(2px,0); }
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 1.8em;
}
.role-prefix { color: var(--magenta); margin-right: 8px; }
.typewriter { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 240, 255, 0.5); }
.caret { color: var(--magenta); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 60%, var(--magenta));
  color: #05060a;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35), 0 0 60px rgba(255, 43, 214, 0.2);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 36px rgba(0, 240, 255, 0.6), 0 0 80px rgba(255, 43, 214, 0.35); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost {
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--text);
  background: rgba(0, 240, 255, 0.04);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.09);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 7vw, 80px);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.55);
}
.stat-label { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
}
.mouse {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.wheel {
  width: 3px; height: 7px;
  background: var(--cyan);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--cyan);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ===== Bölümler ===== */
.section {
  position: relative;
  z-index: 3;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(70px, 12vw, 140px) clamp(20px, 5vw, 40px);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 48px;
}
.section-index {
  font-family: var(--font-mono);
  color: var(--magenta);
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(255, 43, 214, 0.6);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  letter-spacing: 1px;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -10px;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan);
}

/* Glass kart */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 20%, rgba(0, 240, 255, 0.5), rgba(255, 43, 214, 0.5), transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glass:hover .card-glow { opacity: 1; }

/* ===== Hakkımda ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.about-card { padding: clamp(28px, 3.5vw, 46px); }
.about-card p { color: var(--muted); margin-bottom: 18px; }
.neon-text {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.65);
  font-weight: 600;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  transition: all 0.25s ease;
}
.chip:hover {
  background: rgba(0, 240, 255, 0.14);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
  transform: translateY(-2px);
}

.about-visual { display: flex; justify-content: center; }
.orb-wrap {
  position: relative;
  width: clamp(220px, 26vw, 320px);
  height: clamp(220px, 26vw, 320px);
  display: grid;
  place-items: center;
}
.orb {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(0, 240, 255, 0.85), rgba(139, 92, 255, 0.55) 45%, rgba(255, 43, 214, 0.35) 75%, transparent 100%);
  filter: blur(6px);
  animation: orbPulse 4s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); filter: blur(6px); }
  50% { transform: scale(1.08); filter: blur(12px); }
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.35);
}
.ring-1 { inset: 0; animation: spin 18s linear infinite; border-top-color: var(--cyan); border-right-color: transparent; box-shadow: 0 0 20px rgba(0, 240, 255, 0.15) inset; }
.ring-2 { inset: 12%; animation: spin 12s linear infinite reverse; border-bottom-color: var(--magenta); border-left-color: transparent; }
.ring-3 { inset: 26%; animation: spin 8s linear infinite; border-right-color: var(--violet); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-core {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 22px var(--cyan), 0 0 42px var(--magenta);
}

/* ===== Yetenekler ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.skill-block { padding: clamp(24px, 3vw, 34px); }
.skill-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 22px;
  color: #fff;
}
.skill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.skill-pct { color: var(--cyan); font-family: var(--font-mono); }
.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 20px;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar.in i { width: var(--w); }

/* ===== Projeler ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.project-card {
  padding: clamp(26px, 3vw, 36px);
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.12);
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.project-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
}
.project-status {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.project-status.live {
  color: var(--lime);
  border-color: rgba(166, 255, 77, 0.4);
  box-shadow: 0 0 14px rgba(166, 255, 77, 0.2);
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.project-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--violet);
  border: 1px solid rgba(139, 92, 255, 0.3);
  border-radius: 6px;
  padding: 3px 9px;
  background: rgba(139, 92, 255, 0.08);
}

/* ===== İletişim ===== */
.contact-section { padding-bottom: clamp(80px, 10vw, 120px); }
.contact-card {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 50px);
  max-width: 640px;
  margin: 0 auto;
}
.contact-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}
.discord {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 255, 0.4);
  background: linear-gradient(120deg, rgba(0, 240, 255, 0.07), rgba(255, 43, 214, 0.07));
  transition: all 0.3s ease;
  cursor: pointer;
}
.discord:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.3), 0 0 60px rgba(255, 43, 214, 0.15);
  transform: translateY(-3px);
}
.discord-icon {
  display: grid;
  place-items: center;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}
.discord-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.discord-label { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.discord-id { font-family: var(--font-mono); font-size: 1.1rem; color: #fff; }
.discord-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--magenta);
  border: 1px solid rgba(255, 43, 214, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-left: 8px;
  transition: all 0.25s ease;
}
.discord.copied .discord-copy { color: var(--lime); border-color: rgba(166, 255, 77, 0.5); box-shadow: 0 0 14px rgba(166, 255, 77, 0.3); }
.contact-hint { margin-top: 22px; font-size: 0.85rem; color: var(--muted); }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 36px 20px 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--violet);
  margin-top: 6px;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(72vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(6, 8, 16, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding-left: 40px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
}

@media (max-width: 520px) {
  .hero-stats { gap: 24px; }
  .discord { flex-direction: column; text-align: center; gap: 10px; }
  .discord-meta { align-items: center; }
  .discord-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
