/* Custom styles for Codecraft by Syed - QR Menu Landing */

html {
  scroll-behavior: smooth;
}

:root {
  --neon-green: #00ff9d;
  --neon-green-soft: rgba(0, 255, 157, 0.35);
}

/* Typography */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

.typing-cursor {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 2px;
  background-color: #ffffff;
  animation: typing-cursor-blink 1s steps(1, end) infinite;
}

@keyframes typing-cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}

/* Soft shadow utility for non-tailwind contexts */
.shadow-soft {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Marquee for testimonials */
.testimonial-viewport {
  overflow: hidden;
}
.testimonial-viewport::before,
.testimonial-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
}
.testimonial-viewport::before {
  left: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0));
}
.testimonial-viewport::after {
  right: 0;
  background: linear-gradient(to left, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0));
}
.testimonial-track {
  display: inline-flex;
  gap: 1.5rem;
  min-width: max-content;
  will-change: transform;
}
.marquee-running {
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.marquee-paused {
  animation-play-state: paused;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Cards hover subtle effect */
.hover-rise {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-rise:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* White icons */
.ui-icon {
  filter: invert(1) brightness(1.3);
  opacity: 0.95;
}

/* Mobile-first refinements */
@media (max-width: 480px) {
  .hero-cta a {
    display: inline-flex;
    justify-content: center;
  }
  .testimonial-track {
    gap: 1rem;
  }
}

/* QR image slots */
.qr-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 8px;
}
.qr-img-standee {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile menu animation */
#mobile-menu {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Neon image frames (exclude logo) */
.neon-image-frame {
  border-radius: 0.9rem;
  box-shadow: 0 0 18px var(--neon-green-soft);
  border: 1px solid var(--neon-green-soft);
  background:
    radial-gradient(circle at top, rgba(0, 255, 157, 0.15), transparent 55%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), #020617);
}
.neon-image-frame img {
  border-radius: inherit;
}

/* Neon button system */
.btn-primary-neon {
  border-radius: 0.75rem;
  background-color: #ffffff;
  color: #020617;
  box-shadow: 0 0 18px var(--neon-green-soft);
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary-neon:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.55);
}
.btn-primary-neon:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

.btn-secondary-neon {
  border-radius: 0.75rem;
  background-color: var(--neon-green);
  color: #020617;
  box-shadow: 0 0 18px var(--neon-green-soft);
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-secondary-neon:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.55);
}
.btn-secondary-neon:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

.btn-ghost-neon {
  border-radius: 0.75rem;
  border: 1px solid var(--neon-green-soft);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.25);
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost-neon:hover {
  transform: translateY(-1px) scale(1.03);
  background-color: rgba(15, 23, 42, 0.9);
  border-color: var(--neon-green);
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.45);
}
.btn-ghost-neon:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

/* Hero neon background accent */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(0, 255, 157, 0.12) 0, transparent 55%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16) 0, transparent 55%);
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: hero-neon-pulse 10s ease-in-out infinite alternate;
}

@keyframes hero-neon-pulse {
  0% {
    transform: translate3d(-10px, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(10px, -6px, 0) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate3d(-4px, 4px, 0) scale(1.02);
    opacity: 0.8;
  }
}
