/* SVG Decorative Elements - Professional & Elegant */

/* Floating SVG Decorations for White Space Areas */
.svg-decoration {
  position: absolute;
  pointer-events: none;
  opacity: 0.12; /* Updated from 0.08 to 0.12 */
  z-index: 0;
  /* Contain decorations within their parent */
  overflow: hidden;
}

.svg-decoration.top-left {
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  animation: float-slow 8s ease-in-out infinite;
}

.svg-decoration.top-right {
  top: 20px;
  right: 0;
  width: 350px;
  height: 350px;
  animation: float-reverse 7s ease-in-out infinite;
}

.svg-decoration.bottom-left {
  /* Use clip-path to prevent overflow instead of negative positioning */
  bottom: 0;
  left: 0;
  width: 450px;
  height: 450px;
  animation: float-slow 9s ease-in-out infinite;
  clip-path: inset(0 0 0 0);
}

.svg-decoration.bottom-right {
  /* Use clip-path to prevent overflow instead of negative positioning */
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  animation: float-reverse 8.5s ease-in-out infinite;
  clip-path: inset(0 0 0 0);
}

.svg-decoration.mid-left {
  top: 40%;
  left: 0;
  width: 300px;
  height: 300px;
  opacity: 0.05;
  animation: float 10s ease-in-out infinite;
  /* Clip to prevent overflow */
  clip-path: inset(0 0 0 0);
}

.svg-decoration.mid-right {
  top: 35%;
  right: 0;
  width: 350px;
  height: 350px;
  opacity: 0.06;
  animation: float-reverse 9.5s ease-in-out infinite;
  /* Clip to prevent overflow */
  clip-path: inset(0 0 0 0);
}

/* Animation Keyframes */
@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes float-reverse {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(-5deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) translateX(10px) rotate(3deg);
  }
  66% {
    transform: translateY(10px) translateX(-10px) rotate(-3deg);
  }
}

/* SVG Gradient Definitions */
.svg-decoration svg defs {
  display: none;
}

/* Subtle glow effect for decorative elements */
.svg-decoration svg {
  filter: drop-shadow(0 0 20px rgba(14, 184, 226, 0.15));
}

/* Ensure sections contain decorations properly */
section {
  overflow: hidden;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .svg-decoration.top-left,
  .svg-decoration.top-right {
    opacity: 0.1; /* Updated from 0.06 to 0.1 */
  }

  .svg-decoration.bottom-left,
  .svg-decoration.bottom-right {
    opacity: 0.09; /* Updated from 0.05 to 0.09 */
  }

  .svg-decoration.mid-left,
  .svg-decoration.mid-right {
    opacity: 0.08; /* New rule added */
  }
}

@media (max-width: 768px) {
  .svg-decoration {
    opacity: 0.08 !important; /* Updated from 0.04 to 0.08 */
  }

  .svg-decoration.top-left {
    width: 250px;
    height: 250px;
  }

  .svg-decoration.top-right {
    width: 200px;
    height: 200px;
  }

  .svg-decoration.bottom-left {
    width: 280px;
    height: 280px;
  }

  .svg-decoration.bottom-right {
    width: 300px;
    height: 300px;
  }

  .svg-decoration.mid-left,
  .svg-decoration.mid-right {
    display: none;
  }
}

/* Ensure decorations don't interfere with content */
.relative-wrapper {
  position: relative;
}

.content-layer {
  position: relative;
  z-index: 1;
}

/* Dark mode adjustments */
.dark .svg-decoration {
  opacity: 0.06;
}

.dark .svg-decoration svg {
  filter: drop-shadow(0 0 20px rgba(14, 184, 226, 0.25));
}
