@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'DM Sans', sans-serif;
}

.font-heading {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 10px;
}

.bold-pattern {
  background-color: #f8fafc;
  background-image: radial-gradient(#10b981 1.5px, transparent 1.5px), radial-gradient(#10b981 1.5px, #f8fafc 1.5px);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
}

.dark .bold-pattern {
  background-color: #0f172a;
  background-image: radial-gradient(#334155 1.5px, transparent 1.5px), radial-gradient(#334155 1.5px, #0f172a 1.5px);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.transition-all-300 {
  transition: all 0.3s ease-in-out;
}

/* Global Background Animation */
/* Global Background Animation */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: -50;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(1);
  opacity: 0.15;
  pointer-events: none;
  animation: breathe 20s infinite alternate ease-in-out;
}

/* Page-Specific Backgrounds */
.bg-home-v1::before {
  background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=1200&auto=format&fit=crop');
}

.bg-home-v2::before {
  background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32d7?q=80&w=1200&auto=format&fit=crop');
}

.bg-about::before {
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=800&auto=format&fit=crop');
}

.bg-services::before {
  background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=800&auto=format&fit=crop');
}

.bg-contact::before {
  background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=80&w=800&auto=format&fit=crop');
}

.bg-user-dash::before {
  background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=800&auto=format&fit=crop');
}

.bg-admin-dash::before {
  background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=800&auto=format&fit=crop');
}

.bg-login::before {
  background-image: url('https://images.unsplash.com/photo-1518455027359-f3f8164ba6bd?q=80&w=600&auto=format&fit=crop');
}

.bg-404::before {
  background-image: url('https://images.unsplash.com/photo-1493711662062-fa541adb3fc8?q=80&w=600&auto=format&fit=crop');
}

.bg-pricing::before {
  background-image: url('https://images.unsplash.com/photo-1526170375885-4d8ecf77b99f?q=80&w=600&auto=format&fit=crop');
}

@keyframes breathe {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

@keyframes breathe {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

.dark body::before {
  filter: blur(8px) brightness(0.4);
}

/* High Contrast Text Enforcements */
body,
p,
span,
div,
li,
a {
  color: #000000;
  /* Pure Black for Light Mode */
}

.dark body,
.dark p,
.dark span,
.dark div,
.dark li {
  color: #ffffff;
  /* Pure White for Dark Mode */
}

/* Specific Overrides for Muted Text to ensure they are high contrast */
.text-slate-500,
.text-slate-600,
.text-slate-700,
.text-slate-800,
.text-slate-900 {
  color: #000000 !important;
  /* Force Black in Light Mode */
}

.dark .text-slate-400,
.dark .text-slate-500,
.dark .text-slate-600,
.dark .text-slate-700,
.dark .text-slate-800,
.dark .text-slate-900 {
  color: #ffffff !important;
  /* Force White in Dark Mode */
}

/* Footer Exception - General Footer stays White */
.footer-gradient p,
.footer-gradient span,
.footer-gradient div,
.footer-gradient li,
.footer-gradient a,
.footer-gradient h4,
.footer-gradient .text-slate-400,
.footer-gradient .footer-link {
  color: #ffffff !important;
}

/* Ensure sub-elements are also white */
.footer-gradient .grid>div:nth-child(2) h4,
.footer-gradient .grid>div:nth-child(2) a,
.footer-gradient .grid>div:nth-child(2) li,
.footer-gradient .grid>div:nth-child(3) h4,
.footer-gradient .grid>div:nth-child(3) a,
.footer-gradient .grid>div:nth-child(3) li {
  color: #ffffff !important;
}

.dark .footer-gradient .grid>div:nth-child(2) h4,
.dark .footer-gradient .grid>div:nth-child(2) a,
.dark .footer-gradient .grid>div:nth-child(2) li,
.dark .footer-gradient .grid>div:nth-child(3) h4,
.dark .footer-gradient .grid>div:nth-child(3) a,
.dark .footer-gradient .grid>div:nth-child(3) li {
  color: #ffffff !important;
}

/* Headings (removed global !important overrides to allow custom styling for h1/h2) */
h3,
h4,
h5,
h6 {
  color: #000000 !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
  /* Lift from bg */
}

.dark h3,
.dark h4,
.dark h5,
.dark h6 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Animations Request: Click effects */
img:active,
button:active,
a:active {
  transform: scale(0.95);
  transition: transform 0.1s ease-in-out;
}

/* Enhanced hover for text */
h3:hover {
  color: #059669 !important;
  /* Indigo-600 */
  transition: color 0.3s ease;
  cursor: default;
}

.dark h3:hover {
  color: #34d399 !important;
  /* Indigo-400 */
}

/* Premium Typography Classes for H1 and H2 */
.premium-h1 {
  @apply font-black tracking-tighter leading-none;
  font-family: 'Outfit', sans-serif;

  /* Fallback text color */
  color: #1e1b4b;

  /* Stunning Gradient and Shadow */
  background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0px 10px 30px rgba(16, 185, 129, 0.3);
  transition: transform 0.4s ease-out, text-shadow 0.4s ease-out, background-position 0.4s ease, filter 0.4s ease-out;
  background-size: 200% auto;
}

.dark .premium-h1 {
  background: linear-gradient(135deg, #d1fae5 0%, #10b981 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 10px 40px rgba(129, 140, 248, 0.4);
}

.premium-h1:hover {
  transform: translateY(-2px);
  text-shadow: 0px 15px 40px rgba(16, 185, 129, 0.5);
  background-position: right center;
  filter: brightness(1.2);
}

.dark .premium-h1:hover {
  text-shadow: 0px 15px 50px rgba(129, 140, 248, 0.6);
  filter: brightness(1.1);
}

.premium-h2 {
  @apply font-black font-outfit uppercase tracking-wider;
  color: #0f172a;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  display: inline-block;
}

.dark .premium-h2 {
  color: #f8fafc;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.premium-h2:hover {
  color: #10b981;
  transform: translateY(-1px);
}

.dark .premium-h2:hover {
  color: #34d399;
}

/* Dropdown Content Transitions */
.accordion-content,
.calm-dropdown-content {
  transition: max-height 0.3s ease-out, opacity 0.3s ease;
}

/* Global Click Animation "Pop" */
@keyframes pop-click {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

.pop-click {
  animation: pop-click 0.2s ease-in-out;
}

/* Glass Card Effect - Enhanced for Visibility */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.dark .glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Animated Gradient */
@keyframes gradient-xy {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient-xy {
  background-size: 200% 200%;
  animation: gradient-xy 6s ease infinite;
}

/* Service Page Animations */
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-left {
  animation: slideLeft 0.8s ease-out forwards;
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-right {
  animation: slideRight 0.8s ease-out forwards;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-zoom-in {
  animation: zoomIn 0.6s ease-out forwards;
}

@keyframes pulseSlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.animate-pulse-slow {
  animation: pulseSlow 3s infinite ease-in-out;
}

/* Staggered delays */
.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Glass Card Strong */
.glass-card-strong {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.89);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dark .glass-card-strong {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Wave Animation */
@keyframes wave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.animate-wave {
  animation: wave 4s ease-in-out infinite;
}

.animate-wave-slow {
  animation: wave 8s ease-in-out infinite;
}

/* Footer Animations */
.footer-gradient {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  background-size: 200% 200%;
  animation: gradient-xy 15s ease infinite;
}

.footer-link {
  position: relative;
  transition: all 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #34d399;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #34d399;
  padding-left: 5px;
}

.footer-link:hover::after {
  width: 100%;
}

.brand-glow:hover .logo-bg {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  transform: scale(1.05);
}

.social-icon:hover {
  transform: scale(1.2) rotate(5deg);
  color: #fff;
}

/* Hero Button Glow */
.btn-glow:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  transform: scale(1.05);
}

.delay-600 {
  animation-delay: 0.6s;
}

/* Contact Page Animations & Utilities */

.text-glow {
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.text-gradient-gold {
  background: linear-gradient(to right, #fbbf24, #d97706);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slideDown 0.8s ease-out forwards;
}

@keyframes glowPulse {

  0%,
  100% {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    opacity: 1;
  }

  50% {
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.8);
    opacity: 0.9;
  }
}

.animate-glow-pulse {
  animation: glowPulse 2s infinite ease-in-out;
  text-decoration: none !important;
  border-bottom: none !important;
}

.animate-fade-up-delayed {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.card-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.3);
}

/* Feature 12: Announcement Ticker */
.ticker-wrap {
  position: relative;
  overflow: hidden;
  height: 40px;
  background-color: #1e1b4b;
  /* indigo-950 */
  color: white;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  padding-right: 100%;
  animation: ticker 30s linear infinite;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Feature 2: Live Status Pulse */
.status-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
}

.status-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.7;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Feature 1 & 4: Selection Cards */
.selection-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.selection-card.selected {
  background-color: #eff6ff;
  /* indigo-50 */
  border-color: #10b981;
  /* indigo-500 */
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.dark .selection-card.selected {
  background-color: #1e1b4b;
  /* indigo-950 */
  border-color: #34d399;
  /* indigo-400 */
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}

/* Feature 6: Team Avatar Float */
.team-avatar {
  transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: translateY(-10px) scale(1.1);
}

.team-card:hover .avatar-ring {
  opacity: 1;
  transform: scale(1.1);
}

/* Feature 7: FAQ Accordion */
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.faq-content.open {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
}

/* Feature 10: Emoji Bounce */
/* Dashboard Refactor Styles */

/* Feature 1: Sticky Sidebar */
.sidebar-sticky {
  position: sticky;
  top: 6rem;
  /* Adjust based on navbar height */
  height: calc(100vh - 8rem);
  overflow-y: auto;
}

.sidebar-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-item:hover,
.sidebar-item.active {
  background-color: white;
  color: #059669;
  /* indigo-600 */
  transform: translateX(4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .sidebar-item:hover,
.dark .sidebar-item.active {
  background-color: #1e293b;
  /* slate-800 */
  color: #34d399;
  /* indigo-400 */
}

/* Feature 5: Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid #e2e8f0;
  /* slate-200 */
}

.dark .timeline-item {
  border-left-color: #334155;
  /* slate-700 */
}

.timeline-item:last-child {
  border-left: transparent;
}

.timeline-dot {
  position: absolute;
  left: -0.6rem;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: white;
  border: 4px solid #10b981;
  /* indigo-500 */
}

/* Feature 5: Performance Bars */
.stat-bar-bg {
  height: 8px;
  background-color: #f1f5f9;
  /* slate-100 */
  border-radius: 9999px;
  overflow: hidden;
}

.dark .stat-bar-bg {
  background-color: #334155;
  /* slate-700 */
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 9999px;
  width: 0;
  animation: growBar 1.5s ease-out forwards;
}

@keyframes growBar {
  to {
    width: var(--width);
  }
}

/* Feature 9: Trust Block Progress */
.trust-progress {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.trust-fill {
  height: 100%;
  background-color: #22c55e;
  /* green-500 */
  width: 85%;
  animation: growBar 1s ease-out forwards;
}

/* Feature 8: Quick Actions */
.action-btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn:active {
  transform: scale(0.95);
}

/* Feature 7: Table Row Hover */
.table-row-anim {
  transition: background-color 0.2s ease;
}

.table-row-anim:hover {
  background-color: #f8fafc;
  /* slate-50 */
}

.dark .table-row-anim:hover {
  background-color: #1e293b;
  /* slate-800 */
}

/* Advanced Services Animations */

/* 1. Fade-in + Upward Slide */
@keyframes fadeInUpSubtle {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up-image {
  opacity: 0;
  animation: fadeInUpSubtle 1s ease-out forwards;
}

/* 2. SaaS Hover Effect: Scale up + Shadow expansion */
.saas-hover-image {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, box-shadow;
}

.saas-hover-image:hover {
  transform: scale(1.05) translateY(-5px);
  /* Scale up + Micro-bounce/Lift */
  box-shadow: 0 20px 40px -5px rgba(16, 185, 129, 0.3), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* 3. Staggered Delays for Visual Rhythm */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

/* 4. Glassy Hover Effect Overlay (Optional but premium) */
.glassy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.group:hover .glassy-overlay {
  transform: translateX(100%);
}

.image-container {
  overflow: hidden;
  position: relative;
  border-radius: 1.5rem;
  /* rounded-3xl */
}

/* Global Image Glow Effect */
.image-glow {
  box-shadow: 0 0 20px 5px rgba(79, 70, 229, 0.8) !important;
  /* Dark Blue/Purple (Indigo) */
  transition: box-shadow 0.3s ease;
}

.dark .image-glow {
  box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.8) !important;
  /* Gold */
}


/* Footer Link Active Glow - Forces bright white in both modes */
.footer-link-active {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6) !important;
  transition: all 0.2s ease;
}

/* Active Navbar Link Style */
.active-nav-link {
  color: #059669 !important;
  /* indigo-600 */
  position: relative;
}

/* Specific styling for the underline to be precise */
.active-nav-link::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  bottom: 0;
  left: 20%;
  background-color: #059669;
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
  pointer-events: none;
}

.dark .active-nav-link {
  color: #ffffff !important;
}

.dark .active-nav-link::after {
  background-color: #34d399;
  /* indigo-400 */
  box-shadow: 0 2px 10px rgba(129, 140, 248, 0.3);
}

.dark body::before {
  opacity: 0.08;
}
