/* ============================================
   Digital Horizon – Cyberpunk Elegant Theme
   Neon, dark, futuristic, professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #050508;
  --bg-dark: #0a0b0f;
  --bg-card: #0d0f14;
  --bg-elevated: #12141a;
  --border-subtle: rgba(0, 245, 255, 0.12);
  --neon-cyan: #00f5ff;
  --neon-cyan-dim: rgba(0, 245, 255, 0.7);
  --neon-magenta: #ff00ff;
  --neon-magenta-dim: rgba(255, 0, 255, 0.6);
  --text-primary: #e8eaed;
  --text-secondary: #9aa0a6;
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.4);
  --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.3);
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background:
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(255, 0, 255, 0.045) 0%, transparent 50%),
    radial-gradient(ellipse 70% 80% at 15% 90%, rgba(0, 245, 255, 0.03) 0%, transparent 50%),
    var(--bg-deep);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ----- Animated gradient mesh: cyan + magenta blobs (slow drift) ----- */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      ellipse 55% 50% at 75% 25%,
      rgba(255, 0, 255, 0.06) 0%,
      rgba(255, 0, 255, 0.02) 35%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 65% 55% at 50% 50%,
      rgba(0, 245, 255, 0.08) 0%,
      rgba(0, 245, 255, 0.025) 38%,
      transparent 62%
    );
  animation: meshMove 28s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ----- Grid overlay (grigio leggero per leggibilità, tocco cyan) ----- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(200, 210, 222, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 210, 222, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(4%, -3%) scale(1.06); }
  50%      { transform: translate(-5%, 3%) scale(0.96); }
  75%      { transform: translate(-3%, -4%) scale(1.04); }
}

/* ----- Container ----- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== Header / Nav ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 245, 255, 0.08);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar .logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.navbar .logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 0 8px var(--neon-cyan-dim));
  transition: filter 0.3s ease;
}

.navbar .logo-wrap:hover .logo-img {
  filter: drop-shadow(0 0 14px var(--neon-cyan)) drop-shadow(0 0 24px var(--neon-cyan-dim));
}

.navbar .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px var(--neon-cyan-dim);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.navbar .logo-wrap:hover .logo-text {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan), 0 0 24px var(--neon-cyan-dim);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: var(--glow-cyan);
  transition: width 0.35s ease;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan-dim);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Desktop: nav-modal non crea scatola, i link restano in barra */
.nav-modal {
  display: contents;
}

/* ----- Mobile: page label + hamburger (nascosti su desktop) ----- */
.nav-page-label {
  display: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  gap: 5px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.hamburger-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.06);
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero (index) ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    transparent 35%,
    rgba(5, 5, 8, 0.4) 100%
  );
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  /* No image: global mesh in body is the main background */
  background: none;
  pointer-events: none;
}

/* ----- Cyberpunk particles (homepage hero) ----- */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan), 0 0 12px var(--neon-cyan-dim);
  animation: particleFloat 8s ease-in-out infinite;
}

.hero-particles .particle.particle--magenta {
  background: var(--neon-magenta);
  box-shadow: 0 0 6px var(--neon-magenta), 0 0 12px var(--neon-magenta-dim);
  animation-duration: 10s;
  animation-direction: alternate;
}

.hero-particles .particle.particle--small {
  width: 2px;
  height: 2px;
  animation-duration: 12s;
}

.hero-particles .particle.particle--medium {
  width: 3px;
  height: 3px;
}

.hero-particles .particle.particle--large {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  animation-duration: 6s;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(15px, -20px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-10px, -35px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translate(-20px, -15px) scale(1.1);
    opacity: 0.9;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
}

/* ----- Scroll hint (invita a scorrere) ----- */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.hero-scroll-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.9;
}

.hero-scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(0, 245, 255, 0.6);
  border-bottom: 2px solid rgba(0, 245, 255, 0.6);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 0.7; }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.35), transparent);
  z-index: 1;
}

.hero h1, .hero h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 30px var(--neon-cyan-dim), 0 0 60px rgba(0, 245, 255, 0.2);
  margin-bottom: 1rem;
  animation: heroGlow 4s ease-in-out infinite alternate;
}

.hero-logo {
  display: block;
  width: auto;
  max-width: 160px;
  height: auto;
  margin: auto;
  border-radius: 18px;
  opacity: 0.88;
  filter: drop-shadow(0 0 16px var(--neon-cyan-dim)) drop-shadow(0 0 28px rgba(0, 245, 255, 0.25));
  object-fit: contain;
}

