@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Spline+Sans:wght@400;500;600&display=swap');

:root {
  --deck-bg: #07110f;
  --deck-panel: rgba(10, 24, 22, 0.66);
  --deck-panel-strong: rgba(12, 33, 30, 0.82);
  --deck-border: rgba(174, 242, 214, 0.16);
  --deck-line: rgba(94, 234, 212, 0.32);
  --deck-text: #e8fff7;
  --deck-muted: #9bbdb2;
  --deck-accent: #f4b860;
  --deck-green: #62f0a7;
  --deck-cyan: #50d9ff;
}

body {
  font-family: 'Spline Sans', sans-serif !important;
  background:
    radial-gradient(circle at 10% 5%, rgba(244, 184, 96, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(80, 217, 255, 0.16), transparent 30rem),
    linear-gradient(135deg, #07110f 0%, #0c1c1c 48%, #111827 100%) !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

h1, h2, h3, .font-bold, .font-semibold {
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: -0.02em;
}

#page_container, main {
  animation: deckRise 520ms ease-out both;
}

@keyframes deckRise {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.service-card, .bookmark-card, [class*='service'] a, [class*='bookmark'] a {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-card:hover, .bookmark-card:hover, [class*='service'] a:hover, [class*='bookmark'] a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32), 0 0 0 1px var(--deck-line) inset;
}

.rounded-md, .rounded-xl, .rounded-2xl, [class*='rounded'] {
  border-color: var(--deck-border) !important;
}

.bg-theme-800\/50,
.bg-theme-900\/50,
.dark\:bg-theme-800\/50,
.dark\:bg-theme-900\/50 {
  background: linear-gradient(145deg, var(--deck-panel-strong), rgba(2, 6, 23, 0.62)) !important;
  border: 1px solid var(--deck-border) !important;
  backdrop-filter: blur(16px) saturate(130%);
}

.text-theme-500,
.text-theme-400 {
  color: var(--deck-muted) !important;
}

.tab, button, input {
  font-family: 'Spline Sans', sans-serif !important;
}

input[type='text'], input[type='search'] {
  background: rgba(2, 8, 12, 0.62) !important;
  border: 1px solid rgba(80, 217, 255, 0.22) !important;
  box-shadow: 0 0 28px rgba(80, 217, 255, 0.08);
}

img[src*='logo'], .service img, .bookmark img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #07110f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--deck-accent), var(--deck-cyan));
  border: 3px solid #07110f;
  border-radius: 999px;
}

@media (max-width: 768px) {
  body::before { background-size: 30px 30px; }
  #page_container, main { padding-inline: 0.65rem !important; }
}
