/* Vortex Security Design System */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors - Dark Mode Only (Cyber High-Tech) */
  --bg-color: #050b14;
  --text-color: #e2e8f0;
  --card-bg: rgba(10, 25, 41, 0.7);
  --card-border: rgba(0, 243, 255, 0.3);
  --primary-color: #00f3ff;
  --secondary-color: #bc13fe;
  --accent-color: #00ff9d;
  --success-color: #00ff00;
  --danger-color: #ff4444;
  --warning-color: #ffaa00;
  --neon-glow: 0 0 20px rgba(0, 243, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
  --gradient-main: linear-gradient(135deg, #00f3ff 0%, #bc13fe 100%);

  /* Layout */
  --header-height: 80px;
  --sidebar-width: 280px;
  --sidebar-offset: var(--sidebar-width);
}

@media (max-width: 900px) {
  :root {
    --sidebar-offset: 0px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 70px;
  }
}

/* body.dark-theme variables moved to :root — dark mode is now the only mode */

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .ml-auto {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .mr-auto {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .nav-links {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--card-border);
  transition: left 0.4s ease;
}

[dir="rtl"] .nav-links.active {
  left: 0;
  right: auto;
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}

[dir="rtl"] .feature-box {
  border-left: none;
  border-right: 4px solid var(--secondary-color);
}

[dir="rtl"] .hero-image {
  border-radius: 0 30px 30px 0;
}

/* Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
  font-family: 'Exo 2', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Global Spacing Fixes */
p {
  margin-bottom: 1rem;
}

ul,
ol {
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.25rem;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Ensure h1 isn't affected by generic rules if we add any, 
   but since we target h2-h6 specifically, h1 remains safe. 
   Just a specificity check. */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
}


/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 50px 0;
}

/* Wave Background Utilities */
.wave-background-section {
  position: relative;
  overflow: hidden;
  background: #0b0f1a;
}

.wave-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.section-content-overlay {
  position: relative;
  z-index: 2;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  color: var(--text-color);
}

/* Light Theme Input & Text Visibility Fixes */









.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

/* Cyber Form Controls */
.cyber-input-wrapper {
  position: relative;
  margin-bottom: 25px;
}

.cyber-input,
.cyber-textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-color);
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  outline: none;
}

.cyber-input::placeholder,
.cyber-textarea::placeholder {
  color: rgba(226, 232, 240, 0.5);
  /* Lighter version of --text-color for better contrast */
}

[dir="rtl"] .cyber-input,
[dir="rtl"] .cyber-textarea {
  padding: 15px 20px;
}

.cyber-textarea {
  min-height: 120px;
  resize: vertical;
}

.cyber-input:focus,
.cyber-textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.1);
  transform: translateY(-2px);
}

.cyber-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
}

/* Light Theme Specific Overrides for Form */




.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .btn-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    padding: 5px;
  }
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.7);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

.btn-outline:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-3px);
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue-rotate 10s infinite linear;
}

@keyframes hue-rotate {
  from {
    filter: hue-rotate(0deg);
  }

  to {
    filter: hue-rotate(360deg);
  }
}

/* Header & Nav */
header {
  height: var(--header-height);
  min-height: var(--header-height);
  max-height: var(--header-height);
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 98%;
  max-width: 1800px;
  z-index: 1000;
  display: flex;
  align-items: center;
  /* Only transition visual properties, NOT height/min-height */
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 0 40px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  min-width: max-content;
}

/* Light theme header visibility - High-End Floating */


header.scrolled {
  height: var(--header-height);
  min-height: var(--header-height);
  max-height: var(--header-height);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}



