@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --neon-cyan: #00e5ff;
  --neon-purple: #9d00ff;
  --neon-magenta: #fa0079;
  --neon-orange: #ff6600;
  --neon-yellow: #ffb700;
  --bg-deep: #030712;
  --bg-surface: #070c18;
  --bg-card: #0d1527;
}

/* Dual-Language Horizontal Word & Heading Spacing Harmonization */
[dir="rtl"],
[dir="rtl"] * {
  letter-spacing: 0 !important;
}

[dir="rtl"] {
  word-spacing: 1.5px;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  letter-spacing: 0 !important;
  word-spacing: 2px;
  line-height: 1.4;
}

[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] a,
[dir="rtl"] button,
[dir="rtl"] label {
  word-spacing: 1px;
}

/* Dual-Language English (LTR) Typography */
[dir="ltr"] {
  letter-spacing: 0.015em;
  word-spacing: 0.5px;
}
[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3 {
  letter-spacing: -0.01em;
  word-spacing: 1px;
}
[dir="ltr"] .tracking-widest {
  letter-spacing: 0.1em !important;
}
[dir="ltr"] .tracking-wider {
  letter-spacing: 0.05em !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00e5ff;
}

/* Custom Text Gradients */
.trnx-text-gradient {
  background: linear-gradient(135deg, #00e5ff 0%, #a855f7 35%, #fa0079 70%, #ff6600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trnx-chrome-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 45%, #94a3b8 55%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Clean Crisp Logo - Zero Glow Filter */
.trnx-logo-glow {
  filter: none !important;
  transition: transform 0.3s ease;
}

.trnx-logo-glow:hover,
.group:hover .trnx-logo-glow {
  filter: none !important;
  transform: scale(1.02);
}

.trnx-hero-logo {
  filter: none !important;
  transition: transform 0.3s ease;
}

/* Gear & Services Transparent PNG Item Glow */
.trnx-item-glow {
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.3))
          drop-shadow(0 0 14px rgba(157, 0, 255, 0.2));
  transition: filter 0.35s ease, transform 0.35s ease;
}

.trnx-item-glow:hover,
.group:hover .trnx-item-glow {
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.85))
          drop-shadow(0 0 24px rgba(250, 0, 121, 0.65))
          drop-shadow(0 0 36px rgba(255, 102, 0, 0.5));
  transform: translateY(-4px) scale(1.05);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(13, 21, 39, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 229, 255, 0.25), 0 0 20px -5px rgba(250, 0, 121, 0.15);
}

/* Equalizer Bars Animation */
.eq-bar-anim {
  transform-origin: bottom;
  animation: eqPulse 1.2s ease-in-out infinite alternate;
}
@keyframes eqPulse {
  0% { transform: scaleY(0.2); }
  50% { transform: scaleY(0.95); }
  100% { transform: scaleY(0.35); }
}

/* Beat Pad Active Flash */
.pad-active {
  transform: scale(0.96);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.9), inset 0 0 15px rgba(250, 0, 121, 0.8);
}
