/* Abstract Flow Theme - Red to Teal Organic Design */

:root {
  /* Abstract Flow Color Palette - Red to Teal */
  --flow-red-intense: #ff2d00;
  --flow-red-main: #ff5533;
  --flow-red-coral: #ff7755;
  --flow-orange: #ff8844;
  --flow-orange-warm: #ffaa66;
  --flow-transition-1: #cc8866;
  --flow-transition-2: #aa7788;
  --flow-purple-mid: #886688;
  --flow-teal-dark: #447788;
  --flow-teal-main: #2288aa;
  --flow-teal-bright: #00aacc;
  --flow-teal-light: #66ccdd;
  --flow-blue-deep: #003355;
  --flow-blue-dark: #114455;
  --flow-gray-warm: #887766;
  --flow-gray-cool: #667788;
  
  /* Gradient combinations */
  --gradient-flow-warm: linear-gradient(135deg, var(--flow-red-intense), var(--flow-orange), var(--flow-orange-warm));
  --gradient-flow-transition: linear-gradient(135deg, var(--flow-orange-warm), var(--flow-transition-1), var(--flow-teal-dark));
  --gradient-flow-cool: linear-gradient(135deg, var(--flow-teal-dark), var(--flow-teal-main), var(--flow-teal-bright));
  --gradient-flow-full: linear-gradient(135deg, var(--flow-red-intense) 0%, var(--flow-orange) 20%, var(--flow-orange-warm) 40%, var(--flow-transition-1) 60%, var(--flow-teal-dark) 80%, var(--flow-teal-bright) 100%);
}

/* Main body background with abstract flow pattern */
body {
  background: 
    /* Abstract organic shapes mimicking the image */
    radial-gradient(ellipse 800px 600px at 10% 20%, var(--flow-red-intense) 0%, transparent 50%),
    radial-gradient(ellipse 600px 800px at 90% 10%, var(--flow-red-main) 0%, transparent 45%),
    radial-gradient(ellipse 700px 500px at 30% 80%, var(--flow-orange) 0%, transparent 55%),
    radial-gradient(ellipse 900px 400px at 70% 70%, var(--flow-orange-warm) 0%, transparent 40%),
    radial-gradient(ellipse 500px 700px at 85% 85%, var(--flow-transition-1) 0%, transparent 45%),
    radial-gradient(ellipse 600px 600px at 15% 90%, var(--flow-teal-dark) 0%, transparent 50%),
    radial-gradient(ellipse 800px 500px at 95% 60%, var(--flow-teal-main) 0%, transparent 45%),
    radial-gradient(ellipse 400px 600px at 5% 50%, var(--flow-teal-bright) 0%, transparent 50%),
    radial-gradient(ellipse 1000px 300px at 50% 30%, var(--flow-blue-deep) 0%, transparent 35%),
    radial-gradient(ellipse 700px 900px at 60% 95%, var(--flow-blue-dark) 0%, transparent 40%),
    /* Base gradient */
    linear-gradient(145deg, var(--flow-blue-deep) 0%, var(--flow-red-intense) 25%, var(--flow-orange-warm) 50%, var(--flow-teal-main) 75%, var(--flow-blue-dark) 100%);
  
  background-size: 
    120% 150%, 130% 140%, 110% 130%, 140% 110%, 100% 120%,
    115% 135%, 125% 105%, 105% 125%, 150% 90%, 120% 160%, 200% 200%;
  
  background-attachment: fixed;
  animation: abstractFlow 30s ease-in-out infinite;
  min-height: 100vh;
}

