@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  /* Brand Core Colors */
  --primary-navy: #0A192F;
  --primary-dark: #050d1a;
  --emerald-600: #00875A;
  --emerald-500: #00A86B;
  --gold-500: #D4AF37;
  --gold-400: #F5D061;
  --gold-600: #B8860B;

  /* Theme Tokens: Default Light Mode */
  --bg-page: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #475569;
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(212, 175, 55, 0.22);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 0 15px rgba(212, 175, 55, 0.08);
  --card-shadow-hover: 0 20px 35px -8px rgba(0, 0, 0, 0.1), 0 0 25px 3px rgba(212, 175, 55, 0.22);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(212, 175, 55, 0.25);
  --nav-text: #1E293B;
  --surface-alt: #F1F5F9;
  --border-subtle: #E2E8F0;
  --scrollbar-track: #F1F5F9;
  --pattern-dot: rgba(212, 175, 55, 0.12);
  --ambient-1: rgba(212, 175, 55, 0.08);
  --ambient-2: rgba(0, 135, 90, 0.07);
  --gold-gradient: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #996515 100%);
  --emerald-gradient: linear-gradient(135deg, #00875A 0%, #006644 100%);
}

.dark {
  /* Theme Tokens: Dark Mode */
  --bg-page: #07111E;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --card-bg: rgba(15, 27, 45, 0.78);
  --card-border: rgba(212, 175, 55, 0.18);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.05);
  --card-shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.4), 0 0 25px 2px rgba(212, 175, 55, 0.2);
  --nav-bg: rgba(7, 17, 30, 0.88);
  --nav-border: rgba(212, 175, 55, 0.15);
  --nav-text: #E2E8F0;
  --surface-alt: rgba(10, 25, 47, 0.6);
  --border-subtle: #1E293B;
  --scrollbar-track: #07111E;
  --pattern-dot: rgba(212, 175, 55, 0.08);
  --ambient-1: rgba(212, 175, 55, 0.12);
  --ambient-2: rgba(0, 135, 90, 0.14);
  --gold-gradient: linear-gradient(135deg, #FFE082 0%, #FFC107 50%, #B8860B 100%);
  --emerald-gradient: linear-gradient(135deg, #00D287 0%, #00A86B 50%, #004D34 100%);
}

* {
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Cairo', sans-serif;
}

/* Smooth Scrolling & Overflow Control */
html, body {
  max-width: 100vw;
  overflow-x: clip !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  position: relative;
}

/* Hide scrollbar for tabs while keeping scrollability */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4AF37 0%, #00875A 100%);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F5D061;
}

/* Selection Color */
::selection {
  background: #D4AF37;
  color: #0A192F;
}

/* Glassmorphism Styles */
.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .glass-nav {
  box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.45);
}

/* Luxury Nav Link Pill Styling */
.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nav-text);
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-pill:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #B8860B;
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

.dark .nav-pill:hover {
  background: rgba(212, 175, 55, 0.14);
  color: #F5D061;
  border-color: rgba(212, 175, 55, 0.35);
}

.nav-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.05) 100%);
  color: #B8860B;
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 2px 10px -1px rgba(212, 175, 55, 0.18);
  font-weight: 700;
}

.dark .nav-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  color: #F5D061;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 2px 14px -1px rgba(212, 175, 55, 0.3);
}

/* Nav Action Circle Buttons */
.nav-action-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.nav-action-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.45);
  color: #B8860B;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.dark .nav-action-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #F5D061;
}

/* Luxury Royal Nav CTA Button */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #F5D061 0%, #D4AF37 50%, #B8860B 100%);
  color: #07111E !important;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, #FFE082 0%, #F5D061 50%, #D4AF37 100%);
}

/* Ambient Glow Fixed Container (Clips glow orbs strictly within viewport bounds) */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Background Radial Blurs with Organic Morphing */
@keyframes morphOrb1 {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  33% {
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
    transform: translateY(-25px) scale(1.08) rotate(120deg);
  }
  66% {
    border-radius: 70% 30% 40% 60% / 50% 60% 40% 50%;
    transform: translateY(25px) scale(0.95) rotate(240deg);
  }
}

@keyframes morphOrb2 {
  0%, 100% {
    border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
    transform: translateY(-30px) scale(1.12) rotate(180deg);
  }
}

.ambient-glow-1 {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--ambient-1) 0%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
  animation: morphOrb1 20s ease-in-out infinite;
}

.ambient-glow-2 {
  position: absolute;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--ambient-2) 0%, transparent 70%);
  filter: blur(95px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
  animation: morphOrb2 25s ease-in-out infinite reverse;
}

/* Luxury Metallic Shimmer on Headings */
.text-gradient-gold, .text-gradient-shimmer {
  background: linear-gradient(
    125deg,
    #B8860B 0%,
    #D4AF37 20%,
    #FFF8D6 45%,
    #F5D061 55%,
    #D4AF37 75%,
    #B8860B 100%
  );
  background-size: 240% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGoldShine 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes textGoldShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glass Card Interactive Spotlight & 3D Tilt */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(212, 175, 55, 0.12),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  z-index: 1;
}

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

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--card-shadow-hover);
}

