/* Index Page Specific Enhancements - Complete Styles & Dark Mode Fixes */

/* Enhanced Variables for Index Page */
:root {
  /* Gradient Overlays */
  --gradient-primary: linear-gradient(
    135deg,
    var(--azure-base) 0%,
    var(--teal-base) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    rgba(26, 115, 232, 0.05) 0%,
    rgba(0, 191, 165, 0.05) 100%
  );
  --gradient-mesh: radial-gradient(
      circle at 20% 80%,
      rgba(26, 115, 232, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 191, 165, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(155, 81, 224, 0.05) 0%,
      transparent 50%
    );

  /* Animation Curves */
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Optimizations for Index */
* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  overflow-x: hidden;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Create a content wrapper that pushes footer down */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* All content before footer should grow */
body > *:not(.footer-modern):not(script):not(style) {
  flex: 1 0 auto;
}

/* Specific flex settings for main sections */
.hero-modern,
.features-modern, 
.stats-modern,
.cta-modern {
  flex: 1 0 auto;
}

/* Navigation Enhancement */
.navbar-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  transition: all 0.3s var(--ease-out-cubic);
  flex-shrink: 0;
}

.navbar-modern.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.08);
}

.navbar-brand-modern {
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s var(--ease-out-cubic);
}

.logo-modern {
  width: 45px !important;
  height: 45px !important;
  /* background: var(--gradient-primary); */
  /* border-radius: 50%; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  /* box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3); */
  transition: all 0.3s var(--ease-spring);
}

.navbar-brand-modern:hover .logo-modern {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(26, 115, 232, 0.4);
}

.nav-link-modern {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.75rem 1.25rem !important;
  border-radius: 50px;
  transition: all 0.3s var(--ease-out-cubic);
  position: relative;
  overflow: hidden;
}

.nav-link-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(26, 115, 232, 0.1),
    transparent
  );
  transition: left 0.5s var(--ease-out-cubic);
}

.nav-link-modern:hover::before {
  left: 100%;
}

.nav-link-modern:hover {
  color: var(--primary) !important;
  background: rgba(26, 115, 232, 0.05);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-modern {
  min-height: 100vh;
  background: var(--gradient-mesh), var(--bg-secondary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.1;
  animation: float-random 20s infinite linear;
}

.floating-element:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: -5s;
}

.floating-element:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float-random {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 30px) rotate(180deg);
  }
  75% {
    transform: translate(20px, 20px) rotate(270deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary) 70%,
    var(--teal-base) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s var(--ease-out-cubic);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 400;
  line-height: 1.6;
  animation: fadeInUp 1s var(--ease-out-cubic) 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s var(--ease-out-cubic) 0.4s both;
}

.btn-hero-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s var(--ease-out-cubic);
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(26, 115, 232, 0.4);
  color: white;
  text-decoration: none;
}

.btn-hero-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out-cubic);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s var(--ease-out-cubic);
  z-index: -1;
}

.btn-hero-secondary:hover::before {
  width: 100%;
}

.btn-hero-secondary:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
  text-decoration: none;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 1.2s var(--ease-out-cubic) 0.6s both;
}

.dashboard-preview {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: all 0.5s var(--ease-out-cubic);
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-primary);
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral-base);
}

.preview-dot:nth-child(2) {
  background: var(--coral-light);
}

.preview-dot:nth-child(3) {
  background: var(--teal-base);
}

.preview-metric {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.preview-metric::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features Section */
.features-modern {
  padding: 100px 0;
  background: white;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

@media (max-width: 576px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.feature-card-modern {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-primary);
  transition: all 0.4s var(--ease-out-cubic);
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  transition: left 0.5s var(--ease-out-cubic);
  z-index: 1;
}

.feature-card-modern:hover::before {
  left: 0;
}

.feature-card-modern > * {
  position: relative;
  z-index: 2;
}

.feature-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(26, 115, 232, 0.15);
  border-color: var(--primary);
}

.feature-icon-modern {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--ease-spring);
}

.feature-card-modern:hover .feature-icon-modern {
  transform: scale(1.1) rotate(5deg);
}

.icon-gradient-1 {
  background: linear-gradient(
    135deg,
    var(--azure-base) 0%,
    var(--azure-light) 100%
  );
  color: white;
}