@keyframes heroGlow {
  from { text-shadow: 0 0 20px var(--neon-cyan-dim), 0 0 40px rgba(0, 245, 255, 0.15); }
  to   { text-shadow: 0 0 30px var(--neon-cyan), 0 0 60px rgba(0, 245, 255, 0.25); }
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  max-width: 32rem;
  margin: 0 auto 2rem;
}
.hero .btn-primary {
  margin-top: 1rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--neon-cyan), #00c8d4);
  padding: 1rem 2.25rem;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  box-shadow: 0 0 25px var(--neon-cyan-dim), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--neon-cyan), 0 0 50px var(--neon-cyan-dim), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ========== Il nostro prodotto (homepage) ========== */
.product-section {
  position: relative;
  padding: 5rem 1.5rem 5rem;
  overflow: hidden;
  z-index: 1;
}

.product-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.product-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  max-width: 400px;
  pointer-events: none;
}

.product-glow--l {
  left: 0;
  background: linear-gradient(to right, rgba(0, 245, 255, 0.04) 0%, transparent 100%);
}

.product-glow--r {
  right: 0;
  background: linear-gradient(to left, rgba(255, 0, 255, 0.03) 0%, transparent 100%);
}

.product-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2.5rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  text-shadow: 0 0 24px var(--neon-cyan-dim);
  margin-bottom: 0.75rem;
}

.product-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.6;
}

.product-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card {
  display: block;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(
    165deg,
    rgba(13, 15, 20, 0.95) 0%,
    rgba(8, 10, 14, 0.98) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(0, 245, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.product-card:hover {
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(0, 245, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

.product-card-icon {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan-dim);
  margin-bottom: 1rem;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 20px var(--neon-cyan-dim);
}

.product-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.product-card-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan-dim);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.product-card:hover .product-card-cta {
  color: var(--neon-magenta);
  text-shadow: 0 0 16px var(--neon-magenta-dim);
}

@media (max-width: 768px) {
  .product-section { padding: 4rem 1rem 4rem; }
  .product-card { padding: 1.75rem 1.5rem; }
}

/* ========== Sections (shared) ========== */
.section {
  padding: 5rem 0;
  text-align: center;
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan-dim);
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Service cards ========== */
.services .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.5rem;
  width: 100%;
  max-width: 280px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--neon-cyan-dim);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.12), inset 0 0 30px rgba(0, 245, 255, 0.02);
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ========== Services Room (immersive space / Meta Quest style) ========== */
.services-room {
  position: relative;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.room-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.room-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0, 245, 255, 0.03) 0%,
    transparent 25%,
    transparent 100%
  );
  clip-path: polygon(0 40%, 100% 35%, 100% 100%, 0 100%);
}

.room-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 245, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.room-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  max-width: 320px;
  pointer-events: none;
}

.room-glow--l {
  left: 0;
  background: linear-gradient(to right, rgba(0, 245, 255, 0.04) 0%, transparent 100%);
}

.room-glow--r {
  right: 0;
  background: linear-gradient(to left, rgba(255, 0, 255, 0.03) 0%, transparent 100%);
}

.room-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 3rem;
}

.room-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  text-shadow: 0 0 24px var(--neon-cyan-dim);
  margin-bottom: 0.75rem;
}

.room-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.6;
}

.room-panels {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1200px;
}

.service-panel {
  cursor: pointer;
  outline: none;
  transition: transform 0.4s ease;
}

.service-panel:focus-visible {
  box-shadow: 0 0 0 2px var(--neon-cyan);
}

