/* QuantumSpider WHMCS Portal - Enhanced Theme with Animations */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --bg-panel: #15151a;
  --ink: #f4f1ea;
  --ink-dim: #a5a29a;
  --ink-faint: #5a5852;
  --accent: #ff3d2e;
  --accent-soft: rgba(255, 61, 46, 0.12);
  --border: rgba(244, 241, 234, 0.08);
}

/* GLOBAL OVERRIDES */
* { box-sizing: border-box !important; }

html {
  scroll-behavior: smooth;
  background: var(--bg) !important;
}

body {
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--ink) !important;
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 400;
}

body.primary-bg-color {
  background: var(--bg) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink) !important;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p, .card-text, .text-muted {
  color: var(--ink-dim) !important;
}

a {
  color: var(--accent) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ff5744 !important;
  text-decoration: none;
}

/* Navbar */
.navbar, .zeus-fixed {
  background: rgba(10, 10, 12, 0.95) !important;
  border-bottom: 1px solid rgba(244, 241, 234, 0.05) !important;
  backdrop-filter: blur(20px);
}

.navbar-brand, .zeus-fixed .navbar-brand {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--ink) !important;
}

.navbar-brand img {
  max-width: 50px;
  height: auto;
}

.nav-link {
  color: var(--ink-dim) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
}

/* Buttons */
.btn {
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0 !important;
  transition: all 0.2s ease;
  border: none !important;
  padding: 0.5rem 1.2rem !important;
}

.btn-primary, .btn-success {
  background: var(--accent) !important;
  color: white !important;
  border: 1px solid var(--accent) !important;
}

.btn-primary:hover, .btn-success:hover {
  background: #ff5744 !important;
  color: white !important;
  box-shadow: 0 0 20px rgba(255, 61, 46, 0.3) !important;
  border-color: #ff5744 !important;
}

.btn-secondary, .btn-light {
  background: rgba(21, 21, 26, 0.15) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(244, 241, 234, 0.05) !important;
}

.btn-secondary:hover, .btn-light:hover {
  background: rgba(21, 21, 26, 0.15) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.btn-outline-primary {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}

.btn-link {
  color: var(--accent) !important;
}

.btn-link:hover {
  color: #ff5744 !important;
}

.btn-block {
  width: 100% !important;
}

/* Cards */
.card {
  background: rgba(21, 21, 26, 0.15) !important;
  border: 1px solid rgba(244, 241, 234, 0.05) !important;
  border-radius: 0 !important;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 30px rgba(255, 61, 46, 0.15) !important;
  transform: translateY(-2px);
}

.card-title {
  font-family: 'Orbitron', sans-serif !important;
  color: var(--ink) !important;
  font-weight: 700;
}

.card-text {
  color: var(--ink-dim) !important;
}

.card-header {
  background: rgba(21, 21, 26, 0.15) !important;
  border-bottom: 1px solid rgba(244, 241, 234, 0.05) !important;
  color: var(--ink) !important;
}

.card-footer {
  background: rgba(21, 21, 26, 0.15) !important;
  border-top: 1px solid rgba(244, 241, 234, 0.05) !important;
}

/* Forms */
.form-control, .form-select, select, textarea {
  background: rgba(21, 21, 26, 0.15) !important;
  border: 1px solid rgba(244, 241, 234, 0.05) !important;
  color: var(--ink) !important;
  font-family: 'Orbitron', sans-serif !important;
}

.form-control:focus, select:focus, textarea:focus {
  background: rgba(21, 21, 26, 0.15) !important;
  border-color: var(--accent) !important;
  color: var(--ink) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 61, 46, 0.15) !important;
}

.form-control::placeholder {
  color: var(--ink-faint) !important;
}

.form-text {
  color: var(--ink-faint) !important;
}

/* Tables */
.table {
  color: var(--ink) !important;
  border-color: var(--border) !important;
}

.table thead th {
  background: rgba(21, 21, 26, 0.15) !important;
  border-bottom: 1px solid rgba(244, 241, 234, 0.05) !important;
  color: var(--ink) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.table tbody td {
  border-bottom: 1px solid rgba(244, 241, 234, 0.05) !important;
}

.table tbody tr:hover {
  background: rgba(21, 21, 26, 0.15) !important;
}

/* Alerts */
.alert {
  border-radius: 0 !important;
  border-left: 4px solid var(--accent) !important;
}

.alert-danger {
  background: rgba(255, 61, 46, 0.15) !important;
  border-left-color: var(--accent) !important;
  color: var(--ink) !important;
}

.alert-success {
  background: rgba(61, 255, 142, 0.1) !important;
  border-left-color: #3dff8e !important;
  color: var(--ink) !important;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1) !important;
  border-left-color: #ffc107 !important;
  color: var(--ink) !important;
}

