/* ═══════════════════════════════════════════════════════════════
   Trinity Media UAE — Main CSS & Visual Enhancements
   ═══════════════════════════════════════════════════════════════ */

/* Ambient Glow & Mesh Backgrounds */
.ambient-glow-header {
  background-image: radial-gradient(ellipse 80% 40% at 50% -10%, rgba(182, 62, 204, 0.15), transparent 70%);
}

.ambient-mesh-soft {
  background-image: 
    radial-gradient(ellipse 70% 40% at 20% 10%, rgba(182, 62, 204, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(147, 197, 253, 0.04), transparent 60%);
}

.card-subtle-glow {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 0 16px -2px rgba(182, 62, 204, 0.08);
}

/* Glassmorphism Classes */
.trinity-glass {
  background: rgba(18, 22, 35, 0.65);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.light .trinity-glass {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Infinite Marquee Animation for Client Logos */
@keyframes trinity-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trinity-marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-inline: 3rem;
  width: max-content;
  animation: trinity-marquee 35s linear infinite;
  will-change: transform;
}

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

/* Client Logo Styling in Marquee */
.trinity-client-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

html.light .trinity-client-logo {
  filter: grayscale(1) opacity(0.7);
}

.trinity-client-logo:hover {
  opacity: 1;
}

/* Elementor Flexbox Container Polish */
.elementor-element.e-con {
  --container-max-width: 1360px;
}

/* Navigation & Header Enhancements */
.trinity-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.trinity-header-scrolled {
  background: var(--trinity-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trinity-nav-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Mega Menu Dropdown Container */
.trinity-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 1080px;
  max-width: 92vw;
  background: rgba(24, 26, 38, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.trinity-menu-item-has-mega:hover .trinity-mega-menu,
.trinity-menu-item-has-mega:focus-within .trinity-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

html.light .trinity-mega-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

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

::-webkit-scrollbar-track {
  background: #0e1017;
}

::-webkit-scrollbar-thumb {
  background: #33384c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--trinity-primary-light);
}

/* Theme Toggle Button */
.trinity-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--trinity-border);
  background: var(--trinity-muted);
  color: var(--trinity-fg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.trinity-theme-toggle:hover {
  border-color: var(--trinity-primary-light);
}

/* High-Impact Purple Gradient Highlights */
.text-gradient-purple {
  background: linear-gradient(135deg, #f8fafc 0%, #b63ecc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
