/* ===== CSS Variables ===== */
:root {
  /* Professional Data Science Color Palette - Unified */
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent: #8B5CF6;
  --accent-dark: #7C3AED;

  /* Neon Colors */
  --neon-blue: #00BFFF;
  --neon-green: #00FF7F;
  --neon-yellow: #FFFF00;
  --electric-blue: #007FFF;
  --cyber-purple: #8A2BE2;
  --warning-orange: #FF8C00;

  /* Background Colors */
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --bg-card: #1E293B;
  --bg-hover: #334155;

  /* Text Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #64748B;

  /* Modern Glass Effects - Optimized for performance */
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(203, 213, 225, 0.1);
  --glass-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);

  /* Glow Effects - Optimized for performance */
  --primary-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  --secondary-glow: 0 0 20px rgba(16, 185, 129, 0.3);
  --accent-glow: 0 0 20px rgba(139, 92, 246, 0.3);
  --neon-text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;

  /* Subtle Effects - Optimized */
  --subtle-glow: 0 0 20px rgba(59, 130, 246, 0.1);
  --card-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Layout */
  --max-width: 1400px;
  --border-radius: 12px;
  --border-radius-lg: 16px;

  /* Table-specific variables */
  --table-header-bg: linear-gradient(135deg, #2d5a5a, #1e3a3a);
  --table-header-color: #e0e0e0;
  --table-border-color: #4a7c7c;
  --table-hover-bg: rgba(100, 254, 218, 0.05);
  --table-stripe-bg: rgba(255, 255, 255, 0.02);
  --table-cell-padding: 16px 24px;
  --table-border-radius: 12px;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::selection {
  background: var(--primary);
  color: var(--text-primary);
}

html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 1vw, 16px);
  overflow-x: hidden;
  /* Performance optimizations */
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* PREMIUM THEME UPDATE: Purple-Navy Gradient */
  background: linear-gradient(135deg,
      #0f172a 0%,
      /* Dark navy */
      #1e1b4b 30%,
      /* Purple-navy */
      #1e293b 60%,
      /* Slate-navy */
      #0f172a 100%
      /* Back to dark navy */
    );

  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: auto;
  height: 100%;
  /* Performance optimizations removed to fix position:fixed */
  /* will-change: scroll-position; */
  /* transform: translateZ(0); */
  /* backface-visibility: hidden; */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* PREMIUM OVERLAY: Radial gradients matching MockMate theme */
  background:
    radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.2), transparent 50%),
    radial-gradient(circle at 85% 40%, rgba(139, 92, 246, 0.2), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.15), transparent 50%);

  z-index: -2;
  pointer-events: none;
  /* Performance optimization */
  will-change: transform;
  transform: translateZ(0);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  /* Performance optimization */
  will-change: transform;
}

.cyberpunk-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.gradient-text {
  background: linear-gradient(135deg, var(--neon-blue), var(--electric-blue), var(--cyber-purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  /* Performance optimization */
  will-change: background-position;
}

.glow-text {
  text-shadow: var(--neon-text-shadow);
}

.tech-font {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 500;
}

.display-text {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 1rem;
  word-spacing: 0.08em;
}

/* ===== Animations - Optimized for Performance ===== */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradientRotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ===== Glass Morphism & Neon Effects - Performance Optimized ===== */
.glass {
  background: var(--glass-bg);
  /* Reduced backdrop-filter for better performance */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  /* Performance optimizations */
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradientRotate 6s linear infinite;
  /* Performance optimization */
  will-change: background-position;
}

.glass:hover::before {
  opacity: 0.5;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Performance optimizations */
  will-change: transform, box-shadow;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary);
}

/* ===== Performance Optimizations for Scrolling ===== */
.sideMenu {
  /* Optimize sidebar for smooth scrolling */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#content {
  /* Optimize main content for smooth scrolling */
  will-change: scroll-position;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== Smooth Scrolling Enhancements ===== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Optimize transitions for better performance */
  * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* ===== Reduce Motion for Accessibility ===== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .gradient-text {
    animation: none;
  }

  .glass::before {
    animation: none;
  }
}

/* ===== Hardware Acceleration for Smooth Scrolling ===== */
.smooth-scroll {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
}

/* ===== Optimize Code Blocks for Better Performance ===== */
.code-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
  position: relative;
  /* Performance optimization */
  will-change: transform;
  transform: translateZ(0);
}

