:root {
  --bg: #07080c;
  --surface: rgba(16, 18, 25, 0.72);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #f4f7ff;
  --muted: #9aa4bf;
  --blue: #356dff;
  --red: #8d1127;
  --green: #146746;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --purple: #6c2ed6;
  --cyan: #1686a1;
  --pink: #d03a70;
  --orange: #b8641d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: #03040a;
  color: var(--text);
  overflow-x: hidden;
}

.galaxy-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, #1a0f3d 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 40%, #0d1a3d 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, #1a0a28 0%, transparent 45%),
    linear-gradient(180deg, #050816 0%, #03040a 40%, #06030f 100%);
}

#galaxyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: nebulaDrift 28s ease-in-out infinite alternate;
}

.nebula-a {
  width: min(85vw, 720px);
  height: min(85vw, 720px);
  top: -18%;
  left: -12%;
  background: radial-gradient(
    circle,
    rgba(138, 92, 246, 0.85) 0%,
    rgba(59, 130, 246, 0.35) 42%,
    transparent 70%
  );
}

.nebula-b {
  width: min(95vw, 820px);
  height: min(95vw, 820px);
  bottom: -25%;
  right: -15%;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.55) 0%,
    rgba(99, 102, 241, 0.4) 45%,
    transparent 68%
  );
  animation-delay: -9s;
  animation-duration: 34s;
}

.nebula-c {
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  top: 38%;
  left: 50%;
  margin-left: calc(min(70vw, 560px) / -2);
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.28) 0%,
    rgba(168, 85, 247, 0.22) 50%,
    transparent 72%
  );
  animation-delay: -14s;
  animation-duration: 31s;
  opacity: 0.45;
}

.milky-band {
  position: absolute;
  inset: -20% -10%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(200, 220, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.09) 48%,
    rgba(180, 200, 255, 0.05) 58%,
    transparent 100%
  );
  transform: rotate(-18deg) scale(1.15);
  pointer-events: none;
  animation: bandShimmer 18s ease-in-out infinite;
}

.galaxy-dust {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(
      1px 1px at 20% 30%,
      rgba(255, 255, 255, 0.45),
      transparent
    ),
    radial-gradient(1px 1px at 60% 70%, rgba(200, 220, 255, 0.35), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 40% 85%, rgba(180, 200, 255, 0.25), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  animation: dustTwinkle 8s ease-in-out infinite alternate;
}

.galaxy-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 70% at 50% 45%,
    transparent 0%,
    rgba(2, 3, 10, 0.55) 100%
  );
  pointer-events: none;
}

@keyframes nebulaDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(24px, -18px) scale(1.06);
  }
}

@keyframes bandShimmer {
  0%,
  100% {
    opacity: 0.85;
    transform: rotate(-18deg) scale(1.15) translateX(0);
  }
  50% {
    opacity: 1;
    transform: rotate(-17deg) scale(1.18) translateX(12px);
  }
}

@keyframes dustTwinkle {
  0% {
    opacity: 0.28;
  }
  100% {
    opacity: 0.42;
  }
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  perspective: 1000px;
}

.card {
  position: relative;
  width: min(820px, 100%);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  animation: cardReveal 0.8s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    130deg,
    rgba(53, 109, 255, 0.55),
    rgba(208, 58, 112, 0.38),
    rgba(22, 134, 161, 0.45),
    rgba(108, 46, 214, 0.5)
  );
  -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;
  pointer-events: none;
  animation: borderPulse 6s linear infinite;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 52%
  );
  transform: translateX(-85%);
  animation: shine 4.2s ease-in-out infinite;
  pointer-events: none;
}

.profile {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: center;
}

.logo-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0a0c14;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.45);
}

.logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(103, 149, 255, 0.16), transparent 45%);
  pointer-events: none;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  background: linear-gradient(90deg, #142b66, #541761, #15526b);
  background-size: 180% 180%;
  border: 1px solid rgba(138, 180, 248, 0.35);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #d5e5ff;
  animation: badgeFlow 6s ease infinite;
}

h1 {
  margin: 12px 0 6px;
  font-size: clamp(28px, 5vw, 42px);
}

.subtitle {
  margin: 0;
  color: #c3cce3;
  font-weight: 500;
}

.about {
  margin: 12px 0 0;
  line-height: 1.65;
  color: var(--muted);
}

.contact-row {
  margin-top: 22px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-item a {
  color: #e8f0ff;
  font-size: 1.05rem;
  text-decoration: none;
}

.actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn i {
  font-size: 1rem;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
}

.btn-call {
  background: linear-gradient(135deg, #12824f, #0d6640, #15526b);
  box-shadow: 0 10px 22px rgba(16, 118, 74, 0.38);
}

.btn-social {
  background: linear-gradient(135deg, #1e2a42, #30234a, #1e2d22);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-facebook {
  background: linear-gradient(135deg, #1f3d86, #183066);
}

.btn-messenger {
  background: linear-gradient(135deg, #0a3d7a, #0b5fc4, #0084ff);
}

.btn-instagram {
  background: linear-gradient(135deg, #5b2a8a, #a1246a, #e6643c);
}

.btn-telegram {
  background: linear-gradient(135deg, #1d5b88, #1c85b5);
}

.btn-snapchat {
  background: linear-gradient(135deg, #8a7a14, #b59c1f);
  color: #10141f;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #1e7e4f, #18a361);
}

.btn-viber {
  background: linear-gradient(135deg, #563a93, #7351bf);
}

.btn-discord {
  background: linear-gradient(135deg, #4752c4, #5865f2);
}

.btn-tiktok {
  background: linear-gradient(135deg, #0f0f0f, #000000);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-social:hover {
  border-color: rgba(103, 149, 255, 0.6);
  box-shadow: 0 8px 18px rgba(31, 73, 158, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: #dde6ff;
  cursor: pointer;
}

.btn::after {
  content: "";
  position: absolute;
  top: -130%;
  left: -45%;
  width: 46%;
  height: 300%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(24deg);
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 130%;
}

.footer {
  margin-top: 16px;
  color: #91a1c4;
  font-size: 0.92rem;
}

@keyframes borderPulse {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes shine {
  0%,
  35% {
    transform: translateX(-85%);
  }
  60%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes badgeFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .card {
    padding: 18px;
  }

  .profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo-wrap {
    margin: 0 auto;
  }

  .about {
    margin-left: auto;
    margin-right: auto;
    max-width: 44ch;
  }

  .contact-row {
    flex-direction: column;
    align-items: stretch;
  }

  .actions {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .card::after {
    animation-duration: 5.5s;
  }
}

@media (max-width: 420px) {
  .actions {
    grid-template-columns: 1fr;
  }
}