@media (max-width: 900px) {
  header {
    top: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    transform: none;
    left: 0;
    border: none;
    border-bottom: 1px solid var(--card-border);
    padding: 0 15px;
  }

  header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
  }

  .logo {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .nav-actions {
    gap: 10px;
  }

  .btn-icon {
    font-size: 1.3rem;
    padding: 5px;
  }

  .menu-toggle {
    margin-left: 0;
    font-size: 1.5rem;
  }
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.nav-container .logo {
  grid-column: 1;
  justify-self: start;
  flex-shrink: 0;
}

.nav-container .nav-links {
  grid-column: 2;
  justify-self: center;
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-container .nav-actions {
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: ltr !important;
}

.brand-logo {
  height: 28px;
  width: auto;
  vertical-align: middle;
  margin-right: 12px;
}

.logo .brand-logo {
  margin-right: 0;
  /* Flex gap handles spacing */
  height: 32px;
}

h3 .brand-logo {
  height: 24px;
  margin-right: 12px;
}

.logo:hover {
  text-shadow: var(--neon-glow);
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a.active::before,
.nav-links a:hover::before {
  width: 80%;
}

.nav-links a:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

/* Dropdown Arrow */
.dropdown>a::after {
  display: none !important;
}

.dropdown:hover>a::after {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  min-width: 160px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Invisible bridge to maintain hover state across the visual gap */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  font-size: 0.9rem;
  display: block;
  padding: 10px 15px !important;
  white-space: nowrap;
  border-radius: 8px;
}

.dropdown-menu a::before {
  display: none !important;
}

/* Nav Button Styles */
.nav-btn {
  padding: 8px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
  margin-left: 10px;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.nav-btn::after {
  display: none !important;
}

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

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

.nav-btn-primary {
  background: var(--gradient-main) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
  padding: 10px 30px !important;
  min-width: 100px;
}

.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
}

/* Dropdown Arrow Styling */
.dropdown-arrow {
  font-size: 0.7em;
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Mobile Menu Styles */
.desktop-only {
  display: inline-flex !important;
}

@media (min-width: 901px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: 10px;
  /* Reduced from 20px */
  color: var(--text-color);
}

@media (max-width: 900px) {

  /* Revert nav-container grid to flex on mobile since nav-links become a flyout */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-container .logo {
    grid-column: unset;
    justify-self: unset;
  }

  .nav-container .nav-links {
    grid-column: unset;
    justify-self: unset;
  }

  .nav-container .nav-actions {
    grid-column: unset;
    justify-self: unset;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    background: var(--bg-color);
    /* Solid background for legibility */
    width: 100%;
    height: calc(100vh - var(--header-height));
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 10px;
    transition: right 0.4s ease;
    border-top: 1px solid var(--card-border);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-actions {
    margin-left: auto;
    /* Push to right */
    gap: 15px;
  }

  .menu-toggle {
    display: block !important;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1050;
    /* Ensuring it sits above other competing overlays */
    color: var(--text-color);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    /* Prevents desktop hover transform from shifting box -50% left */
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    margin-left: 20px;
    width: auto;
    /* Prevent 100% width combined with margin from overflowing */
    display: none;
    /* Hidden by default on mobile */
    min-width: auto;
  }

  .dropdown-menu::after {
    display: none;
    /* Hide hover bridge on mobile */
  }

  /* Explicitly reset the hover transform for mobile */
  .dropdown:hover .dropdown-menu {
    transform: none !important;
  }

  .dropdown.active .dropdown-menu {
    display: flex;
  }

  .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  .mobile-reverse {
    flex-direction: column-reverse !important;
  }
}

/* Extra Mobile Optimization */
@media (max-width: 600px) {
  .logo {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
  }

  .btn-icon {
    font-size: 1.2rem;
  }

  .menu-toggle {
    font-size: 1.4rem;
  }

  .hero-content h1 {
    font-size: 2rem !important;
  }

  .hero-content p {
    font-size: 1rem !important;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px !important;
  }

  .nav-btn {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 10px;
  }

  .about-mission-text {
    font-size: 1rem !important;
  }

  .section-padding {
    padding: 40px 0;
  }
}

/* Text Visibility Fixes */
.page-header p {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}



/* Ensure text in Global Threat Intelligence section is always visible on dark bg */
.wave-background-section .section-content-overlay h2,
.wave-background-section .section-content-overlay p {
  color: #ffffff !important;
}


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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.fade-in {
  opacity: 1;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left {
  opacity: 1;
  animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pop-in {
  opacity: 1;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

/* Image & Icon Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-anim {
  animation: float 3s ease-in-out infinite;
}

/* Pulse & Zoom Animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

.zoom-hover {
  transition: transform 0.4s ease;
  overflow: hidden;
}

.zoom-hover:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  border-radius: 20px;
}



.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  /* 90% visibility/brightness */
}


.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.4));
  z-index: 0;
}


/* Light theme hero text visibility fix */


.hero-split {
  display: flex;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
  background: var(--bg-color);
  border-radius: 20px;
  overflow: hidden;
  margin-left: 20px;
  margin-right: 20px;
}



.page-header {
  position: relative;
  overflow: hidden;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  border-radius: 20px;
  margin-left: 20px;
  margin-right: 20px;
}







/* Ensure hero description text is visible in light theme - OVERRIDE for visibility */


.hero-subtext {
  color: #e2e8f0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.stat-label {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-content h1 span {
  display: block;
  font-size: 5rem;
}

/* Dashboard Styles */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--card-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 950;
  transition: transform 0.3s;
}

@media (max-width: 900px) {
  .sidebar {
    top: var(--header-height) !important;
    height: calc(100vh - var(--header-height)) !important;
    z-index: 1100;
  }
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-offset);
  padding: 20px;
  width: calc(100% - var(--sidebar-offset));
}

/* Partners Infinite Scroll */
.partners-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}

/* Removed hover pause on track to keep it running continuously */
/* .partners-section:hover .partners-track {
  animation-play-state: paused;
} */

.partner-item {
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.partner-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% / 3));
    /* Move by 1/3 since we have 3 sets of items */
  }
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  display: block;
  text-decoration: none;
  color: var(--text-color);
}

