/*
Extracted from original inline <style> tags. Copied exactly, preserving order.
*/

/* Aura editor visibility */
.invisible {
visibility: hidden !important;
}

/*
Parallax Animation
1) Insert this code in the <head>
2) Add to Tailwind Classes: [animation:parallaxElement_linear_both] [animation-timeline:view()] [animation-range:entry_0%_entry_160%]
*/
@keyframes parallaxElement {
from {
transform: translateY(-12%);
}
to {
transform: translateY(12%);
}
}

/*
Sequence animation intro. Usage:
1) Insert this code in the <head>
2) Add to Tailwind Classes: [animation:fadeSlideIn_1s_ease-out_0.1s_both]
*/
@keyframes fadeSlideIn {
0% {
opacity: 0;
transform: translateY(30px);
filter: blur(8px);
}
100% {
opacity: 1;
transform: translateY(0);
filter: blur(0px);
}
}

/* ========================================
   Custom Z-Index for Particles
   ======================================== */

.z-5 {
  z-index: 5;
}

/* ========================================
   Header Glass Components
   ======================================== */

/* Header Container Glass */
.header-glass-bg {
  background: rgba(23, 23, 23, 0.4);
}

/* Nav Glass Container */
.nav-glass {
  background: rgba(23, 23, 23, 0.3);
}

/* Nav Links Hover */
header nav a {
  transition: all 0.2s ease;
  cursor: pointer;
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
}

/* Force hover on nav links with higher specificity */
header .nav-glass a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  transform: scale(1.02);
}

/* CTA Button Styles */
.cta-button {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  background: radial-gradient(ellipse at bottom, rgba(55,55,55,1) 0%, rgba(0,0,0,1) 100%);
  ease: cubic-bezier(0.15, 0.83, 0.66, 1);
}

.cta-underline {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  ease: cubic-bezier(0.15, 0.83, 0.66, 1);
}

.cta-glow {
  background: radial-gradient(60% 100% at 50% 50%, rgba(255,255,255,.55), rgba(255,255,255,.28) 35%, transparent 70%);
  filter: blur(10px) saturate(120%);
}

/* ========================================
   Nexo Font System
   Space Mono (monospace) per titoli/accenti
   Work Sans (sans-serif) per body/testo
   ======================================== */

/* Base: Work Sans per tutto */
body {
  font-family: 'Work Sans', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

/* Work Sans per testo normale */
p, span, a, li {
  font-family: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
}

/* Space Mono per heading */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Mono', monospace !important;
  font-weight: 700 !important;
}

/* Override font-geist class con Work Sans */
.font-geist {
  font-family: 'Work Sans', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

/* Classi utility */
.font-space-mono {
  font-family: 'Space Mono', monospace !important;
}

.font-work-sans {
  font-family: 'Work Sans', sans-serif !important;
}

/* Gradient blur styles (from header wrapper) */
.gradient-blur {
  position: fixed;
  z-index: 5;
  inset: auto 0 0 0;
  height: 65%;
  pointer-events: none;
}

.gradient-blur>div,
.gradient-blur::before,
.gradient-blur::after {
  position: absolute;
  inset: 0;
}

.gradient-blur::before {
  content: "";
  z-index: 1;
  backdrop-filter: blur(0.5px);
  mask: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 12.5%,
      rgba(0, 0, 0, 1) 25%,
      rgba(0, 0, 0, 0) 37.5%);
}

.gradient-blur>div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(1px);
  mask: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 12.5%,
      rgba(0, 0, 0, 1) 25%,
      rgba(0, 0, 0, 1) 37.5%,
      rgba(0, 0, 0, 0) 50%);
}

.gradient-blur>div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(2px);
  mask: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 25%,
      rgba(0, 0, 0, 1) 37.5%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 0) 62.5%);
}

.gradient-blur>div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(4px);
  mask: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 37.5%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 1) 62.5%,
      rgba(0, 0, 0, 0) 75%);
}

.gradient-blur>div:nth-of-type(4) {
  z-index: 5;
  backdrop-filter: blur(8px);
  mask: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 1) 62.5%,
      rgba(0, 0, 0, 1) 75%,
      rgba(0, 0, 0, 0) 87.5%);
}

.gradient-blur>div:nth-of-type(5) {
  z-index: 6;
  backdrop-filter: blur(16px);
  mask: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 62.5%,
      rgba(0, 0, 0, 1) 75%,
      rgba(0, 0, 0, 1) 87.5%,
      rgba(0, 0, 0, 0) 100%);
}

