/* Hubli — custom styles (works with Tailwind CDN config) */

:root {
  --color-hubli-bg: #f5f5f5;
  --color-hubli-surface: #ffffff;
  --color-hubli-surface-2: #f0f0f0;
  --color-hubli-cyan: #1b2a5e;
  --color-hubli-amber: #3d9e3f;
  --color-hubli-green: #3d9e3f;
  --color-hubli-text-primary: #2e2e2e;
  --color-hubli-text-secondary: #555555;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-hubli-bg);
  color: var(--color-hubli-text-primary);
  overflow-x: hidden;
}

.font-orbitron {
  font-family: "Orbitron", sans-serif;
}
.font-space {
  font-family: "Space Grotesk", sans-serif;
}
.font-dm {
  font-family: "DM Sans", sans-serif;
}
.font-mono {
  font-family: "JetBrains Mono", monospace;
}

.clip-hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.glass-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(230, 230, 230, 1);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-hubli-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-hubli-surface-2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-hubli-cyan);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hero entrance */
.hero-fade {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.7s ease forwards;
}
.hero-fade.delay-1 { animation-delay: 0.2s; }
.hero-fade.delay-2 { animation-delay: 0.4s; }
.hero-fade.delay-3 { animation-delay: 0.6s; }
.hero-fade.delay-4 { animation-delay: 0.8s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Float animations */
@keyframes floatY {
  0%, 100% { transform: translateY(-15px); }
  50% { transform: translateY(15px); }
}
@keyframes floatYSmall {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(-10px); }
  50% { transform: translateY(10px); }
}
.animate-float {
  animation: floatY 6s ease-in-out infinite;
}
.animate-float-sm {
  animation: floatYSmall 4s ease-in-out infinite;
}
.animate-float-sm-alt {
  animation: floatYSmall 5s ease-in-out infinite reverse;
}
.animate-float-badge {
  animation: floatBadge 4s ease-in-out infinite;
}

/* Token coin float */
@keyframes coinFloat {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(8px); }
}
.animate-coin {
  animation: coinFloat 5s ease-in-out infinite;
}

/* Rotating rings */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spinSlow 15s linear infinite;
}
.animate-spin-slow-reverse {
  animation: spinSlow 25s linear infinite reverse;
}
.animate-spin-orbit {
  animation: spinSlow 8s linear infinite;
}
.animate-spin-orbit-reverse {
  animation: spinSlow 12s linear infinite reverse;
}

/* Scanline on About card */
@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(400px); }
}
.scanline {
  animation: scanline 4s linear infinite;
}

/* Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile menu */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: flex;
}

/* Form success */
.form-success {
  display: none;
}
.form-success.show {
  display: flex;
}
.contact-form.hide {
  display: none;
}

/* Hero parallax target */
.hero-visual {
  will-change: transform;
}

/* Stagger delays for reveal children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
