/* ArkBoosted Custom Styles - Professional Enhancement */

/* Enhanced Typography */
.hero-gradient-text {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Improved Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #000 0%, #1f2937 100%);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

/* Mobile KPI Improvements */
@media (max-width: 640px) {
  .kpi-metric {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .kpi-metric .counter {
    word-break: break-all;
    hyphens: auto;
  }
}

/* Testimonial Section Enhancements */
.testimonial-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced testimonial hover effects */
.testimonial-card .bg-white {
  position: relative;
  overflow: hidden;
}

.testimonial-card .bg-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: left 0.7s ease;
}

.testimonial-card:hover .bg-white::before {
  left: 100%;
}

/* Trust indicator animations */
.trust-indicator {
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.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 ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.08);
}

/* Enhanced Card Styles */
.card-enhanced {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #000, #374151);
  transition: left 0.5s ease;
}

.card-enhanced:hover::before {
  left: 100%;
}

.card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Header Enhancement */
.header-enhanced {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.header-enhanced.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* KPI Card Professional Style */
.kpi-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.kpi-metric {
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kpi-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent);
  transition: left 0.4s ease;
}

.kpi-metric:hover::before {
  left: 100%;
}

.kpi-metric:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Animated Counter for KPI metrics */
.counter {
  opacity: 0;
  animation: countUp 1.5s ease-out 0.5s both;
}

/* Campaign Gallery Enhancement */
.campaign-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.campaign-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.campaign-card:hover::after {
  opacity: 1;
  animation: shimmer 0.6s ease-out;
}

.campaign-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.08);
}

.campaign-image {
  transition: all 0.4s ease;
  filter: brightness(1) contrast(1.05);
}

.campaign-card:hover .campaign-image {
  filter: brightness(1.08) contrast(1.12);
  transform: scale(1.05);
}

/* Modal Enhancement */
.modal-enhanced {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px 0 rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Section Spacing Enhancement */
.section-enhanced {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Service Icons Animation */
.service-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-icon:hover {
  transform: rotate(5deg) scale(1.1);
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg, #000, #374151);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.card-enhanced:hover .service-icon::before {
  opacity: 0.2;
}

/* Scroll-triggered animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for service cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

/* Campaign cards staggered */
.campaign-card:nth-child(1) { animation-delay: 0.1s; }
.campaign-card:nth-child(2) { animation-delay: 0.2s; }
.campaign-card:nth-child(3) { animation-delay: 0.3s; }
.campaign-card:nth-child(4) { animation-delay: 0.4s; }

/* Chart container animation */
.chart-container {
  opacity: 0;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

/* Subtle animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for CTA buttons */
.pulse-on-hover:hover {
  animation: gentlePulse 2s infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Loading state for chart */
.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 256px;
}

.chart-loading::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* FAQ Section Styles */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  transition: all 0.3s ease;
  line-height: 1.6;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* FAQ Animation for smooth expand/collapse */
.faq-answer.hidden {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0 !important;
  overflow: hidden;
}

.faq-answer:not(.hidden) {
  max-height: 200px;
  opacity: 1;
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Niche Box Enhancements */
.niche-box {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.niche-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.niche-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

.niche-box:hover::before {
  opacity: 1;
}

.niche-box:hover span {
  transform: scale(1.1);
}

.niche-box span {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.hover-lift {
  will-change: transform;
}

/* Pulse animation for niche boxes */
@keyframes pulse {
  0% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  }
  100% { 
    transform: scale(1); 
  }
}

/* Mobile KPI Improvements */
@media (max-width: 640px) {
  .kpi-metric {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .kpi-metric .counter {
    word-break: break-all;
    hyphens: auto;
  }
}

/* Testimonial Section Enhancements */
.testimonial-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced testimonial hover effects */
.testimonial-card .bg-white {
  position: relative;
  overflow: hidden;
}

.testimonial-card .bg-white::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: left 0.7s ease;
}

.testimonial-card:hover .bg-white::before {
  left: 100%;
}
