/* ========== BASE ========== */

body {
  background-color: #101010;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}


/* ========== HERO SECTION ========== */

.hero-section {
  position: relative;
  min-height: 90vh;
  background-image: url("../images/network.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-top: 60px; /* Altezza navbar */
  padding-top: 0;
}

/* Hero overlay gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0a0a0a 0%, #0a0a0a80 50%, transparent 85%);
  z-index: 0;
}

/* Overlay immagine statica nel fondo */
.hero-bg {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 600px;
  width: 100%;
  height: auto;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  filter: brightness(130%) blur(0.5px);
}

/* Animazione iniziale degli elementi */
.hero-animate {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease-out;
}

.hero-animate.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Sfumatura in basso dopo la hero */
.hero-fade {
  height: 100px;
  background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, #0a0a0a 100%);
  margin-top: -80px;
  z-index: 1;
  position: relative;
}

/* Hero personalizzata per homepage */
.homepage-hero {
  background-image: url("../images/neurons.gif"), url("../images/network.png");
}


/* ========== TIPOGRAFIA ========== */

.text-cyan {
  color: #00e0ff !important;
}

.text-muted {
  color: #cccccc !important;
}


/* ========== BOTTONI ========== */

.btn-primary {
  background-color: #00e0ff;
  border: none;
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 12px #00e0ff80;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #00ffff;
  box-shadow: 0 0 24px #00e0ffcc;
  color: #000;
}

.btn-outline-light {
  border: 1px solid #cccccc;
  color: #cccccc;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: #ffffff15;
  color: #ffffff;
}


.btn-link {
  color: #00e0ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

a.learn-more-link {
  color: #00e0ff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.learn-more-link:hover {
  color: #ffffff;
  text-decoration: underline;
}


/* ========== NAVBAR ========== */

/* Hamburger arancio */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ff6a00' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


.custom-navbar {
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: none;
}

.custom-navbar .nav-link,
.custom-navbar .navbar-brand {
  color: #ffffff !important;
}

.custom-navbar .nav-link:hover {
  color: #00e0ff !important;
}


/* Dropdown stile cyber */
.cyber-dropdown {
  background-color: #0a0a0a;
  border: 1px solid #00e0ff33;
  padding: 0.5rem 0;
}

.cyber-dropdown .dropdown-item {
  color: #00e0ff;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cyber-dropdown .dropdown-item:hover {
  background-color: rgba(0, 224, 255, 0.1);
  color: #ffffff;
  text-shadow: 0 0 4px #00e0ff;
}


/* Dropdown generico */
.dropdown-menu {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: 100%;
  text-align: right;
  width: fit-content;
  min-width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  background-color: #000000ee;
  border-radius: 6px;
  box-shadow: 0 0 8px #00f0ff33;
  transform: translateX(0) !important;
  z-index: 1000;
}

.nav-link:hover,
.dropdown-item:hover {
  color: #ffffff !important;
  background-color: transparent !important;
  text-shadow: 0 0 6px #00f0ff88;
  transition: all 0.2s ease;
}


/* ========== SEZIONI ========== */

.features-section {
  background-color: #0f0f0f;
}

.service-block {
  padding: 80px 0;
  position: relative;
}

.service-block:last-of-type {
  border-bottom: none;
}

/* Connessione verticale tra icone */
.service-block:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, #00e0ff88, transparent);
  z-index: 0;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.service-block.in-view::after {
  opacity: 1;
}


/* ========== COMPONENTI ========== */

.number-badge {
  display: inline-block;
  background-color: #181818;
  color: #00e0ff;
  border: 2px solid #00e0ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 56px;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

.stat-box {
  background-color: #1a1a1a;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff !important;
}


.divider-line {
  border: 0;
  height: 1px;
  background-color: #00e0ff;
  opacity: 0.5;
  width: 60%;
  margin: 1.5rem auto;
}

.roadmap-img {
  max-width: 80%;
  height: auto;
}


/* ========== ICONE E ANIMAZIONI ========== */

.futuristic-icon {
  width: 350px;
  height: auto;
  margin: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px #00e0ffcc) drop-shadow(0 0 14px #00e0ff88);
}

.futuristic-icon.split-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #ff6a00 0%, #00e0ff 100%);
  z-index: -1;
  filter: blur(18px);
  opacity: 0.8;
  border-radius: 20%;
  pointer-events: none;
}


.futuristic-icon.no-shadow {
  filter: none;
}

.futuristic-icon.no-shadow:hover {
  filter: drop-shadow(0 0 8px #00e0ffcc) drop-shadow(0 0 14px #00e0ff88);
}

.icon-tile {
  background: none !important;
  box-shadow: none !important;
}

/* Effetto animazione in entrata */
.fade-in-up.in-view .icon-tile {
  box-shadow: 0 0 32px #00e0ff33 inset, 0 0 12px #00e0ff44;
}

/* Zoom animato al passaggio */
.service-zoom {
  transition: transform 0.5s ease;
  cursor: pointer;
}

.service-zoom:hover {
  transform: scale(1.07);
}


/* ========== CANVAS ========== */

#neuron-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
  background: transparent;
}


/* ========== CONTENUTI TESTUALI ========== */

.bg-black p {
  color: #bbbbbb;
}

.bg-black h2,
.bg-black h3,
.bg-black h4,
.bg-black h5,
.bg-black h6 {
  color: #ffffff;
}


.service-label {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff !important;
}




/* Glow cyan */
.link-cyan {
  color: #00e0ff !important;
  text-shadow: 0 0 6px #00e0ff88;
}

.link-cyan:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px #00e0ff;
}


/* Glow orange */
.link-orange {
  color: #ff6a00 !important;
  text-shadow: 0 0 6px #ff6a00aa;
}

.link-orange:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px #ff6a00cc;
}


/*Description of the methodology*/
.step-overlay {
  position: absolute;
  width: 20%;
  height: 20%;
  cursor: pointer;
  z-index: 2;
}

.hover-description {
  position: absolute;
  max-width: 500px;
  background-color: #000000dd;
  color: #00e0ff;
  font-weight: 500;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid #00e0ff55;
  border-radius: 8px;
  display: none;
  z-index: 10;
  box-shadow: 0 0 16px #00e0ff33;
}

.hover-description::after {
  content: "";
  position: absolute;
  border: 8px solid transparent;
}

.hover-description.top::after {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #00e0ff55;
}

.hover-description.bottom::after {
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #00e0ff55;
}