/* Abstract flow animation */
@keyframes abstractFlow {
  0%, 100% {
    background-position: 
      0% 0%, 100% 100%, 50% 50%, 75% 25%, 25% 75%,
      60% 40%, 40% 60%, 80% 20%, 20% 80%, 90% 10%, 10% 90%;
  }
  25% {
    background-position: 
      25% 25%, 75% 75%, 75% 25%, 50% 50%, 0% 100%,
      40% 60%, 20% 80%, 60% 40%, 40% 60%, 70% 30%, 30% 70%;
  }
  50% {
    background-position: 
      50% 50%, 50% 50%, 100% 0%, 25% 75%, 75% 25%,
      20% 80%, 80% 20%, 40% 60%, 60% 40%, 50% 50%, 50% 50%;
  }
  75% {
    background-position: 
      75% 75%, 25% 25%, 25% 75%, 0% 100%, 100% 0%,
      80% 20%, 60% 40%, 80% 20%, 20% 80%, 30% 70%, 70% 30%;
  }
}

/* Sidebar with flow theme */
.bg-gray-900 {
  background: linear-gradient(180deg, 
    var(--flow-blue-deep) 0%, 
    var(--flow-blue-dark) 30%, 
    var(--flow-teal-dark) 70%, 
    var(--flow-gray-cool) 100%) !important;
  background-size: 100% 200%;
  animation: gradientSlide 20s linear infinite;
}

/* Main content area */
.bg-gray-50 {
  background: linear-gradient(145deg, 
    rgba(255, 45, 0, 0.08) 0%, 
    rgba(255, 136, 68, 0.08) 25%, 
    rgba(204, 136, 102, 0.08) 50%, 
    rgba(68, 119, 136, 0.08) 75%, 
    rgba(0, 170, 204, 0.08) 100%) !important;
  backdrop-filter: blur(10px);
  background-size: 200% 200%;
  animation: gradientShift 15s ease-in-out infinite;
}

/* Header background */
.bg-white {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 170, 102, 0.1) 30%,
    rgba(68, 119, 136, 0.1) 70%,
    rgba(255, 255, 255, 0.95) 100%) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 136, 68, 0.2);
}

/* Button styles with flow theme */
.gradient-button-primary {
  background: var(--gradient-flow-warm);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 85, 51, 0.3);
  position: relative;
  overflow: hidden;
}

.gradient-button-primary::before {
  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.6s;
}

.gradient-button-primary:hover::before {
  left: 100%;
}

.gradient-button-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 85, 51, 0.4);
  background: linear-gradient(135deg, var(--flow-red-main), var(--flow-orange), var(--flow-orange-warm));
}

.gradient-button-secondary {
  background: var(--gradient-flow-cool);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(34, 136, 170, 0.3);
}

.gradient-button-secondary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(34, 136, 170, 0.4);
  background: linear-gradient(135deg, var(--flow-teal-main), var(--flow-teal-bright), var(--flow-teal-light));
}

/* Card components with abstract flow styling */
.gradient-card {
  background: linear-gradient(145deg, 
    rgba(255, 45, 0, 0.12) 0%, 
    rgba(255, 136, 68, 0.12) 25%, 
    rgba(204, 136, 102, 0.12) 50%, 
    rgba(68, 119, 136, 0.12) 75%, 
    rgba(0, 170, 204, 0.12) 100%) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.1),
    0 5px 25px rgba(255, 85, 51, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Glass morphism with flow colors */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 136, 68, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(255, 85, 51, 0.1);
}

.glass-morphism-dark {
  background: rgba(0, 51, 85, 0.3);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(68, 119, 136, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 51, 85, 0.2);
}

/* Text styling with flow gradients */
.gradient-text-primary {
  background: var(--gradient-flow-warm);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradientFlow 8s ease-in-out infinite;
  font-weight: bold;
}

.gradient-text-secondary {
  background: var(--gradient-flow-cool);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradientFlow 8s ease-in-out infinite;
  font-weight: bold;
}

.gradient-text-light {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 2px 2px 4px rgba(0, 51, 85, 0.3);
}

.gradient-text-dark {
  color: var(--flow-blue-deep);
  text-shadow: 1px 1px 2px rgba(255, 170, 102, 0.3);
}

