/* Kwebu Excellence - Performance Optimized Styles - Phase 4 Polish */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ===== PROFESSIONAL HIGHLIGHTER EFFECTS - BASED ON RESEARCH ===== */

/* Research source: https://max.hn/blog/how-to-create-a-highlighter-marker-effect-in-css */

/* Highlighter wrapper - contains both background and text */
.highlight-wrapper {
  position: relative;
  display: inline-block;
}

/* Base highlighter effect using <mark> element technique */
.highlighter-cyan,
.highlighter-yellow,
.highlighter-orange {
  /* Extend highlight beyond text edges (realistic marker overspray) */
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  
  /* Subtle rounded corners (one side rounder - mimics pen angle) */
  border-radius: 0.8em 0.3em;
  
  /* Transparent background for gradient overlay */
  background: transparent;
  
  /* Fix multi-line text wrapping */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  
  /* Text stays on top */
  position: relative;
  z-index: 1;
}

/* Cyan highlighter (turquoise like ZigZag) */
.highlighter-cyan {
  background-image: linear-gradient(
    to right,
    rgba(34, 211, 238, 0.3),
    rgba(34, 211, 238, 0.8) 4%,
    rgba(34, 211, 238, 0.5)
  );
}

/* Yellow highlighter (bright yellow like ZigZag) */
.highlighter-yellow {
  background-image: linear-gradient(
    to right,
    rgba(253, 224, 71, 0.3),
    rgba(253, 224, 71, 0.85) 4%,
    rgba(253, 224, 71, 0.5)
  );
}

/* Orange highlighter (Kwebu brand color) */
.highlighter-orange {
  background-image: linear-gradient(
    to right,
    rgba(251, 146, 60, 0.3),
    rgba(251, 146, 60, 0.8) 4%,
    rgba(251, 146, 60, 0.5)
  );
}

/* Body enhancements */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Critical above-the-fold styles */
.hero-section {
  background: linear-gradient(135deg, #2563eb 0%, #000000 50%, #10b981 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Performance optimized buttons */
.btn-primary {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
  font-weight: 800;
  padding: 1.5rem 3rem;
  border-radius: 0.75rem;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: black;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5);
}

/* Urgency badge */
.urgency-badge {
  background: #dc2626;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  animation: pulse 2s infinite;
  display: inline-block;
  margin-top: 1rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Card styles - Phase 4 Enhanced */
.pricing-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Testimonial cards - Phase 7 Professional */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
  border-color: #00614C;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid #10b981;
}

/* Lead magnet form - Phase 7 Professional */
.lead-form {
  background: #FFFFFF;
  border: 2px solid #00614C;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #374151;
  border-radius: 0.5rem;
  background: #111827;
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #10b981;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Increased from 1rem for better breathing room */
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 1.25rem 2rem;
  }
  
  /* Reduce section padding on mobile (but keep proportions) */
  section {
    padding-top: 3rem !important;  /* 48px instead of 64px */
    padding-bottom: 3rem !important;
  }
  
  /* Hero sections get more space even on mobile */
  section.py-24 {
    padding-top: 4rem !important;  /* 64px instead of 96px */
    padding-bottom: 4rem !important;
  }
  
  /* Tighter element spacing on mobile */
  .mb-12 {
    margin-bottom: 2rem !important;  /* 32px instead of 48px */
  }
  
  .mb-16 {
    margin-bottom: 2.5rem !important;  /* 40px instead of 64px */
  }
  
  /* Better touch targets */
  button, a {
    min-height: 44px;  /* iOS accessibility guideline */
  }
  
  /* Touch feedback for buttons */
  button:active, 
  .btn-primary:active,
  .btn-secondary:active,
  .btn-orange-gradient:active,
  .btn-blue-enhanced:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Performance: Reduce layout shifts */
img {
  height: auto;
  max-width: 100%;
}

/* Preload critical resources */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PHASE 3: MICRO-INTERACTIONS ===== */

/* Enhanced pulse for Most Popular badge */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(232, 93, 13, 0.3);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 6px 20px rgba(232, 93, 13, 0.6);
  }
}

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

/* Shimmer effect for timer urgency */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* Gradient hover for orange CTAs */
.btn-orange-gradient {
  background: linear-gradient(135deg, #E85D0D 0%, #F97316 100%);
  transition: all 0.3s ease-in-out;
}

.btn-orange-gradient:hover {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  transform: translateY(-2px) scale(1.02);
}

/* Blue CTA enhanced interactions */
.btn-blue-enhanced:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Bronze/Gold premium accent */
@keyframes shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.premium-badge-bronze {
  background: linear-gradient(
    90deg,
    #D97706 0%,
    #FBBF24 25%,
    #F59E0B 50%,
    #FBBF24 75%,
    #D97706 100%
  );
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

/* Enhanced package card hover */
.package-card-enhanced {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #E85D0D !important;
}

/* Smooth scale for icons */
.icon-scale {
  transition: transform 0.3s ease-in-out;
}

.icon-scale:hover {
  transform: scale(1.2) rotate(5deg);
}

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

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

/* Glow effect for premium elements */
@keyframes glow-bronze {
  0%, 100% {
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.3), 0 0 20px rgba(217, 119, 6, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.5), 0 0 30px rgba(217, 119, 6, 0.3);
  }
}

.glow-bronze {
  animation: glow-bronze 2s ease-in-out infinite;
}

/* Stagger animation for list items */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideInLeft 0.5s ease-out forwards;
}

