/* ============================================
   HenZoe Website — Custom Styles
   ============================================ */

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #F97316, #FBBF24);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}
.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

/* --- SVG Wave Section Dividers --- */
.wave-divider {
  position: relative;
  margin-top: -1px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}
@media (min-width: 768px) {
  .wave-divider svg { height: 80px; }
}

/* --- Floating Hero Decorations --- */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(12px, -18px) rotate(5deg); }
  50%  { transform: translate(-8px, -30px) rotate(-3deg); }
  75%  { transform: translate(15px, -12px) rotate(4deg); }
}
@keyframes drift-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(-15px, -20px) rotate(-6deg); }
  66%  { transform: translate(10px, -10px) rotate(3deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%      { opacity: 0.25; transform: scale(1.08); }
}
.hero-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.hero-decoration--drift {
  animation: drift 8s ease-in-out infinite;
}
.hero-decoration--drift-slow {
  animation: drift-slow 12s ease-in-out infinite;
}
.hero-decoration--pulse {
  animation: pulse-glow 6s ease-in-out infinite;
}

/* --- Icon Glow Background --- */
.icon-glow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-glow::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(251, 191, 36, 0.10));
  z-index: 0;
}
.icon-glow img {
  position: relative;
  z-index: 1;
}
/* Colored variants */
.icon-glow--emerald::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.10));
}
.icon-glow--blue::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(96, 165, 250, 0.10));
}
.icon-glow--purple::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(167, 139, 250, 0.10));
}
.icon-glow--amber::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.10));
}

/* --- Animated Counter --- */
.counter-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 120px;
  font-family: 'Outfit', serif;
  color: rgba(249, 115, 22, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* --- About Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #F97316, #FBBF24, #10B981);
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316, #FBBF24);
  border: 3px solid white;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
  z-index: 1;
}
.timeline-item:nth-child(2)::before {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
}
.timeline-item:nth-child(3)::before {
  background: linear-gradient(135deg, #F59E0B, #10B981);
}
.timeline-item:nth-child(4)::before {
  background: linear-gradient(135deg, #10B981, #059669);
}

/* --- Enhanced Micro-Interactions --- */
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.card-hover:hover .icon-glow {
  animation: icon-bounce 0.5s ease;
}

/* Animated underline on links */
.link-underline {
  position: relative;
  text-decoration: none;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #F97316, #FBBF24);
  transition: width 0.3s ease;
}
.link-underline:hover::after {
  width: 100%;
}

/* Active nav indicator */
.nav-active-dot {
  position: relative;
}
.nav-active-dot::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F97316;
}

/* --- Skill Bar Animation --- */
.skill-bar-fill {
  width: 0;
  transition: width 1.2s ease-out;
}
.skill-bar-fill.animate {
  /* width set via inline style */
}

/* --- Footer Gradient Border --- */
.footer-gradient-border {
  position: relative;
}
.footer-gradient-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F97316, #FBBF24, #10B981, #FBBF24, #F97316);
}

/* --- Aurora Gradient Hero Background --- */
@keyframes aurora {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}
.aurora-bg {
  background: linear-gradient(
    -45deg,
    #0F172A,
    #1E293B,
    #1a1f3d,
    #1E293B,
    #1c2333,
    #0F172A
  );
  background-size: 400% 400%;
  animation: aurora 20s ease infinite;
}

/* --- Hero Background Video --- */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
.hero-video.loaded {
  opacity: 1;
  transform: scale(1);
}
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(30, 41, 59, 0.82) 50%,
    rgba(15, 23, 42, 0.88) 100%
  );
  z-index: 1;
}

