/* -------------------------------
 * CSS Animation by Den
 * https://codepen.io/DenDionigi/pen/qBgmovJ
 * ------------------------------- */
/*houdini*/
@property --blink-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

/* #fallback @keyframes blink-animation {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}*/

@keyframes blink-animation {
  0%,
  100% {
    opacity: var(--blink-opacity, 1);
  }
  50% {
    opacity: 0;
  }
}
/*houdini*/

:root {
  --stripe-color: #fff;
  --bg: var(--stripe-color);
  --maincolor: var(--bg);
}
/*
body {
  width: 100cqw;
  min-height: 100cqh;
  display: flex;
  place-content: center;
  place-items: flex-start center;
  background: var(--bg);
}
*/

@keyframes smoothBg {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

.bg-northern-lights {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: absolute;
  display: flex;
  place-content: center;
  place-items: center;
  --stripes: repeating-linear-gradient(
    100deg,
    var(--stripe-color) 0%,
    var(--stripe-color) 7%,
    transparent 10%,
    transparent 12%,
    var(--stripe-color) 16%
  );

  --rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #e879f9 15%,
    #60a5fa 20%,
    #5eead4 25%,
    #60a5fa 30%
  );
  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;

  filter: blur(10px) invert(100%);

  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--stripes), var(--rainbow);
    background-size: 200%, 100%;
    animation: smoothBg 60s linear infinite;
    background-attachment: fixed;
    mix-blend-mode: difference;
  }
}

body[data-theme="light"] { --stripe-color: #000; }
body[data-theme="light"] .bg-northern-lights,
body[data-theme="light"] .bg-northern-lights::after {
  filter: blur(10px) opacity(50%) saturate(200%);
}
/*
.content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  place-content: center;
  place-items: center;
  flex-flow: column;
  gap: 4.5%;
  text-align: center;
  mix-blend-mode: difference;
  -webbkit-mix-blend-mode: difference;
  filter: invert(1);
}

.h1--scalingSize {
  font-size: calc(1rem - -5vw);
  position: relative;
}

#switch {
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
}

[for="switch"] {
  cursor: pointer;
  transition: 0.15s linear(0 0%, 0.16 16.85%, 0.32 31.73%, 1 100%);
  will-change: transform, font-weight;
  padding: 0.5rem;
}

[for="switch"]:where(:hover, :active, :focus-within) {
  transition: 0.3s ease;
  animation: animSwitch 0.2s alternate;
  & .icon {
    animation-play-state: paused;
  }
}

@keyframes animSwitch {
  50% {
    transform: scale(1.2);
    font-weight: 900;
  }
}


.icon {
  width: 1lh;
  height: 1lh;
  aspect-ratio: 1/1;
  padding: 0.25em 0.35rem;
  border-radius: calc(1px / 0);
  border: 1px dashed;
  --blink-opacity: 1;
  animation: blink-animation 2s ease-in-out infinite running;
}


.h1--scalingSize::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: white;
  text-shadow: 0 0 1px #ffffff;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: white;
  -webkit-mask: linear-gradient(#000 0 0) luminance;
  mask: linear-gradient(#000 0 0) luminance, alpha;
  backdrop-filter: blur(19px) brightness(12.5);
  -webkit-text-stroke: 1px white;
  display: flex;
  margin: auto;
  z-index: 1;
  pointer-events: none;
}
*/

/* -------------------------------
 * Typing Text
 * ------------------------------- */

.typing-text::after {
  content: "|";
  animation: blink ease 1s infinite;
  /* animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; */
}
@keyframes blink {
  0%, 100% {
    opacity: 0;
  } 50% {
    opacity: 1;
  }
}



/* -------------------------------
 * The Energy Burst 
 * ------------------------------- */

/* 
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #0a0b10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
}
*/
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}



.energy-burst-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows users to click buttons beneath the animation */
  z-index: 1;
}

.lightning-bolt {
  position: absolute;
  top: -20%;
  left: -150px; /* Start completely off-screen to the left */
  width: 80px;
  height: 140%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 40%,
    rgba(0, 229, 255, 1) 50%,
    rgba(0, 102, 255, 0.8) 60%,
    transparent 100%
  );
  transform: skewX(-35deg); /* Slants the line to look like a slashing energy bolt */
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.6)) 
          drop-shadow(0 0 35px rgba(0, 102, 255, 0.4));
  opacity: 0;
  animation: lightningSweep 7s cubic-bezier(0.25, 1, 0.2, 1) infinite;
}

@keyframes lightningSweep {
  0% {
    left: -150px;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  18% {
    left: 120%;
    opacity: 1;
  }
  22%, 100% {
    left: 120%;
    opacity: 0;
  }
}



.hero-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 15px 0;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: titleGlowTrigger 7s ease-in-out infinite;
}

.hero-title span {
  color: #00e5ff;
}

@keyframes titleGlowTrigger {
  0%, 7% {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  10%, 14% {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6),
                 0 0 30px rgba(0, 102, 255, 0.4);
  }
  19%, 100% {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
}

/* Secondary Styling */
.hero-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #a0aec0;
  margin-bottom: 35px;
}

.hero-cta {
  background: #ffffff;
  color: #0a0b10;
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}