.alert-info {
  background: rgba(0, 150, 255, 0.1) !important;
  border-left-color: #0096ff !important;
  color: var(--ink) !important;
}

/* Badges */
.badge {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 0 !important;
}

.badge-primary {
  background: var(--accent) !important;
  color: white !important;
}

.badge-success {
  background: #3dff8e !important;
  color: var(--bg) !important;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
}

.page-link {
  background: rgba(21, 21, 26, 0.15) !important;
  border: 1px solid rgba(244, 241, 234, 0.05) !important;
  color: var(--ink) !important;
}

.page-link:hover {
  background: rgba(21, 21, 26, 0.15) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.page-item.active .page-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}

/* Dropdowns */
.dropdown-menu {
  background: rgba(21, 21, 26, 0.15) !important;
  border: 1px solid rgba(244, 241, 234, 0.05) !important;
  border-radius: 0 !important;
}

.dropdown-item {
  color: var(--ink) !important;
  font-family: 'Orbitron', sans-serif !important;
}

.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(21, 21, 26, 0.15) !important;
  color: var(--accent) !important;
}

/* Modals */
.modal-content {
  background: rgba(21, 21, 26, 0.15) !important;
  border: 1px solid rgba(244, 241, 234, 0.05) !important;
  border-radius: 0 !important;
}

.modal-header {
  border-bottom: 1px solid rgba(244, 241, 234, 0.05) !important;
  background: rgba(21, 21, 26, 0.15) !important;
}

.modal-title {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 700;
  color: var(--ink) !important;
}

.modal-body {
  color: var(--ink) !important;
}

.close {
  color: var(--ink) !important;
  opacity: 0.7;
}

.close:hover {
  color: var(--accent) !important;
  opacity: 1;
}

/* Nav Pills */
.nav-pills .nav-link {
  color: var(--ink-dim) !important;
  border-radius: 0 !important;
}

.nav-pills .nav-link:hover {
  background: rgba(21, 21, 26, 0.15) !important;
  color: var(--accent) !important;
}

.nav-pills .nav-link.active {
  background: var(--accent) !important;
  color: white !important;
}

/* Breadcrumbs */
.breadcrumb {
  background: rgba(21, 21, 26, 0.15) !important;
  border: 1px solid rgba(244, 241, 234, 0.05) !important;
  padding: 1rem;
}

.breadcrumb-item {
  color: var(--ink-dim) !important;
}

.breadcrumb-item.active {
  color: var(--ink) !important;
}

.breadcrumb-item a {
  color: var(--accent) !important;
}

/* Sections */
section, .section {
  color: var(--ink) !important;
}

/* MAIN BODY MUST BE TRANSPARENT FOR CANVAS */
#main-body {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  position: relative !important;
  z-index: 1 !important;
  opacity: 1 !important;
}

/* PRIMARY CONTENT - MUST BE TRANSPARENT FOR WEB ANIMATION */
.primary-content {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 1 !important;
}

.container {
  max-width: 1200px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 1 !important;
}

/* Ensure all container elements are transparent */
#main-body > .container {
  position: relative !important;
  z-index: 10 !important;
  padding-top: 3rem !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 1 !important;
}

#main-body .row {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 1 !important;
}

#main-body [class*="col-"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 1 !important;
}

