/**
 * Pixelsgrid Studio Hero Image CSS
 * One shared CSS file for all shortcode hero animated graphics.
 */

@property --rainbow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --pg-bg: #050507;
  --pg-card: #0F1014;
  --pg-border: rgba(255,255,255,0.12);
  --pg-border-soft: rgba(255,255,255,0.08);
  --pg-muted: #A9ADB6;
  --pg-radius-xl: 32px;
  --pg-shadow: 0 28px 90px rgba(0,0,0,0.52);

  --rainbow-color-1: #ff8cb8;
  --rainbow-color-2: #c792ff;
  --rainbow-color-3: #6cb4ff;
  --rainbow-color-4: #8cffd4;
  --rainbow-color-5: #ffd27a;
}

.pixelsgridstudio-hero-image,
.pixelsgridstudio-hero-image * {
  box-sizing: border-box;
}

.pixelsgridstudio-hero-image {
  width: 100%;
  display: block;
  clear: both;
}

.pixelsgridstudio-hero-image .pg-hero-visual {
  position: relative;
  display: block;
  width: 100%;
  min-height: 470px;
  border-radius: var(--pg-radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018)),
    var(--pg-card);
  border: 1px solid rgba(255,255,255,0.13);
  overflow: hidden;
  box-shadow: var(--pg-shadow);
  isolation: isolate;
}

.pixelsgridstudio-hero-image .pg-hero-visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--rainbow-angle),
    var(--rainbow-color-1),
    var(--rainbow-color-2),
    var(--rainbow-color-3),
    var(--rainbow-color-4),
    var(--rainbow-color-5),
    var(--rainbow-color-1)
  );
  opacity: 0.23;
  z-index: -2;
  animation: pgHeroRainbowSpin 8s linear infinite;
}

.pixelsgridstudio-hero-image .pg-hero-visual::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: calc(var(--pg-radius-xl) - 1px);
  background: var(--pg-card);
  z-index: -1;
}

.pixelsgridstudio-hero-image .pg-visual-topbar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--pg-border-soft);
  background: rgba(255,255,255,0.03);
}

.pixelsgridstudio-hero-image .pg-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
}

.pixelsgridstudio-hero-image .pg-visual-body {
  position: relative;
  min-height: 424px;
  display: grid;
  place-items: center;
  padding: 28px;
}

/* Fix WordPress emoji image replacement */
.pixelsgridstudio-hero-image .pg-message-send img.emoji,
.pixelsgridstudio-hero-image .pg-arrow-symbol img.emoji {
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* ---------- Contact graphic ---------- */

.pixelsgridstudio-hero-image .pg-contact-animation {
  position: relative;
  width: 100%;
  min-height: 382px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.pixelsgridstudio-hero-image .pg-contact-animation::before {
  content: "";
  position: absolute;
  inset: -38%;
  background:
    conic-gradient(from var(--rainbow-angle),
      rgba(255,140,184,0.13),
      rgba(199,146,255,0.18),
      rgba(108,180,255,0.15),
      rgba(140,255,212,0.12),
      rgba(255,210,122,0.15),
      rgba(255,140,184,0.13));
  animation: pgHeroRainbowSpin 12s linear infinite;
  opacity: 0.72;
  z-index: -2;
}

.pixelsgridstudio-hero-image .pg-contact-animation::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 46%, transparent 0 22%, rgba(5,5,7,0.48) 55%, rgba(5,5,7,0.93) 100%),
    linear-gradient(180deg, transparent, rgba(5,5,7,0.76));
  z-index: -1;
}

.pixelsgridstudio-hero-image .pg-message-panel {
  position: absolute;
  left: 38px;
  right: 38px;
  top: 26px;
  min-height: 250px;
  border-radius: 24px;
  background: rgba(7,8,12,0.76);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.42);
  overflow: hidden;
  z-index: 2;
  animation: pgContactMainFloat 5.4s ease-in-out infinite;
}

.pixelsgridstudio-hero-image .pg-message-head {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}

.pixelsgridstudio-hero-image .pg-message-title {
  margin-left: 8px;
  width: 42%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.pixelsgridstudio-hero-image .pg-message-send {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  animation: pgSendPulse 2.6s ease-in-out infinite;
}

.pixelsgridstudio-hero-image .pg-message-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.pixelsgridstudio-hero-image .pg-field-line {
  height: 12px;
  border-radius: 99px;
  background: rgba(255,255,255,0.16);
  overflow: hidden;
  position: relative;
}

.pixelsgridstudio-hero-image .pg-field-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.16), transparent 80%);
  transform: translateX(-120%);
  animation: pgContactScan 3.3s ease-in-out infinite;
}

.pixelsgridstudio-hero-image .pg-field-line:nth-child(1) { width: 78%; }
.pixelsgridstudio-hero-image .pg-field-line:nth-child(2) { width: 62%; background: rgba(199,146,255,0.24); }
.pixelsgridstudio-hero-image .pg-field-line:nth-child(3) { width: 88%; }
.pixelsgridstudio-hero-image .pg-field-line:nth-child(4) { width: 48%; background: rgba(108,180,255,0.22); }

.pixelsgridstudio-hero-image .pg-message-box {
  min-height: 78px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,140,184,0.10), rgba(108,180,255,0.10)),
    rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.pixelsgridstudio-hero-image .pg-message-box::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255,255,255,0.15) 0 7px, transparent 7px 18px),
    linear-gradient(rgba(255,255,255,0.10) 0 7px, transparent 7px 18px);
  background-size: 100% 18px, 66% 18px;
  background-position: 0 0, 0 36px;
  background-repeat: repeat-y, no-repeat;
  opacity: 0.8;
}

