:root {
  --primary-neon: #00f3ff;
  --secondary-neon: #bc13fe;
  --bg-dark: #050b14;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Enhanced Contrast Colors */
  --text-main: #f1f5f9;
  /* Brighter white/gray */
  --text-muted: #cbd5e1;
  /* Significantly lighter gray for better visibility */

  /* Mapping User CSS Variables to Dark Theme */
  --nav-font: "Inter", sans-serif;
  --heading-font: "Inter", sans-serif;
  --accent-color: var(--primary-neon);
  --contrast-color: #000;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* Enforce readability on Bootstrap utility classes */
.text-muted {
  color: var(--text-muted) !important;
}

.lead {
  color: var(--text-muted);
  font-weight: 400;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  /* Ensure headings are pure white */
}

.font-mono {
  font-family: "JetBrains Mono", monospace;
}

.text-neon {
  color: var(--primary-neon);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--primary-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Canvas Background */
#code-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
}

/*--------------------------------------------------------------
# Global Header (Adapted for Dark Theme)
--------------------------------------------------------------*/
.header {
  --background-color: rgba(5, 11, 20, 0.85);
  /* Slightly more opaque */
  --default-color: var(--text-main);
  --heading-color: #ffffff;
  --nav-color: var(--text-muted);
  --nav-hover-color: var(--primary-neon);
  --nav-dropdown-background-color: #0f172a;
  /* Lighter background for dropdowns */
  --nav-dropdown-color: var(--text-main);
  --nav-dropdown-hover-color: var(--primary-neon);
  --nav-mobile-background-color: #050b14;

  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s ease-in-out;
  z-index: 997;
  border-bottom: 1px solid var(--glass-border);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 48px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: var(--text-muted);
  /* Better visibility */
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(5, 11, 20, 0.9);
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.5);
  /* Darker shadow */
  border-bottom: 1px solid var(--primary-neon);
  /* Neon accent on scroll */
}

/* Glass layer */
.scrolled .header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu > ul > li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--text-main);
    /* Ensure main text color */
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    /* Slightly bolder */
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
    text-decoration: none;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu > ul > li > a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -5px;
    /* Adjusted for better spacing */
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
    box-shadow: 0 0 10px var(--primary-neon);
  }

  .navmenu a:hover:before,
  .navmenu li:hover > a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
    background-color: rgba(255, 255, 255, 0.05);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--heading-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
    border: none;
    background: transparent;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--text-main);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    text-decoration: none;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: rgba(0, 243, 255, 0.1);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--accent-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(5, 11, 20, 0.95);
    transition: 0.3s;
    backdrop-filter: blur(10px);
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer (Adapted for Dark Theme)
--------------------------------------------------------------*/
.footer {
  --background-color: #02060c;
  --default-color: var(--text-muted);
  --heading-color: #fff;

  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid var(--glass-border);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 20px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Neon Highlight for Logo in Footer */
.footer .footer-about .logo span .highlight {
  color: var(--primary-neon);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  font-size: 16px;
  color: var(--default-color);
  margin-right: 10px;
  transition: 0.3s;
  text-decoration: none;
}

.footer .social-links a:hover {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
  color: var(--heading-color);
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: var(--default-color);
  display: inline-block;
  line-height: 1;
  text-decoration: none;
  transition: 0.3s;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid var(--glass-border);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-visual-wrapper {
  position: relative;
}

.hero-visual-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--primary-neon);
  filter: blur(100px);
  opacity: 0.2;
  z-index: -1;
}

.glitch-text {
  position: relative;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-neon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 243, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-neon);
}

.comparison-table {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--surface-bg);
}

/* Base Table */
.comparison-table .table {
  margin: 0;
  width: 100%;
  color: var(--text-main);
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
}

/* Table Head */
.comparison-table thead th {
  background: var(--surface-muted);
  font-weight: 600;
  text-align: center;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--glass-border);
}

/* Cells */
.comparison-table th,
.comparison-table td {
  padding: 1rem;
  vertical-align: middle;
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: transparent;
}

.comparison-table tr th:last-child,
.comparison-table tr td:last-child {
  border-right: none;
}

.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child th {
  border-bottom: none;
}

