/* ===== Root Variables & Base Styles ===== */
:root {
  --nav-height: 80px;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

/* Selection colors */
::selection {
  background: #7C3AED;
  color: white;
}

/* Focus styles */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #7C3AED;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Typography ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Navigation Styles ===== */
.nav-link {
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dark .nav-link {
  color: #D1D5DB;
}

.nav-link:hover {
  color: #7C3AED;
}

.dark .nav-link:hover {
  color: #9333EA;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7C3AED 0%, #3B82F6 100%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dark .mobile-nav-link {
  color: #D1D5DB;
}

.mobile-nav-link:hover {
  background-color: #F3F4F6;
  color: #7C3AED;
}

.dark .mobile-nav-link:hover {
  background-color: #1F2937;
  color: #9333EA;
}

/* Navigation scroll effect */
nav[data-scrolled="true"] {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* ===== Button Styles ===== */
.btn-primary {
  padding: 1rem 2rem;
  background: linear-gradient(to right, #7C3AED, #3B82F6);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  transform: scale(1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(1.05);
}

.btn-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.5s;
}

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

.btn-secondary {
  padding: 1rem 2rem;
  background-color: white;
  color: #111827;
  border: 1px solid #D1D5DB;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transform: scale(1);
  transition: all 0.3s ease;
}

.dark .btn-secondary {
  background-color: #111827;
  color: white;
  border-color: #374151;
}

.btn-secondary:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  transform: scale(1.05);
}

/* ===== Card Styles ===== */
.glass-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  border-radius: 1rem;
}

.dark .glass-card {
  background-color: rgba(17, 24, 39, 0.8);
  border-color: rgba(55, 65, 81, 0.2);
}

.service-card {
  position: relative;  /* Added explicit positioning */
  overflow: hidden;
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.dark .service-card {
  background-color: #111827;
  border-color: #1F2937;
}

.service-card:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  border-color: #7C3AED;
  transform: translateY(-0.25rem);
}

.dark .service-card:hover {
  border-color: #9333EA;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before {
  opacity: 0.05;
}

/* ===== Animation Classes ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Animation utilities */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

.animation-delay-800 {
  animation-delay: 0.8s;
}

/* ===== Scroll Animation Triggers ===== */
[data-animate] {
  opacity: 1;  /* Changed from 0 to make visible by default */
  transform: translateY(0);  /* Changed from 20px */
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Loading States ===== */
.skeleton {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background-color: #E5E7EB;
  border-radius: 0.25rem;
}

.dark .skeleton {
  background-color: #1F2937;
}

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

/* ===== Particle Canvas ===== */
#particles {
  pointer-events: none;
}

/* ===== Page Transitions ===== */
.page-transition-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* ===== Dark Mode Adjustments ===== */
html[data-theme="dark"] {
  color-scheme: dark;
}

/* ===== Container ===== */
.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ===== Hover Effects ===== */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-0.25rem);
}

.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

/* ===== Gradient Backgrounds ===== */
.gradient-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
}

.gradient-mesh {
  background-image: 
    radial-gradient(at 20% 80%, #7C3AED 0px, transparent 50%),
    radial-gradient(at 80% 20%, #3B82F6 0px, transparent 50%),
    radial-gradient(at 40% 40%, #9333EA 0px, transparent 50%);
}

/* ===== Mobile Menu Animation ===== */
[data-mobile-menu] {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

[data-mobile-menu].active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== Form Styles ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: white;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.dark .form-input {
  background-color: #111827;
  border-color: #374151;
}

.form-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #7C3AED;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.dark .form-label {
  color: #D1D5DB;
}

/* ===== Section Spacing ===== */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* ===== Glassmorphism Effects ===== */
.glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #F3F4F6;
}

.dark ::-webkit-scrollbar-track {
  background: #111827;
}

::-webkit-scrollbar-thumb {
  background: #9CA3AF;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4B5563;
}

::-webkit-scrollbar-thumb:hover {
  background: #6B7280;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #6B7280;
}

/* ===== Utility Classes ===== */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ===== Print Styles ===== */
@media print {
  nav, footer, .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
  }
}


.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

.whatsapp-float::after {
    content: 'Chat with us';
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

.whatsapp-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #4FCE5D;
    border: 2px solid white;
    border-radius: 50%;
}

/* AI Capability Card States */
.capability-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.capability-card.active {
    border-color: #7C3AED;
    background-color: rgba(124, 58, 237, 0.05);
}

.dark .capability-card.active {
    border-color: #9333EA;
    background-color: rgba(147, 51, 234, 0.1);
}

.capability-card.active .text-xl {
    color: #7C3AED;
}

.dark .capability-card.active .text-xl {
    color: #9333EA;
}

/* Active indicator */
.capability-card.active::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: #7C3AED;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}


/* Service Overview Card States */
.service-overview-card {
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.service-overview-card.active {
    border-color: #7C3AED;
    background-color: rgba(124, 58, 237, 0.02);
}

.dark .service-overview-card.active {
    border-color: #9333EA;
    background-color: rgba(147, 51, 234, 0.05);
}

.service-overview-card.active h3 {
    color: #7C3AED;
}

.dark .service-overview-card.active h3 {
    color: #9333EA;
}

/* Selected indicator checkmark */
.service-overview-card.active::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: #7C3AED;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.dark .service-overview-card.active::after {
    background: #9333EA;
}

/* Remove default link behavior */
.service-overview-card:hover {
    text-decoration: none;
}
.service-overview-card {
    transform: translateY(0);
}

.service-overview-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.service-overview-card.active {
    transform: translateY(-2px);
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}



.ai-orb-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.ai-orb {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 50%, #9333EA 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.6);
    animation: pulse-glow 2s ease-in-out infinite;
}

.ai-orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: expand-ring 3s ease-out infinite;
}

.ai-orb-ring.delay-1 {
    animation-delay: 1s;
}

.ai-orb-ring.delay-2 {
    animation-delay: 2s;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 60px rgba(124, 58, 237, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 80px rgba(124, 58, 237, 0.8);
    }
}

@keyframes expand-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Listing page */
.case-study-card img {
    object-fit: cover;
    height: 12rem; /* 48 in Tailwind */
}

/* Detail page */
.case-study-hero img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
