/* Signal Visualization Animation */
.signal-visualization {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  margin-top: 10px;
  margin-bottom: 15px;
}

.signal-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 40px;
  gap: 5px;
}

.signal-bar {
  width: 5px;
  background: var(--primary-gradient);
  border-radius: 2px;
  animation: signalPulse 1.5s infinite;
}

.signal-bar:nth-child(1) {
  height: 15px;
  animation-delay: 0s;
}

.signal-bar:nth-child(2) {
  height: 20px;
  animation-delay: 0.2s;
}

.signal-bar:nth-child(3) {
  height: 30px;
  animation-delay: 0.4s;
}

.signal-bar:nth-child(4) {
  height: 25px;
  animation-delay: 0.6s;
}

.signal-bar:nth-child(5) {
  height: 35px;
  animation-delay: 0.8s;
}

.signal-text {
  font-size: 10px;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 1px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

@keyframes signalPulse {
  0%, 100% {
    transform: scaleY(0.7);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Satellite pulse animation */
.satellite-pulse {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0 10px;
}

.satellite-dot {
  width: 12px;
  height: 12px;
  background: var(--primary-gradient);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  background: transparent;
  border: 2px solid;
  border-image: var(--primary-gradient) 1;
  border-radius: 50%;
  animation: pulseRing 2s linear infinite;
  opacity: 0;
}

.pulse-ring:nth-child(1) {
  animation-delay: 0s;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.6s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes pulseRing {
  0% {
    width: 15px;
    height: 15px;
    opacity: 0;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    width: 40px;
    height: 40px;
    opacity: 0.2;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}

/* Feature Indicators */
.feature-indicators {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0;
  gap: 15px;
}

.feature-viz {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-row {
  display: flex;
  justify-content: space-evenly;
  margin: 25px 5px 15px;
  padding: 18px 10px;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  flex-wrap: wrap;
  gap: 5px;
}

@media (max-width: 768px) {
  .feature-row {
    flex-wrap: wrap;
  }
  
  .feature-item {
    flex-basis: 45%;
    margin-bottom: 15px;
  }
  
  .feature-item:not(:last-child)::after {
    display: none;
  }
}

.feature-item {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  position: relative;
}

.feature-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
}

.feature-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 30px;
  gap: 4px;
}

.feature-bar {
  width: 5px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.feature-text {
  font-size: 10px;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 1px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  text-align: center;
}

/* High Quality TV with FULL HD Label */
.hq-animation {
  position: relative;
  width: 60px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hq-animation i {
  font-size: 30px;
  color: transparent;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  animation: tvGlow 2s infinite alternate;
}

@keyframes tvGlow {
  0% { text-shadow: 0 0 1px rgba(255,255,255,0.2); transform: scale(0.95); }
  100% { text-shadow: 0 0 5px rgba(255,255,255,0.5); transform: scale(1.05); }
}

.fullhd-label {
  position: absolute;
  bottom: -3px;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--primary-gradient);
  color: white;
  animation: hdPulse 2s infinite alternate;
}

@keyframes hdPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 5px rgba(255,255,255,0.5); }
}

/* Fast WiFi Animation with Data Packets */
.wifi-animation {
  position: relative;
  width: 60px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.data-stream {
  position: absolute;
  width: 2px;
  height: 40px;
  background: var(--primary-gradient);
  animation: streamPulse 1.5s infinite;
}

@keyframes streamPulse {
  0%, 100% {
    opacity: 0.2;
    height: 30px;
  }
  50% {
    opacity: 0.8;
    height: 40px;
  }
}

.data-packet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary-gradient);
  border-radius: 1px;
  transform: rotate(45deg);
}

.data-packet.p1 {
  animation: packetMove 2s infinite;
}

.data-packet.p2 {
  animation: packetMove 2s infinite;
  animation-delay: 0.7s;
}

.data-packet.p3 {
  animation: packetMove 2s infinite;
  animation-delay: 1.3s;
}

@keyframes packetMove {
  0% {
    transform: translate(0, -20px) rotate(45deg) scale(0.6);
    opacity: 0;
  }
  30% {
    transform: translate(0, -10px) rotate(45deg) scale(1);
    opacity: 1;
  }
  60% {
    transform: translate(0, 5px) rotate(45deg) scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: translate(0, 20px) rotate(45deg) scale(0.6);
    opacity: 0;
  }
}

.wifi-animation i {
  font-size: 18px;
  color: transparent;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  position: absolute;
  bottom: -5px;
  animation: boltFlash 1.5s infinite;
}

@keyframes boltFlash {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Premium Audio Animation with Dolby Logo and Sound Waves */
.dolby-animation {
  position: relative;
  width: 90px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dolby-logo {
  color: white;
  background: var(--primary-gradient);
  padding: 3px 5px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 2px;
  letter-spacing: 0.5px;
  z-index: 2;
  position: relative;
  animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
  0% { box-shadow: 0 0 2px rgba(255, 255, 255, 0.2); transform: scale(0.95); }
  100% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); transform: scale(1); }
}

/* Audio bars - common styles */
.audio-bars {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.audio-bars.left {
  margin-right: 5px;
}

.audio-bars.right {
  margin-left: 5px;
}

/* Audio bar styles */
.audio-bar {
  width: 2px;
  background: var(--primary-gradient);
  margin: 0 2px;
}

/* Dolby logo styling */
.dolby-logo {
  position: relative;
  background: var(--primary-gradient);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  letter-spacing: 1px;
  z-index: 2;
  text-align: center;
  animation: dolbyPulse 2s infinite alternate;
}

@keyframes dolbyPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 5px rgba(255,255,255,0.2);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
  }
}

/* Audio bar animations */
.audio-bars.left .audio-bar:nth-child(1) {
  height: 12px;
  animation: barPulse 1.2s infinite alternate;
}

.audio-bars.left .audio-bar:nth-child(2) {
  height: 8px;
  animation: barPulse 0.8s infinite alternate-reverse;
}

.audio-bars.left .audio-bar:nth-child(3) {
  height: 15px;
  animation: barPulse 1.5s infinite alternate;
}

.audio-bars.right .audio-bar:nth-child(1) {
  height: 14px;
  animation: barPulse 1.3s infinite alternate-reverse;
}

.audio-bars.right .audio-bar:nth-child(2) {
  height: 7px;
  animation: barPulse 0.9s infinite alternate;
}

.audio-bars.right .audio-bar:nth-child(3) {
  height: 11px;
  animation: barPulse 1.1s infinite alternate-reverse;
}

@keyframes barPulse {
  0% {
    height: 5px;
    opacity: 0.6;
  }
  100% {
    height: 18px;
    opacity: 1;
  }
}

/* Tech Specs Visual */
.tech-specs-visual {
  width: 100%;
  padding: 5px 15px 10px;
  margin-top: 8px;
}

.tech-spec {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.spec-label {
  font-size: 10px;
  font-weight: 600;
  width: 35px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spec-bar {
  flex: 1;
  height: 6px;
  background-color: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.spec-progress {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
  animation: progressAnimation 1.5s ease-out;
}

@keyframes progressAnimation {
  0% { width: 0; }
}

/* Dolby Audio Animation */
.dolby-icon {
  position: relative;
  overflow: hidden;
}

.dolby-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.7);
  transform: translateY(-50%);
  animation: soundWave 2s infinite;
  opacity: 0;
}

@keyframes soundWave {
  0%, 100% { transform: translateY(-50%) scaleX(0.3); opacity: 0.2; }
  50% { transform: translateY(-50%) scaleX(1); opacity: 0.8; }
}

/* WiFi Animation */
.wifi-icon i {
  animation: wifiPulse 2s infinite;
}

@keyframes wifiPulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Quality Icon Animation */
.quality-icon i {
  position: relative;
}

.quality-icon i::after {
  content: "HD";
  position: absolute;
  font-size: 8px;
  font-weight: bold;
  bottom: -2px;
  right: -2px;
  color: white;
}

/* RTL support */
html[dir="rtl"] .signal-visualization,
html[dir="rtl"] .signal-bars,
html[dir="rtl"] .satellite-pulse,
html[dir="rtl"] .feature-highlights,
html[dir="rtl"] .tech-specs-visual {
  direction: ltr; /* Keep animation direction for RTL as well */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .signal-visualization {
    margin: 0;
    padding: 0;
  }
  
  .signal-bars {
    height: 30px;
  }
  
  .signal-bar {
    width: 4px;
  }
}