/* Smooth Scroll-Driven Reveal System */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none !important;
}

/* Top Scroll Progress Indicator */
#scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37 0%, #00875A 50%, #F5D061 100%);
  z-index: 100;
  transform-origin: right;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  transition: transform 0.08s linear;
}

/* Magnetic Button Hover Feel */
.btn-magnetic {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
}

/* Soft Click Ripple */
.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.65s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Floating Animation Utility */
@keyframes luxuryFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

.animate-luxury-float {
  animation: luxuryFloat 5s ease-in-out infinite;
}

/* Emerald Gradient Text */
.text-gradient-emerald {
  background: var(--emerald-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Metallic Badges */
.badge-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.06) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #B8860B;
}
.dark .badge-gold {
  color: #F5D061;
}

.badge-emerald {
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.16) 0%, rgba(0, 168, 107, 0.06) 100%);
  border: 1px solid rgba(0, 168, 107, 0.35);
  color: #00875A;
}
.dark .badge-emerald {
  color: #00D287;
}

/* Glow Elements */
.glow-gold {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
}

.glow-emerald {
  box-shadow: 0 0 30px rgba(0, 168, 107, 0.35);
}

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { left: -60%; }
  25% { left: 140%; }
  100% { left: 140%; }
}

/* Ambient Background Radial Blurs */
.ambient-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--ambient-1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

.ambient-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ambient-2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

/* Subtle Geometric Background Pattern */
.pattern-overlay {
  background-image: radial-gradient(var(--pattern-dot) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Service Card Image Hover Zoom */
.card-img-zoom {
  overflow: hidden;
}
.card-img-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover .card-img-zoom img {
  transform: scale(1.08);
}

/* Active Nav Indicator */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, #00875A);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
  opacity: 0;
}
.accordion-content.open {
  opacity: 1;
}

/* Banner Safe-Zone Overlay helper */
.banner-safe-zone {
  outline: 2px dashed rgba(255, 215, 0, 0.4);
  outline-offset: -20px;
}

/* Theme Toggle Button Hover & Transitions */
.theme-toggle-btn {
  transition: all 0.25s ease;
}
.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.08);
}

/* Quick Sticky Navigator Styles */
.quick-nav-pill {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.quick-nav-pill:hover {
  transform: translateY(-1px);
}

.quick-nav-pill.is-active {
  background: linear-gradient(135deg, #FFE082 0%, #FFC107 50%, #B8860B 100%) !important;
  color: #0A192F !important;
  font-weight: 800 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.45);
  transform: scale(1.04);
}

.quick-nav-pill.is-active .pill-num {
  background: #0A192F !important;
  color: #FFE082 !important;
}

/* Service Card Watermark */
.service-watermark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'Cairo', monospace, sans-serif;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  transition: opacity 0.3s ease;
}

.dark .service-watermark {
  opacity: 0.12;
}

.glass-card:hover .service-watermark {
  opacity: 0.18;
}

/* Sub-service Mini Card */
.subservice-chip {
  transition: all 0.2s ease;
}
.subservice-chip:hover {
  transform: translateX(-3px);
  border-color: rgba(212, 175, 55, 0.45);
}


/* ========================================================
   21st.dev CUTTING-EDGE MOTION GRAPHICS & MODERN UI ENGINE
   ======================================================== */

/* --- 1. Custom Interactive Magnetic Cursor --- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #F5D061;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.08s linear;
  box-shadow: 0 0 10px #F5D061, 0 0 20px rgba(212, 175, 55, 0.6);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.04);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease,
              opacity 0.2s ease;
  backdrop-filter: blur(1px);
}

.custom-cursor-ring.cursor-hover {
  width: 58px;
  height: 58px;
  border-color: #F5D061;
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.custom-cursor-ring.cursor-active {
  width: 28px;
  height: 28px;
  border-color: #00D287;
  background: rgba(0, 210, 135, 0.2);
}

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

/* --- 2. 21st.dev Animated Border Beam --- */
.border-beam-container {
  position: relative;
  overflow: hidden;
}

.border-beam-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.2) 20%,
    #F5D061 50%,
    rgba(0, 210, 135, 0.8) 75%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  background-size: 250% 100%;
  animation: borderBeamMotion 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes borderBeamMotion {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- 3. Infinite Smooth Marquee System --- */
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 100%;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

.marquee-content-reverse {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 100%;
  animation: marqueeScrollReverse 36s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-content,
.marquee-wrapper:hover .marquee-content-reverse {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 2rem)); }
}

@keyframes marqueeScrollReverse {
  from { transform: translateX(calc(-100% - 2rem)); }
  to { transform: translateX(0); }
}

