/* ============================================
   NABIATEC - Header & Navigation (Updated with Logo Animation)
   ============================================ */

.header { position: fixed; top: 16px; left: 0; right: 0; z-index: 1000; transition: all 0.5s var(--ease-smooth); }
.header.scrolled { top: 0; }
.header.scrolled .nav-container { background: rgba(7, 17, 31, 0.95); backdrop-filter: blur(30px) saturate(1.2); border-bottom: 1px solid var(--border-gold); box-shadow: 0 4px 30px rgba(0,0,0,0.3); border-radius: 0; }

.nav-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); display: flex; align-items: center; justify-content: space-between; height: 72px; background: rgba(7, 17, 31, 0.88); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border-subtle); border-radius: 0 0 12px 12px; transition: all 0.5s var(--ease-smooth); }

/* ===== ENHANCED LOGO WITH ANIMATION ===== */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: transform 0.3s; perspective: 1000px; }
.logo:hover { transform: scale(1.02); }

.logo-mark { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; position: relative; transform-style: preserve-3d; }
.logo-mark::before { content: ''; position: absolute; inset: -6px; border: 2px solid var(--gold-primary); border-radius: 50%; opacity: 0.4; animation: pulseRing 2.5s infinite; }
.logo-mark::after { content: ''; position: absolute; inset: -10px; border: 1px solid var(--gold-primary); border-radius: 50%; opacity: 0.2; animation: pulseRing 2.5s infinite 0.5s; }

.logo-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(200, 155, 60, 0.4)); animation: logoGlow 3s ease-in-out infinite, logoFloat 4s ease-in-out infinite; transition: all 0.4s var(--ease-smooth); }
.logo:hover .logo-mark img { filter: drop-shadow(0 0 20px rgba(200, 155, 60, 0.8)) drop-shadow(0 0 40px rgba(200, 155, 60, 0.4)); transform: scale(1.1); }

.logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: 3px; position: relative; }
.logo-text em { color: var(--gold-primary); font-style: normal; background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-bright), var(--gold-light), var(--gold-primary)); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: logoShine 4s linear infinite; }
.logo-sub { display: block; font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

/* ===== LOGO SHOWCASE SECTION ===== */
.logo-showcase { position: relative; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--black-primary); overflow: hidden; padding: 140px 0 80px; }
.logo-showcase-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(200,155,60,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(200,155,60,0.03) 1px, transparent 1px); background-size: 80px 80px; animation: gridDrift 30s linear infinite; }
.logo-showcase-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(200,155,60,0.15) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; animation: heroGlow 6s ease-in-out infinite; }
.logo-showcase-glow2 { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(30,184,160,0.08) 0%, transparent 70%); top: 30%; left: 30%; pointer-events: none; animation: heroGlow 8s ease-in-out infinite reverse; }

.logo-hero-container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; border-radius:50Ppx;}

.logo-hero-wrap { position: relative; width: 400px; height: 400px; margin-bottom: 32px; perspective: 1200px;}

.logo-hero-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 30px rgba(200, 155, 60, 0.5)) drop-shadow(0 0 60px rgba(200, 155, 60, 0.2)); animation: logoPulse 3s ease-in-out infinite, logoFloat 5s ease-in-out infinite; transition: all 0.5s var(--ease-smooth); transform-style: preserve-3d; }
.logo-hero-wrap:hover .logo-hero-img { filter: drop-shadow(0 0 50px rgba(200, 155, 60, 0.9)) drop-shadow(0 0 100px rgba(200, 155, 60, 0.5)); transform: scale(1.15) rotateY(10deg);}

