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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #080415;
  color: #FFFFFF;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* English Font Override */
html[lang="en"] body {
  font-family: 'Outfit', sans-serif;
}

/* Tech Grid Background Overlay */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(109, 40, 217, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  pointer-events: none;
  z-index: -5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080415;
}
::-webkit-scrollbar-thumb {
  background: #2D1A60;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4C2F9C;
}

/* Glassmorphism Styles (Vercel/Linear Style Glass panels) */
.glass-panel {
  background: rgba(15, 10, 32, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  transform: translateY(-4px);
  background: rgba(24, 18, 54, 0.8);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 
    0 20px 40px rgba(109, 40, 217, 0.18),
    0 0 1px rgba(139, 92, 246, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(13, 9, 37, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(109, 40, 217, 0.2);
}

/* Radial Glows */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-purple {
  background: #7C3AED;
}

.glow-teal {
  background: #0D9488;
}

.glow-pink {
  background: #DB2777;
}

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

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

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

/* Text Gradients */
.text-gradient-purple {
  background: linear-gradient(135deg, #C084FC 0%, #818CF8 50%, #6366F1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #34D399 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Line-Height Helpers */
.lh-relax {
  line-height: 1.45 !important;
}

/* RTL Helpers */
.rtl-grid-cols-reverse {
  direction: rtl;
}

/* Custom button states */
.btn-primary-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-primary-glow:hover::after {
  transform: translateX(100%);
}

/* Continuous Sweeping Shine Effect */
@keyframes sweep-shine {
  0% {
    left: -120%;
  }
  30% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: sweep-shine 4s infinite ease-in-out;
  pointer-events: none;
}

/* Pulsating Button Outer Glow */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.4), 0 0 5px rgba(109, 40, 217, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(109, 40, 217, 0.7), 0 0 12px rgba(109, 40, 217, 0.4);
  }
}

.btn-glow {
  animation: glow-pulse 3s infinite ease-in-out;
}

/* Action Cycle Styles */
.cycle-dot {
  position: relative;
}
.cycle-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(124, 58, 237, 0.4);
  animation: rotate-dash 20s linear infinite;
}

@keyframes rotate-dash {
  100% { transform: rotate(360deg); }
}

/* Futuristic Glowing Button (Pill Variant) */
.btn-futuristic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.65) 0%, rgba(139, 92, 246, 0.45) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px; /* Rounded pill */
  padding: 0.95rem 2.25rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-futuristic::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: sweep-shine 3.2s infinite ease-in-out;
  pointer-events: none;
}

.btn-futuristic:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(139, 92, 246, 0.85); /* Border glows purple on hover */
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.55), 0 0 10px rgba(139, 92, 246, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.85) 0%, rgba(139, 92, 246, 0.65) 100%);
}

.btn-futuristic:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 0 10px rgba(109, 40, 217, 0.5);
}

/* Futuristic Glowing Button (Rectangular Variant) */
.btn-futuristic-rect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.65) 0%, rgba(139, 92, 246, 0.45) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem; /* rounded-xl */
  padding: 0.85rem 2rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-futuristic-rect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: sweep-shine 3.5s infinite ease-in-out;
  pointer-events: none;
}

.btn-futuristic-rect:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.85);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.55), 0 0 10px rgba(139, 92, 246, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.85) 0%, rgba(139, 92, 246, 0.65) 100%);
}

.btn-futuristic-rect:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 0 10px rgba(109, 40, 217, 0.5);
}

/* Text Glowing Effects */
.text-glow-purple {
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.45), 0 0 5px rgba(167, 139, 250, 0.25);
}

.text-glow-mint {
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.5), 0 0 5px rgba(52, 211, 153, 0.3);
}

.text-glow-white {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.15);
}

/* ==========================================
   PREMIUM MODERN BUTTONS (UI-UX-PRO-MAX)
   ========================================== */

/* Modern Primary Button (Pill shape, Apple/Vercel style bevel) */
.btn-modern-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 2.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  overflow: hidden;
}

.btn-modern-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: transform 0.5s ease;
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%);
}

.btn-modern-primary:hover::after {
  transform: translateX(200%);
}

.btn-modern-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(109, 40, 217, 0.25);
}

/* Modern Secondary Button (Frosted glass outline style) */
.btn-modern-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 2.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
}

.btn-modern-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.btn-modern-secondary:active {
  transform: translateY(0);
}

/* Modern Nav Button (Sleek solid gradient by default) */
.btn-modern-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.55rem 1.6rem;
  font-size: 0.825rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.btn-modern-nav::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: transform 0.5s ease;
}

.btn-modern-nav:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%);
}

.btn-modern-nav:hover::after {
  transform: translateX(200%);
}

.btn-modern-nav:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(109, 40, 217, 0.2);
}

/* Modern Rectangular Variant (For cards and summit layout) */
.btn-modern-rect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem; /* rounded-xl */
  padding: 0.8rem 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  overflow: hidden;
}