/* Enhanced gradient text glow */
.gradient-text-glow {
  animation: flowTextGlow 3s ease-in-out infinite alternate;
}

@keyframes flowTextGlow {
  from {
    text-shadow: 0 0 10px rgba(255, 85, 51, 0.5), 0 0 20px rgba(68, 119, 136, 0.3);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 85, 51, 0.8), 0 0 30px rgba(68, 119, 136, 0.6);
  }
}

/* Organic shapes with flow colors */
.organic-shape-1::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse, var(--flow-red-main) 0%, transparent 70%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: 0.4;
  animation: organicFloat 15s ease-in-out infinite;
  z-index: -1;
}

.organic-shape-2::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -25%;
  width: 120%;
  height: 150%;
  background: radial-gradient(ellipse, var(--flow-teal-main) 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.4;
  animation: organicFloat 12s ease-in-out infinite reverse;
  z-index: -1;
}

/* Floating elements with flow theme */
.floating-elements::before,
.floating-elements::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: floatingBubbles 10s ease-in-out infinite;
}

.floating-elements::before {
  top: 20%;
  left: 10%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--flow-red-main), transparent);
  animation-delay: -2s;
}

.floating-elements::after {
  top: 60%;
  right: 15%;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, var(--flow-teal-main), transparent);
  animation-delay: -4s;
}

/* Enhanced particle effects */
.particle-bg::before,
.particle-bg::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.8;
  animation: particleFlow 15s linear infinite;
}

.particle-bg::before {
  top: 25%;
  left: 20%;
  background: var(--flow-red-main);
  animation-delay: -3s;
}

.particle-bg::after {
  top: 75%;
  right: 25%;
  background: var(--flow-teal-main);
  animation-delay: -7s;
}

@keyframes particleFlow {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-40px) translateX(30px) rotate(90deg) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(-15px) translateX(-20px) rotate(180deg) scale(0.8);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-50px) translateX(35px) rotate(270deg) scale(1.1);
    opacity: 0.9;
  }
}

/* Organic pulse animation */
.organic-pulse {
  animation: organicFlowPulse 6s ease-in-out infinite;
}

@keyframes organicFlowPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  33% {
    transform: scale(1.03) rotate(1deg);
    opacity: 0.9;
  }
  66% {
    transform: scale(0.98) rotate(-1deg);
    opacity: 0.95;
  }
}

/* Hover effects with flow theme */
.gradient-hover-effect {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.gradient-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 136, 68, 0.3), rgba(68, 119, 136, 0.3), transparent);
  transition: left 0.6s;
}

.gradient-hover-effect:hover::before {
  left: 100%;
}

.gradient-hover-effect:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 85, 51, 0.2), 0 10px 25px rgba(68, 119, 136, 0.2);
}

/* Enhanced scrollbar with flow colors */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, var(--flow-blue-dark), var(--flow-teal-dark));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-flow-warm);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--flow-red-main), var(--flow-orange), var(--flow-orange-warm));
}

/* Additional gradient animations */
@keyframes gradientSlide {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 25%;
  }
  50% {
    background-position: 50% 100%;
  }
  75% {
    background-position: 25% 0%;
  }
}

@keyframes textGradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes organicFloat {
  0%, 100% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(40px, -40px) rotate(3deg) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) rotate(-2deg) scale(0.95);
  }
}

@keyframes floatingBubbles {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    background-size: 
      150% 200%, 160% 180%, 140% 170%, 170% 140%, 130% 160%,
      145% 175%, 155% 135%, 135% 155%, 180% 120%, 150% 200%, 300% 300%;
  }
  
  .gradient-card {
    border-radius: 20px;
    margin: 10px 0;
  }
  
  .gradient-button-primary,
  .gradient-button-secondary {
    padding: 10px 20px;
    border-radius: 12px;
  }
  
  .floating-elements::before,
  .floating-elements::after {
    display: none; /* Hide floating elements on mobile for performance */
  }
}