/* Sections - make transparent but visible */
section {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Cards - reduce opacity for transparency effect */
.card {
  background: rgba(21, 21, 26, 0.3) !important;
  border: 1px solid rgba(244, 241, 234, 0.1) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5744;
}

/* Utility Classes */
.primary-bg-color {
  background: var(--bg) !important;
}

.bg-light {
  background: rgba(21, 21, 26, 0.15) !important;
}

.bg-white {
  background: rgba(21, 21, 26, 0.15) !important;
}

.text-muted {
  color: var(--ink-faint) !important;
}

.text-dark {
  color: var(--ink) !important;
}

.border {
  border-color: var(--border) !important;
}

.hr {
  border-color: var(--border) !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 61, 46, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 61, 46, 0.5);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-down {
  animation: slideDown 0.6s ease-out;
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

/* Hero Section */
section[style*="padding: 6rem"] h1 {
  animation: slideDown 0.8s ease-out;
}

section[style*="padding: 6rem"] p {
  animation: slideDown 0.8s ease-out 0.1s backwards;
}

section[style*="padding: 6rem"] .btn {
  animation: slideDown 0.8s ease-out 0.2s backwards;
}

/* Product Cards Hover */
.product-card {
  animation: fadeIn 0.5s ease-out;
}

/* Domain Cards */
.domain-card {
  animation: fadeIn 0.5s ease-out;
}

/* Quick Links */
.quick-link {
  animation: fadeIn 0.5s ease-out;
}

/* Footer */
footer {
  background: rgba(21, 21, 26, 0.15) !important;
  border-top: 1px solid rgba(244, 241, 234, 0.05) !important;
  color: var(--ink) !important;
}

footer a {
  color: var(--ink-dim) !important;
}

footer a:hover {
  color: var(--accent) !important;
}

footer h6 {
  color: var(--ink) !important;
}

/* ===== CANVAS WEB ANIMATION ===== */
.hero-canvas {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.9 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
}

/* Ensure all content appears above canvas */
body {
  position: relative;
  z-index: 1;
}

#main-body {
  position: relative;
  z-index: 1;
}


/* ===== LOGO ANIMATIONS ===== */
@keyframes legAppear {
  0% { opacity: 0; }
  1% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes coreGlow {
  0%, 100% { filter: drop-shadow(0 0 2px #ff3d2e) !important; }
  50% { filter: drop-shadow(0 0 6px #ff3d2e) !important; }
}

@keyframes textFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.brand-wordmark {
  display: flex;
  gap: 0;
  align-items: center;
}

.brand-wordmark span {
  display: inline-block;
  opacity: 0;
  animation: textFadeIn 0.3s ease-out forwards;
}

.brand-wordmark span:nth-child(1) { animation-delay: 3.85s; }
.brand-wordmark span:nth-child(2) { animation-delay: 4.05s; }
.brand-wordmark span:nth-child(3) { animation-delay: 4.25s; }
.brand-wordmark span:nth-child(4) { animation-delay: 4.45s; }
.brand-wordmark span:nth-child(5) { animation-delay: 4.65s; }
.brand-wordmark span:nth-child(6) { animation-delay: 4.85s; }
.brand-wordmark span:nth-child(7) { animation-delay: 5.05s; }
.brand-wordmark span:nth-child(8) { animation-delay: 5.25s; }
.brand-wordmark span:nth-child(9) { animation-delay: 5.45s; }
.brand-wordmark span:nth-child(10) { animation-delay: 5.65s; }
.brand-wordmark span:nth-child(11) { animation-delay: 5.85s; }
.brand-wordmark span:nth-child(12) { animation-delay: 6.05s; }

#q-logo-circle { opacity: 1 !important; }
#q-logo-leg1 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 0.05s !important; }
#q-logo-leg2 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 0.55s !important; }
#q-logo-leg3 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 1.05s !important; }
#q-logo-leg4 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 1.55s !important; }
#q-logo-leg5 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 2.05s !important; }
#q-logo-leg6 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 2.55s !important; }
#q-logo-leg7 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 3.05s !important; }
#q-logo-leg8 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 3.55s !important; }
#q-logo-core { animation: coreGlow 2.5s ease-in-out infinite !important; }

#footer-q-logo-leg1 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 0.05s !important; }
#footer-q-logo-leg2 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 0.55s !important; }
#footer-q-logo-leg3 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 1.05s !important; }
#footer-q-logo-leg4 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 1.55s !important; }
#footer-q-logo-leg5 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 2.05s !important; }
#footer-q-logo-leg6 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 2.55s !important; }
#footer-q-logo-leg7 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 3.05s !important; }
#footer-q-logo-leg8 { animation: legAppear 0.3s ease-out forwards !important; animation-delay: 3.55s !important; }
#footer-q-logo-core { animation: coreGlow 2.5s ease-in-out infinite !important; }

/* Print */
@media print {
  body { background: white !important; color: #000 !important; }
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  section[style*="padding: 6rem"] {
    padding: 3rem 1rem !important;
  }
}
