/* 
 * Cosmic Dark Theme Stylesheet - Based on DESIGN.md
 * Manik IT Consultancy
 */

:root {
  --color-void: #000000;
  --color-bone: #ffffff;
  --color-ash: #bdbdbd;
  --color-smoke: #9a9a9a;
  --color-plum-voltage: #8052ff;
  --color-amber-spark: #ffb829;
  --color-lichen: #15846e;
}

/* Global resets for pure black canvas */
html {
  background-color: var(--color-void) !important;
}
body {
  background-color: transparent !important;
  color: var(--color-bone) !important;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

/* Hide background images & iframe spline elements from pages */
div[style*="supabase.co/storage/v1/object/public/assets/assets"],
div[style*="background-image"],
.fixed.bg-cover,
.aura-background-component,
.spline-container,
iframe[src*="spline.design"] {
  background-image: none !important;
  display: none !important;
}

/* We want to make sure the background canvas is visible though, so let's allow background grids if they are gradients or empty */
.fixed.inset-0.opacity-20, .fixed.inset-0.opacity-10 {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0) !important;
  background-size: 24px 24px !important;
  display: block !important;
  pointer-events: none;
  z-index: -9;
}

/* Typography Overrides */
h1, h2, h3, .font-manrope, .font-playfair {
  font-family: 'Inter', sans-serif !important;
}

/* Display headlines */
h1 {
  font-weight: 200 !important;
  letter-spacing: -0.04em !important;
}

/* Section/card titles */
h2, h3, h4 {
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  color: var(--color-bone) !important;
}

/* Eyebrows / Kickers */
.text-xs.uppercase, 
.uppercase.text-sm,
.uppercase.text-xs {
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Muted / description text */
p, .text-white\/60, .text-white\/50, .text-white\/40, .text-white\/70 {
  color: var(--color-ash) !important;
}

/* Force dark scrolling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-void);
}
::-webkit-scrollbar-thumb {
  background: var(--color-plum-voltage);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9d75ff;
}

/* Logo styling */
#headerLogoContainer img,
#footerLogoContainer img {
  transition: opacity 0.3s ease;
}
#headerLogoContainer img:hover,
#footerLogoContainer img:hover {
  opacity: 0.8;
}

/* Navigation bar style */
nav .max-w-6xl {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}
nav a {
  color: var(--color-smoke) !important;
}
nav a:hover, nav a.text-blue-400 {
  color: var(--color-bone) !important;
  background-color: transparent !important;
}

/* Button & Pill Style Overrides */
a[href="#contact"],
a[href*="contact"],
a.bg-blue-500,
button[type="submit"],
a[style*="rgba(59, 130, 246"],
.inline-flex.items-center.justify-center.px-8.py-4,
.inline-flex.items-center.justify-center.px-5.py-2,
.inline-flex.items-center.justify-center.px-6.py-3 {
  border-radius: 24px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Primary Filled CTA style - Plum Voltage */
a[href="#services"],
a.bg-blue-500,
button[type="submit"],
a[href="#contact"].inline-flex,
a[href*="contact"].inline-flex {
  background: var(--color-plum-voltage) !important;
  color: var(--color-bone) !important;
  border: none !important;
}
a[href="#services"]:hover,
a.bg-blue-500:hover,
button[type="submit"]:hover,
a[href="#contact"].inline-flex:hover {
  background: #9066ff !important;
}

/* Secondary/Ghost Action style - Outline Bone */
a.border-white\/10,
a[href="about"].inline-flex,
a[href="works"].inline-flex,
a.border-blue-500\/20,
a[style*="rgba(59, 130, 246, 0.08)"] {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--color-bone) !important;
}
a.border-white\/10:hover,
a[href="about"].inline-flex:hover,
a[href="works"].inline-flex:hover,
a.border-blue-500\/20:hover {
  border-color: var(--color-bone) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Card Overrides (no elevation, hairline borders, rounded 24px) */
.border-white\/10,
.border-blue-500\/20,
.border-violet-500\/20,
div[style*="rgba(255, 255, 255, 0.03)"],
div[style*="rgba(255, 255, 255, 0.02)"],
div[style*="rgba(59, 130, 246, 0.12)"],
div[style*="rgba(139, 92, 246, 0.12)"],
div[style*="linear-gradient"] {
  background: rgba(255, 255, 255, 0.01) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Grid stack highlights hover */
div[style*="rgba(255, 255, 255, 0.02)"]:hover,
.hover\:border-blue-500\/30:hover {
  border-color: var(--color-plum-voltage) !important;
}

/* Text colors overrides for accents (Blue and Purple -> Plum Voltage and Amber Spark) */
.text-blue-400, .text-purple-400, .text-blue-500 {
  color: var(--color-plum-voltage) !important;
}
.text-amber-400, .text-yellow-400 {
  color: var(--color-amber-spark) !important;
}
.bg-blue-500\/10, .bg-purple-500\/10 {
  background: rgba(128, 82, 255, 0.1) !important;
  border-color: rgba(128, 82, 255, 0.2) !important;
}

/* Icons accents */
.text-green-400, .text-teal-400, .text-lichen {
  color: var(--color-lichen) !important;
}

/* Input Fields styling (Contact Form etc.) */
input, textarea, select {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  color: var(--color-bone) !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-plum-voltage) !important;
  outline: none !important;
}

/* Remove 3D glass backgrounds and overlays */
div[style*="radial-gradient(ellipse at 50% 30%"] {
  display: none !important;
}

/* Constellation Canvas styling */
#constellation-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  background-color: transparent !important;
}
