:root {
  /* Glass & Surface Colors */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-dark: rgba(2, 6, 23, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Compatible Accents */
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.3);
  --accent-red: #ff2a5f;
  --accent-red-glow: rgba(255, 42, 95, 0.4);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #a5b4fc;
}



/* Strict structural reset to prevent left-shifting */
html,
body {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Baked gradients directly into body to prevent overflow */
body {
  font-family: "Inter", sans-serif;
  background-color: #011037;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 42, 95, 0.05) 0%, transparent 40%),
    linear-gradient(45deg, #011037, #040074, #011037);
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
}

/** Topbar style **/
.topbar-style {
  color: #000000;
  /* Or whatever your light grey background color is */
  color: #2c2c2c;
  /* <--- THIS FIXES THE 'Phone:' TEXT AND ICON */
  font-size: 13px;
  font-weight: 600;
}

.topbar-style a {
  color: #2c2c2c !important;
  text-decoration: none;
}

.topbar-style a:hover {
  color: black !important;
  text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.topbar-style svg {
  color: #333232;
  /* This changes the currentColor of the SVG to black */
}

/* =========================================
   CYBER BREADCRUMB STYLES
   ========================================= */

.cyber-breadcrumb {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 50px;
  padding: 10px 24px;
  display: inline-flex;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  /* Removed the old margin-top from here */
}

.cyber-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
}

.cyber-breadcrumb .breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.cyber-breadcrumb .breadcrumb-item a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.cyber-breadcrumb .breadcrumb-item.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Customizing the separator to use FontAwesome Chevron */
.cyber-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '\f054'; 
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: rgba(0, 240, 255, 0.3);
  font-size: 0.65rem;
  margin: 0 12px;
  /* Disable Bootstrap's default float to keep flexbox alignment perfect */
  float: none; 
}
/* Hero Section */
.hero-cyber-wrapper {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, rgba(1, 16, 55, 0.8) 0%, rgba(4, 0, 116, 0.6) 50%, rgba(1, 10, 32, 0.9) 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

/* Animated Cyber Grid Background */
.cyber-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  z-index: 1;
  animation: gridMove 20s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }

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

/* Subtle Scanline Overlay */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Live Blinking Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 42, 95, 0.1);
  border: 1px solid rgba(255, 42, 95, 0.4);
  padding: 8px 20px;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 25px;
  box-shadow: inset 0 0 10px rgba(255, 42, 95, 0.2);
}

.blink-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  margin-right: 12px;
  box-shadow: 0 0 8px var(--accent-red);
  animation: blink 1.5s infinite;
}

@keyframes blink {

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

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* Glitch Typography on Hover */
.hero-glitch-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hero-glitch-title {
    font-size: 3rem;
  }
}

.hero-glitch-title:hover {
  text-shadow:
    3px 0px 0px rgba(255, 42, 95, 0.7),
    -3px 0px 0px rgba(0, 240, 255, 0.7);
}

.highlight-text {
  color: var(--accent-cyan);
}

/* Floating Action Terminal (Glassmorphism) */
.action-terminal {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  border-top: 2px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: floatPanel 6s ease-in-out infinite;
}

@keyframes floatPanel {

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

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

/* Terminal UI Accents */
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.terminal-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.dot-red {
  background: #ff2a5f;
}

.dot-yellow {
  background: #ffb800;
}

.dot-green {
  background: #00ff88;
}

/* Buttons */
.btn-emergency {
  background: linear-gradient(135deg, var(--accent-red), #d40036);
  color: #ffffff !important;
  font-weight: 700;
  padding: 16px 45px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px var(--accent-red-glow);
  text-decoration: none;
}

.btn-emergency:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 42, 95, 0.6);
  color: #ffffff;
}

.btn-outline-cyber {
  background: rgba(0, 240, 255, 0.05);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 10px 24px;
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-outline-cyber:hover {
  background: var(--accent-cyan);
  color: #011037;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* Stats Bar */
.stats-wrapper {
  margin-top: -40px;
  position: relative;
  z-index: 20;
}

.stats-inner {
  background: var(--glass-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 35px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-divider {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  transition: all 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px var(--accent-cyan-glow));
}

/* Process Steps */
.process-step {
  position: relative;
  padding-left: 55px;
  margin-bottom: 40px;
}

.process-number {
  position: absolute;
  left: 0;
  top: -5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 240, 255, 0.4);
}

/* =========================================
   GALLERY / IMAGE STYLES
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
}

.gallery-item {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  min-height: 250px;
  transition: all 0.3s;
  
  /* NEW: Keeps the images clipped inside the rounded borders */
  overflow: hidden;
  padding: 0;
  position: relative;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  
  /* CHANGED: This centers the crop perfectly inside the box */
  object-position: center; 
  
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark blue overlay to blend images with your cyber theme */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* CHANGED: Set to 0 so the image is 100% clear and bright by default */
  background: rgba(1, 16, 55, 0); 
  transition: background 0.4s ease;
  pointer-events: none; 
}

.gallery-item:hover::after {
  /* CHANGED: Keeps it completely clear on hover as well */
  background: rgba(1, 16, 55, 0); 
}

.gallery-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.gallery-item:hover img.gallery-img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  background: rgba(1, 16, 55, 0.1); 
}

