/* ============================================
   BEYOND BEACON - ENHANCED STYLESHEET
   Professional, Minimalistic, Elegant & Futuristic
   ============================================ */

/* ========== CSS VARIABLES - STANDARDIZED COLORS ========== */
:root {
  /* Primary Brand Colors */
  --primary-red: #FF0000;
  --primary-red-dark: #C22727;
  --primary-red-darker: #BB0600;
  --secondary-red: #920008;
  --accent-red: #990001;
  
  /* Neutral Colors */
  --black: #000000;
  --dark-grey: #131313;
  --grey-900: #1a1a1a;
  --grey-800: #2a2a2a;
  --grey-700: #3a3a3a;
  --white: #FFFFFF;
  --white-soft: #F5F5F5;
  
  /* Background Colors */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(26, 26, 26, 0.8);
  --bg-card-hover: rgba(42, 42, 42, 0.9);
  
  /* Typography - Professional Sans Fonts */
  --font-heading: 'DM Sans', 'Open Sans', 'Roboto', 'Circular Std', 'Liberation Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', 'Open Sans', 'Roboto', 'Circular Std', 'Liberation Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========== FONT IMPORTS ========== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400;1,9..40,500;1,9..40,600&family=Open+Sans:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Roboto:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

/* ========== GLOBAL RESET & DEFAULTS ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600; /* Semi-Bold max */
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--primary-red);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h5 { font-size: clamp(1.1rem, 2vw, 1.25rem); font-weight: 500; }
h6 { font-size: clamp(1rem, 1.5vw, 1.1rem); font-weight: 500; }

p, li, a, .btn, button, form, .dropdown-item, span {
  font-family: var(--font-body);
  font-weight: 400; /* Normal */
  line-height: 1.6;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--white-soft);
}

a {
  text-decoration: none !important;
  transition: var(--transition-normal);
  color: inherit;
}

/* ========== BACKGROUND LAYERS ========== */
.gif-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./assets/images/backgrounds/BackgroundGif8.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -5;
  filter: opacity(100%) grayscale(100%) brightness(0.25);
  mix-blend-mode: multiply;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.6;
}

/* ========== NAVBAR ENHANCEMENTS ========== */
.navbar {
  font-weight: 500;
  padding: var(--spacing-sm) 0;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.5) !important; /* More transparent */
  transition: var(--transition-normal);
  border-bottom: 1px solid rgba(255, 0, 0, 0.1);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.15); /* Subtle red glow */
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
}

.navbar .nav-link {
  color: var(--primary-red) !important;
  padding: 0.5rem 1rem !important;
  font-family: var(--font-body);
  font-weight: 500;
  position: relative;
  transition: var(--transition-normal);
  text-decoration: none !important;
}

/* Thin underline on hover for all nav links - same as Products */
/* Regular nav links (like Products) - use ::after for underline */
.navbar .nav-item:not(.dropdown) .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--primary-red);
  transition: var(--transition-normal);
  transform: translateX(-50%);
  display: block;
}

/* Dropdown toggles - use ::before for underline (since ::after is used for Bootstrap arrow) */
/* Make sure ::before is NOT hidden for dropdown items */
.navbar .nav-item.dropdown .nav-link::before {
  content: '' !important;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--primary-red);
  transition: var(--transition-normal);
  transform: translateX(-50%);
  display: block !important;
  z-index: 1;
}

/* Only hide ::before for non-dropdown items */
.navbar .nav-item:not(.dropdown) .nav-link::before {
  display: none !important;
}

.navbar .nav-link:hover {
  color: var(--white) !important;
}

/* Show underline on hover for regular links */
.navbar .nav-item:not(.dropdown) .nav-link:hover::after {
  width: 80%;
}

/* Show underline on hover for dropdown toggles */
.navbar .nav-item.dropdown .nav-link:hover::before {
  width: 80%;
}

/* For dropdown toggles - keep Bootstrap's arrow (uses ::after) */
.navbar .dropdown-toggle::after {
  display: inline-block !important;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  color: var(--primary-red);
  transition: var(--transition-normal);
  position: relative;
  z-index: 2;
  margin-top: 0;
  border-width: 0.3em 0.3em 0 0.3em;
}

.navbar .dropdown-toggle:hover::after {
  color: var(--white);
}

/* Completely remove any unwanted ::after styling on dropdown nav-links */
.navbar .nav-item.dropdown .nav-link::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  border: none !important;
}