.gradient-blur>div:nth-of-type(6) {
  z-index: 7;
  backdrop-filter: blur(32px);
  mask: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 75%,
      rgba(0, 0, 0, 1) 87.5%,
      rgba(0, 0, 0, 1) 100%);
}

.gradient-blur::after {
  content: "";
  z-index: 8;
  backdrop-filter: blur(64px);
  mask: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 87.5%,
      rgba(0, 0, 0, 1) 100%);
}

/* Ticker styles */
@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.ticker-track {
  animation: ticker 40s linear infinite;
  width: calc(200% + 16px);
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* ========================================
   Nexo Intelligence Dashboard Styles
   ======================================== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fillBar {
  from {
    width: 0%;
  }
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse 2s ease-in-out infinite;
}

.fill-bar {
  animation: fillBar 1.5s ease-out forwards;
}

.glass-card {
  background: rgba(23, 23, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Mobile Menu Slide-down
   ======================================== */

.mobile-menu {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 28rem;
  background: rgba(23, 23, 23, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu.active {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-link {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(203, 213, 225, 1);
  background: transparent;
  border-radius: 9999px;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: scale(1.02);
}

.mobile-menu-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Advanced Micro-interactions
   ======================================== */

/* Base Card Transition */
.glass-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Universal Card Hover Effect */
.glass-card:hover {
  background: rgba(23, 23, 23, 0.8) !important;
  transform: translateY(-2px);
}

/* Section-Specific Border Accents */

/* Solutions - First grid (2 large cards) */
#solutions .grid.md\:grid-cols-2 .glass-card:nth-child(1):hover {
  border-color: rgba(59, 130, 246, 0.3) !important; /* Nexo Studio - Blue */
}

#solutions .grid.md\:grid-cols-2 .glass-card:nth-child(2):hover {
  border-color: rgba(16, 185, 129, 0.3) !important; /* Nexo Intelligence - Green */
}

/* Solutions - Second grid (3 small benefit cards) */
#solutions .grid.md\:grid-cols-3 .glass-card:hover {
  border-color: rgba(249, 115, 22, 0.3) !important; /* All 3 cards - Orange */
}

#tech-partner .glass-card:hover {
  border-color: rgba(59, 130, 246, 0.3) !important;
}

#ai-locale .glass-card:hover {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Button Hover Glow */
.floating-button:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(249, 115, 22, 0.4),
    0 0 40px rgba(249, 115, 22, 0.2);
}

/* Link Underline Animation */
a:not(.shiny-cta):not(.floating-button):not(.mobile-menu-link) {
  position: relative;
}

a:not(.shiny-cta):not(.floating-button):not(.mobile-menu-link)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(249, 115, 22, 0) 0%,
    rgba(249, 115, 22, 1) 50%,
    rgba(249, 115, 22, 0) 100%
  );
  transition: width 0.3s ease;
}

a:not(.shiny-cta):not(.floating-button):not(.mobile-menu-link):hover::after {
  width: 100%;
}

/* Form Input Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.6) !important;
  box-shadow:
    0 0 0 3px rgba(249, 115, 22, 0.1),
    0 0 20px rgba(249, 115, 22, 0.2);
  transform: translateY(-1px);
}

/* Tech Partner Step Cards Hover */
#tech-partner .glass-card:hover .w-12 {
  transform: rotate(360deg) scale(1.1);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Portfolio Navigation Dots Enhanced */
.portfolio-dot {
  transition: all 0.3s ease;
}

.portfolio-dot:hover {
  transform: scale(1.3);
  background: rgba(249, 115, 22, 0.8);
}

.portfolio-dot.active {
  width: 2rem;
  border-radius: 1rem;
  background: linear-gradient(90deg,
    rgba(249, 115, 22, 1) 0%,
    rgba(249, 115, 22, 0.6) 100%
  );
}


/* ========================================
   Enhanced Typography System
   ======================================== */

/* Gradient Text Effect */
.text-gradient {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  /* Font-size inherited from parent H1/H2 - no fixed size needed */
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(249, 115, 22, 1) 50%,
    rgba(255, 255, 255, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* H2 Titles Enhanced */
h2 {
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 400;
}

/* Section Tags/Badges Enhanced */
.inline-flex.items-center.gap-2.rounded-full {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Paragraph Line Height Optimization */
p {
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* Subtitle Accent Style */
.subtitle-accent {
  position: relative;
  padding-left: 1.5rem;
}

.subtitle-accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: calc(100% - 1rem);
  background: linear-gradient(180deg,
    rgba(249, 115, 22, 1) 0%,
    rgba(249, 115, 22, 0) 100%
  );
  border-radius: 2px;
}

/* Number/Stat Emphasis */
.stat-number {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(249, 115, 22, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
