/* BHUYA Agency - Main Styles */

/* Base Styles */
body {
  font-family: "Inter", sans-serif;
  background-color: #050505;
  color: #e5e5e5;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(108, 133, 120, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

/* Electric Card Effect (for special sections) */
.electric-card {
  box-shadow:
    0 0 30px rgba(59, 130, 246, 0.3),
    inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.electric-border {
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 1) 0%,
    rgba(96, 165, 250, 0) 100%
  );
}

/* Starry Background Effect */
.stars {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 50px 160px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 130px 80px, #ffffff, rgba(0, 0, 0, 0));
  background-size: 200px 200px;
  opacity: 0.2;
}

/* Grid Background */
.grid-bg {
  background-image:
    linear-gradient(to right, #ffffff05 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff05 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Visibility Utility */
.invisible {
  visibility: hidden;
}

/* Nav Dropdown Logic */
.group:hover .group-hover\:opacity-100 {
  opacity: 1 !important;
}
.group:hover .group-hover\:visible {
  visibility: visible !important;
}
.group:hover .group-hover\:pointer-events-auto {
  pointer-events: auto !important;
}

/* Animation: Fade In Up with Blur */
@keyframes fadeInUpBlur {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.animate-entry {
  animation: fadeInUpBlur 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Animation: Standard In */
@keyframes animationIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

/* Animation Delays */
.delay-75 {
  animation-delay: 75ms;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-150 {
  animation-delay: 150ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-700 {
  animation-delay: 700ms;
}

/* Animate on Scroll - Default: paused */
.animate-on-scroll {
  animation-play-state: paused !important;
}

/* Activated by JS */
.animate-on-scroll.animate {
  animation-play-state: running !important;
}

/* Shared Keyframes from index.html */
@keyframes flowData {
  0% {
    stroke-dashoffset: 120;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes breatheDiamond {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
    box-shadow: 0 0 30px rgba(108, 133, 120, 0.3);
    border-color: rgba(108, 133, 120, 0.3);
  }
  50% {
    transform: rotate(45deg) scale(1.05);
    box-shadow: 0 0 50px rgba(108, 133, 120, 0.5);
    border-color: rgba(108, 133, 120, 0.6);
  }
}

@keyframes orbitSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shimmer-lock {
  0%,
  100% {
    opacity: 0.4;
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }
}

@keyframes active-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(108, 133, 120, 0.4);
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 35px rgba(108, 133, 120, 0.6);
    transform: scale(1.02);
    border-color: rgba(108, 133, 120, 0.5);
  }
}

@keyframes scan-sweep {
  0% {
    transform: translateY(-150%) rotate(15deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(250%) rotate(15deg);
    opacity: 0;
  }
}

@keyframes bg-pulse-soft {
  0%,
  100% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes progress-spin {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 25;
  }
}

@keyframes drift-vertical-slow {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes drift-vertical-reverse {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes signal-flow {
  0% {
    stroke-dashoffset: 20;
    opacity: 0.3;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    stroke-width: 1;
    opacity: 0.2;
  }
  50% {
    stroke-width: 1.5;
    opacity: 0.8;
    stroke: #8fa195;
  }
}

@keyframes node-activate {
  0%,
  90%,
  100% {
    fill: white;
    r: 3px;
    filter: none;
  }
  92% {
    fill: #6c8578;
    r: 4.5px;
    filter: drop-shadow(0 0 8px rgba(108, 133, 120, 0.8));
  }
  95% {
    fill: #8fa195;
    r: 4px;
  }
}

@keyframes grid-pan-diagonal {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100px 100px;
  }
}

/* --- Consolidated from Index.html --- */
/* Aurora Effects */
@keyframes aurora-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10%, 10%) scale(1.1);
  }
}
@keyframes aurora-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10%, -10%) scale(1.2);
  }
}
@keyframes aurora-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5%, 5%) scale(0.9);
  }
}
.animate-aurora-1 {
  animation: aurora-1 15s infinite alternate ease-in-out;
}
.animate-aurora-2 {
  animation: aurora-2 20s infinite alternate ease-in-out;
}
.animate-aurora-3 {
  animation: aurora-3 18s infinite alternate ease-in-out;
}

/* Custom Index Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes width-grow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes height-bounce {
  0%,
  100% {
    height: 40%;
  }
  50% {
    height: 100%;
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
  animation: float 6s ease-in-out 3s infinite;
}
.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* SVG Animations */
@keyframes orbit-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes breathe-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(108, 133, 120, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(108, 133, 120, 0.3);
  }
}
@keyframes ripple-expand {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
    border-width: 1px;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
    border-width: 0px;
  }
}
@keyframes dot-handoff {
  0%,
  100% {
    opacity: 0.3;
    r: 2px;
    fill: #8fa195;
  }
  50% {
    opacity: 1;
    r: 3.5px;
    fill: #6c8578;
  }
}

/* Noodle & Beam */
@keyframes moveNoodle {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
.animate-noodle {
  stroke-dasharray: 80 1200;
  animation: moveNoodle 3s linear infinite;
}
.animate-noodle-delayed {
  stroke-dasharray: 80 1200;
  animation: moveNoodle 3s linear infinite;
  animation-delay: 1.5s;
}

@keyframes beamSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-beam-spin {
  animation: beamSpin 10s linear infinite;
}

/* Font Utilities */
.font-oswald {
  font-family: "Oswald", sans-serif !important;
}
[style*=\"--border-gradient\"]::before {
  content: \"\";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--border-radius-before, inherit);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: var(--border-gradient);
  pointer-events: none;
}
