/* ==========================================================================
   HERO ANIMATED BACKGROUND STYLES (ABOUT & SERVICES PAGES)
   Aider Creative — Digital Marketing & Growth Agency
   ========================================================================== */

/* Inner Page Hero Container Override */
.inner-page-hero {
  position: relative;
  padding: 170px 0 100px;
  background-color: #070708;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hero Animated Background Container */
.hero-animated-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Background Canvas Element */
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

/* Ambient Glowing Orbs */
.hero-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  will-change: transform, opacity;
}

.hero-ambient-orb.orb-1 {
  top: -15%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.35) 0%, rgba(230, 57, 70, 0.15) 60%, transparent 80%);
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.hero-ambient-orb.orb-2 {
  bottom: -20%;
  right: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.3) 0%, rgba(139, 0, 50, 0.15) 60%, transparent 80%);
  animation: orbFloat2 22s ease-in-out infinite alternate;
}

.hero-ambient-orb.orb-3 {
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 158, 0, 0.2) 0%, rgba(255, 90, 54, 0.08) 60%, transparent 80%);
  animation: orbFloat3 15s ease-in-out infinite alternate;
}

/* Radial Dark Vignette Overlay for Crisp Typography */
.hero-vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(7, 7, 8, 0.45) 0%, rgba(7, 7, 8, 0.88) 75%, #070708 100%);
  z-index: 2;
  pointer-events: none;
}

/* Grid Pattern Backdrop Layer */
.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  z-index: 2;
  opacity: 0.5;
  pointer-events: none;
}

/* Floating Glass Badges (About Hero) */
.floating-growth-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: rgba(18, 18, 22, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  color: var(--text-primary, #FFFFFF);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 90, 54, 0.15);
  pointer-events: none;
  white-space: nowrap;
  transition: transform 0.4s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.floating-growth-badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 90, 54, 0.18);
  color: var(--accent-orange, #FF5A36);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 90, 54, 0.3);
}

.floating-growth-badge.badge-top-left {
  top: 18%;
  left: 6%;
  animation: floatBadge1 12s ease-in-out infinite alternate;
}

.floating-growth-badge.badge-top-right {
  top: 22%;
  right: 6%;
  animation: floatBadge2 14s ease-in-out infinite alternate;
}

.floating-growth-badge.badge-bottom-left {
  bottom: 18%;
  left: 8%;
  animation: floatBadge3 13s ease-in-out infinite alternate;
}

.floating-growth-badge.badge-bottom-right {
  bottom: 20%;
  right: 8%;
  animation: floatBadge4 15s ease-in-out infinite alternate;
}

/* Floating Service Chips (Services Hero) */
.floating-service-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(16, 16, 20, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 90, 54, 0.25);
  border-radius: 40px;
  color: var(--text-primary, #FFFFFF);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 90, 54, 0.2);
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
}

.floating-service-chip svg {
  color: var(--accent-orange, #FF5A36);
  filter: drop-shadow(0 0 6px rgba(255, 90, 54, 0.6));
}

.floating-service-chip.chip-1 {
  top: 18%;
  left: 7%;
  animation: floatService1 11s ease-in-out infinite alternate;
}

.floating-service-chip.chip-2 {
  top: 24%;
  right: 7%;
  animation: floatService2 13s ease-in-out infinite alternate;
}

.floating-service-chip.chip-3 {
  bottom: 22%;
  left: 9%;
  animation: floatService3 12s ease-in-out infinite alternate;
}

.floating-service-chip.chip-4 {
  bottom: 24%;
  right: 9%;
  animation: floatService4 14s ease-in-out infinite alternate;
}

/* Keyframe Animations for Floating Badges */
@keyframes floatBadge1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
  100% { transform: translateY(12px) rotate(-1deg); }
}

@keyframes floatBadge2 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(18px) rotate(-1.5deg); }
  100% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes floatBadge3 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
  100% { transform: translateY(16px) rotate(1.5deg); }
}

@keyframes floatBadge4 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(16px) rotate(1deg); }
  100% { transform: translateY(-18px) rotate(-1.5deg); }
}

@keyframes floatService1 {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-18px) scale(1.03); }
  100% { transform: translateY(14px) scale(0.98); }
}

@keyframes floatService2 {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(16px) scale(0.97); }
  100% { transform: translateY(-16px) scale(1.04); }
}

@keyframes floatService3 {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
  100% { transform: translateY(18px) scale(0.99); }
}

@keyframes floatService4 {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(20px) scale(0.98); }
  100% { transform: translateY(-14px) scale(1.03); }
}

/* Keyframe Animations for Ambient Orbs */
@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 70px) scale(0.9); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -50px) scale(1.2); }
  100% { transform: translate(50px, -30px) scale(0.95); }
}

@keyframes orbFloat3 {
  0% { transform: translateX(-50%) translate(0, 0) scale(1); }
  50% { transform: translateX(-50%) translate(-40px, 30px) scale(1.1); }
  100% { transform: translateX(-50%) translate(40px, -40px) scale(0.92); }
}

/* Media Queries for Responsive Screens */
@media (max-width: 1200px) {
  .floating-growth-badge.badge-top-left,
  .floating-service-chip.chip-1 {
    left: 2%;
  }
  .floating-growth-badge.badge-top-right,
  .floating-service-chip.chip-2 {
    right: 2%;
  }
  .floating-growth-badge.badge-bottom-left,
  .floating-service-chip.chip-3 {
    left: 3%;
  }
  .floating-growth-badge.badge-bottom-right,
  .floating-service-chip.chip-4 {
    right: 3%;
  }
}

@media (max-width: 992px) {
  .floating-growth-badge,
  .floating-service-chip {
    padding: 7px 14px;
    font-size: 0.76rem;
  }
  .floating-growth-badge .badge-icon {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }
  .floating-growth-badge.badge-top-left,
  .floating-service-chip.chip-1 {
    top: 12%;
  }
  .floating-growth-badge.badge-top-right,
  .floating-service-chip.chip-2 {
    top: 15%;
  }
  .floating-growth-badge.badge-bottom-left,
  .floating-service-chip.chip-3 {
    bottom: 12%;
  }
  .floating-growth-badge.badge-bottom-right,
  .floating-service-chip.chip-4 {
    bottom: 14%;
  }
}

@media (max-width: 768px) {
  .inner-page-hero {
    padding: 130px 0 70px;
  }
  /* Hide badges on small mobile screens to prevent cluttering text */
  .floating-growth-badge,
  .floating-service-chip {
    display: none;
  }
}
