/* ==========================================================================
   TRULINK 3D EXPERIENCE — DESIGN SYSTEM & ADVANCED STYLES
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  --color-obsidian: #060913;
  --color-obsidian-surface: #080e22;
  --color-obsidian-card: #0c1533;
  
  --color-navy: #0f1b61;
  --color-navy-dark: #070d2b;
  --color-gold: #d4af37;
  --color-gold-bright: #f59e0b;
  --color-gold-glow: rgba(212, 175, 55, 0.45);
  
  --color-cyan: #00f5d4;
  --color-cyan-glow: rgba(0, 245, 212, 0.4);
  --color-blue: #1e3fd8;
  --color-blue-bright: #3b82f6;
  --color-blue-glow: rgba(59, 130, 246, 0.4);
  --color-purple: #7c3aed;
  --color-teal: #00c9a7;
  --color-emerald: #10b981;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-obsidian);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-obsidian);
  color: #f1f5f9;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --- Typography Utility --- */
.font-outfit { font-family: var(--font-heading); }
.font-serif { font-family: var(--font-accent); }
.font-mono { font-family: var(--font-mono); }

/* --- Ambient Background Glows --- */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  z-index: 1;
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-cyan {
  top: 8%;
  left: -5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
}

.glow-gold {
  top: 40%;
  right: -5%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
  animation-delay: -6s;
}

.glow-blue {
  bottom: 5%;
  left: 25%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* --- Custom Cursor Glow (Desktop) --- */
.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, opacity 0.2s;
  box-shadow: 0 0 12px var(--color-cyan);
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease-out;
}

@media (max-width: 1024px) {
  .custom-cursor, .cursor-glow { display: none !important; }
}

/* --- Header & Navigation --- */
.nav-item {
  position: relative;
  transition: color 0.3s;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue-bright));
  transition: width 0.3s var(--ease-smooth);
  border-radius: 2px;
}

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

/* Audio Visualizer Button */
.audio-bar {
  width: 2.5px;
  background-color: currentColor;
  border-radius: 2px;
  transition: height 0.2s ease;
}
.audio-btn.playing .bar-1 { height: 12px; animation: bounceBar 0.8s infinite ease-in-out; }
.audio-btn.playing .bar-2 { height: 16px; animation: bounceBar 0.8s infinite ease-in-out 0.2s; }
.audio-btn.playing .bar-3 { height: 8px; animation: bounceBar 0.8s infinite ease-in-out 0.4s; }

.audio-btn:not(.playing) .bar-1 { height: 4px; }
.audio-btn:not(.playing) .bar-2 { height: 4px; }
.audio-btn:not(.playing) .bar-3 { height: 4px; }

@keyframes bounceBar {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* --- Hero Section & Tag Chips --- */
.text-glow {
  text-shadow: 0 0 40px rgba(0, 245, 212, 0.35);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.tag-chip:hover {
  background: rgba(0, 245, 212, 0.1);
  border-color: rgba(0, 245, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.15);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #060b28;
  background: linear-gradient(135deg, #00f5d4 0%, #38bdf8 45%, #d4af37 100%);
  box-shadow: 0 10px 30px rgba(0, 245, 212, 0.25), 0 0 20px rgba(212, 175, 55, 0.15);
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 245, 212, 0.4), 0 0 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 245, 212, 0.5);
  transform: translateY(-2px);
}

.btn-sm-cyan {
  padding: 8px 18px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #060913;
  background: linear-gradient(135deg, var(--color-cyan), #00c9a7);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-sm-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.3);
}

/* Metric Cards */
.metric-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 245, 212, 0.3);
  transform: translateY(-2px);
}

/* --- Hologram 3D Stage Overlay --- */
.hologram-frame {
  position: relative;
}

.hologram-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  opacity: 0.6;
  animation: scanDown 4s linear infinite;
}

@keyframes scanDown {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

.globe-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.globe-pill-btn:hover, .globe-pill-btn.active {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--color-cyan);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.2);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.animate-scroll-dot { animation: scrollDot 2s infinite ease-in-out; }

/* --- Global Hub Cards --- */
.hub-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 245, 212, 0.1);
}

.hub-card:hover::before {
  opacity: 1;
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hub-flag {
  font-size: 1.8rem;
}

.hub-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
}

/* --- Strategic Pillar Boxes --- */
.pillar-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.25s;
}

.pillar-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 212, 0.3);
  transform: translateY(-2px);
}

/* --- 9 Services Section & Tilt Cards --- */
.svc-filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.svc-filter-btn:hover, .svc-filter-btn.active {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
  color: #060913;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.25);
}

.service-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 245, 212, 0.12);
}

.svc-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  font-weight: 900;
  opacity: 0.12;
  color: #ffffff;
}

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- 5-Step Execution Engine --- */
.step-interactive {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.step-interactive:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 245, 212, 0.3);
  transform: translateX(4px);
}

.step-interactive.active {
  background: rgba(0, 245, 212, 0.08);
  border-color: var(--color-cyan);
  box-shadow: 0 10px 25px rgba(0, 245, 212, 0.1);
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-interactive.active .step-badge {
  background: var(--color-cyan);
  color: #060913;
  box-shadow: 0 0 15px var(--color-cyan);
}

/* --- Industry Badges --- */
.industry-badge {
  padding: 18px 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  transition: all 0.3s;
}

.industry-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 212, 0.4);
  transform: translateY(-3px);
  color: #ffffff;
}

/* --- Interactive ROI Calculator --- */
.slider-cyan {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: opacity 0.2s;
}

.slider-cyan::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--color-cyan);
  transition: transform 0.15s;
}

.slider-cyan::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.model-btn {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.model-btn:hover, .model-btn.active {
  background: rgba(0, 245, 212, 0.1);
  border-color: var(--color-cyan);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transition: all 0.3s;
}

.testimonial-card > p {
  flex: 1;
}

.testimonial-card:hover {
  border-color: rgba(0, 245, 212, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- Contact Channels & Forms --- */
.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: all 0.3s;
}

.contact-channel-card:hover {
  transform: translateX(4px);
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-obsidian);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
}
