/* ==========================================================================
   CODEVYNEX ENTERPRISE DESIGN SYSTEM
   Ultra-Premium Glassmorphism & Cyber-Modern IT Aesthetics
   ========================================================================== */

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

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette - Dark Glass Deep Space */
  --bg-dark: #070B14;
  --bg-dark-surface: #0D1322;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(26, 38, 66, 0.75);

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(56, 189, 248, 0.35);
  --border-glass-purple: rgba(168, 85, 247, 0.35);

  /* Cyber Glow Accents */
  --cyan-primary: #00F0FF;
  --blue-vibrant: #2563EB;
  --indigo-deep: #4F46E5;
  --purple-glow: #A855F7;
  --pink-neon: #EC4899;
  --emerald-accent: #10B981;

  /* Text Colors */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Elevation Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --shadow-glow-indigo: 0 0 30px rgba(79, 70, 229, 0.4);
}

/* Light Mode Overrides (Dynamic switchable) */
[data-theme="light"] {
  --bg-dark: #F8FAFC;
  --bg-dark-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-glass: rgba(15, 23, 42, 0.08);
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #94A3B8;
  --shadow-glass: 0 8px 24px 0 rgba(15, 23, 42, 0.08);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image: 
    radial-gradient(at 15% 15%, rgba(0, 240, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 85% 25%, rgba(168, 85, 247, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(37, 99, 235, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070B14;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38BDF8;
}

/* ==========================================================================
   GLASSMORPHISM CORE COMPONENTS
   ========================================================================== */

.glass-nav {
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav nav a {
  white-space: nowrap;
}

.glass-nav.scrolled {
  background: rgba(7, 11, 20, 0.92);
  border-bottom-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 240, 255, 0.15);
}

.glass-input {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  width: 100%;
}

.glass-input:focus {
  outline: none;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  background: rgba(15, 23, 42, 0.85);
}

/* Gradient Text */
.gradient-text-cyan {
  background: linear-gradient(135deg, #FFFFFF 20%, #00F0FF 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #00F0FF 0%, #A855F7 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BUTTONS & MICRO-INTERACTIONS
   ========================================================================== */

.btn-cyber-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #070B14;
  background: linear-gradient(135deg, #00F0FF 0%, #38BDF8 50%, #2563EB 100%);
  border-radius: 0.75rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-cyber-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5);
  color: #000000;
}

.btn-cyber-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-cyber-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Glowing Border Pill Badge */
.glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #38BDF8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.glow-badge-purple {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #C084FC;
}

/* Animated Ambient Glow Blobs */
.ambient-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, rgba(0, 240, 255, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  animation: pulse-ambient 10s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(168, 85, 247, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  animation: pulse-ambient 14s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-ambient {
  0% {
    transform: scale(0.9) translate(0, 0);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.15) translate(40px, -30px);
    opacity: 0.9;
  }
}

/* ==========================================================================
   INTERACTIVE ELEMENTS: ACCORDION, TABS, TOASTS
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--cyan-primary);
}

/* Toast Alerts */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 300px;
  max-width: 450px;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 0.75rem;
  border-left: 4px solid var(--cyan-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease forwards;
  transition: all 0.3s ease;
}

.toast.success {
  border-left-color: #10B981;
}

.toast.error {
  border-left-color: #EF4444;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stat Counter */
.counter-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Quick Action Widget */
.floating-quick-action {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.floating-btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
}

.floating-btn-wa:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.floating-btn-call {
  background: linear-gradient(135deg, #00F0FF 0%, #2563EB 100%);
  color: #000000;
}

.floating-btn-call:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.4);
}

/* Interactive Calculator Styling */
.calc-option {
  cursor: pointer;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
  user-select: none;
}

.calc-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
}

.calc-option.selected {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Code Snippet Tabs */
.code-tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: 0.5rem;
  color: #94A3B8;
  transition: all 0.2s ease;
  cursor: pointer;
}

.code-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #00F0FF;
  border-bottom: 2px solid #00F0FF;
}

/* Brand Logo Styling */
.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.brand-logo-img:hover {
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5));
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Optimizations
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  .brand-logo-img {
    height: 40px;
  }

  /* Responsive floating buttons on mobile */
  .fixed.bottom-6.right-6 {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  /* Glass card mobile padding */
  .glass-card {
    padding: 1.25rem !important;
  }

  /* Responsive mega footer padding */
  footer {
    padding-top: 3rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Lightbox max dimensions */
  #lightbox-img {
    max-width: 95vw !important;
    max-height: 75vh !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem !important;
  }

  .brand-logo-img {
    height: 36px;
  }

  .btn-cyber-primary, .btn-cyber-outline, .btn-cyber-secondary {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.75rem !important;
  }
}


