* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.logo h1 {
  font-family: "Orbitron", monospace;
  font-size: 3rem;
  font-weight: 900;
  color: #00d4ff;
  text-shadow: 0 0 20px #00d4ff;
  letter-spacing: 3px;
}

.subtitle {
  font-size: 1.1rem;
  color: #888;
  font-style: italic;
}

/* Arc Reactor Animation */
.arc-reactor {
  position: relative;
  width: 80px;
  height: 80px;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #00d4ff 0%, #0099cc 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px #00d4ff;
  animation: pulse 2s infinite;
}

.ring {
  position: absolute;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
}

.ring-1 {
  width: 40px;
  height: 40px;
  animation: rotate 4s linear infinite;
}

.ring-2 {
  width: 60px;
  height: 60px;
  animation: rotate 6s linear infinite reverse;
}

.ring-3 {
  width: 80px;
  height: 80px;
  animation: rotate 8s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Status Panel */
.status-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.status-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-align: center;
}

.status-label {
  display: block;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 5px;
}

.status-value {
  font-size: 1.2rem;
  font-weight: 500;
  color: #00d4ff;
}

/* Chat Interface */
.chat-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  margin-bottom: 30px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 212, 255, 0.1);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.chat-header h3 {
  font-family: "Orbitron", monospace;
  color: #00d4ff;
}

.btn-clear {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid #ff4444;
  color: #ff4444;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear:hover {
  background: rgba(255, 0, 0, 0.3);
}

.chat-window {
  height: 300px;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 15px;
  animation: fadeIn 0.5s ease;
}

.message-content {
  margin-bottom: 5px;
}

.speaker {
  font-weight: 500;
  margin-right: 10px;
}

.jarvis-message .speaker {
  color: #00d4ff;
}

.user-message .speaker {
  color: #00ff88;
}

.timestamp {
  font-size: 0.8rem;
  color: #666;
}

.chat-input-container {
  display: flex;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  gap: 10px;
}

#chatInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 25px;
  padding: 10px 20px;
  color: white;
  font-size: 1rem;
}

#chatInput:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.btn-send,
.btn-voice {
  background: linear-gradient(45deg, #00d4ff, #0099cc);
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-send:hover,
.btn-voice:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-voice {
  padding: 10px 15px;
}

.btn-voice.listening {
  background: linear-gradient(45deg, #ff4444, #cc0000);
  animation: pulse 1s infinite;
}

/* Features Panel */
.features-panel {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 20px;
  margin-bottom: 30px;
}

.features-panel h3 {
  font-family: "Orbitron", monospace;
  color: #00d4ff;
  margin-bottom: 20px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #00d4ff;
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature-name {
  font-weight: 500;
  color: #00d4ff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.tech-stack {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tech {
  background: rgba(0, 212, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo h1 {
    font-size: 2rem;
  }

  .arc-reactor {
    width: 60px;
    height: 60px;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

  .chat-window {
    height: 250px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-stack {
    flex-direction: column;
    align-items: center;
  }
}

/* Scrollbar Styling */
.chat-window::-webkit-scrollbar {
  width: 8px;
}

.chat-window::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.chat-window::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 4px;
}

.chat-window::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}