/* RTL Marquee adjustments */
[dir="rtl"] .marquee-content {
  animation: marqueeScrollRTL 32s linear infinite;
}
[dir="rtl"] .marquee-content-reverse {
  animation: marqueeScrollReverseRTL 36s linear infinite;
}

@keyframes marqueeScrollRTL {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100% + 2rem)); }
}

@keyframes marqueeScrollReverseRTL {
  from { transform: translateX(calc(100% + 2rem)); }
  to { transform: translateX(0); }
}

/* --- 4. 3D Gyroscopic Astrolabe & Holographic Rings --- */
.hero-astrolabe-container {
  position: relative;
  width: 240px;
  height: 240px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.astrolabe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
  transform-style: preserve-3d;
}

.ring-outer {
  animation: orbitRotateOuter 24s linear infinite;
  border-color: rgba(212, 175, 55, 0.5);
  border-style: solid;
  border-width: 1px;
}

.ring-middle {
  inset: 22px;
  border: 1.5px dashed rgba(0, 210, 135, 0.45);
  animation: orbitRotateMiddle 18s linear infinite reverse;
}

.ring-inner {
  inset: 44px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  animation: orbitRotateInner 12s linear infinite;
}

.astrolabe-core {
  position: absolute;
  inset: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(10, 25, 47, 0.9) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.35);
  animation: corePulse 3s ease-in-out infinite alternate;
}

@keyframes orbitRotateOuter {
  0% { transform: rotate3d(1, 1, 0, 0deg) rotate(0deg); }
  100% { transform: rotate3d(1, 1, 0, 360deg) rotate(360deg); }
}

@keyframes orbitRotateMiddle {
  0% { transform: rotate3d(1, -1, 1, 0deg) rotate(0deg); }
  100% { transform: rotate3d(1, -1, 1, 360deg) rotate(-360deg); }
}

@keyframes orbitRotateInner {
  0% { transform: rotate3d(0, 1, 1, 0deg) rotate(0deg); }
  100% { transform: rotate3d(0, 1, 1, 360deg) rotate(360deg); }
}

@keyframes corePulse {
  0% { transform: scale(0.92); box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }
  100% { transform: scale(1.06); box-shadow: 0 0 45px rgba(212, 175, 55, 0.55), 0 0 15px rgba(0, 210, 135, 0.4); }
}

/* --- 5. Floating Motion Graphic Glass Chips (Sine Wave Movement) --- */
.motion-chip-1 {
  animation: floatMotion1 5.5s ease-in-out infinite alternate;
}

.motion-chip-2 {
  animation: floatMotion2 6.5s ease-in-out infinite alternate;
}

.motion-chip-3 {
  animation: floatMotion3 4.8s ease-in-out infinite alternate;
}

.motion-chip-4 {
  animation: floatMotion4 5.8s ease-in-out infinite alternate;
}

@keyframes floatMotion1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
  100% { transform: translateY(6px) rotate(-1deg); }
}

@keyframes floatMotion2 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
  100% { transform: translateY(8px) rotate(1.5deg); }
}

@keyframes floatMotion3 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(10px) rotate(-1.5deg); }
}

@keyframes floatMotion4 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
  100% { transform: translateY(8px) rotate(2deg); }
}

/* --- 6. 21st.dev Shimmering Animated Text --- */
.shimmer-text-gold {
  background: linear-gradient(
    110deg,
    #B8860B 0%,
    #D4AF37 25%,
    #FFFFFF 50%,
    #D4AF37 75%,
    #B8860B 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerSweepText 4s linear infinite;
}

.dark .shimmer-text-gold {
  background: linear-gradient(
    110deg,
    #D4AF37 0%,
    #FFE082 30%,
    #FFFFFF 50%,
    #F5D061 70%,
    #D4AF37 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerSweepText 4s linear infinite;
}

@keyframes shimmerSweepText {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* --- 7. Methodology Stepper Energy Beam --- */
.stepper-energy-beam {
  position: relative;
}

.stepper-energy-beam::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.4) 15%,
    #F5D061 50%,
    rgba(0, 210, 135, 0.5) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: beamEnergyPulse 3s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes beamEnergyPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* --- 8. Audio Toggle Button Styling --- */
.audio-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--nav-border);
  color: var(--nav-text);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.audio-toggle-btn:hover {
  border-color: rgba(212, 175, 55, 0.6);
  color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.audio-toggle-btn.active {
  border-color: #00D287;
  color: #00D287;
  background: rgba(0, 210, 135, 0.1);
  box-shadow: 0 0 15px rgba(0, 210, 135, 0.25);
}

/* --- 9. Bento Grid Card Enhancements --- */
.bento-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 25px rgba(212, 175, 55, 0.15);
}

.dark .bento-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.25);
}

/* Radial Glow Behind Cards */
.card-radial-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.12;
  transition: opacity 0.3s ease;
}

.bento-card:hover .card-radial-glow {
  opacity: 0.25;
}
