/* Responsive styles */
@media (max-width: 1200px) {
  .terminal-box {
    flex: 0 0 450px;
    height: 450px;
  }
  
  .neon-text {
    font-size: clamp(4rem, 8vw, 7rem);
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    height: auto;
  }
  
  .terminals-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .neon-container {
    padding: 20px 30px;
    min-height: 150px;
  }
  
  .neon-text {
    font-size: clamp(3rem, 6vw, 5rem);
  }

  .terminal-box {
    flex: 0 0 350px;
    height: 350px;
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
  }

  .terminal-box:first-child {
    width: min(300px, 90vw);
    height: min(300px, 90vw);
    min-width: min(300px, 90vw);
    min-height: min(300px, 90vw);
    max-width: min(300px, 90vw);
    max-height: min(300px, 90vw);
    aspect-ratio: 1 / 1;
  }

  .terminal-box:last-child {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
  }

  .typewriter-container {
    height: 100%;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .buttons-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .signal-button-container {
    width: 160px;
    height: 160px;
    margin: 30px auto;
  }
}

@media (max-width: 480px) {
  .terminal-box {
    flex: 0 0 300px;
    height: 300px;
    max-width: 300px;
  }

  .terminal-content h1 {
    font-size: clamp(1.5rem, 3vw, 1.8em);
  }

  .terminal-box:first-child {
    width: min(280px, 85vw);
    height: min(280px, 85vw);
    min-width: min(280px, 85vw);
    min-height: min(280px, 85vw);
    max-width: min(280px, 85vw);
    max-height: min(280px, 85vw);
  }

  .typewriter-container {
    padding: 15px;
    max-height: calc(100% - 30px);
  }
}

.newsletter-popup {
  position: absolute;
  right: -220px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--container-bg);
  border: 4px solid var(--container-border);
  padding: 15px;
  border-radius: 10px;
  width: 200px;
  display: none;
  z-index: 100;
}

.newsletter-terminal:hover .newsletter-popup {
  display: block;
}

.newsletter-popup input[type="email"],
.newsletter-popup input[type="text"] {
  width: 100%;
  padding: 5px;
  margin-bottom: 8px;
  background: #000;
  border: 1px solid #0f0;
  color: #0f0;
  font-family: monospace;
  font-size: 0.8rem;
}

.newsletter-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0f0;
  font-family: monospace;
  font-size: 0.8rem;
}

.subscribe-text {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f0;
  font-size: 1rem;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.newsletter-terminal:hover .subscribe-text {
  opacity: 0;
}