.sidebar-menu {
  list-style: none;
  flex: 1;
}

.sidebar-label {
  padding: 0 12px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--primary-color);
  opacity: 0.8;
  text-transform: uppercase;
}

.sidebar-menu li {
  margin-bottom: 12px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.admin-sidebar .sidebar-menu a:hover,
.admin-sidebar .sidebar-menu a.active {
  background: rgba(236, 72, 153, 0.1);
  color: var(--secondary-color);
}

.dashboard-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 25px !important;
  background: var(--card-bg) !important;
  border-radius: 12px !important;
  border: 1px solid var(--card-border) !important;
  transition: all 0.3s ease;
  z-index: 10;
}

@media (max-width: 900px) {
  .dashboard-header {
    position: sticky;
    top: var(--header-height);
    z-index: 800;
    margin-bottom: 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: var(--bg-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    width: 100%;
  }


}

@media (max-width: 600px) {
  .dashboard-header h2 {
    font-size: 1.1rem !important;
  }

  .nav-actions {
    gap: 10px;
  }
}

.dashboard-footer {
  margin-left: var(--sidebar-offset);
  transition: margin-left 0.3s ease;
}

@media (max-width: 900px) {
  .dashboard-footer {
    margin-left: 0 !important;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {

  .stats-grid,
  .services-grid,
  .pricing-grid,
  .partners-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  font-size: 2rem;
  padding: 15px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  color: var(--primary-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  min-width: 600px;
  /* Ensure table has minimum width for readability */
}

/* Scrollable container for tables on small screens */
.glass-card {
  overflow-x: auto;
}

.data-table th,
.data-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.data-table th {
  color: var(--text-color);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .stat-card {
    padding: 15px;
    gap: 15px;
  }

  .stat-icon {
    font-size: 1.5rem;
    padding: 10px;
  }

  .glass-card {
    padding: 15px !important;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  /* Responsive Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h1 span {
    font-size: 3rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-why {
    margin-top: 50px !important;
  }

  .stat-item .stat-number {
    font-size: 1.5rem !important;
  }

  /* Navigation Scroll on Mobile */
  .nav-links {
    overflow-y: auto;
    max-height: 80vh;
    /* Prevent covering entire screen */
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 0.8rem !important;
    letter-spacing: 0 !important;
    gap: 4px !important;
  }

  .nav-container .logo .brand-logo {
    height: 16px !important;
    margin-right: 4px !important;
  }

  .nav-container {
    gap: 5px;
    padding: 0;
  }

  .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    padding: 2px;
  }

  .nav-actions {
    gap: 6px;
    margin-left: 0;
  }

  .menu-toggle {
    margin-left: 5px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h1 span {
    font-size: 2.2rem;
  }

  /* Fix horizontal overflow on small screens */
  .container {
    padding: 0 15px;
    overflow-x: hidden;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px !important;
  }
}

/* Dashboard Mobile Toggle */
.dashboard-menu-toggle {
  display: none;
  background: rgba(236, 72, 153, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(236, 72, 153, 0.2);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dashboard-menu-toggle::after {
  content: 'Sections';
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .dashboard-menu-toggle {
    display: flex;
  }
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1200;
}

@media (max-width: 900px) {
  .sidebar-close {
    display: block;
  }
}

/* Ensure Hero Typography scales down properly on mobile */
.hero-content h1,
.hero-text h1 {
  font-size: 2.5rem !important;
  /* Force override of any inline/internal styles if remaining */
  word-wrap: break-word;
  /* Prevent overflow */
}

.hero-content h1 span,
.hero-text h1 span {
  font-size: 3rem !important;
}


@media (max-width: 480px) {

  .hero-content h1,
  .hero-text h1 {
    font-size: 1.8rem !important;
  }

  .hero-content h1 span,
  .hero-text h1 span {
    font-size: 2.2rem !important;
  }
}

/* FAQ Accordion Styles */
.faq-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color) !important;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 15px;
}

.faq-item .faq-toggle {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Threat Map Component */
.threat-map-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: #020617;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  margin-top: 20px;
}

.map-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
}

.scan-bar {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(236, 72, 153, 0.1), transparent);
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% {
    top: -50%;
  }

  100% {
    top: 100%;
  }
}

.threat-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary-color);
}

.threat-node.critical {
  background: var(--danger-color);
  box-shadow: 0 0 10px var(--danger-color);
}

.threat-node.warning {
  background: var(--warning-color);
  box-shadow: 0 0 10px var(--warning-color);
}

.threat-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

.threat-label {
  position: absolute;
  left: 12px;
  top: -5px;
  background: rgba(2, 6, 23, 0.8);
  color: white;
  font-family: monospace;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  pointer-events: none;
}

.telemetry-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 150px;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--success-color);
  pointer-events: none;
}