.gi-1,
.gi-2,
.gi-3 {
  grid-column: span 4;
}

.gi-4 {
  grid-column: span 7;
  min-height: 350px;
}

.gi-5 {
  grid-column: span 5;
  min-height: 350px;
}

@media (max-width: 768px) {
  .gi-1,
  .gi-2,
  .gi-3,
  .gi-4,
  .gi-5 {
    grid-column: span 12;
  }

  .stat-divider {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}

/* =========================================
   UPGRADED EXPERT SECTION STYLES
   ========================================= */

/* Main Container Wrapper */
.expert-container {
  background: linear-gradient(145deg, rgba(2, 6, 23, 0.8), rgba(1, 16, 55, 0.4));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  width: 100%;
}

/* Left Column: Bio & Details */
.expert-bio {
  padding: 60px;
  border-right: 1px solid rgba(0, 240, 255, 0.1);
  position: relative;
}

/* Subtle background shield watermark for a premium feel */
.expert-bio::before {
  content: '\f132';
  /* FontAwesome shield-halved unicode */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 15rem;
  color: rgba(0, 240, 255, 0.02);
  z-index: 0;
  pointer-events: none;
}

.expert-bio>* {
  position: relative;
  z-index: 1;
}

/* Right Column: CTA Action Box */
.expert-action {
  padding: 60px;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Upgraded Profile Picture Layout */
.expert-profile-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 25px;
}

/* Glowing ring around the image */
.expert-profile-pic {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  padding: 4px;
  background: rgba(0, 240, 255, 0.1);
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* Verified Badge Overlay */
.expert-badge {
  position: absolute;
  bottom: 5px;
  right: 0px;
  background: var(--accent-cyan);
  color: #011037;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 3px solid #011037;
  z-index: 3;
}

/* Interactive Data Cards (Replaces standard bullet points) */
.expert-highlights {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.expert-highlights li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.expert-highlights li:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateX(5px);
}

.expert-highlights li i {
  color: var(--accent-cyan);
  margin-top: 4px;
  margin-right: 15px;
  font-size: 1.1rem;
}

/* Responsive constraints for Mobile/Tablet */
@media (max-width: 991px) {
  .expert-bio {
    border-right: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding: 40px;
  }

  .expert-action {
    padding: 40px;
  }
}

/* --- PREMIUM JS FEATURE STYLES --- */

/* Live Log Ticker */
.threat-ticker-container {
  font-family: monospace;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  margin-bottom: 25px;
  min-height: 20px;
  opacity: 0.8;
}

.threat-ticker {
  transition: opacity 0.3s ease;
}

/* 3D Terminal Tilt */
.terminal-perspective {
  perspective: 1000px;
}

#tilt-terminal {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* Secure Boot Typewriter */
.typewriter-text {
  color: #a5b4fc;
  font-size: 0.95rem;
  margin-bottom: 30px;
  display: inline-block;
  min-height: 45px;
}

.typewriter-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--accent-cyan);
  margin-left: 4px;
  vertical-align: middle;
  animation: blinkCursor 1s infinite;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Disable 3D tilt on mobile */
@media (max-width: 768px) {
  #tilt-terminal {
    transform: none !important;
  }
}

/* =========================================
   CUSTOM FAQ ACCORDION STYLES (DARK CYBER THEME)
   ========================================= */

.custom-accordion .accordion-item {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 12px !important;
  margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.3s ease;
}

.custom-accordion .accordion-item:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border-left-color: var(--accent-red);
  background: rgba(255, 255, 255, 0.04);
}

.custom-accordion .accordion-button {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #ffffff;
  padding: 20px 25px;
  background-color: transparent;
  box-shadow: none;
}

.custom-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--accent-cyan);
  background-color: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Invert the default black Bootstrap arrow to white for dark mode */
.custom-accordion .accordion-button::after {
  filter: invert(1) brightness(200%);
}

/* Make the arrow match the cyan color when the accordion is open */
.custom-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(75%) sepia(50%) saturate(3000%) hue-rotate(150deg) brightness(100%) contrast(100%);
}

.custom-accordion .accordion-body {
  padding: 25px;
  background-color: transparent;
}

.custom-accordion .accordion-body p {
  color: var(--text-muted);
  /* Uses the icy blue-gray text */
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.custom-accordion .accordion-body p strong {
  color: #ffffff;
}

.custom-accordion .accordion-body p:last-child {
  margin-bottom: 0;
}

/* Ensure all text matches the premium theme */
.content-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.content-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.content-block ul li {
  color: var(--text-main);
  margin-bottom: 0.8rem;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
}

.content-block ul li i {
  color: var(--accent-cyan);
  margin-top: 5px;
  margin-right: 12px;
  font-size: 0.9rem;
}

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.glass-box {
  background: var(--glass-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  height: 100%;
}

.faq-box {
  background: rgba(0, 240, 255, 0.03);
  border-left: 4px solid var(--accent-cyan);
  padding: 30px;
  border-radius: 0 12px 12px 0;
}