/* Premium Custom Styles - World-Class Design System */

:root{
  --brand-900: #0f172a;
  --brand-800: #1e40af;
  --brand-600: #2563eb;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

/* Premium Typography */
body{
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Glassmorphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(30, 64, 175, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Premium Shadow System */
.shadow-premium {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 10px 15px -3px rgba(30, 64, 175, 0.1);
}

.shadow-premium-lg {
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 20px 40px -10px rgba(30, 64, 175, 0.15);
}

.shadow-glow-blue {
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.3);
}

.shadow-glow-green {
  box-shadow: 0 0 60px rgba(34, 197, 94, 0.3);
}

/* Advanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated.fade-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll.animated.fade-down {
  animation: fadeInDown 0.8s ease forwards;
}

.animate-on-scroll.animated.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-on-scroll.animated.scale-in {
  animation: scaleIn 0.8s ease forwards;
}

.animate-on-scroll.animated.slide-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-on-scroll.animated.slide-right {
  animation: slideInRight 0.8s ease forwards;
}

/* Stagger animation delays */
.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; }
.stagger-6 { animation-delay: 0.6s; }

/* Magnetic Button Effects */
.btn-magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.btn-magnetic:hover {
  transform: translateY(-2px);
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-magnetic:hover::before {
  opacity: 1;
}

/* Animated Gradient Backgrounds */
.bg-gradient-animated {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

/* Premium Card Hover Effects */
.card-premium {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.card-premium:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Shimmer Effect for Loading States */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Number Counter Animation */
.counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* Icon Animation Enhancement */
.icon-float {
  animation: float 3s ease-in-out infinite;
}

/* Service Card Premium Effects */
.service-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* Testimonial Slider Enhancement */
.testimonial-item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Portfolio Item Transitions */
.portfolio-item{
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.portfolio-item.hidden{
  transform: scale(0.95);
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Filter Active Button */
.filter-btn-active{
  background-color: var(--brand-800);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

/* Hero Enhancement */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  position: relative;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(96, 165, 250, 0.2) 0%, transparent 50%);
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Trust Badge Enhancement */
.trust-badge {
  transition: transform 0.3s ease;
}

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

/* Floating Elements */
@keyframes floatWABtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

#floating-whatsapp {
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25);
  animation: floatWABtn 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

#floating-whatsapp:hover {
  box-shadow: 0 12px 48px rgba(37, 211, 102, 0.4);
  transform: scale(1.1) translateY(-4px);
}

#floating-cta {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Focus States for Accessibility */
:focus {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

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

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Loading Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}