.code-box pre {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  /* Performance optimization for horizontal scrolling */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.code-box pre::-webkit-scrollbar {
  height: 6px;
}

.code-box pre::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.code-box pre::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.code-box pre::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ===== Optimize Copy Button Performance ===== */
.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: var(--text-primary);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  /* Performance optimization */
  will-change: transform, background-color;
  transform: translateZ(0);
}

.copy-button:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

/* ===== Optimize Section Performance ===== */
section {
  /* Performance optimization for sections */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== Optimize Navigation Performance ===== */
.sidebar-nav {
  /* Performance optimization for sidebar navigation */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.sidebar-links li {
  /* Performance optimization for sidebar links */
  will-change: transform;
  transform: translateZ(0);
}

/* ===== Optimize Table Performance ===== */
table {
  /* Performance optimization for tables */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== Optimize Form Elements Performance ===== */
input,
textarea,
select,
button {
  /* Performance optimization for form elements */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== Navigation Styles ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 1.5rem;
  /* Reduced padding */
  height: 70px;
  display: flex;
  /* Ensure flex behavior */
  align-items: center;
  /* Vertical center */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  /* Subtle shadow like original but cleaner */
}

/* Container for 3-part layout */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
  /* For absolute centering context if needed */
  padding: 0;
  /* Remove padding as navbar has it */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  z-index: 2;
  /* Ensure brand is above centered links if overlap */
  flex-shrink: 0;
}

/* Center Links Container */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links-center {
  display: flex;
  gap: 1rem;
  /* Reduced from 2rem */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 100%;
}

/* Right Actions Container */
.nav-right {
  display: flex;
  gap: 1rem;
  /* Reduced gap from 1.5rem */
  align-items: center;
  z-index: 2;
  flex-shrink: 0;
}

/* Compact CTA Button in Navbar */
.nav-cta-item .btn-cyber,
.compact-btn {
  padding: 0.4rem 1rem;
  /* Compact padding */
  font-size: 0.85rem;
  /* Smaller font */
  min-width: auto;
  /* Allow it to shrink */
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Compact User Profile Pill */
.nav-item.dropdown .user-avatar {
  padding: 0.35rem 0.75rem;
  /* Reduced padding */
  font-size: 0.9rem;
  gap: 0.5rem;
  border-radius: 20px;
  /* More pill-like */
  background: rgba(255, 255, 255, 0.05);
  /* Subtle background */
}

.nav-item.dropdown .user-avatar:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.dropdown .avatar-circle {
  width: 28px;
  /* Smaller avatar */
  height: 28px;
  font-size: 0.85rem;
}

/* Adjust nav-link sizes for the center layout */
.nav-links-center .nav-link {
  font-size: 0.9rem;
  /* Reduced from 0.95rem */
  font-weight: 500;
  color: var(--text-secondary);
  /* Ensure visibility */
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  /* Remove underline */
  padding: 0.4rem 0.6rem;
  /* Explicit reduced padding */
  border-radius: 6px;
}

.nav-links-center .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  /* Subtle hover effect */
}

.nav-links-center .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu tweaks */
.mobile-only-menu {
  /* Base styles for the drawer */
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  padding: 80px 2rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  /* Flex required for layout */
  list-style: none;
  /* Reset list style */
}

.mobile-only-menu.active {
  right: 0;
}

/* Mobile CTA in menu */
.mobile-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
  animation: borderGlow 3s ease-in-out infinite;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  gap: 1.5rem;
  /* Consistent spacing between items */
}

.navbar-brand {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem !important;
  font-weight: 900;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.2rem !important;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10001;
}

.navbar-logo {
  width: 34px;
  height: 34px;
  vertical-align: middle;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.navbar-brand-text {
  font-weight: 900;
  font-size: 1.3rem !important;
  color: #fff;
  letter-spacing: 0.2px;
  line-height: 1;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar-brand:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  /* Increased from 0.75rem for better spacing */
  align-items: center;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 1.5rem;
  /* 24px horizontal padding */
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(100, 254, 218, 0.1);
}

/* Ensure navigation buttons are always visible */
.nav-item:not(.dropdown) .nav-link {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.nav-link i {
  font-size: 0.9rem;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: rgba(24, 32, 54, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  display: none;
  z-index: 1000;
}



.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 0.5rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateX(5px);
}

/* Navbar CTA Button */
.nav-cta-button {
  margin-left: 0.5rem;
}

.nav-cta-button .btn-cyber {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 0.625rem 1.5rem !important;
  /* Slightly larger for prominence */
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
  /* Stronger shadow */
}

/* Button Styles */
.btn-cyber {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-primary);
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(100, 254, 218, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 254, 218, 0.4);
  color: var(--bg-primary);
}

.btn-outline-cyber {
  background: transparent;
  color: var(--text-primary);
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-outline-cyber:hover {
  background: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(100, 254, 218, 0.3);
}

/* Mobile Navigation */
.nav-toggle {
  display: none !important;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  z-index: 10001;
  background: transparent;
  border: none;
  position: relative;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  visibility: hidden !important;
  opacity: 0 !important;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
  pointer-events: none;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Tablet responsive design */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .navbar-brand {
    font-size: 1.1rem !important;
    gap: 0.15rem !important;
  }

  .navbar-logo {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }

  .navbar-brand-text {
    font-size: 1.1rem !important;
    letter-spacing: 0.15px;
  }

  .nav-menu {
    gap: 0.75rem;
    /* Consistent spacing */
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
    /* Slightly larger for better touch targets */
    font-size: 0.875rem;
    /* Slightly larger */
  }

  .btn-cyber,
  .btn-outline-cyber {
    padding: 0.5rem 1.25rem;
    /* Slightly larger */
    font-size: 0.875rem;
    /* Slightly larger */
  }

  /* Ensure CTA button is visible on mobile */
  .nav-cta-button {
    order: -1;
    /* Show CTA first in mobile menu */
  }
}

/* Mobile responsive design */
@media (max-width: 768px) {
  .navbar {
    padding: 0.625rem 0 !important;
    /* Slightly reduced mobile padding */
    min-height: 56px;
    /* Consistent mobile height */
  }

  .nav-container {
    padding: 0 1rem;
    position: relative;
    z-index: 10002;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  /* Mobile navbar brand adjustments */
  .navbar-brand {
    font-size: 1rem !important;
    gap: 0.15rem !important;
    flex-shrink: 0;
    max-width: none;
  }

  .navbar-logo {
    width: 28px !important;
    height: 28px !important;
    margin-right: 8px;
  }

  .navbar-brand-text {
    font-size: 1rem !important;
    letter-spacing: 0.1px;
    white-space: nowrap;
  }

  /* Show hamburger menu */
  .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10001 !important;
    position: relative !important;
    order: 2;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Hide desktop-only elements on mobile */
  .desktop-only {
    display: none !important;
  }

  /* Hide nav menu by default on mobile */
  .nav-menu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(8, 15, 30, 1) !important;
    backdrop-filter: blur(25px) !important;
    flex-direction: column !important;
    z-index: 10001 !important;
    padding: 4rem 1.5rem 2rem !important;
    border: none !important;
    box-shadow: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    overflow-y: auto !important;
  }

  .nav-menu.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
  }

  /* Backdrop overlay for mobile menu - must be behind the menu */
  .nav-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998 !important;
    /* Lower than nav-menu (9999) to prevent overlap */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .nav-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Hide backdrop completely on mobile - menu should be visible without overlay */
  @media (max-width: 768px) {
    .nav-menu-backdrop {
      display: none !important;
      /* Completely hide backdrop on mobile */
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    .nav-menu-backdrop.active {
      display: none !important;
      /* Never show on mobile */
      opacity: 0 !important;
      visibility: hidden !important;
    }
  }

  .nav-item {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: stretch;
  }

  .nav-link {
    padding: 1rem 1.25rem !important;
    display: flex !important;
    width: 100% !important;
    text-align: left !important;
    border-radius: 10px !important;
    border-bottom: none !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .nav-link:hover {
    background: rgba(100, 254, 218, 0.15) !important;
    color: var(--primary) !important;
    transform: translateX(5px) !important;
    border-color: rgba(100, 254, 218, 0.3) !important;
  }

  .nav-link i {
    font-size: 1.1rem !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0;
  }

  .nav-link.active {
    background: rgba(100, 254, 218, 0.2) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
  }

  /* Button styles in mobile menu */
  .nav-item .btn-cyber,
  .nav-item .btn-outline-cyber {
    width: 100% !important;
    justify-content: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    margin: 0.5rem 0 !important;
  }

  /* CTA button prominence on mobile - Show first */
  .nav-cta-button {
    order: -1 !important;
    /* Show CTA first in mobile menu */
    margin-bottom: 1rem !important;
  }

  .nav-cta-button .btn-cyber {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
  }

  /* Dropdown in mobile - Compact and scrollable */
  .nav-menu .dropdown .dropdown-menu {
    position: relative !important;
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    background: rgba(24, 32, 54, 0.98) !important;
    /* Dark but visible background */
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 0.5rem 0 !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    z-index: 10002 !important;
  }

  /* Show dropdown when active/open */
  .nav-menu .dropdown.dropdown-open .dropdown-menu,
  .nav-menu .dropdown.active .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Ensure dropdown items are visible on mobile - Compact spacing */
  .dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1rem !important;
    /* Slightly reduced padding */
    margin: 0 0.5rem 0.25rem !important;
    /* Reduced margin between items */
    font-size: 0.9rem !important;
    /* Slightly smaller font */
    white-space: nowrap !important;
    /* Prevent text wrapping */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
  }

  /* Ensure logout is always visible - make it sticky or ensure it's in view */
  .dropdown .dropdown-item:last-child {
    margin-bottom: 0.5rem !important;
    /* Extra margin for last item */
  }

  /* Scrollbar styling for dropdown */
  .dropdown .dropdown-menu::-webkit-scrollbar {
    width: 6px;
  }

  .dropdown .dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }

  .dropdown .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }

  .dropdown .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Overlay when menu is open */
  .nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.75rem;
  }

  .navbar-brand {
    font-size: 0.9rem !important;
  }

  .navbar-logo {
    width: 24px !important;
    height: 24px !important;
    margin-right: 6px;
  }

  .navbar-brand-text {
    font-size: 0.9rem !important;
  }

  .nav-menu {
    padding: 4rem 1rem 1.5rem !important;
  }

  .nav-link {
    padding: 0.875rem 1rem !important;
    font-size: 0.9375rem !important;
  }

  .nav-item .btn-cyber,
  .nav-item .btn-outline-cyber {
    padding: 0.875rem 1.25rem !important;
    font-size: 0.9375rem !important;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .navbar-brand {
    font-size: 0.85rem !important;
  }

  .navbar-brand-text {
    font-size: 0.85rem !important;
  }

  .navbar-logo {
    width: 22px !important;
    height: 22px !important;
  }

  .nav-menu {
    padding: 3.5rem 0.75rem 1rem !important;
  }

  .nav-link {
    padding: 0.75rem 0.875rem !important;
    font-size: 0.875rem !important;
  }
}

/* ===== MODERN PROFESSIONAL HERO SECTIONS ===== */

/* Primary Hero (Homepage) - Keep existing .hero class */
/* This remains unchanged for the main page */

/* Modern Secondary Hero - Matches Site Theme */
.hero-secondary,
section.hero-secondary,
#hero.hero-secondary {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
    var(--bg-primary) !important;
  padding: 60px 2rem 40px !important;
  overflow: hidden !important;
  will-change: transform;
  /* Professional enhancements */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Grid Background - Matches Homepage */
.hero-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%2300ffff" stroke-width="0.5" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
  animation: gridPulse 4s ease-in-out infinite;
}