.service-panel:hover .panel-frame,
.service-panel:focus .panel-frame {
  transform: translateY(-8px) rotateX(4deg) rotateY(-2deg);
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 245, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel-frame {
  position: relative;
  background: linear-gradient(
    165deg,
    rgba(13, 15, 20, 0.95) 0%,
    rgba(8, 10, 14, 0.98) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.4s ease, border-color 0.35s ease, box-shadow 0.4s ease;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 245, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.panel-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 245, 255, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
  border-radius: inherit;
}

.panel-icon {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan-dim);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.panel-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.panel-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan-dim);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.service-panel:hover .panel-cta {
  color: var(--neon-magenta);
  text-shadow: 0 0 14px var(--neon-magenta-dim);
}

@media (max-width: 768px) {
  .services-room { padding: 5rem 1rem 3rem; }
  .room-panels { grid-template-columns: 1fr; gap: 1.25rem; }
  .service-panel:hover .panel-frame { transform: translateY(-6px); }
}

/* ========== Team space (about page) ========== */
.team-space {
  position: relative;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.team-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.team-glow {
  position: absolute;
  pointer-events: none;
}

.team-glow--t {
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(0, 245, 255, 0.05) 0%,
    transparent 60%
  );
}

.team-glow--l {
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  max-width: 400px;
  background: linear-gradient(to right, rgba(0, 245, 255, 0.04) 0%, transparent 100%);
}

.team-glow--r {
  top: 0;
  bottom: 0;
  right: 0;
  width: 35%;
  max-width: 400px;
  background: linear-gradient(to left, rgba(255, 0, 255, 0.03) 0%, transparent 100%);
}

.team-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  text-shadow: 0 0 24px var(--neon-cyan-dim);
  margin-bottom: 0.75rem;
}

.team-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.6;
}

.profile-spotlight {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}

.profile-frame {
  background: linear-gradient(
    165deg,
    rgba(13, 15, 20, 0.95) 0%,
    rgba(8, 10, 14, 0.98) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 320px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(0, 245, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.profile-frame:hover {
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(0, 245, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.profile-photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.profile-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  opacity: 0.4;
  filter: blur(8px);
  z-index: -1;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(0, 245, 255, 0.35);
  box-shadow:
    0 0 30px rgba(0, 245, 255, 0.2),
    inset 0 0 20px rgba(0, 245, 255, 0.05);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.profile-frame:hover .profile-photo {
  border-color: rgba(0, 245, 255, 0.55);
  box-shadow:
    0 0 40px rgba(0, 245, 255, 0.25),
    inset 0 0 24px rgba(0, 245, 255, 0.08);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  text-shadow: 0 0 20px var(--neon-cyan-dim);
}

.profile-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px var(--neon-cyan-dim);
  margin-bottom: 0.25rem;
}

.profile-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Notice inside team space */
.profile-bio {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 1.75rem 2rem;
  background: rgba(13, 15, 20, 0.7);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
}

.profile-bio-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan-dim);
  margin-bottom: 1rem;
  text-align: center;
}

.profile-bio p {
  margin-bottom: 1rem;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

.profile-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

.team-notice {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: rgba(13, 15, 20, 0.7);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  text-align: center;
}

.team-notice a {
  color: var(--neon-cyan);
  text-decoration: none;
  text-shadow: 0 0 10px var(--neon-cyan-dim);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.team-notice a:hover {
  color: var(--neon-magenta);
  text-shadow: 0 0 14px var(--neon-magenta-dim);
}

@media (max-width: 768px) {
  .team-space { padding: 5rem 1rem 3rem; }
  .profile-frame { padding: 1.5rem 1.25rem; }
  .profile-photo { width: 140px; height: 140px; }
}

/* ========== Notice box (generic, e.g. other pages) ========== */
.notice {
  max-width: 42rem;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.notice .highlight,
.notice a {
  color: var(--neon-cyan);
  text-decoration: none;
  text-shadow: 0 0 10px var(--neon-cyan-dim);
  transition: text-shadow 0.3s ease;
}

.notice a:hover {
  text-shadow: 0 0 15px var(--neon-cyan);
}

/* Legacy profile-card (if used elsewhere) */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.5rem;
  width: 100%;
  max-width: 240px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-card:hover {
  border-color: var(--neon-cyan-dim);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
  transform: translateY(-4px);
}

.profile-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--border-subtle);
}

.profile-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.profile-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ========== Contact / Infografica ========== */
/* ========== Contact space (contacts page) ========== */
.contact-space {
  position: relative;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.contact-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.contact-glow {
  position: absolute;
  pointer-events: none;
}

.contact-glow--c {
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 600px;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    rgba(0, 245, 255, 0.04) 0%,
    transparent 65%
  );
}

.contact-glow--l {
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  max-width: 380px;
  background: linear-gradient(to right, rgba(0, 245, 255, 0.05) 0%, transparent 100%);
}

.contact-glow--r {
  top: 0;
  bottom: 0;
  right: 0;
  width: 40%;
  max-width: 380px;
  background: linear-gradient(to left, rgba(255, 0, 255, 0.04) 0%, transparent 100%);
}

.contact-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 245, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.contact-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  text-shadow: 0 0 24px var(--neon-cyan-dim);
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-teaser {
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  max-width: 32rem;
  margin: 1.25rem auto 0;
  line-height: 1.65;
  opacity: 0.95;
}

.contact-hub {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-hub-frame {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(
    165deg,
    rgba(13, 15, 20, 0.95) 0%,
    rgba(8, 10, 14, 0.98) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(0, 245, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-hub-frame:hover {
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 245, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-hub-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  text-shadow: 0 0 16px var(--neon-cyan-dim);
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-hub-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 245, 255, 0.04);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.contact-channel:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.12);
}

.contact-channel:hover .channel-value {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan-dim);
}

.channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 6px;
  text-shadow: 0 0 10px var(--neon-cyan-dim);
}

.channel-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  min-width: 5rem;
}

.channel-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .contact-space { padding: 5rem 1rem 3rem; }
  .contact-hub-frame { padding: 1.75rem 1.25rem; }
  .contact-channel { flex-wrap: wrap; }
  .channel-label { min-width: auto; }
}

/* Legacy infografica (if used elsewhere) */
.containerInfografica {
  max-width: 520px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.06);
}