.btn-modern-rect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: transform 0.5s ease;
}

.btn-modern-rect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%);
}

.btn-modern-rect:hover::after {
  transform: translateX(200%);
}

.btn-modern-rect:active {
  transform: translateY(0);
}

/* Background Slideshow Fading Animations (Mobile/Tablet) */
@keyframes fade-slide-1 {
  0%, 35% { opacity: 0.55; }
  50%, 85% { opacity: 0; }
  100% { opacity: 0.55; }
}

@keyframes fade-slide-2 {
  0%, 35% { opacity: 0; }
  50%, 85% { opacity: 0.55; }
  100% { opacity: 0; }
}


/* Only run animations on mobile viewports (max-width: 767px) */
@media (max-width: 767px) {
  .animate-fade-1 {
    animation: fade-slide-1 12s infinite ease-in-out;
  }

  .animate-fade-2 {
    animation: fade-slide-2 12s infinite ease-in-out;
  }
}



/* ==========================================
   PREMIUM SECTION DIVIDERS (UI-UX-PRO-MAX)
   ========================================== */
.section-divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.25rem 0;
  height: 8px;
}

.section-divider::before {
  content: '';
  width: 160px;
  height: 12px;
  border-bottom: 1.5px solid #a855f7; /* Bright purple/violet */
  border-radius: 50%;
  position: absolute;
  top: -8px;
  opacity: 0.95;
  filter: drop-shadow(0 0 3px rgba(168, 85, 247, 0.4)); /* Subtle neon glow */
  -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
  mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

/* ==========================================
   UNIFIED PREMIUM CARDS (UI-UX-PRO-MAX)
   ========================================== */
.premium-card {
  background: rgba(13, 8, 30, 0.6) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.15) !important; /* Unified border color */
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-card-hover {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-card-hover:hover {
  transform: translateY(-5px) !important;
  background: rgba(22, 14, 48, 0.75) !important;
  border-color: rgba(139, 92, 246, 0.45) !important; /* Unified purple glow on hover */
  box-shadow: 
    0 20px 40px rgba(109, 40, 217, 0.15),
    0 0 20px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================
   CAROUSEL EDGE FADE MASKS (MOBILE ONLY)
   ========================================== */
@media (max-width: 1023px) {
  .stats-carousel-mask {
    mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  }
}

@media (max-width: 767px) {
  .goals-carousel-mask {
    mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  }
  .paths-carousel-mask {
    mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  }
  .sdgs-carousel-mask {
    mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  }
}

@media (max-width: 639px) {
  .values-carousel-mask {
    mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  }
}

/* ==========================================
   TECH BADGE CIRCUIT CONNECTIONS & ANIMATIONS
   ========================================== */
.tech-trace-core {
  stroke-dasharray: 6 12;
  animation: tech-flow 2s linear infinite;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

@keyframes tech-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -18;
  }
}

/* On card hover, make the flow faster and glow pink */
.group:hover .tech-trace-core {
  stroke: #F472B6;
  stroke-width: 2px;
  animation-duration: 0.8s;
}

/* Custom Tech Badge Node animations */
.tech-node-pulse {
  animation: tech-pulse 2s infinite alternate ease-in-out;
}
@keyframes tech-pulse {
  0% {
    r: 2.5px;
    fill: #D946EF;
  }
  100% {
    r: 4px;
    fill: #F472B6;
  }
}

.tech-node-ring {
  animation: tech-ring 2.5s infinite ease-out;
}
@keyframes tech-ring {
  0% {
    r: 3px;
    opacity: 0.8;
  }
  100% {
    r: 12px;
    opacity: 0;
  }
}

/* ==========================================
   LIGHT MODE OVERRIDES (Kayan Brand Colors)
   ========================================== */
.light-mode {
  background-color: #FAF9FF !important;
  color: #1E1145 !important;
}

.light-mode body {
  background-color: #FAF9FF !important;
  color: #1E1145 !important;
}

/* Scrollbar styling for Light Mode */
.light-mode ::-webkit-scrollbar-track {
  background: #FAF9FF;
}
.light-mode ::-webkit-scrollbar-thumb {
  background: #D8B4FE;
  border-radius: 4px;
}
.light-mode ::-webkit-scrollbar-thumb:hover {
  background: #A78BFA;
}

/* Glass panel and Nav overrides */
.light-mode .glass-panel {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.05) !important;
}

.light-mode .glass-nav {
  background: rgba(250, 249, 255, 0.8) !important;
  border-bottom: 1px solid rgba(109, 40, 217, 0.15) !important;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.03) !important;
}

