/* ==========================================================================
   EMTINA STUDIO - Ultra Modern Dark-Tech Stylesheet
   ========================================================================== */

:root {
  --bg-obsidian: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #222226;
  --cyan-neon: #06b6d4;
  --purple-neon: #8b5cf6;
  --cyan-glow: rgba(6, 182, 212, 0.45);
  --purple-glow: rgba(139, 92, 246, 0.45);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-obsidian);
  color: #f4f4f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  selection-background-color: #06b6d4;
  selection-color: #ffffff;
}

::selection {
  background: rgba(6, 182, 212, 0.35);
  color: #38bdf8;
}

/* Headings font */
h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Cyber Circuit Background Grid */
.cyber-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cyber-dots-bg {
  background-image: radial-gradient(rgba(6, 182, 212, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Neon Glow Utilities */
.neon-glow-logo {
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.6)) drop-shadow(0 0 20px rgba(139, 92, 246, 0.35));
  transition: filter 0.3s ease;
}
.neon-glow-logo:hover {
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.85)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
}

.text-glow-cyan {
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.6), 0 0 24px rgba(6, 182, 212, 0.3);
}

.text-glow-purple {
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.6), 0 0 24px rgba(139, 92, 246, 0.3);
}

.box-glow-cyan {
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.35);
}

.box-glow-purple {
  box-shadow: 0 0 25px -5px rgba(139, 92, 246, 0.35);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s ease;
}
.glass-panel-hover:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Gradient Borders */
.gradient-border-card {
  position: relative;
  background: #18181b;
  border-radius: 1rem;
}
.gradient-border-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(139, 92, 246, 0.2), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Spotlight Card Effect */
.spotlight-card {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(6, 182, 212, 0.12),
    rgba(139, 92, 246, 0.06) 40%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* Ambient Glow Orbs */
.ambient-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: floatOrb2 15s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-60px, -50px) scale(0.95); }
  100% { transform: translate(50px, -30px) scale(1.1); }
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  background-color: #06b6d4;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* Pulsing Badge Dot */
.pulse-dot {
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #06b6d4;
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes pulsePing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Range input styling for Estimator */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #27272a;
  height: 6px;
  border-radius: 4px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #06b6d4;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Floating animation */
@keyframes softFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-soft-float {
  animation: softFloat 4s ease-in-out infinite;
}

/* Cyber Button Styles */
.btn-cyber-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-cyber-primary:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6), 0 0 35px rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.btn-cyber-outline {
  border: 1px solid rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.05);
  color: #38bdf8;
  transition: all 0.3s ease;
}
.btn-cyber-outline:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}
