/* New Hero Visual - Code Window */
.code-window {
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: 'Fira Code', monospace; 
  position: relative;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  width: 100%;
  max-width: 500px; /* Prevent it from getting too wide */
  margin: 0 auto;
}

.hero:hover .code-window {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
  background: #1a1d24;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.dots { display: flex; gap: 8px; margin-right: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title { color: var(--text-muted); font-size: 0.8rem; }

.window-body {
  padding: 24px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto; /* Allow scrolling if code is too long */
}

/* On mobile, adjust font size and padding */
@media (max-width: 600px) {
  .window-body {
    font-size: 12px;
    padding: 16px;
  }
}

.line { display: block; white-space: pre; }
.indent { padding-left: 20px; }

/* Syntax Highlighting */
.keyword { color: #c678dd; } /* Purple */
.variable { color: #e5c07b; } /* Yellow/Gold */
.string { color: #98c379; }   /* Green */
.comment { color: #5c6370; font-style: italic; }
.function { color: #61afef; } /* Blue */
.property { color: #e06c75; } /* Red */
.num { color: #d19a66; }      /* Orange */

/* Floating Badge */
.hero-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-icon {
  width: 36px;
  height: 36px;
  background: var(--success);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.badge-text strong { display: block; font-size: 0.9rem; color: #fff; line-height: 1.2; }
.badge-text span { font-size: 0.75rem; color: var(--text-muted); }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Login Link */
.login-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.login-link:hover { color: #fff; }
.login-link i { font-size: 1.1rem; }

@media (max-width: 900px) {
  .code-window {
    transform: none;
    margin-top: 1rem;
    max-width: 100%;
  }
  .hero-badge {
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    gap: 10px;
  }
  .badge-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .badge-text strong { font-size: 0.85rem; }
  .badge-text span { font-size: 0.7rem; }
}

@media (max-width: 600px) {
  .code-window {
    border-radius: var(--radius-md);
  }
  .window-body {
    font-size: 11px;
    padding: 14px;
    line-height: 1.5;
  }
  .window-header {
    padding: 10px 12px;
  }
  .dots { gap: 6px; margin-right: 10px; }
  .dot { width: 8px; height: 8px; }
  .window-title { font-size: 0.7rem; }
  .indent { padding-left: 14px; }

  .hero-badge {
    right: 8px;
    bottom: 8px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 6px;
  }
  .badge-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .badge-text strong { font-size: 0.75rem; }
  .badge-text span { font-size: 0.65rem; }
}