/* Remove any border-bottom that might create dashes */
.navbar .nav-item .nav-link {
  border-bottom: none !important;
  text-decoration: none !important;
}

/* Dropdown Menu - Fixed */
.dropdown-menu {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(255, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  padding: 0.25rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
  z-index: 1051 !important;
}

.dropdown-menu .dropdown-item {
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  border-radius: 0;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  cursor: pointer;
  display: block;
  position: relative;
  z-index: 1052;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--primary-red) !important;
  color: var(--white) !important;
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus {
  background-color: var(--primary-red) !important;
  color: var(--white) !important;
}

/* Fix z-index for dropdown */
.navbar .dropdown {
  position: relative;
  z-index: 1050;
}

.navbar .dropdown-toggle {
  z-index: 1050;
}

/* Ensure dropdown items don't have unwanted underlines */
.navbar .dropdown-item::after {
  display: none !important;
}

/* Prevent any border-bottom or text-decoration on nav items */
.navbar .nav-item {
  border-bottom: none !important;
}

.navbar .nav-item .nav-link {
  border-bottom: none !important;
  text-decoration: none !important;
}

/* ========== HAMBURGER MENU (NAVBAR TOGGLER) ========== */
.navbar-toggler {
  border: 2px solid var(--white) !important;
  padding: 0.25rem 0.5rem;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5em;
  height: 1.5em;
}

/* ========== NEUMORPHIC CARD STYLES ========== */
.card-glass,
.card-neu,
.product-card,
.service-block,
.product-block,
.testimonial {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 4px;
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-glass:hover,
.card-neu:hover,
.product-card:hover,
.service-block:hover,
.product-block:hover,
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 0, 0, 0.3);
}

.card-glass .card-body,
.card-neu .card-body {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: var(--spacing-md);
  background: rgba(26, 26, 26, 0.5);
  transition: var(--transition-normal);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1); /* Subtle red glow */
}

.card-glass .card-body:hover,
.card-neu .card-body:hover {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2); /* Enhanced glow on hover */
}

/* ========== BUTTON STYLES - FIXED ========== */
.white-button,
.red-button,
.black-button {
  display: inline-block;
  text-decoration: none !important;
  border: 2px solid !important;
  border-radius: 4px !important;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s ease;
  position: relative;
  text-align: center;
  cursor: pointer;
  line-height: 1.5;
}

.white-button {
  border-color: var(--white) !important;
  color: var(--white) !important;
  background-color: transparent !important;
}

.white-button:hover {
  border-color: var(--primary-red) !important;
  background-color: var(--primary-red) !important;
  color: var(--white) !important;
}

.red-button {
  border-color: var(--primary-red) !important;
  color: var(--primary-red) !important;
  background-color: transparent !important;
}

.red-button:hover {
  border-color: var(--primary-red) !important;
  background-color: var(--primary-red) !important;
  color: var(--white) !important;
}

.black-button {
  border-color: var(--black) !important;
  color: var(--black) !important;
  background-color: transparent !important;
}

.black-button:hover {
  border-color: var(--white) !important;
  background-color: var(--white) !important;
  color: var(--primary-red) !important;
}

/* Remove ripple effect complexity */
.white-button::before,
.red-button::before,
.black-button::before {
  display: none;
}

/* ========== CONTENT SECTIONS ========== */
.content {
  position: relative;
  z-index: 1;
}

.content-header {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Reduced size */
  color: var(--primary-red);
  font-weight: 500; /* Reduced thickness */
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out;
}

.content-paragraph {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--white);
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.content-division {
  padding: 14% 12%;
  animation: fadeIn 1.5s ease-out;
}

/* ========== TYPEWRITER EFFECT - FIXED CURSOR ========== */
.typewriter > h1 {
  overflow: hidden;
  border-right: 0.08em solid var(--primary-red); /* Thinner cursor */
  white-space: nowrap;
  animation: 
    typing 1.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-red); }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== STATISTICS SECTION - NO GLOW ========== */
.statistics-section {
  position: relative;
  overflow: hidden;
}

.statistics-section .col-md-3 {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.statistics-section .col-md-3:nth-child(1) { animation-delay: 0.1s; }
.statistics-section .col-md-3:nth-child(2) { animation-delay: 0.2s; }
.statistics-section .col-md-3:nth-child(3) { animation-delay: 0.3s; }
.statistics-section .col-md-3:nth-child(4) { animation-delay: 0.4s; }

.statistics-section .display-4 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary-red);
  font-weight: 600;
  text-shadow: none; /* No glow */
}

