/* ============================
   Bitnexo - Main Stylesheet v2
   Premium Dark Glassmorphism
   ============================ */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #060610;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #3b82f6);
  border-radius: 10px;
}

/* ---- Selection ---- */
::selection {
  background: rgba(6, 182, 212, 0.25);
  color: #fff;
}

/* ---- Glassmorphism Cards ---- */
.glass-card {
  background: rgba(12, 20, 32, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.08);
  transform: translateY(-4px);
}

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.3), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.btn-outline-glow {
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #06b6d4;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.btn-outline-glow:hover {
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.7);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ---- Neon Glow Text ---- */
.neon-glow {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 60px rgba(6, 182, 212, 0.1);
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section Heading ---- */
.section-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-divider {
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border-radius: 999px;
  margin: 1rem auto 0;
}

/* ---- Particles Container ---- */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Floating Animations ---- */
@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes floatRotate {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

.float-element {
  animation: floatY 6s ease-in-out infinite;
}

.float-element-delayed {
  animation: floatY 8s ease-in-out 2s infinite;
}

/* ---- Counter ---- */
.counter {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ---- Navigation ---- */
#main-nav {
  background: rgba(6, 6, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.35s ease;
}

#main-nav.scrolled {
  background: rgba(6, 6, 16, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(6, 182, 212, 0.08);
}

.nav-link {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border-radius: 1px;
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #06b6d4;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---- Mobile Menu ---- */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

.mobile-link {
  color: rgba(226, 232, 240, 0.75);
  padding: 0.75rem 1.5rem;
  display: block;
  transition: all 0.2s;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.mobile-link:hover,
.mobile-link.active {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.06);
}

/* ---- Footer ---- */
footer {
  background: rgba(6, 6, 16, 0.9);
  backdrop-filter: blur(12px);
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
  display: inline-block;
}

.footer-link:hover {
  color: #06b6d4;
  transform: translateX(3px);
}

/* ---- Flash Messages ---- */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.flash-message {
  animation: slideInRight 0.4s ease-out;
}

.flash-message.dismiss {
  animation: fadeOut 0.3s ease forwards;
}

/* ---- FAQ Accordion ---- */
details summary::-webkit-details-marker {
  display: none;
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary .faq-chevron {
  transition: transform 0.3s ease;
}

details[open] summary .faq-chevron {
  transform: rotate(180deg);
}

/* ---- Service Card ---- */
.service-card {
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card .service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.12);
  margin: 0 auto 1.25rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

/* ---- Product Card ---- */
.product-card {
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
  transform: translateY(-5px);
}

/* ---- Pricing Card ---- */
.pricing-card {
  transition: all 0.35s;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-popular {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.1);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Testimonial ---- */
.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

/* ---- Blog Card ---- */
.blog-card {
  transition: all 0.35s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-category-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

/* ---- Legal Page ---- */
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: #94a3b8;
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.legal-content ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.35rem;
  line-height: 1.75;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
}

/* ---- Form Inputs ---- */
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-input:focus {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.8);
  margin-bottom: 0.4rem;
}

/* ---- Stat Card ---- */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 6rem 0 3rem;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.6);
}

.page-hero .breadcrumb a {
  color: #06b6d4;
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- Checkout / Payment ---- */
.checkout-card {
  background: rgba(12, 20, 32, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
}

/* ---- Page Loader ---- */
.page-loader {
  position: fixed;
  inset: 0;
  background: #060610;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(6, 182, 212, 0.15);
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .glass-card {
    border-radius: 1rem;
  }

  .page-hero {
    padding: 5rem 0 2rem;
  }
}