/* ===== HINGE TECHNOLOGIES - Dark Professional Theme ===== */

/* Blob morphing animations */
.hero-blob {
  animation: blobMorph 20s ease-in-out infinite;
}
.hero-blob:nth-child(2) { animation-delay: -7s; animation-duration: 25s; }
.hero-blob:nth-child(3) { animation-delay: -14s; animation-duration: 18s; }

@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0, 0) scale(1); }
  25%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(10px, -15px) scale(1.02); }
  50%      { border-radius: 50% 60% 30% 60% / 30% 50% 70% 50%; transform: translate(-5px, 10px) scale(0.98); }
  75%      { border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%; transform: translate(8px, 5px) scale(1.01); }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(17, 17, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Selection */
::selection { background-color: rgba(255, 14, 40, 0.25); color: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #404040; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #606060; }

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
