/*
Theme Name: GlobalMente V1
Theme URI: https://globalmente.it
Author: GlobalMente Intelligence
Author URI: https://globalmente.it
Description: Industrial Cyber-Minimalism Theme for B2B Revenue Infrastructure. Released February 18, 2026. v1.8
Version: 1.8
Domain Path: /languages
*/

body {
  background-color: #000000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background-color: rgba(51, 169, 219, 0.3);
}

.crt-overlay {
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.glass-container {
  background: rgba(18, 28, 33, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 169, 219, 0.3);
  box-shadow: 0 0 40px rgba(51, 169, 219, 0.1);
}

.glow-border {
  box-shadow: 0 0 15px rgba(51, 169, 219, 0.4);
  border-color: rgba(51, 169, 219, 0.8);
}

.cyber-cell {
  position: relative;
  border: 1px solid rgba(51, 169, 219, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(4px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cyber-cell:hover {
  border-color: rgba(51, 169, 219, 0.7);
  background: linear-gradient(135deg, rgba(51, 169, 219, 0.08), rgba(255, 255, 255, 0.06));
  transform: translateY(-0.35rem);
  box-shadow: 0 0 25px rgba(51, 169, 219, 0.25), 0 8px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(51, 169, 219, 0.03);
}

.cyber-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 169, 219, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.cyber-cell:hover::before {
  opacity: 1;
}

.heritage-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.heritage-scroll::-webkit-scrollbar {
  display: none;
}

.bento-card .bento-icon {
  transition: all 0.5s ease;
}

.bento-card:hover .bento-icon {
  transform: scale(1.2) rotate(5deg);
}

#service-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#modal-panel {
  transform: translateX(100%);
  transition: transform 0.5s ease-out;
}

#modal-body .modal-section-title {
  color: #33a8db;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

#modal-body .modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

#modal-body .modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

#modal-body .modal-list li::before {
  content: "›";
  color: #33a8db;
  font-weight: bold;
  flex-shrink: 0;
}

#modal-body .modal-outcome {
  padding: 1rem;
  border: 1px solid rgba(51, 169, 219, 0.2);
  background: rgba(51, 169, 219, 0.05);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cyber-menu-item {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

.cyber-menu-item:hover {
  color: #33a9db;
  background-color: rgba(51, 169, 219, 0.1);
  text-shadow: 0 0 8px rgba(51, 169, 219, 0.6);
}

.isometric-container {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.kinetic-text {
  color: #fff;
  transition: color 0.7s ease-out;
}

.kinetic-text.active {
  color: #33a9db;
  letter-spacing: normal;
}

.chat-message-content {
  font-size: 0.9rem;
  line-height: 1.8;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

.chat-message-content p {
  margin-bottom: 1rem;
}

.chat-message-content p:last-child {
  margin-bottom: 0;
}

.chat-message-content strong {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 6px rgba(51, 169, 219, 0.15);
}

.chat-message-content em {
  color: rgba(51, 169, 219, 0.9);
  font-style: italic;
}

.chat-message-content h1,
.chat-message-content h2,
.chat-message-content h3 {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(51, 169, 219, 0.15);
  padding-bottom: 0.35rem;
}

.chat-message-content h1 { font-size: 1.15rem; }
.chat-message-content h2 { font-size: 1.05rem; }
.chat-message-content h3 { font-size: 0.95rem; border-bottom: none; }

.chat-message-content ul,
.chat-message-content ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  list-style-position: outside;
}

.chat-message-content ul {
  list-style-type: none;
}

.chat-message-content ol {
  list-style-type: decimal;
}

.chat-message-content ul > li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.chat-message-content ul > li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #33a9db;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
}

.chat-message-content ol > li {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.chat-message-content ol > li::marker {
  color: #33a9db;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.chat-message-content code {
  background-color: rgba(51, 169, 219, 0.08);
  border: 1px solid rgba(51, 169, 219, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #33a9db;
}

.chat-message-content blockquote {
  border-left: 3px solid #33a9db;
  padding: 0.5rem 1rem;
  margin: 0.75rem 0;
  background-color: rgba(51, 169, 219, 0.05);
  border-radius: 0 0.25rem 0.25rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.chat-message-content hr {
  border: none;
  border-top: 1px solid rgba(51, 169, 219, 0.2);
  margin: 1rem 0;
}

/* --- Intro Header Section (Scoped) --- */
#intro-header {
  align-items: center;
  display: flex;
  height: 60vh;
  min-height: 350px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  #intro-header {
    height: 80vh;
  }
}

#intro-header::before {
  animation: fade-slide-down 2s 500ms cubic-bezier(0, 0.5, 0, 1) forwards;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)),
    url('https://images.unsplash.com/photo-1487525219605-eadb39ae229c?ixlib=rb-0.3.5&s=f4ba0a64eae53f957b8c4d54f3f98944&auto=format&fit=crop&w=2564&q=80') no-repeat bottom;
  background-size: cover;
  bottom: 0;
  content: "";
  left: -5%;
  opacity: 0;
  position: absolute;
  right: -5%;
  top: 0;
  z-index: -1;
}

#intro-header::after {
  animation: rotate-up 500ms 500ms cubic-bezier(0, 0.5, 0, 1) forwards;
  background: #000;
  content: "";
  height: 40rem;
  left: -5%;
  position: absolute;
  right: -5%;
  top: 90%;
  transform-origin: 0 0;
  z-index: 0;
}

