
html,
body {
  overflow-x: hidden;
}


/* ===========================
   GLOBAL VARIABLES
   =========================== */
:root {
  /* Night mode */
  --primary: #0C2747;
  --accent: #02AFF4;
  --dropdown-bg: #1B2E46;
  --border: #4BA3E8;
  --text-color: #f8f9fa;

  /* Day mode */
  --day-border: #94c9ff;
  --day-accent: #0078d7;
  --day-text-color: #05223b;

  /* Unified gradients */
  --night-grad: linear-gradient(135deg, #0C2747, #1B2E46 45%, #02AFF4 100%);
  --day-grad: linear-gradient(to right, #b6fbff, #83a4d4);
}

/* ===========================
   GLOBAL TYPOGRAPHY
   =========================== */
body,
p,
li,
a,
span {
  font-family: 'Source Sans Pro', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.Proximus,
.Noa {
  font-family: 'Inter', sans-serif !important;
}

/* ===========================
   BODY BACKGROUND & LAYERS
   =========================== */

body {
  background: var(--night-grad);
  /* Remove fixed attachment to avoid mobile drift */
  /* background-attachment: fixed; */
  background-size: cover;
  color: var(--text-color);
  transition: background 1s ease-in-out, color 0.5s ease-in-out;
  min-height: 100vh;
  }

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}







/* Day mode class (toggled by JS) */
body.day-mode {
  background: var(--day-grad);
  color: var(--day-text-color);
}

/* Subtle animated glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(2, 175, 244, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: pulse 12s ease-in-out infinite alternate;
  z-index: 0;
}

/* Texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/cubes.png");
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Ensure main content sits above background layers */
main,
nav,
header,
footer,
section {
  position: relative;
  z-index: 1;
}

/* Pulse animation */
@keyframes pulse {
  from {
    opacity: 0.1;
    transform: scale(1);
  }
  to {
    opacity: 0.25;
    transform: scale(1.05);
  }
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  background: rgba(12, 39, 71, 0.85); /* night default */
  backdrop-filter: blur(8px);
  transition: background 1s ease-in-out, color 0.5s ease-in-out;
}

/* Day mode navbar */
body.day-mode .navbar {
  background: rgba(255, 255, 255, 0.85);
}

/* Navbar text colors */
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .btn {
  transition: color 0.5s ease-in-out;
  color: #f8f9fa;
}

body.day-mode .navbar .nav-link,
body.day-mode .navbar .navbar-brand {
  color: #05223b !important;
}

/* CTA button */
.navbar .btn-outline-info {
  border-color: rgba(75, 163, 232, 0.9);
  color: rgba(75, 163, 232, 0.95);
}

body.day-mode .navbar .btn-outline-info {
  border-color: #4BA3E8;
  color: #0078d7;
}

/* ===========================
   NAVBAR TOGGLER (ANIMATED)
   =========================== */
.animated-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background: var(--accent);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar-toggler.collapsed .animated-toggler span:nth-child(1) {
  transform: rotate(0);
}

.navbar-toggler:not(.collapsed) .animated-toggler span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler:not(.collapsed) .animated-toggler span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler:not(.collapsed) .animated-toggler span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================
   MODE TOGGLE BUTTON
   =========================== */
#modeToggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #0dcaf0;
  border-radius: 50px;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#modeToggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #02aff4;
  color: #02aff4;
}

#modeText {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  margin: 0;
  color: #0dcaf0;
}

#modeIcon {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0dcaf0;
}

/* Mobile-friendly toggle sizing */
@media (max-width: 768px) {
  #modeToggle {
    padding: 0.4rem 0.8rem;
    gap: 6px;
    font-size: 0.85rem;
  }

  #modeText {
    font-size: 0.85rem;
  }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: transparent; /* inherits body gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: inherit;
  transition: color 0.5s ease-in-out;
}

/* Hero content above canvas */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Subtle overlay for depth */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.06)
  );
  mix-blend-mode: overlay;
  transition: opacity 1s ease-in-out;
}

/* Canvas behind content */
#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Hero responsive tweaks */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