/* Floating Animation */
@keyframes heroFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.8;
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
    opacity: 0.6;
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
    opacity: 0.9;
  }
}

/* Shimmer Animation */
@keyframes heroShimmer {

  0%,
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    transform: translateX(100%);
    opacity: 1;
  }
}

/* Container */
.hero-secondary-container,
.hero-secondary .hero-secondary-container,
#hero .hero-secondary-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  text-align: center !important;
  position: relative !important;
  z-index: 3 !important;
}

/* Title - Matches Site Theme */
.hero-secondary-content h1,
.hero-secondary .hero-secondary-content h1,
#hero .hero-secondary-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em !important;
  animation: titleSlideIn 1s ease-out 0.3s both;
  /* Professional enhancements */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Orbitron', 'Inter', sans-serif;
}

.hero-secondary-content h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Animation */
@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Title Slide In Animation */
@keyframes titleSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for better UX */
.hero-secondary.loading .hero-secondary-content h1,
.hero-secondary.loading .hero-secondary-content .lead,
.hero-secondary.loading .hero-secondary-buttons {
  opacity: 0;
  animation: none;
}

/* Description - Matches Site Theme */
.hero-secondary-content .lead,
.hero-secondary .hero-secondary-content .lead,
#hero .hero-secondary-content .lead {
  font-size: 1.2rem !important;
  color: var(--text-secondary) !important;
  margin-bottom: 2.5rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  opacity: 0;
  animation: leadFadeIn 1s ease-out 0.6s both;
  /* Professional enhancements */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
}