/* Performance: Use GPU acceleration */
.gpu-accelerated {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== ACCESSIBILITY: PREFERS-REDUCED-MOTION ===== */
/* Respects user's OS-level motion preferences */
/* Windows: Settings > Ease of Access > Display > Show animations */
/* macOS: System Preferences > Accessibility > Display > Reduce motion */
/* iOS/Android: Accessibility settings > Reduce motion */

@media (prefers-reduced-motion: reduce) {
  /* Disable ALL animations for motion-sensitive users */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Remove transforms that cause motion */
  .btn-orange-gradient:hover,
  .btn-blue-enhanced:hover,
  .package-card-enhanced:hover {
    transform: none !important;
  }

  /* Keep only opacity changes (no motion) */
  .animate-pulse-glow {
    animation: pulse-opacity 2s ease-in-out infinite;
  }

  @keyframes pulse-opacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
  }

  /* Disable shimmer (no motion) */
  .animate-shimmer {
    animation: none !important;
    background: none !important;
  }

  /* Disable floating animations */
  .animate-float {
    animation: none !important;
  }

  /* Keep glow but remove movement */
  .glow-bronze {
    animation: glow-bronze-static 2s ease-in-out infinite;
  }

  @keyframes glow-bronze-static {
    0%, 100% {
      box-shadow: 0 0 15px rgba(217, 119, 6, 0.4);
    }
    50% {
      box-shadow: 0 0 25px rgba(217, 119, 6, 0.5);
    }
  }

  /* Keep premium badge shine but slower */
  .premium-badge-bronze {
    animation: shine-reduced 6s linear infinite;
  }

  @keyframes shine-reduced {
    0%, 100% {
      background-position: 0% center;
    }
    50% {
      background-position: 100% center;
    }
  }

  /* Smooth scroll disabled */
  html {
    scroll-behavior: auto !important;
  }

  /* Remove hover lifts but keep color changes */
  .pricing-card:hover,
  .testimonial-card:hover {
    transform: none !important;
  }

  /* Accessibility message (optional) */
  body::before {
    content: '';
    /* Silent mode - no visual indicator needed */
  }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
  /* Increase border widths for visibility */
  .package-card,
  .testimonial-card {
    border-width: 3px !important;
  }

  /* Stronger shadows */
  .shadow-cta {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5) !important;
  }

  /* More visible focus states */
  button:focus,
  a:focus {
    outline: 4px solid #2563EB !important;
    outline-offset: 2px !important;
  }
}

/* ===== FOCUS VISIBLE (KEYBOARD NAVIGATION) ===== */
/* Only show focus outline for keyboard users, not mouse clicks */
*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Enhanced focus for buttons */
button:focus-visible,
a:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* Skip to main content link (for screen readers) */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem 2rem;
  background: #2563EB;
  color: white;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-to-main:focus {
  left: 0;
  top: 0;
}

/* ===== CONVERSION TACTICS: EXIT-INTENT POPUP ===== */
#exit-intent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

#exit-intent-modal.show {
  display: flex;
}

.exit-modal-content {
  background: white;
  border-radius: 1.5rem;
  max-width: 600px;
  width: 100%;
  padding: 3rem;
  position: relative;
  animation: slideUp 0.4s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.exit-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.exit-modal-close:hover {
  color: #E85D0D;
  background: #FEE2E2;
}

/* ===== CONVERSION TACTICS: SOCIAL PROOF NOTIFICATIONS ===== */
.social-proof-notification {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: white;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #10B981;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9998;
  max-width: 400px;
  animation: slideInLeft 0.5s ease-out;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-proof-notification:hover {
  transform: translateX(5px);
}

.social-proof-notification.hide {
  animation: slideOutLeft 0.5s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.social-proof-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.social-proof-content {
  flex: 1;
}

.social-proof-name {
  font-weight: 700;
  color: #1A1A1A;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.social-proof-action {
  color: #10B981;
  font-size: 0.85rem;
}

.social-proof-time {
  color: #999;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .social-proof-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
  }

  .exit-modal-content {
    padding: 2rem;
  }
}

/* ===== CONVERSION TACTICS: SCARCITY BADGES ===== */
.scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  animation: pulse-scarcity 2s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@keyframes pulse-scarcity {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  }
}

.scarcity-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #FEF3C7;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

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

/* ===== CONVERSION TACTICS: STICKY CTA BAR ===== */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #E85D0D 0%, #F97316 100%);
  color: white;
  padding: 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9997;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta-bar.show {
  transform: translateY(0);
}

.sticky-cta-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-cta-text {
  flex: 1;
}

.sticky-cta-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.sticky-cta-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
}