#intro-header-content {
  margin-top: -10%;
  overflow: visible;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

#intro-header h1 {
  color: #33a8db;
  margin: 0;
  opacity: 0;
  animation: fade-slide-down-rotate 2s 2s cubic-bezier(0, 0.5, 0, 1) forwards, glow-loop 3s infinite alternate;
  animation-delay: 800ms, 3s;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw + 1vmin, 8rem);
  font-weight: 700;
  margin-bottom: 2.5%;
  letter-spacing: -0.05em;
}

#intro-header h3 {
  color: #fff;
  margin: 0;
  opacity: 0;
  animation: fade-slide-up 3s 3s cubic-bezier(0, 0.5, 0, 1) forwards;
  animation-delay: 100ms;
  font-size: clamp(0.6rem, 1.25vw + 0.8vmin, 1.5rem);
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  #intro-header h3 {
    letter-spacing: 0.5em;
  }
}

#intro-header h3 span,
.intelligence-hub-glow {
  color: #33a8db;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2em;
  letter-spacing: 0;
  opacity: 0.8;
  padding: 0 0.25em;
  text-transform: none;
  animation: glow-loop-sub 3s infinite alternate;
  animation-delay: 4s;
}

#intro-header h4 {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2rem;
  opacity: 0;
  animation: fade-slide-up 3s 3.5s cubic-bezier(0, 0.5, 0, 1) forwards;
}

/* Animations */
@keyframes fade-slide-down {
  0% {
    opacity: 0;
    transform: translateY(-4rem);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-slide-down-rotate {
  0% {
    opacity: 0;
    transform: translateY(-4rem);
  }

  100% {
    opacity: 1;
    transform: rotate(-4deg);
  }
}

@keyframes fade-slide-up {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes rotate-up {
  100% {
    transform: rotateZ(-4deg);
  }
}

@keyframes glow-loop {
  from {
    text-shadow: 0 0 15px rgba(51, 169, 219, 0.3), 0 0 30px rgba(51, 169, 219, 0.1);
  }

  to {
    text-shadow: 0 0 40px rgba(51, 169, 219, 1), 0 0 80px rgba(51, 169, 219, 0.6), 0 0 120px rgba(51, 169, 219, 0.3);
  }
}

@keyframes glow-loop-sub {
  from {
    text-shadow: 0 0 8px rgba(51, 169, 219, 0.1);
    filter: brightness(1);
  }

  to {
    text-shadow: 0 0 20px rgba(51, 169, 219, 0.6), 0 0 40px rgba(51, 169, 219, 0.3);
    filter: brightness(1.2);
  }
}

/* Cursor Styles */
#cursor-dot,
#cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

#cursor-dot {
  width: 8px;
  height: 8px;
  background-color: white;
}

#cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(51, 169, 219, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering #cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(51, 169, 219, 0.1);
  border-color: #33a9db;
}

/* Catchphrase Rotator */
.catchphrase-line {
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 0;
  transform: translateY(10px);
}

.catchphrase-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.catchphrase-line.exit {
  opacity: 0;
  transform: translateY(-10px);
}

#catchphrase-sub .hub-glow {
  color: #33a9db;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(51, 169, 219, 0.4);
}

/* Segment Cards */
.segment-card {
  min-height: 140px;
}

.segment-card.segment-selected {
  border-color: #33a9db;
  background: linear-gradient(135deg, rgba(51, 169, 219, 0.15), rgba(51, 169, 219, 0.05));
  box-shadow: 0 0 30px rgba(51, 169, 219, 0.3), inset 0 0 20px rgba(51, 169, 219, 0.05);
  transform: scale(1.03);
}

.segment-card.segment-dimmed {
  opacity: 0.25;
  pointer-events: none;
  transform: scale(0.97);
}

.lang-btn {
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.lang-btn.lang-active {
  background-color: #33a9db;
  color: #000;
  font-weight: 700;
}