/* Lead Fade In Animation */
@keyframes leadFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons Container */
.hero-secondary-buttons,
.hero-secondary .hero-secondary-buttons,
#hero .hero-secondary-buttons {
  display: flex !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0;
  animation: buttonsSlideUp 1s ease-out 0.9s both;
}

/* Buttons Slide Up Animation */
@keyframes buttonsSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Button Styles */
.hero-secondary-buttons .btn-cyber,
.hero-secondary-buttons .btn-outline-cyber {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.hero-secondary-buttons .btn-cyber::before,
.hero-secondary-buttons .btn-outline-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.hero-secondary-buttons .btn-cyber:hover::before,
.hero-secondary-buttons .btn-outline-cyber:hover::before {
  left: 100%;
}

.hero-secondary-buttons .btn-cyber:hover,
.hero-secondary-buttons .btn-outline-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Focus states for accessibility */
.hero-secondary-buttons .btn-cyber:focus,
.hero-secondary-buttons .btn-outline-cyber:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Stats Section */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: statsFadeIn 1s ease-out 1.2s both;
}

@keyframes statsFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stat-item {
  text-align: center;
  color: #94a3b8;
  flex: 1;
  min-width: 120px;
  position: relative;
}

.hero-stat-item::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
}

.hero-stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
  animation: numberCount 2s ease-out 1.5s both;
}