/* Premium card overrides */
.light-mode .premium-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(139, 92, 246, 0.15) !important;
  box-shadow: 
    0 10px 35px rgba(109, 40, 217, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.light-mode .premium-card-hover:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 
    0 20px 45px rgba(109, 40, 217, 0.08),
    0 0 20px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Tech grid background override */
.light-mode .grid-bg {
  background-image: 
    linear-gradient(rgba(109, 40, 217, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, 0.02) 1px, transparent 1px) !important;
}

/* Ambient Glows */
.light-mode .glow-bg {
  opacity: 0.07 !important;
}

/* Section Dividers */
.light-mode .section-divider::before {
  border-bottom-color: #8B5CF6;
  filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.3));
}

/* Specific component fixes */
.light-mode .cycle-dot {
  background-color: #FFFFFF !important;
  border-color: #8B5CF6 !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15) !important;
}
.light-mode .cycle-dot:hover {
  border-color: #6D28D9 !important;
}

.light-mode .accordion-content {
  border-top-color: rgba(139, 92, 246, 0.12) !important;
}

/* Modern Secondary Button override for Light Mode */
.light-mode .btn-modern-secondary {
  background: rgba(109, 40, 217, 0.04) !important;
  border: 1px solid rgba(109, 40, 217, 0.2) !important;
  color: #2E1065 !important;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.02) !important;
}

.light-mode .btn-modern-secondary:hover {
  background: rgba(109, 40, 217, 0.08) !important;
  border-color: rgba(109, 40, 217, 0.4) !important;
  color: #1E1145 !important;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.05) !important;
}

/* Scroll Reveal Animations (UI-UX-PRO-MAX) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  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: transform, opacity;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Spotlight Card Glow Effect (Vercel Style) */
.premium-card::before, .spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(139, 92, 246, 0.12),
    transparent 80%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.premium-card:hover::before, .spotlight-card:hover::before {
  opacity: 1;
}

.light-mode .premium-card::before, .light-mode .spotlight-card::before {
  background: radial-gradient(
    400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(109, 40, 217, 0.06),
    transparent 80%
  ) !important;
}

/* Tech Text Decode Hover Effect */
.tech-decode {
  transition: color 0.3s ease;
}

/* Premium Quote Card Styles (Overriding standard premium cards) */
.quote-card {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(13, 8, 30, 0.6) 100%) !important;
  border-top: 4px solid #8B5CF6 !important;
  border-left: 1px solid rgba(139, 92, 246, 0.15) !important;
  border-right: 1px solid rgba(139, 92, 246, 0.15) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15) !important;
}

.light-mode .quote-card {
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.04) 0%, rgba(255, 255, 255, 0.8) 100%) !important;
  border-top: 4px solid #6D28D9 !important;
  border-left: 1px solid rgba(139, 92, 246, 0.15) !important;
  border-right: 1px solid rgba(139, 92, 246, 0.15) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15) !important;
}

/* ==========================================================================
   UI-UX-PRO-MAX UPGRADES: FLOATING ORBS, SCROLLED NAV, MAGNETIC & SPOTLIGHT BORDERS
   ========================================================================== */

/* 1. Scroll-Triggered Scrolled Header & Navigation */
header {
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}
header nav {
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
header.scrolled {
  background-color: rgba(250, 249, 255, 0.92) !important;
  border-bottom-color: rgba(109, 40, 217, 0.18) !important;
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.04) !important;
}
header.scrolled nav {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}
.dark header.scrolled {
  background-color: rgba(8, 4, 21, 0.88) !important;
  border-bottom-color: rgba(139, 92, 246, 0.22) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(139, 92, 246, 0.08) !important;
}

/* 2. Magnetic Button Transition Physics */
.btn-modern-primary, .btn-modern-secondary, .btn-modern-rect {
  transition: transform 0.1s ease-out, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-modern-primary:not(:hover), .btn-modern-secondary:not(:hover), .btn-modern-rect:not(:hover) {
  transition: transform 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* 3. Ambient Floating Neon Orbs (Biophilic Organic Depth) */
.orb-float-1 {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0) 70%);
  filter: blur(120px);
  animation: float-orb-1 22s ease-in-out infinite;
  pointer-events: none;
  z-index: -10;
}
.dark .orb-float-1 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0) 70%);
}

.orb-float-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, rgba(13, 148, 136, 0) 70%);
  filter: blur(120px);
  animation: float-orb-2 26s ease-in-out infinite;
  animation-delay: -6s;
  pointer-events: none;
  z-index: -10;
}
.dark .orb-float-2 {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.14) 0%, rgba(13, 148, 136, 0) 70%);
}

@keyframes float-orb-1 {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(60px, -90px) scale(1.15); }
  66% { transform: translate(-50px, 50px) scale(0.9); }
}
@keyframes float-orb-2 {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(-90px, 70px) scale(1.12); }
}

/* 4. Spotlight Border Tracing Mask Effect */
.premium-card::after, .spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px; /* border thickness */
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(139, 92, 246, 0.45),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.premium-card:hover::after, .spotlight-card:hover::after {
  opacity: 1;
}

.light-mode .premium-card::after, .light-mode .spotlight-card::after {
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(109, 40, 217, 0.22),
    transparent 70%
  ) !important;
}









