/* ==========================================================================
   Nova Digital Studio - Core Engineering Design System & Stylesheet
   Architecture: Dark Luxury Cyber-Minimalism
   Domain: novadigitalstudio.pro | Directed by Nikhil Bapat
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core Palette */
  --bg-obsidian: #06080d;
  --bg-surface: #0d121f;
  --bg-surface-elevated: #121829;
  --bg-surface-hover: #162035;

  /* Primary Accents */
  --accent-cyan: #00f2fe;
  --accent-cyan-rgb: 0, 242, 254;
  --accent-violet: #7928ca;
  --accent-violet-rgb: 121, 40, 202;
  --signal-emerald: #10b981;
  --signal-emerald-rgb: 16, 185, 129;

  /* Borders & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 242, 254, 0.4);
  --border-hover: rgba(0, 242, 254, 0.2);
  --glass-bg: rgba(13, 18, 31, 0.72);
  --glass-bg-card: rgba(13, 18, 31, 0.85);
  --glass-blur: blur(16px);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevations & Glows */
  --glow-cyan: 0 0 35px rgba(0, 242, 254, 0.25);
  --glow-violet: 0 0 35px rgba(121, 40, 202, 0.25);
  --glow-subtle: 0 10px 30px -10px rgba(0, 242, 254, 0.15);
}

/* Reset & Root Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-obsidian);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Selection Color */
::selection {
  background: rgba(0, 242, 254, 0.3);
  color: #ffffff;
}

/* Typography Helpers */
.font-mono-code {
  font-family: var(--font-mono);
}

/* Cyber Grid Background */
.cyber-grid {
  background-size: 40px 40px;
  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);
}

.cyber-grid-radial {
  position: relative;
}

.cyber-grid-radial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0, 242, 254, 0.08) 0%, rgba(121, 40, 202, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
}

.glass-nav {
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav.header-scrolled {
  background: rgba(6, 8, 13, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.06);
}

/* Bento Card System */
.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.4), rgba(121, 40, 202, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 16px 40px -10px rgba(0, 242, 254, 0.12), 0 0 20px rgba(0, 242, 254, 0.06);
}

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

/* Glowing Neon Elements */
.glow-text-cyan {
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.glow-box-cyan {
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
}

.glow-pill-emerald {
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

/* Live Online Status Radar Pulse */
.status-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--signal-emerald);
  border-radius: 9999px;
  position: relative;
  z-index: 1;
}

.status-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.6);
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Button & Interactive Styles */
.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #06080d;
  transition: all 0.25s ease;
  position: relative;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-cyber-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.5);
  filter: brightness(1.08);
}

.btn-cyber-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.btn-cyber-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  transform: translateY(-2px);
}

/* Floating WhatsApp Widget */
.whatsapp-floating {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #0d121f;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: #ffffff;
}

.whatsapp-floating:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #10b981;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.4);
}

.whatsapp-icon-wrapper {
  width: 36px;
  height: 36px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  position: relative;
}

/* 3D Canvas Container */
#three-hero-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero Gradient Overlay */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 45%, transparent 20%, rgba(6, 8, 13, 0.85) 70%, var(--bg-obsidian) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Pill Transitions & Dynamic Switching Animation */
.kw-card-fade {
  animation: kwFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kwFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accordion Active Rotation */
.faq-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Mobile Nav Drawer */
#mobile-menu {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.3s ease;
}

#mobile-menu.hidden-menu {
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu.active-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Brand Logo Protective Constraints */
.brand-logo-frame {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06080d;
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
