/* ==========================================================================
   RJ AI — Liquid Glass Design System (iOS 26 / VisionOS Inspired)
   Created for Rajesh Kumar Sah
   ========================================================================== */

:root {
  --liquid-bg: #03060c;
  --liquid-emerald: #10b981;
  --liquid-cyan: #06b6d4;
  --liquid-teal: #14b8a6;
  --liquid-glass-surface: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(255, 255, 255, 0.025) 45%,
    rgba(16, 185, 129, 0.04) 100%
  );
  --liquid-glass-border: rgba(255, 255, 255, 0.14);
  --liquid-specular-top: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.28);
  --liquid-specular-bottom: inset 0 -1px 1px 0 rgba(255, 255, 255, 0.06);
  --liquid-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75), 0 0 40px -10px rgba(16, 185, 129, 0.12);
}

body {
  background-color: var(--liquid-bg) !important;
  color: #f1f5f9;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Animated Liquid Aurora Blobs */
.liquid-ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -10;
  overflow: hidden;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.42;
  animation: liquidMorph 18s ease-in-out infinite alternate;
  will-change: transform, border-radius;
}

.liquid-blob-1 {
  width: 540px;
  height: 540px;
  top: -120px;
  left: 12%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, rgba(6, 182, 212, 0.15) 65%, transparent 100%);
  animation-duration: 20s;
}

.liquid-blob-2 {
  width: 480px;
  height: 480px;
  top: 28%;
  right: -100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.38) 0%, rgba(59, 130, 246, 0.15) 65%, transparent 100%);
  animation-duration: 24s;
  animation-delay: -5s;
}

.liquid-blob-3 {
  width: 520px;
  height: 520px;
  bottom: -140px;
  left: 25%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.32) 0%, rgba(168, 85, 247, 0.12) 65%, transparent 100%);
  animation-duration: 22s;
  animation-delay: -11s;
}

@keyframes liquidMorph {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  50% {
    transform: translate3d(40px, -35px, 0) scale(1.08) rotate(12deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  100% {
    transform: translate3d(-30px, 25px, 0) scale(0.95) rotate(-8deg);
    border-radius: 35% 65% 55% 45% / 50% 60% 40% 50%;
  }
}

/* Core Liquid Glass Panel */
.glass-panel,
.liquid-glass {
  background: var(--liquid-glass-surface) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid var(--liquid-glass-border) !important;
  box-shadow: var(--liquid-specular-top), var(--liquid-specular-bottom), var(--liquid-shadow) !important;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease !important;
}

/* Top Refractive Specular Edge Line */
.glass-panel::before,
.liquid-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 35%,
    rgba(52, 211, 153, 0.65) 50%,
    rgba(255, 255, 255, 0.45) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Interactive Hover Refraction */
.liquid-hover:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(52, 211, 153, 0.38) !important;
  box-shadow:
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 1px 0 rgba(16, 185, 129, 0.15),
    0 28px 70px -12px rgba(0, 0, 0, 0.85),
    0 0 50px -5px rgba(16, 185, 129, 0.22) !important;
}

/* Sticky Liquid Glass Header Capsule */
header.glass-panel {
  background: linear-gradient(
    180deg,
    rgba(8, 13, 22, 0.78) 0%,
    rgba(8, 13, 22, 0.58) 100%
  ) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Liquid Glossy Primary Button */
.liquid-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #06b6d4 100%) !important;
  color: #020617 !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25),
    0 12px 35px -4px rgba(16, 185, 129, 0.5),
    0 0 25px rgba(20, 184, 166, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.liquid-btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: rotate(25deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.liquid-btn-primary:hover::after {
  left: 130%;
}

.liquid-btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    0 16px 45px -4px rgba(16, 185, 129, 0.65),
    0 0 35px rgba(6, 182, 212, 0.45) !important;
}

/* Liquid Glass Secondary Button */
.liquid-btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.liquid-btn-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(16, 185, 129, 0.1) 100%
  ) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
  transform: translateY(-2px);
}

/* Liquid Pill Badge */
.liquid-pill {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.16) 0%,
    rgba(6, 182, 212, 0.08) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(52, 211, 153, 0.32);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 4px 20px rgba(16, 185, 129, 0.15);
}

/* Liquid Input Fields */
.liquid-input {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.25s ease !important;
}

.liquid-input:focus {
  background: rgba(16, 185, 129, 0.05) !important;
  border-color: rgba(52, 211, 153, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #03060c;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.45);
}
