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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.jarvis-mini-logo {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-arc {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: rotate 2s linear infinite;
}

.mini-center {
  width: 12px;
  height: 12px;
  background: #00d4ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00d4ff;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00d4ff;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 255, 0, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ff00;
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.active {
  box-shadow: 0 0 10px #00ff00;
}

.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.jarvis-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.jarvis-display::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.svg-frame {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.svg-frame svg {
  position: absolute;
  transition: 0.5s;
  z-index: calc(1 - (0.2 * var(--j)));
  transform-origin: center;
  width: 344px;
  height: 344px;
  fill: none;
}

.svg-frame:hover svg {
  transform: rotate(-80deg) skew(30deg) translateX(calc(45px * var(--i)))
    translateY(calc(-35px * var(--i)));
}

.svg-frame svg #center {
  transition: 0.5s;
  transform-origin: center;
}

.svg-frame:hover svg #center {
  transform: rotate(-30deg) translateX(45px) translateY(-3px);
}

#out2 {
  animation: rotate16 7s ease-in-out infinite alternate;
  transform-origin: center;
}

#out3 {
  animation: rotate16 3s ease-in-out infinite alternate;
  transform-origin: center;
  stroke: #ff0;
}

#inner3,
#inner1 {
  animation: rotate16 4s ease-in-out infinite alternate;
  transform-origin: center;
}

#center1 {
  fill: #ff0;
  animation: rotate16 2s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes rotate16 {
  to {
    transform: rotate(360deg);
  }
}

.terminal-container {
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333333;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #2d2d2d;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #444444;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control-btn.close {
  background: #ff5f57;
}

.control-btn.minimize {
  background: #ffbd2e;
}

.control-btn.maximize {
  background: #28ca42;
}

.terminal-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.terminal-body {
  height: 400px;
  overflow-y: auto;
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Scrollbar Styling */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #ececec;
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .jarvis-avatar {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .container {
    padding: 0.5rem;
  }

  .terminal-body {
    height: 300px;
    font-size: 0.8rem;
  }
}

/* Ensure better fit on mid-sized screens */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .terminal-body {
    max-height: 50vh;
  }
  .jarvis-avatar {
    max-width: 150px;
    max-height: 150px;
  }
}

/* Prevent overflow on very small screens */
@media (max-width: 768px) {
  .terminal-body {
    max-height: 40vh;
  }
}

.footer {
  position: absolute;
  bottom: 20px;
  right: 30%;
  font-size: 0.85rem;
  color: #999;
}

.footer p {
  position: absolute;
  right: 30%;
}