/* --- Feature Ticker / Marquee --- */
.ticker-strip {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-strip::before,
.ticker-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-strip::before {
  left: 0;
  background: linear-gradient(90deg, #0F172A, transparent);
}
.ticker-strip::after {
  right: 0;
  background: linear-gradient(90deg, transparent, #0F172A);
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  white-space: nowrap;
}
.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316, #FBBF24);
  flex-shrink: 0;
}

/* --- Phone Screen Cycling --- */
.phone-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.phone-screen.active {
  opacity: 1;
}
.phone-screens-container {
  position: relative;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #F97316, #FBBF24, #10B981);
  z-index: 100;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316, #FBBF24);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 90;
  pointer-events: none;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: 0 6px 30px rgba(249, 115, 22, 0.5);
  transform: translateY(-2px);
}

/* --- Animated How-It-Works Connector --- */
.steps-connector-svg {
  position: absolute;
  top: 28px;
  left: 16.5%;
  width: 67%;
  height: 4px;
  z-index: 0;
}
.steps-connector-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s ease-out;
}
.steps-connector-line.animate {
  stroke-dashoffset: 0;
}

/* --- Varied Entrance Animations --- */
[data-animate="slide-left"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
[data-animate="slide-left"].visible {
  opacity: 1;
  transform: translateX(0);
}
[data-animate="slide-right"] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
[data-animate="slide-right"].visible {
  opacity: 1;
  transform: translateX(0);
}
[data-animate="pop"] {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-animate="pop"].visible {
  opacity: 1;
  transform: scale(1);
}
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
[data-animate="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Logo Inversion on Dark Backgrounds --- */
#navbar img[src*="henzoe-logo"],
.footer-gradient-border img[src*="henzoe-logo"] {
  filter: brightness(0) invert(1);
}

/* --- Navigation --- */
#navbar {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.nav-transparent {
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-scrolled {
  background: rgba(15, 23, 42, 0.97) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* --- Scroll Reveal Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="100"] { transition-delay: 100ms; }
[data-animate-delay="200"] { transition-delay: 200ms; }
[data-animate-delay="300"] { transition-delay: 300ms; }
[data-animate-delay="400"] { transition-delay: 400ms; }
[data-animate-delay="500"] { transition-delay: 500ms; }

/* --- Hero Animations --- */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-text {
  animation: fadeInLeft 0.9s ease-out both;
}
.hero-phone {
  animation: fadeInRight 0.9s ease-out 0.25s both;
}
.phone-float {
  animation: float 6s ease-in-out infinite;
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Diagonal Hero Clip --- */
.clip-hero {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
@media (min-width: 768px) {
  .clip-hero {
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }
}

/* --- Phone Mockup Glow --- */
.phone-glow {
  filter: drop-shadow(0 0 50px rgba(249, 115, 22, 0.2))
          drop-shadow(0 0 100px rgba(249, 115, 22, 0.08));
}

/* --- Card Hover Effect --- */
.card-hover {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}
.card-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #F97316, #FBBF24);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card-hover:hover::after {
  opacity: 1;
}

/* --- CTA Button Glow --- */
.btn-glow {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.4), 0 0 50px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

/* --- Feature Icon Container --- */
.feature-icon {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 191, 36, 0.08));
}

/* --- Mobile Menu Animation --- */
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 400px; }
}
.mobile-menu-enter {
  animation: slideDown 0.3s ease-out forwards;
  overflow: hidden;
}

/* --- Form Focus Ring --- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #F97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

/* --- Keyboard Focus Indicators --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #F97316;
  outline-offset: 2px;
}

/* --- Alternating Feature Rows (product page) --- */
.feature-row:nth-child(even) {
  background-color: #F9FAFB;
}

/* --- Step Connector Line --- */
.step-connector {
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #F97316, #FBBF24);
  transform: translateY(-50%);
}
@media (max-width: 767px) {
  .step-connector::after {
    top: 100%;
    left: 50%;
    width: 2px;
    height: 40px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #F97316, #FBBF24);
  }
}

/* --- Subtle Background Pattern (hero) --- */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-video {
    opacity: 1;
    transform: none;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    animation: none;
  }
}
