/* ================================================
   MODERN ENHANCEMENTS 2025 - DutchFixPro
   Ultra-modern CSS improvements with latest trends
   ================================================ */

/* ================================================
   Glassmorphism Effects
   ================================================ */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 102, 0, 0.3);
  box-shadow: 0 12px 48px 0 rgba(255, 102, 0, 0.2);
  transform: translateY(-4px);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.08);
}

.glass-orange {
  background: linear-gradient(
    135deg,
    rgba(255, 102, 0, 0.1) 0%,
    rgba(204, 85, 0, 0.1) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

/* ================================================
   Neumorphism (Soft UI) Effects
   ================================================ */

.neomorph {
  background: #F5F5F5;
  border-radius: var(--radius-lg);
  box-shadow:
    8px 8px 16px #D1D1D1,
    -8px -8px 16px #FFFFFF;
  transition: all 0.3s ease;
}

.neomorph:hover {
  box-shadow:
    12px 12px 24px #D1D1D1,
    -12px -12px 24px #FFFFFF;
}

.neomorph-pressed {
  background: #F5F5F5;
  border-radius: var(--radius-lg);
  box-shadow:
    inset 4px 4px 8px #D1D1D1,
    inset -4px -4px 8px #FFFFFF;
}

.neomorph-btn {
  background: linear-gradient(145deg, #FFFFFF, #E8E8E8);
  border-radius: var(--radius-base);
  box-shadow:
    5px 5px 10px #D1D1D1,
    -5px -5px 10px #FFFFFF;
  padding: var(--space-md) var(--space-lg);
  border: none;
  transition: all 0.2s ease;
}

.neomorph-btn:hover {
  box-shadow:
    7px 7px 14px #D1D1D1,
    -7px -7px 14px #FFFFFF;
  transform: translateY(-1px);
}

.neomorph-btn:active {
  box-shadow:
    inset 3px 3px 6px #D1D1D1,
    inset -3px -3px 6px #FFFFFF;
  transform: translateY(0);
}

/* ================================================
   Advanced Gradient Animations
   ================================================ */

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

.gradient-animate {
  background: linear-gradient(
    270deg,
    #FF6600,
    #FF9944,
    #CC5500,
    #FF6600
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

.gradient-hover {
  background: linear-gradient(135deg, #FF6600 0%, #CC5500 100%);
  background-size: 200% 200%;
  transition: all 0.4s ease;
}

.gradient-hover:hover {
  background-position: right center;
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.3);
}

/* Mesh gradient background */
.mesh-gradient {
  background:
    radial-gradient(at 0% 0%, rgba(255, 102, 0, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(0, 102, 204, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 102, 0, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(0, 102, 204, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 50%, rgba(255, 102, 0, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 102, 204, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(255, 102, 0, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 102, 204, 0.15) 0px, transparent 50%);
  background-color: #FFFFFF;
}

/* ================================================
   Advanced Hover Effects
   ================================================ */

.hover-tilt-3d {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.hover-tilt-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(10deg);
}

.hover-glow-orange {
  transition: all 0.3s ease;
}

.hover-glow-orange:hover {
  box-shadow:
    0 0 20px rgba(255, 102, 0, 0.3),
    0 0 40px rgba(255, 102, 0, 0.2),
    0 0 60px rgba(255, 102, 0, 0.1);
  transform: scale(1.02);
}

.hover-gradient-border {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.hover-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #FF6600, #0066CC);
  -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.3s ease;
}

.hover-gradient-border:hover::before {
  opacity: 1;
}

/* Magnetic button effect */
.magnetic-button {
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Applied via JavaScript for cursor tracking */
.magnetic-button.active {
  transform: translate(var(--mouse-x, 0), var(--mouse-y, 0));
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ================================================
   Improved Cards
   ================================================ */

.card-modern {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 16px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF6600, #0066CC);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card-modern:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-modern:hover::before {
  transform: scaleX(1);
}

.card-elevated {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.02),
    0 8px 16px rgba(0, 0, 0, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-elevated:hover {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.03),
    0 8px 16px rgba(0, 0, 0, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.04),
    0 32px 64px rgba(0, 0, 0, 0.05);
  transform: translateY(-8px) scale(1.01);
}

/* Service card with icon animation */
.service-card-modern {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card-modern:hover {
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.15);
  transform: translateY(-4px);
}

.service-card-modern .service-icon {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card-modern:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ================================================
   Improved Buttons
   ================================================ */

.btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  background: linear-gradient(135deg, #FF6600 0%, #CC5500 100%);
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-modern:active::before {
  width: 300px;
  height: 300px;
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-shimmer:hover::after {
  left: 100%;
}

/* ================================================
   Loading States
   ================================================ */

.loading-spinner-modern {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 102, 0, 0.1);
  border-top-color: #FF6600;
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
}

.loading-dots {
  display: flex;
  gap: var(--space-sm);
}

.loading-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF6600;
  animation: bounce-dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce-dots {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.progress-bar-modern {
  width: 100%;
  height: 4px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-modern::after {
  content: '';
  display: block;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, #FF6600, #FF9944, #FF6600);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* ================================================
   Scroll Reveal Animations
   ================================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-zoom {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-zoom.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ================================================
   Parallax Effects
   ================================================ */

.parallax-layer {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.parallax-slow {
  transform: translateY(calc(var(--scroll-y, 0) * 0.2px));
}

.parallax-medium {
  transform: translateY(calc(var(--scroll-y, 0) * 0.4px));
}

.parallax-fast {
  transform: translateY(calc(var(--scroll-y, 0) * 0.6px));
}

/* ================================================
   Text Effects
   ================================================ */

.text-gradient {
  background: linear-gradient(135deg, #FF6600, #0066CC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    #FF6600 0%,
    #FF9944 50%,
    #FF6600 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.text-shadow-modern {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.05),
    0 8px 16px rgba(0, 0, 0, 0.05);
}

/* ================================================
   Enhanced Inputs
   ================================================ */

.input-modern {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid transparent;
  border-radius: var(--radius-base);
  background: white;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
}

.input-modern:focus {
  outline: none;
  border-color: #FF6600;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(255, 102, 0, 0.1),
    0 0 0 4px rgba(255, 102, 0, 0.1);
  transform: translateY(-2px);
}

.input-modern::placeholder {
  color: var(--color-text-light);
}

/* ================================================
   Tooltips
   ================================================ */

.tooltip-modern {
  position: relative;
  display: inline-block;
}

.tooltip-modern::before,
.tooltip-modern::after {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tooltip-modern::before {
  content: attr(data-tooltip);
  padding: var(--space-sm) var(--space-md);
  background: rgba(26, 32, 44, 0.95);
  color: white;
  font-size: var(--font-size-sm);
  white-space: nowrap;
  border-radius: var(--radius-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip-modern::after {
  content: '';
  border: 6px solid transparent;
  border-top-color: rgba(26, 32, 44, 0.95);
  transform: translateX(-50%) translateY(-2px);
}

.tooltip-modern:hover::before,
.tooltip-modern:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================
   Badge & Pills
   ================================================ */

.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  background: linear-gradient(135deg, #FF6600, #FF9944);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

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

.badge-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: inherit;
  opacity: 0.3;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ================================================
   Smooth Scroll
   ================================================ */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ================================================
   Performance Optimizations
   ================================================ */

.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ================================================
   Utility Classes
   ================================================ */

.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.cursor-pointer {
  cursor: pointer;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================
   Mobile Optimizations
   ================================================ */

@media (max-width: 768px) {
  .card-modern,
  .card-elevated {
    padding: var(--space-md);
  }

  .glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .btn-modern {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn-modern,
  .btn,
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }
}
