/* DataMagic Theme CSS - Enhanced colors and animations to match WordPress site */

/* Enhanced Color Variables */
:root {
  /* More vibrant primary colors */
  --bs-primary-rgb: 0, 123, 255; /* Brighter blue */
  --bs-primary: rgb(var(--bs-primary-rgb));
  --bs-primary-text-emphasis: #0056b3;
  --bs-primary-bg-subtle: #e6f2ff;
  --bs-primary-border-subtle: #b8daff;

  /* Enhanced gradient colors */
  --primary-gradient-start: #ff4081; /* Vibrant pink */
  --primary-gradient-start-rgb: 255, 64, 129;
  --primary-gradient-end: #7c4dff;   /* Vibrant purple */
  --primary-gradient-end-rgb: 124, 77, 255;

  /* Secondary colors */
  --bs-secondary-rgb: 255, 193, 7;  /* Vibrant yellow */
  --bs-secondary: rgb(var(--bs-secondary-rgb));
}

/* Enhanced Gradients */
.bg-primary-gradient {
  background-image: linear-gradient(120deg, var(--primary-gradient-start) 24.11%, var(--primary-gradient-end) 75.89%) !important;
}

.text-gradient-primary {
  background: -webkit-linear-gradient(120deg, var(--primary-gradient-start) 24.11%, var(--primary-gradient-end) 75.89%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary-gradient {
  background-image: linear-gradient(120deg, var(--primary-gradient-start) 24.11%, var(--primary-gradient-end) 75.89%) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3) !important;
  transition: all 0.3s ease !important;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.4) !important;
}

/* Enhanced Animations */
/* Fade In Animation */
[data-cue="fadeIn"], [data-cues="fadeIn"] > * {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
}

.animate [data-cue="fadeIn"], .animate [data-cues="fadeIn"] > * {
  animation-name: enhancedFadeIn;
}

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

/* Slide Up Animation */
[data-cue="slideInUp"] {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate [data-cue="slideInUp"] {
  animation-name: enhancedSlideInUp;
}

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

/* Staggered animations for multiple elements */
.animate [data-cues="fadeIn"] > *:nth-child(1) { animation-delay: 0.1s; }
.animate [data-cues="fadeIn"] > *:nth-child(2) { animation-delay: 0.2s; }
.animate [data-cues="fadeIn"] > *:nth-child(3) { animation-delay: 0.3s; }
.animate [data-cues="fadeIn"] > *:nth-child(4) { animation-delay: 0.4s; }
.animate [data-cues="fadeIn"] > *:nth-child(5) { animation-delay: 0.5s; }
.animate [data-cues="fadeIn"] > *:nth-child(6) { animation-delay: 0.6s; }
.animate [data-cues="fadeIn"] > *:nth-child(7) { animation-delay: 0.7s; }
.animate [data-cues="fadeIn"] > *:nth-child(8) { animation-delay: 0.8s; }

/* Enhanced UI Elements */
/* Increased logo size for better readability */
.logo {
  --logo-height: 4rem !important; /* Increased from 2.25rem */
}

/* Adjust navbar spacing for larger logo */
.navbar {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Ensure vertical alignment with larger logo */
.navbar-nav {
  align-items: center !important;
}

/* Responsive adjustments for the logo */
@media (max-width: 991px) {
  .logo {
    --logo-height: 3rem !important; /* Slightly smaller on mobile */
  }

  .navbar {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
}

.hero-1--container, .hero-3 {
  background-image: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
}

h1, h2, h3 {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.section-space-y {
  position: relative;
  overflow: hidden;
}

/* Add subtle background animation */
.section-space-y::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.03) 0%, transparent 50%);
  animation: rotateBg 30s linear infinite;
  z-index: -1;
}

@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Add animation class to body */
body {
  position: relative;
}

/* JavaScript to add animation class on load */

/* Enhanced Service Cards */
.process-card {
  background: linear-gradient(135deg, #1e2a4a 0%, #131b30 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease-in-out !important;
  position: relative;
  overflow: hidden;
}

.process-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--bs-primary-rgb), 0.3), transparent);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.process-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(var(--primary-gradient-start-rgb), 0.2),
    0 0 30px rgba(var(--primary-gradient-end-rgb), 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-card:hover::before {
  opacity: 1;
}

.process-card:hover::after {
  opacity: 1;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 64, 129, 0.8), 
    rgba(124, 77, 255, 0.8), 
    transparent
  );
}