.pixelsgridstudio-hero-image .pg-brief-card,
.pixelsgridstudio-hero-image .pg-consult-card,
.pixelsgridstudio-hero-image .pg-response-card {
  position: absolute;
  z-index: 5;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,8,12,0.78);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 22px 70px rgba(0,0,0,0.38);
  overflow: hidden;
  padding: 15px;
}

.pixelsgridstudio-hero-image .pg-brief-card {
  left: 14px;
  bottom: 38px;
  width: 210px;
  animation: pgContactFloatA 5s ease-in-out infinite;
}

.pixelsgridstudio-hero-image .pg-consult-card {
  right: 16px;
  bottom: 68px;
  width: 205px;
  animation: pgContactFloatB 5.7s ease-in-out infinite;
}

.pixelsgridstudio-hero-image .pg-response-card {
  right: 78px;
  top: 38px;
  width: 146px;
  animation: pgContactFloatC 4.9s ease-in-out infinite;
}

.pixelsgridstudio-hero-image .pg-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.90);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.pixelsgridstudio-hero-image .pg-panel-title i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rainbow-color-2), var(--rainbow-color-4));
  box-shadow: 0 0 16px rgba(199,146,255,0.38);
}

.pixelsgridstudio-hero-image .pg-mini-lines {
  display: grid;
  gap: 8px;
}

.pixelsgridstudio-hero-image .pg-mini-lines span {
  height: 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.16);
}

.pixelsgridstudio-hero-image .pg-mini-lines span:nth-child(1) { width: 90%; }
.pixelsgridstudio-hero-image .pg-mini-lines span:nth-child(2) { width: 72%; background: rgba(108,180,255,0.22); }
.pixelsgridstudio-hero-image .pg-mini-lines span:nth-child(3) { width: 58%; }

.pixelsgridstudio-hero-image .pg-response-number {
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.pixelsgridstudio-hero-image .pg-response-card span {
  color: var(--pg-muted);
  font-family: "Inter", sans-serif;
  font-size: 10px;
}

/* ---------- Home graphic ---------- */

.pixelsgridstudio-hero-image .pg-lottie-wrap {
  width: min(100%, 420px);
  height: 300px;
  display: grid;
  place-items: center;
  opacity: 0.95;
}

.pixelsgridstudio-hero-image .pg-lottie-wrap lottie-player {
  width: 100%;
  height: 100%;
}

.pixelsgridstudio-hero-image .pg-hero-home .pg-floating-card {
  position: absolute;
  background: rgba(20,25,34,0.88);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 172px;
}

.pixelsgridstudio-hero-image .pg-hero-home .pg-floating-card strong {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #ffffff;
}

.pixelsgridstudio-hero-image .pg-hero-home .pg-floating-card span {
  display: block;
  color: var(--pg-muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.pixelsgridstudio-hero-image .pg-hero-home .pg-float-1 { left: 28px; top: 82px; }
.pixelsgridstudio-hero-image .pg-hero-home .pg-float-2 { right: 28px; top: 142px; }
.pixelsgridstudio-hero-image .pg-hero-home .pg-float-3 { left: 62px; bottom: 36px; }
.pixelsgridstudio-hero-image .pg-hero-home .pg-float-4 { right: 36px; bottom: 66px; }

/* ---------- WordPress Development Services graphic ---------- */

.pixelsgridstudio-hero-image .pg-hero-wordpress-development-services .pg-dashboard-card {
  min-height: 360px;
  width: 100%;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255,140,184,0.16), transparent 28%),
    radial-gradient(circle at 22% 80%, rgba(140,255,212,0.12), transparent 28%),
    #08090D;
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 22px;
  position: relative;
  overflow: hidden;
  animation: pgDashboardFloat 6s ease-in-out infinite;
}

/* Keyframes */
@keyframes pgHeroRainbowSpin { to { --rainbow-angle: 360deg; } }
@keyframes pgContactMainFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.01); } }
@keyframes pgContactFloatA { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(9px) rotate(0deg); } }
@keyframes pgContactFloatB { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-10px) rotate(0deg); } }
@keyframes pgContactFloatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes pgSendPulse { 0%, 100% { transform: scale(1); box-shadow: none; } 50% { transform: scale(1.1); box-shadow: 0 0 22px rgba(255,210,122,0.20); } }
@keyframes pgContactScan { 0% { transform: translateX(-120%); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }
@keyframes pgDashboardFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(0.45deg); } }

/* Responsive */
@media (max-width: 1024px) {
  .pixelsgridstudio-hero-image .pg-hero-visual { min-height: 430px; }
  .pixelsgridstudio-hero-image .pg-visual-body { min-height: 384px; }
}

@media (max-width: 767px) {
  .pixelsgridstudio-hero-image .pg-hero-visual,
  .pixelsgridstudio-hero-image .pg-visual-body {
    min-height: 470px;
  }

  .pixelsgridstudio-hero-image .pg-visual-body {
    padding: 18px;
  }

  .pixelsgridstudio-hero-image .pg-message-panel {
    left: 10px;
    right: 10px;
    top: 28px;
  }

  .pixelsgridstudio-hero-image .pg-brief-card {
    left: 12px;
    bottom: 36px;
    width: 174px;
  }

  .pixelsgridstudio-hero-image .pg-consult-card {
    right: 12px;
    bottom: 72px;
    width: 162px;
  }

  .pixelsgridstudio-hero-image .pg-response-card {
    right: 16px;
    top: 42px;
    width: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixelsgridstudio-hero-image *,
  .pixelsgridstudio-hero-image *::before,
  .pixelsgridstudio-hero-image *::after {
    animation: none !important;
    transition: none !important;
  }
}
