/* Hide navbar on mobile devices */
.hidden-mobile {
  display: none;
}
@media (min-width: 768px) {
  .hidden-mobile {
    display: flex !important;
  }
}
/* --------------------------------------------------------------------------
     Mobile Navbar Styles
     -------------------------------------------------------------------------- */
.translate-x-full {
  transform: translateX(100%);
}
.translate-x-0 {
  transform: translateX(0);
}
#mobile-menu {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }
}

/* Remove body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Remove inline style for Think With Us button and shimmer effect */
.think-with-us-btn {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}
.think-with-us-glow {
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}
/* ==========================================================================
   Zenzhub - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
body {
  background-color: #030303;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Ambient Glow Effects (CSS Fallback for Unicorn Studio)
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ambient-glow::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.15) 0%,
    transparent 70%
  );
  filter: blur(80px);
  animation: breathe 8s ease-in-out infinite;
}

.ambient-glow::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.1) 0%,
    transparent 70%
  );
  filter: blur(100px);
  animation: breathe 10s ease-in-out infinite reverse;
}

/* Center glow */
.center-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle at center,
    rgba(56, 189, 248, 0.08) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-glow {
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.grid-bg {
  background-size: 100px 200px;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.monotone-logo {
  filter: grayscale(100%) brightness(150%) contrast(0.5);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.monotone-logo:hover {
  opacity: 1;
  filter: grayscale(100%) brightness(200%);
}

/* --------------------------------------------------------------------------
   Animation Classes
   -------------------------------------------------------------------------- */
.beam-line {
  stroke-dasharray: 80 1000;
  stroke-linecap: round;
}

/* Sonar Wave Animation */
@keyframes sonar-wave {
  0% {
    r: 10px;
    opacity: 0.8;
    stroke-width: 1px;
  }

  100% {
    r: 80px;
    opacity: 0;
    stroke-width: 0px;
  }
}

.animate-sonar {
  animation: sonar-wave 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.delay-1000 {
  animation-delay: 1s;
}

.delay-2000 {
  animation-delay: 2s;
}

/* --------------------------------------------------------------------------
   Shiny CTA Button
   -------------------------------------------------------------------------- */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 20%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: #38bdf8;
  inherits: false;
}

.shiny-cta {
  --gradient-angle: 0deg;
  --gradient-angle-offset: 0deg;
  --gradient-percent: 20%;
  --gradient-shine: #38bdf8;
  --shadow-size: 2px;
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(#030303, #030303) padding-box,
    conic-gradient(
        from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
        transparent 0%,
        #0ea5e9 5%,
        var(--gradient-shine) 15%,
        #0ea5e9 30%,
        transparent 40%,
        transparent 100%
      )
      border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px #1a1818;
  outline: none;
  transition: --gradient-angle-offset 800ms cubic-bezier(0.25, 1, 0.5, 1),
    --gradient-percent 800ms cubic-bezier(0.25, 1, 0.5, 1),
    --gradient-shine 800ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
  cursor: pointer;
  isolation: isolate;
  outline-offset: 4px;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  z-index: 0;
  animation: border-spin 2.5s linear infinite;
}

@keyframes border-spin {
  to {
    --gradient-angle: 360deg;
  }
}

.shiny-cta:active {
  transform: translateY(1px);
}

.shiny-cta::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  --size: calc(100% - 6px);
  --position: 2px;
  --space: 4px;
  width: var(--size);
  height: var(--size);
  background: radial-gradient(
      circle at var(--position) var(--position),
      white 0.5px,
      transparent 0
    )
    padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.4;
  pointer-events: none;
}

.shiny-cta::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, #0ea5e9, transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
  animation: shimmer 4s linear infinite;
  animation-play-state: running;
}

.shiny-cta span {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px #0ea5e9;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 800ms cubic-bezier(0.25, 1, 0.5, 1);
  animation: breathe 4.5s linear infinite;
}

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

@keyframes breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* --------------------------------------------------------------------------
   Border Gradient (Secondary Button)
   -------------------------------------------------------------------------- */
[style*="--border-gradient"]::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--border-radius-before, inherit);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: var(--border-gradient);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Marquee Animation
   -------------------------------------------------------------------------- */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 40s linear infinite;
}

.animate-marquee-testimonial {
  animation: marquee 60s linear infinite;
}

.mask-gradient-fade {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

/* Typewriter Animation for Action Bar */
.typewriter-text {
  animation: typewriter-cycle 8s infinite;
}

@keyframes typewriter-cycle {
  0%,
  20% {
    content: "automation ideas";
    opacity: 1;
  }

  25% {
    opacity: 0;
  }

  30%,
  50% {
    content: "workflow templates";
    opacity: 1;
  }

  55% {
    opacity: 0;
  }

  60%,
  80% {
    content: "builder stories";
    opacity: 1;
  }

  85% {
    opacity: 0;
  }

  90%,
  100% {
    content: "automation ideas";
    opacity: 1;
  }
}
