/* Voysera Global Styles */

:root {
  --voysera-primary: #1FD5F9;
  --voysera-primary-rgb: 31, 213, 249;
}

/* Hero Feature List Animation */
.hero-feature span {
  color: rgba(255, 255, 255, 0.35);
  transition: color 1s ease-in-out;
}

.hero-feature svg {
  color: rgba(255, 255, 255, 0.25);
  transition: color 1s ease-in-out;
}

.hero-feature.active span {
  color: rgba(255, 255, 255, 1);
}

.hero-feature.active svg {
  color: #1FD5F9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
}

#hero-voysera {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #080808;
  position: relative;
  overflow: hidden;
}

#hero-voysera::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* Blue Button */
.btn-blue,
.btn-primary-voysera,
.btn-dashboard {
  background: #1FD5F9;
  color: #080808;
  border: 1px solid #1FD5F9;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(31, 213, 249, 0.4);
}

.btn-blue svg,
.btn-primary-voysera svg,
.btn-dashboard svg {
  transition: transform 0.4s ease;
}

.btn-blue:hover,
.btn-primary-voysera:hover,
.btn-dashboard:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
  transform: scale(1.03);
}

.btn-blue:hover svg,
.btn-primary-voysera:hover svg,
.btn-dashboard:hover svg {
  animation: arrow-rotate 0.5s ease forwards;
}

@keyframes arrow-rotate {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  40% {
    transform: translateX(10px) rotate(90deg);
    opacity: 0;
  }
  41% {
    transform: translateX(-10px) rotate(-90deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

/* Dark Button */
.btn-dark,
.btn-secondary-voysera {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: all 0.3s ease;
}

.btn-dark:hover,
.btn-secondary-voysera:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.03);
}

/* Talk to Voysera button */
.btn-talk-voysera {
  background: #FFFBEB;
  color: #080808;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(255, 251, 235, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.btn-talk-voysera:hover {
  box-shadow: 0 0 50px rgba(255, 251, 235, 0.25), inset 0 0 30px rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 40px rgba(255, 251, 235, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 251, 235, 0.25), inset 0 0 25px rgba(255, 255, 255, 0.15);
  }
}

.btn-talk-voysera {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Navigation link hover */
.nav-link-voysera {
  position: relative;
  transition: all 0.2s ease;
}

.nav-link-voysera::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1FD5F9;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-voysera:hover::after {
  width: 100%;
}

.nav-link-voysera:hover {
  color: #1FD5F9;
}

/* Framework visualization */
#hero-framework {
  perspective: 1000px;
}

/* Sequential wave animation - each node lifts one at a time like keyboard keys */
@keyframes node-lift {
  0%, 4%, 100% {
    transform: translateY(0);
    box-shadow: -3px 3px 0 0 rgba(255,255,255,0.3);
  }
  7% {
    transform: translateY(-4px);
    box-shadow: -3px 7px 0 0 rgba(255,255,255,0.3);
  }
  10% {
    transform: translateY(0);
    box-shadow: -3px 3px 0 0 rgba(255,255,255,0.3);
  }
}

@keyframes icon-activate {
  0%, 4%, 100% {
    opacity: 0.35;
  }
  7% {
    opacity: 1;
  }
  10% {
    opacity: 0.35;
  }
}

@keyframes label-activate {
  0%, 4%, 100% {
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  10% {
    opacity: 0;
  }
}

.node-wave {
  animation: node-lift 8s ease-out infinite;
  transform: translateY(0);
  box-shadow: -3px 3px 0 0 rgba(255,255,255,0.3);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.node-wave:hover {
  transform: translateY(-4px) !important;
  box-shadow: -3px 7px 0 0 rgba(255,255,255,0.3) !important;
}

.node-wave svg {
  animation: icon-activate 8s ease-out infinite;
  animation-delay: inherit;
  color: white !important;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.node-wave:hover svg {
  opacity: 1 !important;
}

.node-label {
  animation: label-activate 8s ease-out infinite;
  color: white !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.node-wave:hover + .node-label {
  opacity: 1 !important;
}


/* Mic icon animation */
@keyframes mic-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.mic-dot {
  animation: mic-pulse 1.5s ease-in-out infinite;
}

.mic-dot:nth-child(2) { animation-delay: 0.2s; }
.mic-dot:nth-child(3) { animation-delay: 0.4s; }

/* Custom height classes */
.h-18 { height: 4.5rem; }

/* Text flip animation for buttons - 3D Cube effect */
.btn-text-flip {
  position: relative;
  perspective: 400px;
}

.btn-text-wrapper {
  display: block;
  position: relative;
  height: 1.2em;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-text {
  display: block;
  backface-visibility: hidden;
}

.btn-text:first-child {
  transform: rotateX(0deg) translateZ(0.6em);
  color: #080808;
}

.btn-text-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: rotateX(-90deg) translateZ(0.6em);
  transform-origin: center center;
  color: #fff;
}

.btn-text-flip:hover .btn-text-wrapper {
  transform: rotateX(90deg);
}

/* Text flip animation for dark buttons - 3D Cube effect */
.btn-text-flip-dark {
  position: relative;
  perspective: 400px;
}

.btn-text-wrapper-dark {
  display: block;
  position: relative;
  height: 1.2em;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-text-dark {
  display: block;
  backface-visibility: hidden;
}

.btn-text-dark:first-child {
  transform: rotateX(0deg) translateZ(0.6em);
  color: #fff;
}

.btn-text-hover-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: rotateX(-90deg) translateZ(0.6em);
  transform-origin: center center;
  color: #1FD5F9;
}

.btn-text-flip-dark:hover .btn-text-wrapper-dark {
  transform: rotateX(90deg);
}

/* Scroll Highlight Section */
#highlight-section {
  position: relative;
}

#scroll-text, #scroll-text-2 {
  line-height: 1.8;
}

.highlight-word {
  position: relative;
  display: inline;
  color: rgba(255, 255, 255, 0.35) !important;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  background-color: transparent;
}

.highlight-word.highlighted {
  color: #111 !important;
  background-color: #fffff0;
  box-shadow: 5px 0 0 #fffff0, -5px 0 0 #fffff0;
  padding: 4px 0;
}

/* How It Works Section */
.step-item {
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.step-item.active {
  opacity: 1;
}

.step-item.active .step-subtitle {
  max-height: 100px;
  opacity: 1;
}

.step-subtitle {
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.step-item .flex-shrink-0 {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.step-item.active .flex-shrink-0 {
  border-color: #1FD5F9;
  background-color: rgba(31, 213, 249, 0.1);
}

.step-item.active .flex-shrink-0 span {
  color: #1FD5F9;
}

/* Feature Grid Fading Borders */
.feature-cell {
  position: relative;
}

.feature-cell-left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent 80%);
}

.feature-cell-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.15), transparent 80%);
}

/* Hide bottom border on last row */
.feature-cell-last::after {
  display: none;
}

/* Vertical divider between columns - fades top to bottom */
.feature-cell-left::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent 80%);
}

@media (max-width: 1023px) {
  .feature-cell-left::before {
    display: none;
  }
  
  .feature-cell-left::after,
  .feature-cell-right::after {
    background: linear-gradient(to right, transparent 10%, rgba(255, 255, 255, 0.1) 50%, transparent 90%);
  }
}
