/* ==========================================================================
   OP Easy Generator — 3D Hero Perspective & Visual Effects
   Interactive 3D control center, floating nodes, particle canvas & glowing orbs.
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #d8b4fe;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* 3D Visual Control Center Stage */
.hero-3d-stage {
  position: relative;
  perspective: 1200px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-scene {
  width: 380px;
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

/* Floating 3D Cards */
.hero-float-node {
  position: absolute;
  background: var(--bg-surface-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-3d);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  animation: float3d 6s ease-in-out infinite;
}

.hero-float-node:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--glow-cyan);
}

.node-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
}

.node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.node-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Floating Node Positions in 3D Space */
.node-credentials {
  top: 10%;
  left: -5%;
  transform: translateZ(60px);
  animation-delay: 0s;
}

.node-credentials .node-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.node-drive {
  top: 15%;
  right: -5%;
  transform: translateZ(40px);
  animation-delay: 1.5s;
}

.node-drive .node-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.node-telegram {
  bottom: 25%;
  left: -8%;
  transform: translateZ(80px);
  animation-delay: 3s;
}

.node-telegram .node-icon {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.node-cloud {
  bottom: 12%;
  right: -5%;
  transform: translateZ(50px);
  animation-delay: 4.5s;
}

.node-cloud .node-icon {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

/* Center Control Core */
.hero-center-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(20px);
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(6, 182, 212, 0.1) 60%, transparent 80%);
  border: 1px dashed var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px var(--glow-purple);
  animation: pulseGlow 4s infinite alternate;
}

.hero-center-core-inner {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 0 20px var(--glow-cyan);
}

/* Ambient Canvas Background */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Keyframe Animations */
@keyframes float3d {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-12px) rotateX(2deg) rotateY(-2deg);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 20px var(--glow-purple);
    transform: translate(-50%, -50%) translateZ(20px) scale(0.98);
  }
  100% {
    box-shadow: 0 0 45px var(--glow-cyan);
    transform: translate(-50%, -50%) translateZ(20px) scale(1.04);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-float-node, .hero-center-core {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions, .hero-tags {
    justify-content: center;
  }

  .hero-3d-stage {
    height: 400px;
  }

  .hero-3d-scene {
    width: 320px;
    height: 320px;
  }
}
