/* Ensure hero text is on top of diamond + sunbeam */
#hero-title,
#hero-description,
#hero-button {
  position: relative;
  z-index: 2;
}


.hero-title-wrapper {
  position: relative;
  display: inline-block;
  padding: 2rem 3rem;
  z-index: 1;
  min-width: 280px;
}

/* The realistic sunbeam glow behind the diamond and text */
.sunbeam-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  border-radius: 50%;

  background:
    radial-gradient(circle at center, rgba(57, 146, 230, 0.5) 0%, transparent 70%),
    radial-gradient(circle at center, rgba(57, 103, 230, 0.15) 0%, transparent 100%),
    repeating-conic-gradient(
      from 0deg,
      rgba(230, 57, 70, 0.12) 0deg 4deg,
      transparent 4deg 8deg
    );

  filter: blur(40px) brightness(1.1);
  animation: subtlePulse 2.5s ease-in-out infinite, slowRotate 30s linear infinite;
}

.diamond-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle at center,
    var(--color-primary) 65%,
    rgba(var(--color-primaryRGB), 0.1) 100%
  );
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 16px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.6);
  filter: blur(1.2px);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

@keyframes subtlePulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes slowRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive sizes */
@media (min-width: 768px) {
  .sunbeam-glow {
    width: 500px;
    height: 500px;
  }
  .diamond-bg {
    width: 260px;
    height: 260px;
  }
}

@media (min-width: 1024px) {
  .sunbeam-glow {
    width: 600px;
    height: 600px;
  }
  .diamond-bg {
    width: 320px;
    height: 320px;
  }
}

#hero-button {
  display: none;
}

#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

  #background-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

.bg-theme-header {
  background-color: var(--color-header-bg);
}

#hero-title {
  position: relative;
  font-family: var(--font-heading);
  /* Gradient fill for metallic look */
  background: linear-gradient(120deg, var(--color-accent), var(--color-primaryDark), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Shadow layers for depth */
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.2),
    4px 4px 8px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 1.25rem;
}

.hero-title-wrapper::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  color: var(--color-primaryLight);
  transform: translate(6px, 6px);
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
}
