/* src/index.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #e2e8f0;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  min-height: 100vh;
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

.background-animation {
  position: fixed;
  z-index: -1;
  overflow: hidden;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.floating-orb {
  position: absolute;
  animation: float 20s ease-in-out infinite;
  background: radial-gradient(circle at 30% 30%, #3b82f64d, #3b82f61a);
  border-radius: 50%;
}

.orb-1 {
  animation-delay: 0s;
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.orb-2 {
  animation-delay: 5s;
  background: radial-gradient(circle at 30% 30%, #a855f733, #a855f70d);
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 10%;
}

.orb-3 {
  animation-delay: 10s;
  background: radial-gradient(circle at 30% 30%, #22c55e26, #22c55e0d);
  width: 250px;
  height: 250px;
  top: 50%;
  left: -100px;
}

@keyframes float {
  0%, 100% {
    transform: translate(0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

.grid-pattern {
  position: absolute;
  pointer-events: none;
  background-image: linear-gradient(0deg, #94a3b80d 1px, #0000 1px), linear-gradient(90deg, #94a3b80d 1px, #0000 1px);
  background-size: 50px 50px;
  width: 100%;
  height: 100%;
}

.container {
  position: relative;
  z-index: 1;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  min-height: 100vh;
  padding: 5px;
}

.header {
  text-align: center;
  animation: slideDown .8s ease-out;
}

.logo {
  background: linear-gradient(135deg, #3b82f6, #a855f7, #22c55e);
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  text-shadow: 0 0 30px #3b82f64d;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 10px;
  font-size: 4rem;
  font-weight: 900;
}

.tagline {
  color: #94a3b8;
  letter-spacing: 2px;
  font-size: 1.3rem;
  font-weight: 300;
}

.subtitle {
  color: #64748b;
  margin-top: 15px;
  font-size: .95rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  animation: fadeIn 1s ease-out .3s both;
  gap: 25px;
  width: 100%;
  max-width: 900px;
}

.card {
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #1e293bb3;
  border: 1px solid #94a3b833;
  border-radius: 12px;
  padding: 30px;
  transition: all .3s;
}

.card:before {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, #0000, #ffffff1a, #0000);
  width: 100%;
  height: 100%;
  transition: left .5s;
  top: 0;
  left: -100%;
}

.card:hover:before {
  left: 100%;
}

.card:hover {
  border-color: #94a3b866;
  transform: translateY(-8px);
  box-shadow: 0 20px 50px #3b82f633;
}

.card-icon {
  margin-bottom: 15px;
  font-size: 2.5rem;
}

.card-title {
  color: #f1f5f9;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-text {
  color: #cbd5e1;
  font-size: .95rem;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.actions {
  display: flex;
  animation: fadeIn 1s ease-out .6s both;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.btn {
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  transition: all .3s;
  font-size: 1rem;
  font-weight: 600;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 30px #3b82f64d;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px #3b82f666;
}

.btn-secondary {
  color: #e2e8f0;
  background: #94a3b81a;
  border: 1px solid #94a3b84d;
}

.btn-secondary:hover {
  background: #94a3b833;
  border-color: #94a3b880;
}

.stats {
  display: flex;
  animation: fadeIn 1s ease-out .5s both;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 2rem;
  font-weight: 900;
}

.stat-label {
  color: #94a3b8;
  letter-spacing: 1px;
  margin-top: 5px;
  font-size: .85rem;
}

.footer {
  position: absolute;
  text-align: center;
  color: #64748b;
  animation: fadeIn 1s ease-out .8s both;
  font-size: .85rem;
  bottom: 20px;
}

.footer a {
  color: #3b82f6;
  text-decoration: none;
  transition: color .3s;
}

.footer a:hover {
  color: #60a5fa;
}

.terminal {
  position: relative;
  display: flex;
  width: 90%;
  max-width: 1240px;
  height: 600px;
  margin: 30px 0 45px;
  padding: 0;
  font-family: Monaco, Menlo, Courier New, monospace;
  font-size: .9rem;
}

.terminal-container {
  color: #22c55e;
  position: relative;
  z-index: 2;
  display: flex;
  overflow: hidden;
  opacity: 1;
  position: relative;
  background: #0f172af2;
  border: 1px solid #3b82f640;
  border-radius: 12px;
  flex-direction: column;
  flex-grow: 1;
  padding: 0;
  box-shadow: 0 0 50px #3b82f633, inset 0 0 50px #3b82f61a;
}

.terminal-header {
  position: relative;
  display: flex;
  background: linear-gradient(90deg, #1e293be6, #3b82f60d);
  border-bottom: 1px solid #3b82f64d;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  height: 35px;
  padding: 0 15px;
}

.terminal-button {
  cursor: pointer;
  z-index: 1;
  background: #94a3b8;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  transition: all .2s;
}

.terminal-button:hover {
  transform: scale(1.15);
}

.terminal-button.red {
  animation: characterBlink 2s infinite;
  position: relative;
  overflow: hidden;
  background: #ff006e;
  font-weight: bold;
}

.terminal-button.yellow {
  background: #eab308;
}

.terminal-button.green {
  background: #22c55e;
}

.terminal-content {
  overflow-y: auto;
  position: relative;
  background: #0a0f1e80;
  flex: 1;
  padding: 10px;
}

.terminal-content::-webkit-scrollbar {
  width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
  background: #3b82f60d;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #3b82f64d;
  border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: #3b82f680;
}

.terminal-header-text, .terminal-header-game-text {
  text-align: center;
  font-size: clamp(.01rem, 1vw, .9rem);
  font-weight: bold;
  line-height: .9 !important;
}

.terminal-header-welcome-text {
  text-align: center;
  font-size: clamp(.5rem, 1vw, .9rem);
}

.terminal-header-top {
  margin-bottom: -.33rem;
}

.terminal-header-bottom {
  margin-top: .45rem;
}

.terminal-title {
  display: flex;
  position: absolute;
  color: #94a3b8;
  letter-spacing: .5px;
  flex: 1;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 100%;
  padding-top: .25rem;
  font-weight: 600;
  top: 0;
  left: 0;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.terminal-prompt {
  color: #3b82f6;
  font-weight: bold;
}

.terminal-accent {
  color: #a855f7;
  font-weight: bold;
}

.clickable-command {
  color: #3b82f6;
  cursor: pointer;
  text-decoration: underline;
  transition: all .2s;
}

.clickable-command:hover {
  color: #60a5fa;
  text-shadow: 0 0 5px #3b82f680;
}

.clickable-command:active {
  color: #1d4ed8;
  transform: scale(.98);
}

.terminal-input-line {
  display: flex;
  background: #0a0f1e80;
  border-top: 1px solid #3b82f633;
  flex-shrink: 0;
  align-items:  flex-start;
  gap: 5px;
  padding: 15px;
}

.terminal-input {
  color: #22c55e;
  outline: none;
  caret-color: #22c55e;
  background: none;
  border: none;
  flex: 1;
  margin: 0;
  padding: 0;
  font-family: Monaco, Menlo, Courier New, monospace;
  font-size: .9rem;
}

.cursor {
  display: none;
}

@keyframes blink {
  0%, 49%, 100% {
    opacity: 1;
  }

  50%, 99% {
    opacity: 0;
  }
}

.glow-btn {
  position: relative;
  color: #3b82f6;
  cursor: pointer;
  background: #3b82f61a;
  border: 1px solid #3b82f680;
  border-radius: 8px;
  padding: 12px 30px;
  transition: all .3s;
  font-size: 1rem;
  font-weight: 600;
}

.glow-btn:hover {
  background: #3b82f633;
  transform: scale(1.05);
  box-shadow: 0 0 20px #3b82f680;
}

@media (max-width: 768px) {
  .logo {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 20px;
  }

  .actions {
    flex-direction: column;
    align-items:  center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .terminal {
    width: 95%;
    max-width: 100%;
    height: 500px;
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .terminal {
    width: 98%;
    height: 450px;
    max-height: 65vh;
    margin: 20px 0 30px;
  }

  .terminal-header {
    height: 30px;
    padding: 0 10px;
  }

  .terminal-input-line {
    padding: 10px;
  }

  .terminal-header-text {
    font-size: clamp(.1rem, .98vw, .9rem);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

.cube-top {
  position: relative;
}

.cube-top:after {
  content: "";
  position: absolute;
  background: #22c55e;
  width: .6em;
  height: .5px;
  top: 0;
  left: -.25rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

@keyframes characterBlink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .6;
  }
}
