/* Global Background Pattern - Consistent with Header */
/* This file should be included in all pages for uniform background design */

body {
  position: relative;
  overflow-x: hidden;
}

/* Global Background Container */
.global-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

/* Global Curve Animations */
.global-curve {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  animation: global-float 12s ease-in-out infinite;
  filter: blur(0.5px);
}

.global-curve-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: -100px;
  animation-delay: 0s;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.08) 70%, transparent 100%);
}

.global-curve-2 {
  width: 350px;
  height: 350px;
  top: 60%;
  right: -80px;
  animation-delay: 4s;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.06) 70%, transparent 100%);
}

.global-curve-3 {
  width: 300px;
  height: 300px;
  bottom: 20%;
  left: 10%;
  animation-delay: 8s;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 70%, transparent 100%);
}

/* Global Square Animations */
.global-square {
  position: absolute;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(245, 158, 11, 0.18) 100%);
  animation: global-float-square 15s ease-in-out infinite;
  filter: blur(0.5px);
  transform: rotate(45deg);
}

.global-square-1 {
  width: 150px;
  height: 150px;
  top: 25%;
  right: 15%;
  animation-delay: 2s;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.08) 70%, transparent 100%);
}

.global-square-2 {
  width: 120px;
  height: 120px;
  bottom: 30%;
  left: 25%;
  animation-delay: 6s;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.07) 70%, transparent 100%);
}

/* Global Animation Keyframes */
@keyframes global-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-25px) rotate(90deg) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-40px) rotate(180deg) scale(1.2);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-20px) rotate(270deg) scale(1.05);
    opacity: 0.8;
  }
}

@keyframes global-float-square {
  0%, 100% {
    transform: translateY(0px) rotate(45deg) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) rotate(135deg) scale(1.08);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-35px) rotate(225deg) scale(1.15);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-15px) rotate(315deg) scale(1.03);
    opacity: 0.8;
  }
}

/* Additional Floating Elements for Enhanced Background */
.global-floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
  animation: global-pulse 8s ease-in-out infinite;
  filter: blur(0.3px);
}

.global-floating-1 {
  width: 80px;
  height: 80px;
  top: 15%;
  left: 60%;
  animation-delay: 1s;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.06) 70%, transparent 100%);
}

.global-floating-2 {
  width: 60px;
  height: 60px;
  top: 75%;
  right: 30%;
  animation-delay: 5s;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.05) 70%, transparent 100%);
}

.global-floating-3 {
  width: 100px;
  height: 100px;
  bottom: 10%;
  right: 5%;
  animation-delay: 3s;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 70%, transparent 100%);
}

@keyframes global-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Responsive adjustments for global background */
@media (max-width: 768px) {
  .global-curve-1 {
    width: 250px;
    height: 250px;
    top: 5%;
    left: -50px;
  }
  
  .global-curve-2 {
    width: 200px;
    height: 200px;
    top: 70%;
    right: -40px;
  }
  
  .global-curve-3 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 5%;
  }
  
  .global-square-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
  }
  
  .global-square-2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 20%;
  }
  
  .global-floating-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 70%;
  }
  
  .global-floating-2 {
    width: 40px;
    height: 40px;
    top: 80%;
    right: 20%;
  }
  
  .global-floating-3 {
    width: 70px;
    height: 70px;
    bottom: 5%;
    right: 5%;
  }
}

@media (max-width: 480px) {
  .global-curve-1 {
    width: 200px;
    height: 200px;
    top: 3%;
    left: -30px;
  }
  
  .global-curve-2 {
    width: 150px;
    height: 150px;
    top: 75%;
    right: -30px;
  }
  
  .global-curve-3 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 3%;
  }
  
  .global-square-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 5%;
  }
  
  .global-square-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
  }
  
  .global-floating-1 {
    width: 50px;
    height: 50px;
    top: 8%;
    left: 75%;
  }
  
  .global-floating-2 {
    width: 30px;
    height: 30px;
    top: 85%;
    right: 15%;
  }
  
  .global-floating-3 {
    width: 60px;
    height: 60px;
    bottom: 3%;
    right: 3%;
  }
}