@keyframes numberCount {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

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

.hero-stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  font-weight: 600;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
  .hero-secondary {
    min-height: 100vh;
    padding: 50px 1.5rem 35px;
  }

  .hero-secondary-content h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 1.2rem;
    text-align: center;
  }

  .hero-secondary-content .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    text-align: center;
  }

  .hero-secondary-buttons {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-secondary {
    min-height: 100vh !important;
    padding: 40px 1rem 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer-bottom {
    padding: 1.2rem 0.8rem !important;
    /* Increased mobile padding */
  }

  .footer-bottom-content-inline {
    font-size: 0.75rem !important;
    gap: 0.4rem !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    flex-direction: row !important;
    line-height: 1.2 !important;
  }

  .footer-bottom-content-inline a:not(:last-child)::after {
    content: " | " !important;
    margin: 0 0.2rem !important;
    font-size: 0.7rem !important;
  }

  .hero-secondary-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
  }

  .hero-secondary-content {
    text-align: center !important;
    width: 100% !important;
  }

  .hero-secondary-content h1 {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-secondary-content .lead {
    font-size: 1rem !important;
    margin-bottom: 1.8rem !important;
    max-width: 450px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-secondary-buttons {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.8rem !important;
    margin-top: 1rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-secondary-buttons .btn-cyber,
  .hero-secondary-buttons .btn-outline-cyber {
    width: auto !important;
    min-width: 200px !important;
    max-width: 280px !important;
    justify-content: center !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
    min-height: 48px !important;
    border-radius: 8px !important;
    text-align: center !important;
  }

  .hero-stats {
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .hero-stat-item {
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .hero-secondary {
    min-height: 100vh !important;
    padding: 35px 0.8rem 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-secondary-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.5rem !important;
  }

  .hero-secondary-content {
    text-align: center !important;
    width: 100% !important;
    padding: 0 0.5rem !important;
  }

  .hero-secondary-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-secondary-content .lead {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
    max-width: 350px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-secondary-buttons {
    gap: 0.6rem !important;
    margin-top: 0.5rem !important;
    align-items: center !important;
    flex-direction: column !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-secondary-buttons .btn-cyber,
  .hero-secondary-buttons .btn-outline-cyber {
    width: auto !important;
    min-width: 180px !important;
    max-width: 250px !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .hero-stat-item {
    min-width: auto;
  }

  .hero-stat-number {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .hero-secondary {
    min-height: 100vh !important;
    padding: 30px 0.5rem 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-secondary-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.3rem !important;
  }

  .hero-secondary-content {
    text-align: center !important;
    width: 100% !important;
    padding: 0 0.3rem !important;
  }

  .hero-secondary-content h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem) !important;
    margin-bottom: 0.6rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-secondary-content .lead {
    font-size: 0.9rem !important;
    margin-bottom: 1.2rem !important;
    max-width: 320px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-secondary-buttons {
    gap: 0.5rem !important;
    align-items: center !important;
    flex-direction: column !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-secondary-buttons .btn-cyber,
  .hero-secondary-buttons .btn-outline-cyber {
    width: auto !important;
    min-width: 160px !important;
    max-width: 220px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem !important;
    min-height: 40px !important;
    text-align: center !important;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.1s ease;
}

/* Particle Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* Main Content */
.main-content {
  margin-top: 44px;
  /* +10% to account for taller navbar */
  min-height: calc(100vh - 44px);
  padding: 0;
  /* Removed padding to eliminate gap */
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 2rem 2rem 2rem;
  /* Increased padding for more height */
  text-align: center;
}

/* Remove any gap after footer */
body {
  margin: 0;
  padding: 0;
}

/* Ensure no gap after footer */
.footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

.footer-bottom-content-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  font-size: 0.9rem;
  flex-direction: row;
}

.footer-bottom-content-inline span {
  color: var(--text-secondary);
  white-space: nowrap;
}

.footer-bottom-content-inline a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-bottom-content-inline a:hover {
  color: var(--primary);
}

.footer-bottom-content-inline a:not(:last-child)::after {
  content: " | ";
  color: var(--text-secondary);
  margin: 0 0.5rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(100, 254, 218, 0.4);
}

/* Messages */
.messages-container {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 1000;
  max-width: 400px;
}

.message {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

.message-success {
  border-left: 4px solid var(--secondary);
}

.message-error {
  border-left: 4px solid #ef4444;
}

.message-warning {
  border-left: 4px solid var(--warning-orange);
}

.message-info {
  border-left: 4px solid var(--primary);
}

.message-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.message-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Touch target improvements for mobile */
@media (max-width: 768px) {

  .nav-link,
  .btn-cyber,
  .btn-outline-cyber {
    min-height: 44px;
    /* iOS/Android touch target */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem;
  }

  .nav-toggle span {
    min-height: 3px;
    min-width: 25px;
  }
}

/* Landscape orientation handling */
@media (max-width: 1024px) and (orientation: landscape) {
  .hero-secondary {
    min-height: 100vh !important;
    padding: 40px 2rem 20px !important;
  }

  .hero-secondary h1 {
    font-size: 2.2rem !important;
    margin-bottom: 0.8rem !important;
  }

  .hero-secondary .lead {
    font-size: 1.1rem !important;
    margin-bottom: 1.2rem !important;
  }

  .hero-buttons {
    gap: 0.8rem !important;
  }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-width: 320px) {

  /* Ultra small mobile navbar brand */
  .navbar-brand {
    font-size: 0.7rem !important;
    gap: 0.08rem !important;
  }

  .navbar-logo {
    width: 18px;
    height: 18px;
    margin-right: 3px;
  }

  .navbar-brand-text {
    font-size: 0.7rem;
    letter-spacing: 0.05px;
  }

  .auth-btn {
    padding: 0.18rem 0.4rem !important;
    font-size: 0.6rem !important;
    min-height: 22px !important;
    min-width: 55px !important;
    max-width: 80px !important;
  }

  .auth-btn i {
    margin-right: 0.1rem !important;
    font-size: 0.55rem !important;
  }

  .nav-link {
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
  }

  .nav-link i {
    font-size: 0.7rem !important;
    width: 14px !important;
  }

  .hero-secondary {
    padding: 50px 0.5rem 30px !important;
  }

  .hero-secondary h1 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }

  .hero-secondary .lead {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }

  .btn-cyber,
  .btn-outline-cyber {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .glass-card {
    padding: 1rem !important;
    margin: 0.6rem 0 !important;
  }

  .stats-grid {
    gap: 0.6rem !important;
  }

  .stats-item {
    padding: 0.6rem !important;
  }

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

  .stats-item .stat-label {
    font-size: 0.75rem !important;
  }

  .nav-menu {
    top: 45px !important;
  }

  .footer-bottom {
    padding: 0.8rem 0.6rem !important;
    /* Increased very small mobile padding */
  }

  .footer-bottom-content-inline {
    font-size: 0.65rem !important;
    gap: 0.25rem !important;
    flex-direction: row !important;
    line-height: 1.1 !important;
  }

  .footer-bottom-content-inline a:not(:last-child)::after {
    content: " | " !important;
    margin: 0 0.1rem !important;
    font-size: 0.6rem !important;
  }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
  .glass-card {
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-menu {
    -webkit-backdrop-filter: blur(15px);
  }
}

/* Android Chrome optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
  .hero-secondary {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .glass-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Navigation Styles - Moved from inline styles */
.navbar-brand img {
  vertical-align: middle;
  margin-right: 10px;
  transition: transform 0.2s;
}

.navbar-brand span {
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1px;
}

.user-avatar {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 25px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.avatar-circle {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1fd47b 0%, #5a6ffb 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  color: white !important;
  font-size: 0.9rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.user-avatar span {
  font-weight: 500 !important;
  color: #fff !important;
  overflow: visible !important;
  /* Show full username */
  text-overflow: clip !important;
  /* Don't truncate */
  white-space: nowrap !important;
  /* Keep on one line on desktop */
  max-width: 200px;
  /* Reasonable max width */
}

.user-avatar .fa-chevron-down {
  font-size: 0.8rem !important;
  opacity: 0.8 !important;
}

.dropdown-menu-right {
  min-width: 160px !important;
  padding: 0.5rem 0 !important;
  background: rgba(24, 32, 54, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  position: absolute !important;
  right: 0 !important;
  top: 100% !important;
  z-index: 1000 !important;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  color: #e0f7fa !important;
  transition: all 0.2s ease !important;
  border-radius: 8px !important;
  margin: 0 0.5rem !important;
}

.dropdown-item .fas {
  width: 16px !important;
}

.dropdown-item .fa-user {
  color: #1fd47b !important;
}

.dropdown-item .fa-sign-out-alt {
  color: #ff6b6b !important;
}

.auth-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 80px !important;
  max-width: 120px !important;
  margin: 0 auto !important;
}

.btn-cyber.auth-btn {
  background: linear-gradient(135deg, #1fd47b 0%, #5a6ffb 100%) !important;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 3px 12px rgba(31, 212, 123, 0.25) !important;
  border: none !important;
  font-size: 0.75rem !important;
  padding: 0.3rem 0.6rem !important;
  min-width: 80px !important;
  max-width: 120px !important;
}

/* Enhanced Navigation Hover Effects */
.user-avatar:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-avatar:hover .avatar-circle {
  transform: scale(1.1);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(5px);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-cyber.auth-btn:hover {
  box-shadow: 0 6px 20px rgba(31, 212, 123, 0.4);
}

/* Mobile responsive navigation adjustments */
@media (max-width: 768px) {
  .user-avatar span {
    display: inline-block !important;
    /* Show full username on mobile */
    max-width: 150px;
    /* Allow reasonable width */
    overflow: visible !important;
    /* Don't truncate */
    text-overflow: clip !important;
    /* Show full text */
    white-space: normal !important;
    /* Allow wrapping if needed */
    word-break: break-word !important;
    /* Break long usernames */
    font-size: 0.9rem !important;
  }

  .avatar-circle {
    width: 32px !important;
    /* Slightly larger on mobile for visibility */
    height: 32px !important;
    font-size: 0.9rem !important;
    flex-shrink: 0;
    /* Prevent avatar from shrinking */
  }

  /* Ensure user avatar is fully visible in mobile menu - Compact */
  .nav-menu .user-avatar {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
    /* Add spacing before dropdown */
  }

  /* Make dropdown container more compact on mobile */
  .nav-menu .dropdown {
    width: 100% !important;
    margin-bottom: 0.5rem !important;
  }

  /* Ensure dropdown is hidden by default but shows when active */
  .nav-menu .dropdown .dropdown-menu {
    display: none !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
  }

  /* Show dropdown when active/open */
  .nav-menu .dropdown.dropdown-open .dropdown-menu,
  .nav-menu .dropdown.active .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Ensure dropdown doesn't take too much vertical space */
  .nav-menu .dropdown-menu {
    max-height: none !important;
    padding: 0.5rem 0 !important;
    background: rgba(24, 32, 54, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  }

  /* Ensure separator and logout are visible */
  .nav-menu .dropdown-menu>div[style*="height: 1px"] {
    margin: 0.3rem 0.5rem !important;
    /* Compact separator */
  }

  /* Make logout button more prominent and ensure it's visible */
  .nav-menu .dropdown-item[href*="logout"] {
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    /* Make it stand out */
  }

  .auth-btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
    min-height: 26px !important;
    min-width: 70px !important;
    max-width: 100px !important;
  }
}

@media (max-width: 480px) {

  /* Extra small mobile navbar brand */
  .navbar-brand {
    font-size: 0.8rem !important;
    gap: 0.1rem !important;
  }

  .navbar-logo {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }

  .navbar-brand-text {
    font-size: 0.8rem;
    letter-spacing: 0.15px;
  }

  .auth-btn {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.65rem !important;
    min-height: 24px !important;
    min-width: 60px !important;
    max-width: 90px !important;
  }

  .auth-btn i {
    margin-right: 0.15rem !important;
    font-size: 0.6rem !important;
  }

  .nav-menu {
    top: 50px !important;
  }

  .footer-bottom {
    padding: 1rem 0.8rem !important;
    /* Increased small mobile padding */
  }

  .footer-bottom-content-inline {
    font-size: 0.7rem !important;
    gap: 0.3rem !important;
    flex-direction: row !important;
    line-height: 1.1 !important;
  }

  .footer-bottom-content-inline a:not(:last-child)::after {
    content: " | " !important;
    margin: 0 0.15rem !important;
    font-size: 0.65rem !important;
  }
}

/* Extra small mobile footer optimization */
@media (max-width: 360px) {
  .footer-bottom {
    padding: 0.7rem 0.5rem !important;
    /* Increased extra small mobile padding */
  }

  .footer-bottom-content-inline {
    font-size: 0.6rem !important;
    gap: 0.2rem !important;
    flex-direction: row !important;
    line-height: 1.0 !important;
  }

  .footer-bottom-content-inline a:not(:last-child)::after {
    content: " | " !important;
    margin: 0 0.08rem !important;
    font-size: 0.55rem !important;
  }
}

/* Back to Top Button Styling */
.back-to-top {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(45deg, var(--primary), var(--secondary)) !important;
  border: none !important;
  border-radius: 50% !important;
  color: white !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1001 !important;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3) !important;
  transition: all 0.3s ease !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.back-to-top:hover {
  background: linear-gradient(45deg, var(--secondary), var(--accent)) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5) !important;
}

.back-to-top.visible {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile back-to-top button adjustments */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 1.1rem !important;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 1rem !important;
    right: 1rem !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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