.containerInfografica .glitch-text,
.containerInfografica .neon-yellow {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan-dim);
  margin-bottom: 1rem;
}

.contact-info {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.contact-info a {
  color: var(--neon-cyan);
  text-decoration: none;
  text-shadow: 0 0 8px var(--neon-cyan-dim);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-info a:hover {
  color: var(--neon-magenta);
  text-shadow: 0 0 12px var(--neon-magenta-dim);
}

/* ========== Popups (services) ========== */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-elevated);
  border: 1px solid var(--neon-cyan-dim);
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.15), inset 0 0 30px rgba(0, 245, 255, 0.03);
  padding: 2rem;
  z-index: 1001;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.popup img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
}

.popup h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan-dim);
  margin-bottom: 1rem;
}

.popup p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.popup .close-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan-dim);
  border-radius: 2px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.popup .close-btn:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 20px var(--neon-cyan-dim);
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

/* ========== Footer ========== */
footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo-container {
  width: 100px;
  height: 100px;
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 0 12px var(--neon-cyan-dim));
  transition: filter 0.3s ease;
}

footer .footer-logo:hover {
  filter: drop-shadow(0 0 18px var(--neon-cyan));
}

footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ========== Page backgrounds (override inline) ========== */
body.page-inner {
  background: var(--bg-deep);
}

body.page-inner::before {
  opacity: 0.6;
}