/* ========== PRODUCTS SECTION - FIXED VISIBILITY ========== */
.products-section {
  position: relative;
  padding: 2rem 0; /* Reduced padding to remove gap */
  margin-top: 0; /* Remove margin */
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Darker overlay for better visibility */
  z-index: 0;
}

.products-section > * {
  position: relative;
  z-index: 1;
}

.products-section h2 {
  color: var(--primary-red) !important;
  font-weight: 600;
  text-shadow: none;
}

.products-section p {
  color: var(--white) !important;
}

.product-card {
  height: 100%;
  transition: var(--transition-normal);
  background: var(--bg-card);
  color: var(--white);
}

.product-card h5 {
  color: var(--primary-red);
  font-weight: 600;
}

.product-card p {
  color: var(--white-soft);
}

.product-card img {
  border-radius: 4px;
  transition: var(--transition-normal);
  filter: grayscale(100%) brightness(0.7);
}

.product-card:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

/* ========== SERVICES SECTION - ENHANCED DROPDOWN ========== */
.services-section {
  position: relative;
  padding: 3rem 0;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 0;
}

.services-section > * {
  position: relative;
  z-index: 1;
}

.services-section h2 {
  color: var(--black) !important;
  font-weight: 600;
}

.services-section h6 {
  color: var(--black) !important;
  font-weight: 400;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1); /* Subtle red glow */
}

.accordion-item:hover {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2); /* Enhanced glow on hover */
}

.accordion-button {
  background: transparent;
  color: var(--white);
  font-weight: 500;
  font-family: var(--font-body);
  border: none;
  padding: var(--spacing-md);
  transition: var(--transition-normal);
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 0, 0, 0.1);
  color: var(--primary-red);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-red);
}

.accordion-body {
  background: rgba(0, 0, 0, 0.5); /* Enhanced visibility */
  color: var(--white); /* Better contrast */
  padding: var(--spacing-lg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7; /* Better readability */
}

.accordion-body p {
  color: var(--white-soft);
  margin-bottom: 1rem;
}

.accordion-body strong {
  color: var(--white);
  font-weight: 500;
}

/* ========== TESTIMONIALS - FIXED VISIBILITY ========== */
.testimonial-section {
  background: var(--bg-secondary) !important;
  padding: 3rem 0;
}

.testimonial-section h2 {
  color: var(--primary-red);
  font-weight: 600;
}

.testimonial {
  height: 100%;
  text-align: center;
  background: var(--bg-card);
  color: var(--white);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1); /* Subtle red glow */
  transition: var(--transition-normal);
}

.testimonial:hover {
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.2); /* Enhanced glow on hover */
}

.testimonial p {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--white-soft);
  font-weight: 400;
}

.testimonial h5 {
  color: var(--primary-red);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.testimonial span {
  color: var(--white-soft);
  font-weight: 400;
}

/* ========== FOOTER - FIXED BUTTONS ========== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 0, 0, 0.2);
  position: relative;
}

.footer .white-button {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
  padding: 8px 12px;
  font-size: 1rem;
}

.footer .white-button:hover {
  border-color: var(--primary-red);
  background-color: var(--primary-red);
  color: var(--white);
}

/* Social Media Icons */
.footer .btn-link {
  color: var(--white) !important;
  padding: 8px 12px;
  border: 1px solid var(--white);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.footer .btn-link:hover {
  background-color: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
  color: var(--white) !important;
}

.footer .btn-link i {
  color: inherit;
}

/* Newsletter Form */
.footer .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 2px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-weight: 400;
}

.footer .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-red);
  color: var(--white);
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.footer .input-group-text {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 2px 0 0 2px;
}

/* ========== REPORTS SECTION ========== */
.reports-section {
  background: var(--white) !important;
  padding: 2rem 0; /* Reduced padding */
  margin: 0; /* Remove margin */
}

.reports-section .bg-white {
  background: var(--white) !important;
}

.reports-section h2 {
  color: var(--black) !important;
  font-weight: 600;
}

