/* Custom CSS for Digital Reach Analytics */

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

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

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

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #000000;
}

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

.dark ::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}
/* Navigation link styles */
.nav-link {
  @apply text-black dark:text-white hover:text-blue-400 transition-colors duration-200 font-medium;
}

/* Button styles */
.btn-primary {
  @apply px-8 py-3 bg-black text-white font-semibold rounded-xl hover:bg-blue-400 hover:text-black transition-all duration-300;
}

.btn-secondary {
  @apply px-8 py-3 bg-white text-black font-semibold rounded-xl border-2 border-black hover:bg-blue-400 hover:border-blue-400 hover:text-black transition-all duration-300;
}

/* Section title styles */
.section-title {
  @apply text-4xl md:text-5xl font-bold text-black dark:text-white mb-4;
}

.section-subtitle {
  @apply text-xl text-gray-700 dark:text-gray-300;
}

/* Service card styles */
.service-card {
  @apply bg-white dark:bg-gray-900 p-8 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 hover:-translate-y-2 border border-gray-200 dark:border-gray-700;
}

/* Portfolio card styles */
.portfolio-card {
  @apply bg-white dark:bg-gray-900 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 hover:-translate-y-2 overflow-hidden border border-gray-200 dark:border-gray-700;
}

/* Testimonial card styles */
.testimonial-card {
  @apply bg-white dark:bg-gray-900 p-8 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 border border-gray-200 dark:border-gray-700;
}

/* Form input styles */
.form-input {
  @apply w-full px-4 py-3 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-xl focus:ring-2 focus:ring-blue-400 focus:border-transparent outline-none transition-all duration-200 text-black dark:text-white;
}
/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Hero section gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#home {
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* Black, white, and light blue gradient shift */
@keyframes blueShift {
  0% {
    background-color: #ffffff;
  }
  50% {
    background-color: #f0f8ff;
  }
  100% {
    background-color: #ffffff;
  }
}

body {
  animation: blueShift 8s ease infinite;
}

.dark body {
  background-color: #000000;
}
/* Loading animation */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Success message animation */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.success-message {
  animation: slideInUp 0.5s ease-out;
}

/* Card hover effects */
.service-card:hover .w-16,
.portfolio-card:hover .rounded-t-xl {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    @apply text-3xl;
  }
  
  .section-subtitle {
    @apply text-lg;
  }
}

/* Custom black and white gradient for dark mode elements */
.dark .bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, #111827, #000000);
}

/* Adjust hero section gradient to black white light blue */
#home {
  background: linear-gradient(to bottom right, #ffffff, #f0f8ff);
}

.dark #home {
  background: linear-gradient(to bottom right, #000000, #111827);
}
/* Dark mode transitions */
.dark * {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Black background override for dark mode */
.dark body {
  background-color: #000000;
}
/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
/* Custom checkbox styles */
input[type="checkbox"] {
  @apply w-5 h-5 text-black rounded focus:ring-blue-400;
}

/* Custom radio button styles */
input[type="radio"] {
  @apply w-5 h-5 text-black focus:ring-blue-400;
}

/* Button disabled state */
button:disabled {
  @apply opacity-50 cursor-not-allowed;
}

/* Form validation styles */
.form-input.error {
  @apply border-red-500 focus:ring-red-500;
}

.error-message {
  @apply text-red-500 text-sm mt-1;
}

/* Tooltip styles */
.tooltip {
  @apply relative inline-block;
}

.tooltip .tooltiptext {
  @apply invisible w-48 bg-black text-white text-center rounded-lg py-2 px-3 absolute z-10 bottom-full left-1/2 transform -translate-x-1/2 mb-2 opacity-0 transition-opacity duration-300;
}

.tooltip:hover .tooltiptext {
  @apply visible opacity-100;
}

/* Badge styles */
.badge {
  @apply inline-flex items-center px-3 py-1 rounded-full text-xs font-medium;
}

.badge-primary {
  @apply bg-blue-100 text-black dark:bg-blue-900 dark:text-blue-200;
}

.badge-success {
  @apply bg-green-100 text-black dark:bg-green-900 dark:text-green-200;
}

.badge-warning {
  @apply bg-yellow-100 text-black dark:bg-yellow-900 dark:text-yellow-200;
}

.badge-error {
  @apply bg-red-100 text-black dark:bg-red-900 dark:text-red-200;
}

/* Progress bar styles */
.progress-bar {
  @apply w-full bg-gray-200 dark:bg-gray-800 rounded-full h-2.5;
}

.progress-fill {
  @apply bg-black h-2.5 rounded-full transition-all duration-500;
}

/* Skeleton loading styles */
.skeleton {
  @apply animate-pulse bg-gray-200 dark:bg-gray-800 rounded;
}

.skeleton-text {
  @apply skeleton h-4 w-full;
}

.skeleton-card {
  @apply skeleton h-48 w-full rounded-lg;
}
