:root {
  --bg: #07090d;
  --bg-2: #0d1118;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ecf3;
  --muted: #8b95a7;
  --mc: #4ade80;        /* Minecraft yeşili */
  --dc: #7c83ff;        /* Discord moru */
  --accent: #38bdf8;
  --radius: 18px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--dc); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Arka plan ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .35; }
.blob-a { background: var(--mc); top: -160px; left: -140px; animation: float 18s ease-in-out infinite; }
.blob-b { background: var(--dc); bottom: -200px; right: -160px; animation: float 22s ease-in-out infinite reverse; }
/* Akan dalga çizgileri (eski kare ızgaranın yerine) — iki katman, zıt yönlerde */
/* Performans: background-position animasyonu her karede tüm ekranı yeniden boyuyordu.
   Artık kaplama sabit, sadece transform ile kayıyor (GPU'da, boyama yok). */
.grid {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.grid::before, .grid::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 1600px);
  background: url("../assets/waves.svg") 0 0 / 1600px 100% repeat-x;
  will-change: transform;
  animation: waveFlow 70s linear infinite;
}
.grid::after { opacity: .55; animation-duration: 110s; animation-direction: reverse; transform-origin: center; scale: 1 -1; }
@keyframes waveFlow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-1600px, 0, 0); } }
@keyframes float { 50% { transform: translate(60px, 40px) scale(1.1); } }

/* ---------- Navigasyon ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, 100% - 32px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 20px;
  background: rgba(10, 13, 19, .88);
  border: 1px solid var(--border); border-radius: 16px;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(10, 13, 19, .85); border-color: var(--border-strong); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--mc), var(--dc)); box-shadow: 0 0 16px var(--mc); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 10px; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav ul a:hover { color: var(--text); background: var(--card-hover); }
.nav ul a.nav-cta { color: #06110a; background: var(--mc); font-weight: 600; }
.nav ul a.nav-cta:hover { background: #6ee79a; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s; border-radius: 2px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: grid; align-items: center; padding: 140px 0 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  padding: 6px 14px; font-size: .85rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mc); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 16px; font-weight: 800; }
.grad { background: linear-gradient(110deg, var(--mc) 10%, var(--accent) 50%, var(--dc) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-role { font-family: var(--mono); color: var(--accent); font-size: clamp(.95rem, 2vw, 1.1rem); margin: 0 0 18px; }
.hero-role::before { content: "> "; color: var(--muted); }
.hero-lead { max-width: 620px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--mc), #22c55e); color: #04120a; box-shadow: 0 10px 30px -10px rgba(74,222,128,.6); }
.btn-ghost { border: 1px solid var(--border-strong); background: var(--card); }
.btn-ghost:hover { background: var(--card-hover); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 64px 0 0; max-width: 640px; }
.stats div { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.stats dt { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.stats dd { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- Bölümler ---------- */
.section { padding: 110px 0; }
.section-head { margin-bottom: 48px; }
.kicker { font-family: var(--mono); font-size: .8rem; color: var(--mc); letter-spacing: .05em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.035em; line-height: 1.1; margin: 10px 0 0; }
/* Not: arkada sürekli değişen animasyon olduğu için backdrop-filter (bulanıklaştırma)
   her karede yeniden hesaplanıyordu ve siteyi kasıyordu. Yerine yarı opak zemin kullanılıyor. */
.glass { background: linear-gradient(160deg, rgba(22,27,38,.78), rgba(12,15,22,.82)); border: 1px solid var(--border); border-radius: var(--radius); }

/* Hakkımda */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.about-text p { color: #c3cad6; font-size: 1.08rem; margin: 0 0 18px; }
.about-card { padding: 28px; }
.avatar {
  width: 84px; height: 84px; border-radius: 22px; margin-bottom: 22px;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #06110a;
  background: linear-gradient(135deg, var(--mc), var(--accent) 55%, var(--dc));
  box-shadow: 0 16px 40px -14px rgba(124,131,255,.7);
}
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); font-size: .93rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; }

/* Yetenekler */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill-card { padding: 26px; position: relative; overflow: hidden; transition: border-color .3s, transform .3s; }
.skill-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.skill-card h3 { margin: 0 0 18px; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.skill-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--accent)); box-shadow: 0 0 12px var(--c, var(--accent)); }
.skill-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-card li { padding: 6px 12px; font-size: .84rem; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: #cfd6e2; }

/* Ürünler */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: .88rem; cursor: pointer; padding: 9px 16px; border-radius: 999px; color: var(--muted); background: var(--card); border: 1px solid var(--border); transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: #fff; background: rgba(124,131,255,.18); border-color: rgba(124,131,255,.55); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; padding: 26px; min-height: 260px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, border-color .3s, opacity .3s;
}
.product[data-cat="minecraft"] { --c: var(--mc); }
.product[data-cat="discord"] { --c: var(--dc); }
.product::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
}
.product:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.product:hover::before { opacity: 1; }
.product > * { position: relative; }
.product.hidden { display: none; }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.product-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.product-icon svg { width: 24px; height: 24px; fill: var(--c); }
.badge { font-size: .74rem; font-family: var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.product h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.02em; }
.product p { margin: 0 0 18px; color: var(--muted); font-size: .94rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-family: var(--mono); font-size: .74rem; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.05); color: #b9c2d0; }
.product-link { margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--c); display: inline-flex; gap: 6px; align-items: center; }
.product-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Deneyim */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--mc), var(--dc)); opacity: .5; border-radius: 2px; }
.timeline li { position: relative; padding: 22px 26px; margin-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--mc); }
.timeline .period { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.timeline h3 { margin: 6px 0 2px; font-size: 1.15rem; }
.timeline .place { color: var(--mc); font-size: .93rem; font-weight: 500; }
.timeline p { margin: 10px 0 0; color: var(--muted); }

/* İletişim */
.contact { text-align: center; padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 48px); position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(124,131,255,.18), transparent); pointer-events: none; }
.contact > * { position: relative; z-index: 1; }
.contact p { color: var(--muted); max-width: 520px; margin: 16px auto 32px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-links a { display: flex; flex-direction: column; align-items: flex-start; min-width: 190px; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.25); transition: transform .2s, border-color .2s; }
.contact-links a:hover { transform: translateY(-3px); border-color: var(--mc); }
.contact-links small { color: var(--muted); font-size: .78rem; }

.footer { padding: 36px 0 48px; color: var(--muted); font-size: .85rem; text-align: center; border-top: 1px solid var(--border); }
.noscript { text-align: center; padding: 24px; color: var(--muted); }

/* Animasyon */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .about-grid, .skills { grid-template-columns: minmax(0, 1fr); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav ul {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; padding: 10px;
    background: rgba(10,13,19,.96); border: 1px solid var(--border); border-radius: 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s;
  }
  .nav ul.open { opacity: 1; visibility: visible; transform: none; }
  .nav ul a { padding: 12px 14px; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .stats div { padding: 14px 12px; }
  .section { padding: 80px 0; }
  .contact-links a { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