/* Plan Header */
.comparison-table .plan-header {
  position: relative;
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--surface-bg);
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
}

/* Highlight Plan */
.comparison-table .highlight-plan {
  font-weight: 500;
  /* background: rgba(0, 243, 255, 0.06);
    border-left: 2px solid var(--primary-neon);
    border-right: 2px solid var(--primary-neon); */
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-neon);
  color: #000;
  font-size: 0.65rem;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 243, 255, 0.25);
}

/* Row Hover – Subtle */
@media (hover: hover) {
  .comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
  }
}

/* ============================
Animations
============================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.blink {
  animation: blink-animation 1.2s steps(2, start) infinite;
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

/* ============================
Neon Button – Refined
============================ */

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-neon);
  background: transparent;
  border: 1px solid var(--primary-neon);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.12);
  transition: all 0.25s ease;
}

.btn-glow:hover {
  background: var(--primary-neon);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.45);
}

.btn-outline-light {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-outline-light:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  color: var(--primary-neon);
  background: transparent;
  border: 1px solid var(--primary-neon);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.12);
  transition: all 0.25s ease;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .hero-section {
    text-align: center;
    padding-top: 120px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual-wrapper {
    margin-top: 3rem;
  }
}

/*--------------------------------------------------------------
# Services 2 Section - Dark Neon Theme
--------------------------------------------------------------*/
.services-2 {
  /* Using your dark background */
  background-color: var(--bg-dark);
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
  padding-top: 80px;
}

.services-2 .service-card {
  /* Glass effect background */
  background: var(--glass-bg);
  /* Subtle glass border */
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Subtle dark shadow */
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.services-2 .service-card:hover {
  transform: translateY(-8px);
  /* Neon Glow effect on hover */
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); /* Based on --primary-neon */
  border-color: var(--primary-neon);
}

.services-2 .service-card:hover .service-overlay {
  opacity: 1;
}

.services-2 .service-card:hover .service-image img {
  transform: scale(1.1);
}

/* Featured Card Styling */
.services-2 .service-card.featured {
  border: 1px solid var(--primary-neon);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
  transform: scale(1.02);
}

.services-2 .service-card.featured .service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  
  /* High contrast: Neon background, Dark text */
  background: var(--primary-neon);
  color: #000; 
  
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.services-2 .service-card .service-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  /* Add a border-bottom to separate image from glass content */
  border-bottom: 1px solid var(--glass-border);
}

.services-2 .service-card .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Image Overlay */
.services-2 .service-card .service-image .service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Dark overlay with slight neon tint */
  background: rgba(5, 11, 20, 0.7); 
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services-2 .service-card .service-image .service-overlay i {
  font-size: 48px;
  color: var(--primary-neon);
  text-shadow: 0 0 10px var(--primary-neon);
}

.services-2 .service-card .service-content {
  padding: 30px 25px;
}

.services-2 .service-card .service-content h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main); /* Bright White */
}

.services-2 .service-card .service-content p {
  color: var(--text-muted); /* Readable Light Gray */
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Link Styling */
.services-2 .service-card .service-content .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-neon);
  background: transparent;
  border: 1px solid var(--primary-neon);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.12);
  transition: all 0.25s ease;
}

.services-2 .service-card .service-content .service-link:hover {
  background: var(--primary-neon);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.45);
}

.services-2 .service-card .service-content .service-link i {
  margin-left: 5px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.services-2 .service-card .service-content .service-link:hover i {
  transform: translateX(3px);
}

/* CTA Button */
.services-2 .cta-btn {
  display: inline-block;
  background: var(--primary-neon);
  color: #000; /* Black text on neon for max contrast */
  padding: 15px 35px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.services-2 .cta-btn:hover {
  transform: translateY(-2px);
  background: var(--secondary-neon);
  color: #fff;
  box-shadow: 0 0 25px rgba(188, 19, 254, 0.6);
}

.services-2 .cta-btn i {
  transition: transform 0.3s ease;
}

.services-2 .cta-btn:hover i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .services-2 .service-card {
    margin-bottom: 20px;
  }

  .services-2 .service-card .service-content {
    padding: 20px;
  }

  .services-2 .service-card .service-content h4 {
    font-size: 20px;
  }

  .services-2 .cta-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
}

