/* ===== CAVE DARK THEME – COMPLETE CSS ===== */
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* Base */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0c10;
  color: #d1d5db;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 { color: #ffffff; }
.font-display { font-family: 'Plus Jakarta Sans', sans-serif; }
.text-cave-accent { color: #00c9a7; }
.text-cave-text-muted { color: #9ca3af; }
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Layout & Spacing */
.max-w-4xl { max-width: 56rem; margin-left:auto; margin-right:auto; }
.max-w-7xl { max-width: 80rem; margin-left:auto; margin-right:auto; }
.max-w-md { max-width: 28rem; margin-left:auto; margin-right:auto; }
.max-w-6xl { max-width: 72rem; margin-left:auto; margin-right:auto; }
.px-4 { padding-left:1rem; padding-right:1rem; }
.py-20 { padding-top:5rem; padding-bottom:5rem; }
.p-4 { padding:1rem; }
.p-8 { padding:2rem; }
.mb-2 { margin-bottom:0.5rem; }
.mb-4 { margin-bottom:1rem; }
.mb-6 { margin-bottom:1.5rem; }
.mb-8 { margin-bottom:2rem; }
.mb-10 { margin-bottom:2.5rem; }
.mb-12 { margin-bottom:3rem; }
.mt-2 { margin-top:0.5rem; }
.mt-4 { margin-top:1rem; }
.mt-6 { margin-top:1.5rem; }
.mt-20 { margin-top:5rem; }
.my-4 { margin-top:1rem; margin-bottom:1rem; }
.space-y-4 > * + * { margin-top:1rem; }
.space-y-2 > * + * { margin-top:0.5rem; }
.space-x-8 > * + * { margin-left:2rem; }
.space-x-4 > * + * { margin-left:1rem; }

/* Flex & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }
.text-center { text-align: center; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:text-xl { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left:2rem; padding-right:2rem; }
}

/* Colors & Backgrounds */
.bg-cave-bg { background-color: #0a0c10; }
.bg-cave-surface { background-color: #13161c; }
.bg-cave-accent { background-color: #00c9a7; }
.bg-cave-accent-hover { background-color: #00e6c0; }
.bg-opacity-80 { background-color: rgba(10,12,16,0.8); }
.bg-black { background-color: #000; }
.bg-yellow-500\/20 { background-color: rgba(234,179,8,0.2); }
.bg-blue-500\/20 { background-color: rgba(59,130,246,0.2); }
.bg-green-500\/20 { background-color: rgba(34,197,94,0.2); }
.text-yellow-400 { color: #facc15; }
.text-blue-400 { color: #60a5fa; }
.text-green-400 { color: #4ade80; }
.border-cave-border { border-color: #1f2530; }
.border-cave-accent { border-color: #00c9a7; }
.hover\:border-cave-accent:hover { border-color: #00c9a7; }
.hover\:bg-cave-accent:hover { background-color: #00c9a7; }
.hover\:bg-cave-accent-hover:hover { background-color: #00e6c0; }
.hover\:text-cave-accent:hover { color: #00c9a7; }
.hover\:text-black:hover { color: #000000; }
.transition { transition: all 0.2s ease; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.block { display: block; }
.w-full { width: 100%; }
.h-16 { height: 4rem; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.inset-0 { top:0; right:0; bottom:0; left:0; }
.overflow-hidden { overflow: hidden; }
.min-h-screen { min-height: 100vh; }
.pt-16 { padding-top: 4rem; }
.py-3 { padding-top:0.75rem; padding-bottom:0.75rem; }
.px-6 { padding-left:1.5rem; padding-right:1.5rem; }
.px-8 { padding-left:2rem; padding-right:2rem; }
.py-2 { padding-top:0.5rem; padding-bottom:0.5rem; }
.px-4 { padding-left:1rem; padding-right:1rem; }
.p-3 { padding:0.75rem; }
.space-x-4 > * + * { margin-left:1rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-tight { line-height: 1.25; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
}
.btn-primary {
  background-color: #00c9a7;
  color: #000;
  border: none;
}
.btn-primary:hover { background-color: #00e6c0; }
.btn-outline {
  border: 1px solid #1f2530;
  color: #fff;
  background: transparent;
}
.btn-outline:hover { border-color: #00c9a7; }

/* Cards */
.card {
  background-color: #13161c;
  border: 1px solid #1f2530;
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: #00c9a7; }

/* Forms */
input, textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: #13161c;
  border: 1px solid #1f2530;
  border-radius: 0.5rem;
  color: #fff;
  font-family: inherit;
  outline: none;
}
input:focus, textarea:focus { border-color: #00c9a7; }
button { cursor: pointer; }

/* Header */
.header-scrolled { backdrop-filter: blur(8px); }

/* Mobile menu */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* Canvas */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}
.animate-slide-up {
  animation: fadeIn 0.8s ease 0.2s forwards;
  opacity: 0;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.status-open { background: rgba(234,179,8,0.2); color: #facc15; }
.status-in_progress { background: rgba(59,130,246,0.2); color: #60a5fa; }
.status-resolved { background: rgba(34,197,94,0.2); color: #4ade80; }

/* Footer */
footer a { color: #9ca3af; text-decoration: none; }
footer a:hover { color: #00c9a7; }

/* Responsive tweaks */
@media (max-width: 767px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-6 { padding-left:1.5rem; padding-right:1.5rem; }
}

/* ===== Cave ambiance overlay ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1200px 600px at 10% 18%, rgba(20,24,27,0.55), transparent 20%),
    radial-gradient(900px 500px at 90% 82%, rgba(6,10,12,0.6), transparent 18%),
    linear-gradient(180deg, rgba(4,6,8,0.6), rgba(0,0,0,0.95));
  background-blend-mode: screen, screen, multiply;
  filter: blur(18px) contrast(1.02);
}

/* subtle stone striations */
body::after{
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.01) 0 1px, transparent 1px 40px);
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* Accent glow animation for cave lighting */
@keyframes caveGlow {
  0% { text-shadow: 0 0 6px rgba(0,201,167,0.08), 0 0 18px rgba(0,201,167,0.02); }
  50% { text-shadow: 0 0 10px rgba(0,201,167,0.12), 0 0 30px rgba(0,201,167,0.04); }
  100% { text-shadow: 0 0 6px rgba(0,201,167,0.08), 0 0 18px rgba(0,201,167,0.02); }
}
.text-cave-accent { color: #00c9a7; animation: caveGlow 4s ease-in-out infinite; }

/* Slight vignette */
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}

/* Ensure hero content sits above background layers */
.relative.z-10 { z-index: 20; }

/* small utility for cave rocks on cards */
.card { box-shadow: 0 8px 30px rgba(2,6,10,0.6); }