.telemetry-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.telemetry-log li {
  margin-bottom: 4px;
  opacity: 0.8;
  animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* Testimonial Image Styles */
.testimonial-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.testimonial-image:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Mobile Button Fixes */
@media (max-width: 768px) {
  .hero-content .btn {
    display: block;
    width: 100%;
    margin: 10px 0 !important;
  }

  .stats-row {
    flex-direction: column !important;
    gap: 20px !important;
  }
}

/* Newsletter Button Always Visible */
.btn-primary {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Newsletter Input Styling */
input[type="email"] {
  border: 2px solid rgba(99, 102, 241, 0.5) !important;
}

input[type="email"]:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}



/* Responsive two-column layouts */
@media (max-width: 900px) {
  section div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- Dashboard Fixes --- */

/* Mobile Dashboard Header */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px;
    height: auto !important;
    padding: 10px 15px;
    margin-bottom: 20px;
  }

  .dashboard-header>div {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-header h2 {
    font-size: 1.1rem !important;
  }
}

/* RTL Support for Dashboard */
body[dir="rtl"] .sidebar {
  right: 0;
  left: auto;
  border-right: none;
  border-left: 1px solid var(--card-border);
}

body[dir="rtl"] .main-content {
  margin-left: 0;
  margin-right: var(--sidebar-width);
}

body[dir="rtl"] .dashboard-footer {
  margin-left: 0;
  margin-right: var(--sidebar-width);
}

@media (max-width: 900px) {

  body[dir="rtl"] .main-content,
  body[dir="rtl"] .dashboard-footer {
    margin-right: 0;
  }

  body[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
    border-right: none;
    border-left: 1px solid var(--card-border);
  }

  body[dir="rtl"] .sidebar.active {
    transform: translateX(0);
  }
}


/* Sidebar Scroll */
.sidebar {
  overflow-y: auto;
}

/* Global 3D Background */
.page-bg-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  /* Behind everything */
  pointer-events: none;
  opacity: 0.4;
  overflow: hidden;
}

.bg-3d-container {
  width: 100%;
  height: 0;
  /* Local markers keep height 0 to avoid gaps */
  position: relative;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  overflow: visible;
}

/* Threat Chart Overlay */
.threat-activity-chart-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.threat-map-container>* {
  position: relative;
  z-index: 2;
}



/* --- Scroll Animation System --- */
/* Content is visible by default, animations are optional enhancement */
.reveal {
  opacity: 1;
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 1;
  transform: translateX(0);
}