.icon-gradient-2 {
  background: linear-gradient(
    135deg,
    var(--teal-base) 0%,
    var(--teal-light) 100%
  );
  color: white;
}

.icon-gradient-3 {
  background: linear-gradient(
    135deg,
    var(--violet-base) 0%,
    var(--violet-light) 100%
  );
  color: white;
}

.icon-gradient-4 {
  background: linear-gradient(
    135deg,
    var(--coral-base) 0%,
    var(--coral-light) 100%
  );
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

/* Stats Section */
.stats-modern {
  padding: 100px 0;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3Ccircle cx='27' cy='7' r='1'/%3E%3Ccircle cx='47' cy='7' r='1'/%3E%3Ccircle cx='7' cy='27' r='1'/%3E%3Ccircle cx='27' cy='27' r='1'/%3E%3Ccircle cx='47' cy='27' r='1'/%3E%3Ccircle cx='7' cy='47' r='1'/%3E%3Ccircle cx='27' cy='47' r='1'/%3E%3Ccircle cx='47' cy='47' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* CTA Section */
.cta-modern {
  padding: 120px 0;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
}

.cta-container {
  background: white;
  border-radius: 30px;
  padding: 4rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-primary);
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(26, 115, 232, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-container > * {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer-modern {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 0;
  position: relative;
  margin-bottom: 0;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-content {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 300px;
}

.footer-section h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: all 0.3s var(--ease-out-cubic);
}

.footer-link:hover {
  color: var(--azure-light);
  transform: translateX(4px);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 1.5rem 0;
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s var(--ease-out-cubic);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-modern {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .dashboard-preview {
    transform: none;
    border-radius: 15px;
    padding: 1rem;
  }

  .features-modern {
    padding: 60px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-modern {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .cta-modern {
    padding: 80px 0;
  }

  .cta-container {
    padding: 2.5rem 1.5rem;
    margin: 0 1rem;
    border-radius: 20px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* Index Page Specific Enhancements - Dark Mode Fixes & Uniqueness */

/* Dark Mode Overrides for Index Page */
@media (prefers-color-scheme: dark) {
  :root {
    /* Enhanced dark mode variables for better contrast */
    --dark-text-primary: #f8fafc;
    --dark-text-secondary: #cbd5e1;
    --dark-text-muted: #94a3b8;
    --dark-bg-primary: #1e293b;
    --dark-bg-secondary: #0f172a;
    --dark-bg-tertiary: #334155;
  }

  /* Fix features section in dark mode */
  .features-modern {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
  }

  .section-title {
    color: var(--dark-text-primary) !important;
    background: linear-gradient(
      135deg,
      var(--dark-text-primary) 0%,
      var(--azure-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .section-subtitle {
    color: var(--dark-text-secondary) !important;
  }

  .feature-card-modern {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-bg-tertiary);
    color: var(--dark-text-primary);
  }

  .feature-title {
    color: var(--dark-text-primary) !important;
  }

  .feature-description {
    color: var(--dark-text-secondary) !important;
  }

  /* Fix footer in dark mode */
  .footer-modern {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-secondary);
  }

  .footer-brand {
    color: var(--dark-text-primary) !important;
  }

  .footer-description {
    color: var(--dark-text-muted) !important;
  }

  .footer-section h5 {
    color: var(--dark-text-primary) !important;
  }

  .footer-link {
    color: var(--dark-text-muted) !important;
  }

  .footer-link:hover {
    color: var(--azure-light) !important;
  }

  .footer-bottom {
    color: var(--dark-text-muted) !important;
  }

  /* Fix CTA section in dark mode */
  .cta-modern {
    background: var(--dark-bg-secondary);
  }

  .cta-container {
    background: var(--dark-bg-primary);
    border-color: var(--dark-bg-tertiary);
  }

  .cta-title {
    color: var(--dark-text-primary) !important;
  }

  .cta-description {
    color: var(--dark-text-secondary) !important;
  }

  /* Fix navbar in dark mode */
  .navbar-modern {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--dark-bg-tertiary);
  }

  .navbar-modern.scrolled {
    background: rgba(15, 23, 42, 0.98);
  }
}

/* Unique Design Elements */

/* Animated Background Particles */
.particle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  background: var(--azure-light);
  border-radius: 50%;
  opacity: 0.1;
  animation: particleFloat 15s infinite linear;
}

.particle:nth-child(odd) {
  background: var(--teal-light);
  animation-duration: 20s;
}

.particle:nth-child(3n) {
  background: var(--violet-light);
  animation-duration: 25s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Enhanced Hero Section with Glassmorphism */
.hero-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(26, 115, 232, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(0, 191, 165, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(155, 81, 224, 0.05) 0%,
      transparent 50%
    );
  animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Unique Card Hover Effects */
.feature-card-modern {
  position: relative;
  overflow: hidden;
}

.feature-card-modern::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--azure-base),
    transparent,
    var(--teal-base),
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: rotate 4s linear infinite;
  z-index: -1;
}

.feature-card-modern:hover::after {
  opacity: 0.1;
}

/* Enhanced Dashboard Preview with 3D Effect */
.dashboard-preview {
  position: relative;
}

.dashboard-preview::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(
    45deg,
    var(--azure-light),
    var(--teal-light),
    var(--violet-light)
  );
  border-radius: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(20px);
}

.dashboard-preview:hover::before {
  opacity: 0.3;
}

/* Unique Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--azure-light),
    var(--teal-light),
    var(--violet-light),
    transparent
  );
  margin: 4rem 0;
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 5px;
  background: var(--azure-base);
  border-radius: 3px;
}

/* Animated Statistics Counter */
.stat-number {
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0.9)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite;
}

@keyframes shimmerText {
  0%,
  100% {
    background-position: 200% 200%;
  }
  50% {
    background-position: 0% 0%;
  }
}

/* Unique Button Hover Effects */
.btn-hero-primary,
.btn-hero-secondary {
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after,
.btn-hero-secondary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.btn-hero-primary:hover::after,
.btn-hero-secondary:hover::after {
  width: 300px;
  height: 300px;
}

/* Enhanced Floating Elements */
.floating-element {
  position: relative;
}

.floating-element::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--azure-light) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.3;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.1;
  }
}

/* Unique Navigation Enhancement */
.navbar-modern::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--azure-light),
    var(--teal-light),
    var(--azure-light),
    transparent
  );
  animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Enhanced Typography with Unique Effects */
.hero-title {
  font-family: "Caveat Brush", "Atma", cursive !important;
  position: relative;
}

.hero-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--azure-base),
    var(--teal-base),
    var(--violet-base)
  );
  border-radius: 2px;
  animation: titleUnderline 2s ease-out;
}

