/* ==========================================================
   PsyGioX FUTURE HERO SYSTEM
   Digital Shield / Psylocke Cyber Style
   Optimized — No Bottom Rounding, No Extra Spacing
========================================================== */

.messenger-btn:hover {
  background: rgba(124,58,237,.15) !important;
  border-color: rgba(124,58,237,.45) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 8px 30px rgba(124,58,237,.2) !important;
}
#closeModalBtn:hover {
  color: #fff !important;
  background: rgba(255,255,255,.04) !important;
}

/* ================= ROOT HERO ================= */
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 15% 20%, rgba(124, 58, 237, .25), transparent 35%), radial-gradient(circle at 85% 30%, rgba(37, 99, 235, .25), transparent 35%), radial-gradient(circle at 50% 100%, rgba(236, 72, 153, .15), transparent 40%), #050816;
  isolation: isolate;
}

/* Цифровая сетка */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle, black, transparent 75%);
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(60px); }
}

/* Световые волны */
.hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: -250px;
  right: -200px;
  background: conic-gradient(from 0deg, transparent, #7c3aed, transparent, #2563eb, transparent);
  filter: blur(80px);
  opacity: .35;
  animation: heroRotate 18s linear infinite;
}

@keyframes heroRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= HERO GRID ================= */
.hero__grid {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 8rem 4rem;
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

/* ================= LEFT SIDE ================= */
.hero__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: heroReveal .9s ease forwards;
}

/* Avatar Container */
.avatar-wrapper {
  position: relative;
  width: 330px;
  height: 330px;
}

/* Энергетическое кольцо */
.avatar-wrapper::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: conic-gradient(#7c3aed, #2563eb, #06b6d4, #ec4899, #7c3aed);
  filter: blur(20px);
  opacity: .7;
  animation: avatarGlow 8s linear infinite;
}

@keyframes avatarGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Основной аватар */
.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 5px;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, #7c3aed, #2563eb, #ec4899);
  animation: avatarFloat 6s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(124, 58, 237, .6);
  transform: translateZ(0);
  z-index: 2;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #020617;
  transition: transform .4s, filter .4s;
}

.avatar:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ================= BUBBLES AROUND AVATAR ================= */
.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble-1 { width: 20px; height: 20px; top: -15px; left: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .8), transparent); animation-delay: 0s; }
.bubble-2 { width: 15px; height: 15px; top: 20%; right: -20px; background: radial-gradient(circle, rgba(37, 99, 235, .8), transparent); animation-delay: 0.5s; }
.bubble-3 { width: 25px; height: 25px; bottom: -10px; left: 30%; background: radial-gradient(circle, rgba(236, 72, 153, .7), transparent); animation-delay: 1s; }
.bubble-4 { width: 18px; height: 18px; top: 50%; left: -25px; background: radial-gradient(circle, rgba(6, 182, 212, .8), transparent); animation-delay: 1.5s; }
.bubble-5 { width: 12px; height: 12px; bottom: 20%; right: -15px; background: radial-gradient(circle, rgba(168, 85, 247, .9), transparent); animation-delay: 2s; }
.bubble-6 { width: 22px; height: 22px; top: -25px; right: 30%; background: radial-gradient(circle, rgba(59, 130, 246, .7), transparent); animation-delay: 2.5s; }

@keyframes bubbleFloat {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  30% { opacity: 0.8; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
  70% { opacity: 0.8; }
  100% { transform: translateY(-40px) scale(0); opacity: 0; }
}

/* ================= EDGE BUBBLES ================= */
.edge-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.edge-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: edgeBubbleFloat 8s ease-in-out infinite alternate;
}

.edge-bubble:nth-child(1) { animation-delay: 0s; }
.edge-bubble:nth-child(2) { animation-delay: 2s; }
.edge-bubble:nth-child(3) { animation-delay: 4s; }
.edge-bubble:nth-child(4) { animation-delay: 6s; }

@keyframes edgeBubbleFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50% { transform: translate(20px, -20px) scale(1.1); opacity: 0.4; }
  100% { transform: translate(-10px, 10px) scale(0.9); opacity: 0.2; }
}

/* ================= HERO RIGHT SIDE ================= */
.hero__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
  animation: heroReveal 1.1s ease forwards;
}

/* ================= BADGE ================= */
.badge {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(20px);
  color: #c4b5fd;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 20px rgba(124, 58, 237, .15), 0 0 30px rgba(124, 58, 237, .2);
  animation: badgePulse 4s infinite;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 15px #22c55e;
}

@keyframes badgePulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* ================= TITLE ================= */
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -2px;
  color: white;
  margin: 0 0 1.5rem;
  text-shadow: 0 0 40px rgba(124, 58, 237, .35);
}

.hero__title span {
  display: inline-block;
  background: linear-gradient(90deg, #a78bfa, #38bdf8, #f472b6, #a78bfa);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: neonText 6s linear infinite;
}

@keyframes neonText {
  0% { background-position: 0%; }
  50% { background-position: 100%; }
  100% { background-position: 0%; }
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= DESCRIPTION ================= */
.hero__description {
  max-width: 650px;
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 0 2.5rem;
  animation: fadeHero .8s ease forwards;
}

@keyframes fadeHero {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= BUTTON GROUP ================= */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, border-color .35s ease, color .35s ease;
  cursor: pointer;
  backdrop-filter: blur(15px);
}

/* Primary Button */
.btn-primary-hero {
  color: white;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 15px 40px rgba(124, 58, 237, .45);
}

.btn-primary-hero:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 25px 60px rgba(124, 58, 237, .7);
}

.btn-primary-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: translateX(-120%);
  transition: transform .6s;
}

.btn-primary-hero:hover::before { transform: translateX(120%); }

/* Outline Button */
.btn-outline {
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .05);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #8b5cf6;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, .3);
}

/* ================= SOCIAL LINKS ================= */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.social-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(15px);
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #ec4899);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity .35s;
}

.social-icon img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}

.social-icon:hover {
  transform: translateY(-8px) scale(1.08);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 15px 40px rgba(124, 58, 237, .5);
}

.social-icon:hover::before { opacity: 1; }

/* ================= HERO LOADED STATE ================= */
.hero-loaded .bubble { opacity: 1; }
.hero-loaded .edge-bubble { opacity: 0.3; }

/* ================= SCROLL REVEAL ================= */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE TABLET ================= */
@media(max-width:1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 7rem 2rem;
    gap: 4rem;
    text-align: center;
  }
  .hero__left { order: 1; }
  .hero__right { order: 2; align-items: center; }
  .hero__description { max-width: 700px; }
  .badge { margin-left: auto; margin-right: auto; }
  .button-group { justify-content: center; }
}

/* ================= MOBILE ================= */
@media(max-width:600px) {
  .hero { min-height: auto; }
  .hero__grid { padding: 5rem 1.2rem; }
  .avatar-wrapper { width: 240px; height: 240px; }
  .avatar-wrapper::before { inset: -20px; }
  .hero__title { font-size: 2.3rem; letter-spacing: -1px; }
  .hero__description { font-size: 1rem; }
  .button-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .social-links { margin-top: 1.5rem; }
  .social-icon { width: 45px; height: 45px; }
  .bubble-4, .bubble-6 { display: none; }
}