.reveal-zoom {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active,
.reveal-active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered Delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* Stagger delays */
.reveal-delay-100 {
  transition-delay: 0.1s;
}

.reveal-delay-200 {
  transition-delay: 0.2s;
}

.reveal-delay-300 {
  transition-delay: 0.3s;
}

.reveal-box {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger delays */
.reveal-delay-100 {
  transition-delay: 0.1s;
}

.reveal-delay-200 {
  transition-delay: 0.2s;
}

.reveal-delay-300 {
  transition-delay: 0.3s;
}

/* Table Row Animation - visible by default */
.data-table tbody tr {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.data-table tbody tr.reveal-active {
  opacity: 1;
  transform: translateY(0);
}


/* --- Global Button Gradient Overrides --- */
/* Base Button */
.btn {
  background: var(--gradient-main) !important;
  color: #fff !important;
  border: none !important;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50px !important;
  padding: 12px 30px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-main) !important;
  color: white !important;
}

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

.btn-outline:hover {
  background: var(--gradient-main) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

/* Nav Buttons */
.nav-btn {
  font-weight: 700 !important;
}

.nav-btn-primary {
  background: var(--gradient-main) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3) !important;
  border: none !important;
}

.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5) !important;
}

.nav-btn-outline:hover {
  background: var(--gradient-main) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

/* Digital Pulse Loader */
.digital-pulse-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pulse-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color), inset 0 0 20px var(--primary-color);
  opacity: 0;
  animation: cyberPulse 2s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.3s;
  border-color: var(--secondary-color);
  box-shadow: 0 0 20px var(--secondary-color), inset 0 0 20px var(--secondary-color);
}

@keyframes cyberPulse {
  0% {
    transform: scale(0);
    opacity: 1;
    border-width: 4px;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: scale(25);
    opacity: 0;
    border-width: 0;
  }
}

/* Global Pink/Purple Theme Update */
:root {
  --primary-color: #ec4899 !important;
  /* Pink */
  --secondary-color: #8b5cf6 !important;
  /* Purple */
  --gradient-main: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
  --neon-glow: 0 0 10px rgba(236, 72, 153, 0.3) !important;
}

body.dark-theme {
  --primary-color: #ec4899 !important;
  --secondary-color: #8b5cf6 !important;
  --neon-glow: 0 0 20px rgba(236, 72, 153, 0.6) !important;
}

/* Ensure Text Gradients match */
.text-gradient {
  background: var(--gradient-main) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Wave Background Utilities */
.wave-background-section {
  position: relative;
  overflow: hidden;
  background: #050b14;
}

.wave-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.section-content-overlay {
  position: relative;
  z-index: 2;
}

/* =====================================================
   RESPONSIVENESS FIXES
   ===================================================== */

/* --- FIX 1: 1024px Navbar — Compact link spacing to prevent overflow --- */
@media (min-width: 901px) and (max-width: 1200px) {
  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.85rem;
  }

  .nav-btn {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    margin-left: 5px;
  }

  /* Scale down logo and layout to fit all elements before mobile menu kicks in */
  .logo {
    font-size: 1.1rem;
    letter-spacing: 1px;
    gap: 6px;
  }

  .brand-logo {
    height: 22px;
  }

  .nav-btn-primary {
    padding: 7px 12px !important;
    min-width: unset;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    padding: 5px 6px;
    font-size: 0.95rem;
  }

  .nav-links a {
    padding: 6px 8px;
    /* Reduce link padding */
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: visible;
  }
}

/* --- FIX 2: 360px Hero — Reduce font size and ensure content clears navbar --- */
@media (max-width: 400px) {
  .hero {
    padding-top: calc(var(--header-height) + 30px);
    min-height: 100svh;
  }

  .hero-content h1,
  .hero-text h1 {
    font-size: 1.6rem !important;
  }

  .hero-content h1 span,
  .hero-text h1 span {
    font-size: 1.9rem !important;
  }

  .hero-content p {
    font-size: 0.9rem !important;
  }
}

/* Also ensure hero clears the sticky header on all mobile widths */
@media (max-width: 900px) {
  .hero {
    margin-top: var(--header-height);
    padding-top: 40px;
  }
}

/* --- FIX 3: 360px Invoice Table — Enable horizontal scroll --- */
.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Fallback: if the glass-card wrapping a table has no wrapper div, still make it scrollable */
@media (max-width: 600px) {

  .glass-card:has(> table),
  .glass-card:has(> .data-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 480px;
  }
}

/* --- FIX 4: 360px Signup Plan Selector — Stack plan cards vertically --- */
@media (max-width: 480px) {
  .plan-selector {
    grid-template-columns: 1fr !important;
  }

  .signup-container {
    padding: 90px 15px 40px !important;
    /* Tighter sides on very small screens */
  }

  .signup-card {
    padding: 25px 20px !important;
  }
}