main {
  flex: 1;
  min-height: 0;
  padding-top: 4rem;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

/* ========== Mobile / adaptive fixes (evita “corpo che sparisce” su iOS/Safari) ========== */
@media (max-width: 768px) {
  html {
    height: auto;
    min-height: 100%;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-height: 100%;
    min-height: 100vh;
    background-attachment: scroll;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  /* Su mobile: niente overlay (mesh/griglia) per evitare bug iOS che nascondono il contenuto */
  body::before,
  body::after {
    display: none !important;
  }

  header {
    position: relative;
    z-index: 100;
  }

  main {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  footer {
    position: relative;
    z-index: 10;
  }

  .navbar { padding: 0.5rem 1rem; padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .navbar .container { flex-wrap: nowrap; }
  .navbar .logo-img { height: 36px; }
  .navbar .logo-text { font-size: 1rem; letter-spacing: 0.1em; }
  .nav-page-label { display: block; flex: 1; text-align: center; margin: 0 0.5rem; position: relative; z-index: 1001; }
  .hamburger-btn { display: flex; position: relative; z-index: 1001; }
  .navbar .logo-wrap { position: relative; z-index: 1001; }
  .nav-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0;
    padding-top: 3.75rem;
    padding-left: 1.5rem;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: 1.5rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.26);
    z-index: 0;
  }
  @keyframes menuSlideIn {
    0% {
      opacity: 0;
      transform: translateX(-100%);
    }
    70% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes menuGlow {
    0%, 100% {
      border-color: rgba(255, 210, 50, 0.75);
      box-shadow: 0 0 0 2px rgba(255, 210, 50, 0.4), 0 0 0 3px rgba(255, 0, 255, 0.12), 0 0 28px rgba(0, 245, 255, 0.35), 0 0 56px rgba(255, 210, 50, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    50% {
      border-color: rgba(255, 230, 80, 0.95);
      box-shadow: 0 0 0 2px rgba(255, 230, 80, 0.65), 0 0 0 3px rgba(255, 0, 255, 0.3), 0 0 36px rgba(0, 245, 255, 0.5), 0 0 72px rgba(255, 210, 50, 0.35), 0 20px 60px rgba(0, 0, 0, 0.5);
    }
  }
  @keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
  }
  @keyframes menuItemIn {
    from {
      opacity: 0;
      transform: translateX(-24px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes textReveal {
    0% {
      clip-path: inset(0 100% 0 0);
    }
    100% {
      clip-path: inset(0 0 0 0);
    }
  }
  .navbar.navbar--open .nav-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .navbar.navbar--open .nav-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    margin-top: 0;
    padding: 1.5rem;
    list-style: none;
    background: linear-gradient(165deg, rgba(10, 14, 32, 0.96) 0%, rgba(6, 8, 24, 0.98) 40%, rgba(3, 5, 18, 0.99) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0;
    max-width: 280px;
    width: 100%;
    border: 2px solid rgba(255, 210, 50, 0.75);
    box-shadow: 0 0 0 2px rgba(255, 210, 50, 0.4), 0 0 0 3px rgba(255, 0, 255, 0.12), 0 0 28px rgba(0, 245, 255, 0.35), 0 0 56px rgba(255, 210, 50, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: menuSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards, menuGlow 2.5s ease-in-out infinite 0.5s;
    overflow: hidden;
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
  }
  .navbar.navbar--open .nav-links::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 245, 255, 0.03) 2px, rgba(0, 245, 255, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
  }
  .navbar.navbar--open .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 50, 0.9), rgba(255, 0, 255, 0.5), transparent);
    animation: menuGlow 2.5s ease-in-out infinite 0.5s;
    z-index: 1;
  }
  .navbar.navbar--open .nav-links li {
    opacity: 0;
    animation: menuItemIn 0.35s ease-out forwards;
    position: relative;
    z-index: 1;
  }
  .navbar.navbar--open .nav-links li:nth-child(1) { animation-delay: 0.08s; }
  .navbar.navbar--open .nav-links li:nth-child(2) { animation-delay: 0.16s; }
  .navbar.navbar--open .nav-links li:nth-child(3) { animation-delay: 0.24s; }
  .navbar.navbar--open .nav-links li:nth-child(4) { animation-delay: 0.32s; }
  .navbar.navbar--open .nav-links li:nth-child(5) { animation-delay: 0.4s; }
  .navbar.navbar--open .nav-links a {
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: textReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .navbar.navbar--open .nav-links li:nth-child(1) a { animation-delay: 0.12s; }
  .navbar.navbar--open .nav-links li:nth-child(2) a { animation-delay: 0.22s; }
  .navbar.navbar--open .nav-links li:nth-child(3) a { animation-delay: 0.32s; }
  .navbar.navbar--open .nav-links li:nth-child(4) a { animation-delay: 0.42s; }
  .navbar.navbar--open .nav-links li:nth-child(5) a { animation-delay: 0.52s; }
  .nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    padding-left: 1rem;
    color: rgba(200, 230, 255, 0.95);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    border-radius: 2px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
  }
  .nav-links a:hover {
    background: rgba(0, 245, 255, 0.08);
    color: #00f5ff;
    border-left-color: #00f5ff;
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
  }
  .nav-links a::after { display: none; }
  .hero {
    min-height: 100vh;
    padding: 5rem 1rem 3rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero .container {
    z-index: 5;
    position: relative;
    width: 92%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-scroll-hint { z-index: 5; position: absolute; bottom: 4.5rem; left: 50%; transform: translateX(-50%); }
  .hero h1, .hero h2 { font-size: clamp(1.5rem, 6vw, 2.5rem); letter-spacing: 0.1em; text-align: center; }
  .hero p { text-align: center; }
  .container { width: 92%; }
  .product-section,
  .services-room,
  .team-space,
  .contact-space { position: relative; z-index: 5; }
}

@media (max-width: 480px) {
  .navbar .logo-text { display: none; }
  .nav-page-label { font-size: 0.85rem; }
  .nav-links a { font-size: 0.9rem; }
}