/* Orbiting particles around logo */
.logo-orbit { position: absolute; inset: -40px; pointer-events: none; }
.orbit-particle { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; background: var(--gold-primary); border-radius: 50%; box-shadow: 0 0 10px var(--gold-primary); animation: orbit 8s linear infinite; }
.orbit-particle:nth-child(2) { animation: orbitReverse 12s linear infinite; width: 5px; height: 5px; background: var(--teal-accent); box-shadow: 0 0 8px var(--teal-accent); }
.orbit-particle:nth-child(3) { animation: orbit 10s linear infinite 2s; width: 6px; height: 6px; background: var(--gold-light); box-shadow: 0 0 12px var(--gold-light); }
.orbit-particle:nth-child(4) { animation: orbitReverse 9s linear infinite 1s; width: 4px; height: 4px; background: var(--gold-bright); }

/* Ripple rings */
.ripple-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border: 1.5px solid rgba(200,155,60,0.15); border-radius: 50%; animation: ripple 3s ease-out infinite; }
.ripple-ring:nth-child(2) { animation-delay: 1s; }
.ripple-ring:nth-child(3) { animation-delay: 2s; }

.logo-hero-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; color: var(--white); letter-spacing: 8px; margin-bottom: 12px; }
.logo-hero-title span { color: var(--gold-primary); background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-bright)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-hero-subtitle { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold-primary); letter-spacing: 6px; text-transform: uppercase; margin-bottom: 24px; }
.logo-hero-desc { max-width: 600px; color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 32px; }

.nav-menu { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav-menu a { color: var(--text-muted); text-decoration: none; font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; transition: all 0.3s; position: relative; padding: 4px 0; }
.nav-menu a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--gold-primary), var(--gold-light)); transition: width 0.35s var(--ease-smooth); }
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { color: var(--gold-primary); }
.nav-menu a.active::after { width: 100%; }

.nav-cta { background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)); color: var(--black-primary) !important; padding: 10px 22px; border-radius: 6px; font-weight: 700 !important; letter-spacing: 0.5px !important; transition: all 0.3s !important; font-size: 0.78rem; box-shadow: 0 4px 16px rgba(200, 155, 60, 0.3); }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold-bright)); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200, 155, 60, 0.4); }

.nav-lang { display: flex; gap: 4px; padding: 5px 12px; border: 1.5px solid var(--border-subtle); border-radius: 6px; color: var(--text-muted); cursor: pointer; font-size: 0.72rem; font-weight: 500; letter-spacing: 1px; transition: all 0.3s; font-family: var(--font-mono); }
.nav-lang:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.nav-lang span { padding: 2px 6px; border-radius: 3px; transition: all 0.3s; }
.nav-lang span.active { background: var(--gold-primary); color: var(--black-primary); }

.mobile-toggle { display: none; color: var(--white); font-size: 1.4rem; cursor: pointer; padding: 8px; border-radius: 6px; transition: all 0.3s; }
.mobile-toggle:hover { background: rgba(255,255,255,0.1); color: var(--gold-primary); }

@media (max-width: 1100px) {
  .nav-menu { display: none; position: fixed; top: 72px; left: 0; width: 100%; height: calc(100vh - 72px); background: linear-gradient(180deg, var(--black-primary) 0%, var(--black-secondary) 100%); flex-direction: column; padding: 40px 32px; z-index: 999; gap: 24px; align-items: flex-start; overflow-y: auto; }
  .nav-menu.active { display: flex; animation: fadeIn 0.4s var(--ease-smooth); }
  .nav-menu a { font-size: 1rem; padding: 10px 0; }
  .mobile-toggle { display: block; }
  .logo-showcase { min-height: 50vh; padding: 120px 0 60px; }
  .logo-hero-wrap { width: 150px; height: 150px; }
}

@media (max-width: 768px) {
  .nav-container { padding: 0 16px; height: 64px; }
  .logo-text { font-size: 1.1rem; }
  .logo-mark { width: 36px; height: 36px; }
  .nav-menu { padding: 32px 20px; }
  .logo-hero-wrap { width: 120px; height: 120px; }
  .logo-hero-title { letter-spacing: 4px; }
}