.process-card__icon {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(var(--bs-primary-rgb), 0.3);
}

.process-card:hover .process-card__icon {
  background: -webkit-linear-gradient(120deg, var(--primary-gradient-start) 24.11%, var(--primary-gradient-end) 75.89%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.1);
}

.process-card__title {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.process-card:hover .process-card__title {
  background: -webkit-linear-gradient(120deg, var(--primary-gradient-start) 24.11%, var(--primary-gradient-end) 75.89%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-card__btn {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.process-card:hover .process-card__btn {
  background-image: linear-gradient(120deg, var(--primary-gradient-start) 24.11%, var(--primary-gradient-end) 75.89%) !important;
  box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3) !important;
}

/* Enhanced Services Section Background */
.section-space-md-y.position-relative.z-1 {
  overflow: hidden;
  background-color: #0d1117; /* Darker base background */
  background-image: 
    linear-gradient(135deg, rgba(30, 42, 74, 0.8) 0%, rgba(19, 27, 48, 0.8) 100%),
    radial-gradient(circle at 25% 25%, rgba(255, 64, 129, 0.05) 0%, transparent 15%),
    radial-gradient(circle at 75% 75%, rgba(124, 77, 255, 0.05) 0%, transparent 15%),
    linear-gradient(to right, rgba(30, 42, 74, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 74, 0.4) 1px, transparent 1px);
  background-size: 
    cover, 
    30% 30%, 
    30% 30%, 
    20px 20px, 
    20px 20px;
  background-position: center;
  background-attachment: fixed;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 3rem 0;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.section-space-md-y.position-relative.z-1::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(var(--bs-primary-rgb), 0.05) 0%, transparent 50%);
  animation: rotateBg 30s linear infinite;
  z-index: -1;
  opacity: 0.7;
}

.section-space-md-y.position-relative.z-1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 64, 129, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(124, 77, 255, 0.08) 0%, transparent 35%),
    linear-gradient(0deg, rgba(13, 17, 23, 0.9) 0%, transparent 100%);
  z-index: -1;
}

/* Add floating particles effect */
@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-10px) translateX(10px); }
  50% { transform: translateY(0) translateX(20px); }
  75% { transform: translateY(10px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

.section-space-md-y.position-relative.z-1 .container-fluid::before,
.section-space-md-y.position-relative.z-1 .container-fluid::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-gradient-start-rgb), 0.03) 0%, transparent 70%);
  z-index: -1;
  animation: float 15s ease-in-out infinite;
}

.section-space-md-y.position-relative.z-1 .container-fluid::before {
  top: 10%;
  left: -5%;
}

.section-space-md-y.position-relative.z-1 .container-fluid::after {
  bottom: 10%;
  right: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(var(--primary-gradient-end-rgb), 0.03) 0%, transparent 70%);
  animation: float 18s ease-in-out infinite reverse;
}

/* Add staggered animation for service cards */
.services-container [data-cues="fadeIn"] > *:nth-child(1) { animation-delay: 0.1s; }
.services-container [data-cues="fadeIn"] > *:nth-child(2) { animation-delay: 0.2s; }
.services-container [data-cues="fadeIn"] > *:nth-child(3) { animation-delay: 0.3s; }
.services-container [data-cues="fadeIn"] > *:nth-child(4) { animation-delay: 0.4s; }
.services-container [data-cues="fadeIn"] > *:nth-child(5) { animation-delay: 0.5s; }
.services-container [data-cues="fadeIn"] > *:nth-child(6) { animation-delay: 0.6s; }
.services-container [data-cues="fadeIn"] > *:nth-child(7) { animation-delay: 0.7s; }
.services-container [data-cues="fadeIn"] > *:nth-child(8) { animation-delay: 0.8s; }
.services-container [data-cues="fadeIn"] > *:nth-child(9) { animation-delay: 0.9s; }

/* Hero Video Styling */
.hero-3__img video {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hero-3__img video:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(var(--primary-gradient-start-rgb), 0.2),
    0 0 30px rgba(var(--primary-gradient-end-rgb), 0.1);
  transform: translateY(-5px);
}

/* Mobile Responsive Styling - Use 90% width on mobile */
@media (max-width: 767px) {
  .container-fluid[style*="width: 60%"] {
    width: 90% !important;
    max-width: 90% !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
  }

  .hero-3__img video {
    width: 100%;
    border-radius: 0; /* Remove border radius on mobile for full-width appearance */
  }
}
