/* ============================================
   TinyRoomGames — Custom Styles
   ============================================ */

/* --- Hero --- */
.hero-bg {
  background: linear-gradient(
    135deg,
    #0a0a0f 0%,
    #0c1a2a 25%,
    #0a0a0f 50%,
    #0a1f1a 75%,
    #0a0a0f 100%
  );
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Primary Button --- */
.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

/* --- VoidCode Section (uses VoidCode's own aesthetic) --- */
.voidcode-section {
  background: #080a0f;
}

.voidcode-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.voidcode-title {
  background: linear-gradient(135deg, #00e5ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- VoidCode Terminal --- */
.voidcode-terminal {
  background: #0d1117;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-body {
  padding: 20px;
  line-height: 1.7;
}

.terminal-cursor {
  color: #00e5ff;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Servers Coming Soon --- */
.servers-coming-soon {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { border-color: rgba(6, 182, 212, 0.2); }
  50%      { border-color: rgba(6, 182, 212, 0.4); }
}

/* --- Cards --- */
.feature-card,
.project-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.1);
  border-color: rgba(34, 211, 238, 0.2);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Active Nav --- */
.nav-link.active {
  color: #22d3ee;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #1e2530;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a3340;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #1e2530 #0a0a0f;
}

/* --- Selection --- */
::selection {
  background: rgba(34, 211, 238, 0.25);
  color: #fff;
}
