/* ===========================================
   ACUMEN LABS - MODERN DESIGN ENHANCEMENTS
   Premium glassmorphism, animations, and depth
   =========================================== */

/* ==========================================
   ANIMATED GRADIENT BACKGROUND
   ========================================== */

/* Enhanced body background with animated mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 100% 80% at 10% 10%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(45, 212, 191, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(245, 166, 35, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(45, 212, 191, 0.04) 0%, transparent 40%);
  animation: meshGradient 20s ease-in-out infinite;
}

@keyframes meshGradient {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.8;
    transform: scale(1.05) rotate(1deg);
  }
  50% {
    opacity: 1;
    transform: scale(0.98) rotate(-1deg);
  }
  75% {
    opacity: 0.85;
    transform: scale(1.02) rotate(0.5deg);
  }
}

/* Floating orbs for extra depth */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: floatOrb1 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.diagram-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb2 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.1); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 25px) scale(0.9); }
}

/* ==========================================
   GLASSMORPHISM CARDS
   ========================================== */

/* Service Cards - Glassmorphism */
.service-card {
  background: linear-gradient(
    135deg,
    rgba(26, 43, 60, 0.7) 0%,
    rgba(13, 27, 42, 0.5) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 166, 35, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shimmer overlay on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.service-card:hover::after {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(245, 166, 35, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Service icon glow on hover */
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.25), rgba(45, 212, 191, 0.15));
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.3);
  transform: scale(1.1);
}

.service-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
}

.service-icon svg {
  stroke: var(--primary);
  transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg {
  stroke: var(--primary-light);
}

/* Audience Cards - Enhanced Glassmorphism */
.audience-card {
  background: linear-gradient(
    145deg,
    rgba(26, 43, 60, 0.8) 0%,
    rgba(36, 52, 71, 0.6) 50%,
    rgba(13, 27, 42, 0.7) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Glowing border on hover */
.audience-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.5) 0%,
    rgba(45, 212, 191, 0.3) 50%,
    rgba(245, 166, 35, 0.5) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(3px);
}

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

.audience-card:hover {
  transform: translateY(-12px);
  border-color: transparent;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(245, 166, 35, 0.2);
}

/* Stats Cards - Glassmorphism */
.stat-card {
  background: linear-gradient(
    160deg,
    rgba(26, 43, 60, 0.6) 0%,
    rgba(13, 27, 42, 0.4) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradientShift 3s linear infinite;
}

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

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

/* ==========================================
   ENHANCED TYPOGRAPHY
   ========================================== */

/* Hero title - More dramatic */
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Animated gradient text highlight */
.hero h1 .highlight {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 25%,
    var(--accent) 50%,
    var(--primary) 75%,
    var(--primary-light) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradient 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(245, 166, 35, 0.3));
}

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

/* Section headers - Better hierarchy */
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section tag - Enhanced */
.section-tag {
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.15) 0%,
    rgba(245, 166, 35, 0.08) 100%
  );
  border: 1px solid rgba(245, 166, 35, 0.3);
  box-shadow: 0 2px 10px rgba(245, 166, 35, 0.15);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ==========================================
   ENHANCED BUTTONS
   ========================================== */

/* Primary button - Glowing effect */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(245, 166, 35, 0.4),
    0 0 20px rgba(245, 166, 35, 0.3);
}

/* Secondary button - Subtle glow */
.btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: transparent;
}

/* ==========================================
   HERO BADGE ENHANCEMENT
   ========================================== */

.hero-badge {
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.12) 0%,
    rgba(245, 166, 35, 0.05) 100%
  );
  border: 1px solid rgba(245, 166, 35, 0.3);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge .dot {
  position: relative;
}

.hero-badge .dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.3);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================
   CTA SECTION ENHANCEMENT
   ========================================== */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(245, 166, 35, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(45, 212, 191, 0.2) 0%, transparent 40%);
  animation: ctaGradient 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaGradient {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.cta-section h2 {
  text-shadow: 0 4px 30px rgba(245, 166, 35, 0.3);
}

/* ==========================================
   NAVBAR GLASSMORPHISM
   ========================================== */

.navbar {
  background: rgba(13, 27, 42, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  background: rgba(13, 27, 42, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Nav link hover effect */
.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

/* ==========================================
   SCROLL INDICATOR ENHANCEMENT
   ========================================== */

.scroll-indicator {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

.scroll-arrow {
  background: rgba(26, 43, 60, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-indicator:hover .scroll-arrow {
  background: rgba(245, 166, 35, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
}

/* ==========================================
   FOOTER ENHANCEMENT
   ========================================== */

.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 166, 35, 0.5) 50%,
    transparent 100%
  );
}

.social-links a {
  background: rgba(26, 43, 60, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
  transform: translateY(-3px);
}

/* ==========================================
   AI DIAGRAM ENHANCEMENTS
   ========================================== */

.ai-diagram-wrapper {
  position: relative;
}

.ai-diagram-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(245, 166, 35, 0.08) 0%,
    transparent 60%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.ai-diagram {
  position: relative;
  z-index: 1;
}

/* Node hover enhancement */
.ai-diagram .node {
  transition: filter 0.3s ease;
}

.ai-diagram .node:hover {
  filter: drop-shadow(0 0 15px rgba(245, 166, 35, 0.5));
}

/* ==========================================
   LOADING ANIMATIONS
   ========================================== */

/* Page load animation */
@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: pageLoad 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered load for cards */
.service-card,
.audience-card,
.stat-card {
  opacity: 0;
  transform: translateY(30px);
}

.service-card.animate-in,
.audience-card.animate-in,
.stat-card.animate-in {
  animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   MICRO-INTERACTIONS
   ========================================== */

/* List item hover */
.service-features li,
.audience-benefits li {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-features li:hover,
.audience-benefits li:hover {
  transform: translateX(8px);
  color: var(--text-primary);
}

.service-features li:hover::before,
.audience-benefits li:hover::before {
  color: var(--primary-light);
  text-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

/* Card title hover */
.service-card h3,
.audience-card h3 {
  transition: color 0.3s ease;
}

.service-card:hover h3,
.audience-card:hover h3 {
  color: var(--primary-light);
}

/* Stat number animation */
.stat-number {
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
  transform: scale(1.05);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
  /* Reduce animation intensity on mobile */
  .hero::after,
  .diagram-section::before {
    opacity: 0.5;
    filter: blur(80px);
  }
  
  /* Simplify glassmorphism on mobile for performance */
  .service-card,
  .audience-card,
  .stat-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  /* Reduce hover effects on touch devices */
  @media (hover: none) {
    .service-card:hover,
    .audience-card:hover,
    .stat-card:hover {
      transform: none;
    }
  }
}

/* ==========================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero h1 .highlight {
    animation: none;
    background-size: 100% 100%;
  }
  
  body::before {
    animation: none;
  }
}