@keyframes titleUnderline {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* Unique Footer Enhancement */
.footer-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--azure-base),
    var(--teal-base),
    var(--violet-base),
    var(--coral-base)
  );
  background-size: 300% 100%;
  animation: gradientFlow 5s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Interactive Elements Enhancement */
.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(26, 115, 232, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.metric-card:hover::before {
  left: 100%;
}

/* Enhanced CTA Section */
.cta-container {
  position: relative;
}

.cta-container::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--azure-base),
    var(--teal-base),
    var(--violet-base),
    var(--coral-base)
  );
  background-size: 400% 400%;
  border-radius: calc(var(--border-radius-xl) + 2px);
  z-index: -1;
  animation: borderGlow 4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-container:hover::after {
  opacity: 0.3;
}

@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .particle {
    display: none; /* Hide particles on mobile for performance */
  }

  .feature-card-modern::after {
    display: none; /* Simplify on mobile */
  }

  .dashboard-preview::before {
    display: none;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .particle,
  .floating-element::before,
  .navbar-modern::before,
  .hero-title::after,
  .footer-modern::before,
  .metric-card::before,
  .cta-container::after {
    animation: none !important;
  }

  .feature-card-modern::after {
    display: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .particle,
  .floating-element::before {
    display: none;
  }

  .section-title,
  .hero-title {
    background: none !important;
    -webkit-text-fill-color: inherit !important;
    color: var(--text-primary) !important;
  }
}

/* Performance Optimization */
.feature-card-modern,
.metric-card,
.dashboard-preview {
  will-change: transform;
}

.particle,
.floating-element {
  will-change: transform, opacity;
}

/* Custom Properties for Dynamic Theming */
.theme-dynamic {
  --dynamic-hue: 210;
  --dynamic-saturation: 80%;
  --dynamic-lightness: 50%;
}

/* Unique Interaction Feedback */
.interactive-feedback {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-feedback:active {
  transform: scale(0.98);
}

.interactive-feedback::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.interactive-feedback:hover::before {
  opacity: 1;
}