.reports-section p {
  color: var(--black) !important;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .content-division {
    padding: 20% 5%;
  }
  
  .card-glass,
  .card-neu {
    padding: var(--spacing-md);
  }
  
  .white-button,
  .red-button,
  .black-button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .content-header {
    font-size: 2rem;
  }
  
  .content-paragraph {
    font-size: 1.1rem;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-glow {
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* ========== RIPPLE EFFECT - SIMPLIFIED ========== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========== ENHANCED SERVICE CARDS - PROFESSIONAL STYLING ========== */
.service-card-enhanced {
  background: var(--bg-card);
  border: 1px solid rgba(255, 0, 0, 0.1);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.service-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
  transition: var(--transition-slow);
}

.service-card-enhanced:hover::before {
  left: 100%;
}

.service-card-enhanced:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.2), 0 0 20px rgba(255, 0, 0, 0.1);
}

.service-card-enhanced .service-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card-enhanced:hover .service-icon {
  background: rgba(255, 0, 0, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.service-card-enhanced .service-code {
  color: var(--primary-red);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.service-card-enhanced h3 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card-enhanced p {
  color: var(--white-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card-enhanced .service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.service-card-enhanced .service-features li {
  color: var(--white-soft);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.service-card-enhanced .service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

/* ========== STATISTICS COUNTER ANIMATION ========== */
.counter-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--primary-red);
  display: inline-block;
}

.counter-label {
  color: var(--white-soft);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ========== HERO SECTION ENHANCEMENTS ========== */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-red);
  display: block;
}

.hero-stat-label {
  color: var(--white-soft);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ========== SERVICE GRID LAYOUT ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ========== ENHANCED ACCORDION STYLING ========== */
.accordion-item {
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(255, 0, 0, 0.4) !important;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 0, 0, 0.1) !important;
  color: var(--primary-red) !important;
  border-bottom: 2px solid rgba(255, 0, 0, 0.3) !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
  border-color: var(--primary-red);
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7151%) hue-rotate(0deg) brightness(100%) contrast(101%);
}

/* ========== ENHANCED SERVICE PAGE STYLING ========== */
.service-page-hero {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
  padding: 4rem 2rem;
  border-bottom: 3px solid var(--primary-red);
  position: relative;
  overflow: hidden;
}

.service-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.service-page-section {
  background: rgba(26, 26, 26, 0.6);
  border-left: 4px solid var(--primary-red);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.service-page-section:hover {
  background: rgba(26, 26, 26, 0.8);
  border-left-width: 6px;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
  transform: translateX(5px);
}

.service-page-card {
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-page-card:hover::before {
  left: 100%;
}

.service-page-card:hover {
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
  transform: translateY(-5px);
}

/* ========== ANIMATED BACKGROUND PATTERNS ========== */
.animated-bg-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: 
    linear-gradient(45deg, var(--primary-red) 25%, transparent 25%),
    linear-gradient(-45deg, var(--primary-red) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--primary-red) 75%),
    linear-gradient(-45deg, transparent 75%, var(--primary-red) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  animation: patternMove 20s linear infinite;
  pointer-events: none;
}

@keyframes patternMove {
  0% { background-position: 0 0, 0 15px, 15px -15px, -15px 0px; }
  100% { background-position: 30px 30px, 30px 45px, 45px 15px, 15px 30px; }
}

/* ========== SECTION HEADERS WITH DECORATION ========== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
}

.section-header p {
  color: var(--white-soft);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* ========== BADGE/TAG STYLING ========== */
.service-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 4px;
  color: var(--primary-red);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ========== CTA BUTTON ENHANCEMENTS ========== */
.cta-section {
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

/* ========== FLOATING ANIMATION ========== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* ========== 3D SHIELD ANIMATIONS ========== */
@keyframes shieldPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes lockFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

#security-shield {
  animation: shieldRotate 20s linear infinite;
  transform-origin: center;
}

@keyframes shieldRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#hero-3d-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-3d-container svg {
  transition: transform 0.3s ease;
}

#hero-3d-container:hover svg {
  transform: scale(1.1);
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-red), var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== SERVICE PAGE ENHANCEMENTS ========== */
.service-page-hero {
  background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(255,0,0,0.1));
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.service-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.1), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.1), transparent 50%);
  pointer-events: none;
}

.service-detail-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 0, 0, 0.1);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-red);
  transition: var(--transition-normal);
}

.service-detail-card:hover {
  border-color: rgba(255, 0, 0, 0.4);
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.2);
}

.service-detail-card:hover::before {
  width: 6px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--white-soft);
  transition: var(--transition-normal);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.2rem;
}

.feature-list li:hover {
  color: var(--white);
  transform: translateX(5px);
}
/* ========== LIGHT THEME OVERRIDES ========== */
[data-theme="light"] {
  /* Neutral Colors inverted */
  --black: #ffffff;
  --dark-grey: #e9ecef;
  --grey-900: #e5e5e5;
  --grey-800: #d5d5d5;
  --grey-700: #c5c5c5;
  --white: #000000;
  --white-soft: #212529;

  /* Background Colors inverted */
  --bg-primary: #f8f9fa;
  --bg-secondary: #f0f2f5;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(240, 240, 240, 0.95);
}