.sticky-cta-button {
  background: white;
  color: #E85D0D;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sticky-cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .sticky-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .sticky-cta-button {
    width: 100%;
  }
}

/* Respect reduced motion for conversion tactics */
@media (prefers-reduced-motion: reduce) {
  .social-proof-notification,
  .exit-modal-content,
  .scarcity-badge {
    animation: none !important;
  }

  .sticky-cta-bar {
    transition: opacity 0.3s ease !important;
  }
}

/* ===== AWARD-WINNING 3D HERO SECTION ENHANCEMENTS ===== */

/* 3D Hero Section Container with Depth */
#main-content {
  position: relative;
  perspective: 1500px;
  perspective-origin: center;
  overflow: hidden;
}

/* Animated Gradient Background with Depth */
#main-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 146, 60, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(253, 224, 71, 0.05) 0%, transparent 50%);
  animation: float-background 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes float-background {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(1deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-1deg);
  }
}

/* 3D Headline with Layered Depth */
#main-content h1 {
  position: relative;
  transform-style: preserve-3d;
  text-shadow: 
    0 1px 0 rgba(0,0,0,0.05),
    0 2px 4px rgba(0,0,0,0.03),
    0 4px 8px rgba(0,0,0,0.02);
  transition: transform 0.3s ease-out;
}

#main-content h1:hover {
  transform: translateZ(10px) scale(1.01);
}

/* Glassmorphism 3D Cards */
.hero-3d-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2rem;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-3d-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-3d-card:hover {
  transform: translateY(-12px) translateZ(20px) rotateX(2deg);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-3d-card:hover::before {
  opacity: 1;
}

/* 3D Floating Animation for Icons/Badges */
@keyframes float-3d {
  0%, 100% {
    transform: translateY(0) translateZ(0) rotateZ(0deg);
  }
  25% {
    transform: translateY(-8px) translateZ(10px) rotateZ(1deg);
  }
  75% {
    transform: translateY(8px) translateZ(-5px) rotateZ(-1deg);
  }
}

.hero-floating-element {
  animation: float-3d 4s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Enhanced Highlighter with 3D Depth */
.highlighter-cyan,
.highlighter-yellow,
.highlighter-orange {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.highlighter-cyan:hover,
.highlighter-yellow:hover,
.highlighter-orange:hover {
  transform: translateZ(5px) scale(1.02);
  filter: brightness(1.1);
}

/* 3D Depth Shadow Layers */
.depth-shadow-sm {
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.03),
    0 4px 8px rgba(0, 0, 0, 0.02);
}

.depth-shadow-md {
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.03);
}

.depth-shadow-lg {
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 8px 16px rgba(0, 0, 0, 0.05),
    0 16px 32px rgba(0, 0, 0, 0.04);
}

/* Animated Gradient Text Effect */
.gradient-text-animated {
  background: linear-gradient(
    90deg,
    #1A1A1A 0%,
    #2A2A2A 25%,
    #1A1A1A 50%,
    #2A2A2A 75%,
    #1A1A1A 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* Parallax Scroll Effect for Hero Elements */
.parallax-element {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Glow Effect on Hover for Cards */
.glow-on-hover {
  position: relative;
  transition: all 0.4s ease;
}

.glow-on-hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.3),
    rgba(253, 224, 71, 0.3),
    rgba(251, 146, 60, 0.3)
  );
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.glow-on-hover:hover::after {
  opacity: 0.6;
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

/* Mesh Gradient Background */
.mesh-gradient-bg {
  background: 
    radial-gradient(at 0% 0%, rgba(34, 211, 238, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(253, 224, 71, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(251, 146, 60, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(34, 211, 238, 0.05) 0px, transparent 50%);
}

/* Responsive 3D Effects - Disable on Mobile for Performance */
@media (max-width: 768px) {
  #main-content {
    perspective: none;
  }
  
  .hero-3d-card {
    backdrop-filter: blur(8px);
  }
  
  .hero-3d-card:hover {
    transform: translateY(-8px);
  }
  
  #main-content h1:hover {
    transform: scale(1.01);
  }
}

/* Reduced Motion Accessibility for 3D Effects */
@media (prefers-reduced-motion: reduce) {
  #main-content::before,
  .hero-floating-element {
    animation: none !important;
  }
  
  .hero-3d-card,
  #main-content h1,
  .highlighter-cyan,
  .highlighter-yellow,
  .highlighter-orange {
    transform: none !important;
  }
  
  .hero-3d-card:hover {
    transform: none !important;
  }
  
  .glow-on-hover::after {
    animation: none !important;
  }
}