/* ================= ZMIENNE CSS ================= */
:root {
  --blue: #3aa0ff;
  --glass: rgba(255, 255, 255, 0.08);
  --blur: blur(16px);
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* ================= RESET & BASE ================= */
* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ================= TŁO ================= */
.background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, #1e3cff, transparent 40%),
    radial-gradient(circle at 70% 60%, #00aaff, transparent 45%),
    radial-gradient(circle at 50% 80%, #002244, transparent 50%);
  filter: blur(60px) contrast(120%);
  animation: bgMove 20s infinite alternate ease-in-out;
  z-index: -2;
}

/* Pikselizacja tła */
.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='4' height='4' fill='rgba(0,0,0,0.15)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes bgMove {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); }
  25% { transform: scale(1.1) translate(-30px, 20px) rotate(2deg); }
  50% { transform: scale(1.15) translate(-50px, 40px) rotate(-1deg); }
  75% { transform: scale(1.08) translate(-20px, 30px) rotate(1deg); }
  100% { transform: scale(1.2) translate(-40px, 30px) rotate(0deg); }
}

/* ================= LAYOUT ================= */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

/* ================= LOGO 3D ================= */
.logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
  perspective: 1000px;
}

.logo {
  max-width: 300px;
  transition: transform .6s cubic-bezier(0.23, 1, 0.32, 1), filter .4s ease;
  z-index: 2;
  position: relative;
  transform-style: preserve-3d;
}

.logo-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(58,160,255,.35), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  filter: blur(30px);
}

.logo-cursor-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(58,160,255,.5), rgba(0,170,255,.3) 30%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  filter: blur(40px);
  z-index: 1;
}

.logo-wrapper:hover .logo-glow {
  opacity: 1;
}

.logo-wrapper:hover .logo-cursor-glow {
  opacity: 1;
}

/* ================= SOCIAL BAR ================= */
.social-bar {
  display: inline-flex;
  gap: 24px;
  padding: 14px 28px;
  border-radius: 999px;
  margin-bottom: 0;
  position: relative;
}

.social-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .3s ease;
}

.social-bar::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(58,160,255,.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  filter: blur(20px);
  z-index: 0;
  left: calc(var(--mouse-x) - 40px);
  top: calc(var(--mouse-y) - 40px);
}

.social-bar:hover::before {
  opacity: 1;
}

.social-bar:hover::after {
  opacity: 1;
}

.social-bar a {
  color: white;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), color .3s ease;
}

.social-bar a:hover {
  transform: scale(1.3);
  color: var(--blue);
}

.social-bar a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

/* ================= BUTTONY ================= */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-button {
  position: relative;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111, #1a2a3a);
  text-decoration: none;
  color: white;
  transition: transform .3s ease;
}

.link-button span {
  position: relative;
  z-index: 2;
  padding: 10px 26px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .85rem;
  text-shadow:
    0 2px 8px rgba(0,0,0,.65),
    0 0 1px rgba(0,0,0,.9);
}

.link-button span::before {
  content: "";
  position: absolute;
  inset: -18px -28px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.18) 65%,
      rgba(0, 0, 0, 0.08) 80%,
      transparent 100%
    );
  filter: blur(6px);
}

.link-button:hover span::before {
  transform: scale(1.08);
  filter: blur(4px);
  opacity: 0.95;
  transition: all .45s cubic-bezier(.2,.8,.2,1);
}

.link-button:hover {
  transform: scale(1.02);
}

/* Buttony z obrazkiem */
.link-button.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--img-y, 50%);
  filter: grayscale(100%) contrast(110%) brightness(0.7);
  transition:
    transform .5s ease,
    filter .5s ease,
    object-position .5s ease;
}

.link-button.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.35)
  );
  pointer-events: none;
}

.link-button.has-image:hover img {
  transform: scale(1.1);
  filter: none;
}

.link-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: opacity .4s ease;
}

.link-button:hover::before {
  opacity: 0.15;
}