/* Light Theme Component Overrides */
[data-theme="light"] .text-white { color: #000000 !important; }
[data-theme="light"] .text-light { color: #212529 !important; }
[data-theme="light"] .text-white-50 { color: #6c757d !important; }
[data-theme="light"] .bg-dark { background-color: #f8f9fa !important; }
[data-theme="light"] .bg-black { background-color: #ffffff !important; }
[data-theme="light"] .bg-transparent { background-color: transparent !important; }
[data-theme="light"] .border-secondary { border-color: #ced4da !important; }
[data-theme="light"] .border-light { border-color: #000000 !important; }
[data-theme="light"] .link-light { color: #000000 !important; }
[data-theme="light"] .link-light:hover { color: var(--primary-red) !important; }
[data-theme="light"] .text-muted { color: #6c757d !important; }
[data-theme="light"] .dropdown-menu-dark { background-color: #ffffff; border: 1px solid rgba(0,0,0,0.15); box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15); }
[data-theme="light"] .dropdown-menu-dark .dropdown-item { color: #000000; }
[data-theme="light"] .dropdown-menu-dark .dropdown-item:hover { background-color: #f8f9fa; color: var(--primary-red); }
[data-theme="light"] .nav-link { color: #000000 !important; }
[data-theme="light"] .nav-link:hover { color: var(--primary-red) !important; }
[data-theme="light"] .navbar-brand { color: #000000; }

/* Invert image colors that used grayscale */
[data-theme="light"] img[style*="grayscale"] { filter: grayscale(50%) brightness(0.6) contrast(1.2) !important; }

/* Keep specific text colors intact */
[data-theme="light"] .text-danger { color: #dc3545 !important; }

/* Make the footer text readable in light mode since it's hardcoded to a very dark gradient */
[data-theme="light"] footer.footer { background: #e9ecef !important; border-top: 2px solid var(--primary-red) !important; color: #000000 !important; }
[data-theme="light"] footer.footer .text-white, 
[data-theme="light"] footer.footer .text-white-50, 
[data-theme="light"] footer.footer .text-light { color: #000000 !important; }
[data-theme="light"] footer.footer .social-btn-circle { color: #000000 !important; border-color: #000000 !important; }
[data-theme="light"] footer.footer .social-btn-circle:hover { color: #ffffff !important; background-color: var(--primary-red) !important; border-color: var(--primary-red) !important; }

/* Logo mapping (preserve red, invert white to black) */
[data-theme="light"] .navbar-brand img, 
[data-theme="light"] .footer-logo-wrapper img { filter: invert(1) hue-rotate(180deg); }
[data-theme="light"] .navbar-toggler-icon { filter: invert(1); }

/* Backgrounds */
[data-theme="light"] .gif-bg { filter: opacity(30%) grayscale(100%) brightness(1.5); mix-blend-mode: normal; }
[data-theme="light"] #particles-js { opacity: 0.3; filter: invert(1); }

/* Footers and marquees */
[data-theme="light"] .latest-updates-marquee { background: rgba(255,255,255,0.9) !important; color: #000000 !important; border-color: var(--primary-red) !important; }
[data-theme="light"] .marquee-link { color: #333333; }
[data-theme="light"] .marquee-link:hover { color: #000000; text-shadow: none; }

/* Inputs and Forms */
[data-theme="light"] .form-control.bg-dark { background-color: #ffffff !important; color: #000000 !important; }
[data-theme="light"] .input-group-text.bg-dark { background-color: #e9ecef !important; color: #000000 !important; }

/* Additional specifics */
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] h4, [data-theme="light"] h5 { color: var(--primary-red); }
[data-theme="light"] [style*="color: var(--white-soft)"], [data-theme="light"] [style*="color:var(--white-soft)"] { color: #333333 !important; }
[data-theme="light"] [style*="color: white"], [data-theme="light"] [style*="color:white"] { color: #000000 !important; }

/* Invert colors used for timeline graphics */
[data-theme="light"] .timeline-dot { background-color: var(--primary-red) !important; }
[data-theme="light"] .service-card-enhanced { background-color: rgba(255, 255, 255, 0.8) !important; color: #000000 !important; }
[data-theme="light"] .card-glass { background: rgba(255, 255, 255, 0.8) !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
