/* home.css - page-specific styles for index.html only */
/* Global shared styles live in assets/css/veloryn.css */

/* Font: Grava Roman (wordmark only) */
@font-face {
  font-family: 'Grava Roman';
  src:
    local('Grava Roman'),
    url('../fonts/Grava%20Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base */
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: 'Sora', sans-serif;
}

/* Utility: prevent selection only where needed */
.no-select,
#mobile-menu-btn,
.btn-get-started,
.btn-secondary {
  -webkit-user-select: none;
  user-select: none;
}

/* Shared token: subtle border (nav bottom, footer dividers) */
.border-subtle {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Nav link hover */
.nav-link:hover {
  color: #1E5FFF !important;
}

/* Keyboard focus (accessibility) */
.nav-link:focus-visible,
.btn-get-started:focus-visible,
.btn-secondary:focus-visible,
#mobile-menu-btn:focus-visible {
  outline: 2px solid rgba(30, 95, 255, 0.65);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Get Started button (nav) */
.btn-get-started {
  transition: background-color 0.25s ease-out, transform 0.25s ease-out;
}

.btn-get-started:hover {
  background-color: #4AA3FF !important;
  transform: scale(1.02);
}

/* Hamburger icon: 3 lines to X when open */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #cbd5e1;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu panel */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

#mobile-menu.open {
  max-height: 1000px;
  opacity: 1;
}

/* Secondary button: white border lift hover */
.btn-secondary {
  border: 1px solid #26304A;
  background-color: transparent;
  transition: background-color 0.25s ease-out, border-color 0.25s ease-out;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.04);
}

/* Hero: fade-up animation on load */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.3s; }
.fade-up-3 { animation-delay: 0.5s; }

/* Scroll-triggered reveal (all sections below hero) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }

/* Shared button border-radius override */
.btn-radius {
  border-radius: 5px;
}

/* Hero background (image set via JS) */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Section 7: Ongoing Improvement - circle glows */
.glow-core {
  box-shadow: 0 0 80px 30px rgba(30, 95, 255, 0.25);
}

.glow-icon {
  box-shadow: 0 0 40px 10px rgba(30, 95, 255, 0.15);
}

/* Section 7: pulsing dots */
@keyframes pulse-slow {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.animate-pulse-slow   { animation: pulse-slow 2.5s ease-in-out infinite; }
.animate-pulse-slow-2 { animation: pulse-slow 2.5s ease-in-out infinite; animation-delay: 0.6s; }
.animate-pulse-slow-3 { animation: pulse-slow 2.5s ease-in-out infinite; animation-delay: 1.2s; }
.animate-pulse-slow-4 { animation: pulse-slow 2.5s ease-in-out infinite; animation-delay: 1.8s; }
.animate-pulse-slow-5 { animation: pulse-slow 2.5s ease-in-out infinite; animation-delay: 2.4s; }
.animate-pulse-slow-6 { animation: pulse-slow 2.5s ease-in-out infinite; animation-delay: 3.0s; }

/* Section 7: gentle orbital float animations for each circle */
@keyframes orbit-1 {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(6px, -7px); }
  50%  { transform: translate(0px, -12px); }
  75%  { transform: translate(-6px, -7px); }
  100% { transform: translate(0px, 0px); }
}

@keyframes orbit-2 {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(-8px, 5px); }
  50%  { transform: translate(0px, 10px); }
  75%  { transform: translate(8px, 5px); }
  100% { transform: translate(0px, 0px); }
}

@keyframes orbit-3 {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(-5px, -8px); }
  50%  { transform: translate(0px, -14px); }
  75%  { transform: translate(5px, -8px); }
  100% { transform: translate(0px, 0px); }
}

.float-circle-1 { animation: orbit-1 9s ease-in-out infinite; }
.float-circle-2 { animation: orbit-2 11s ease-in-out infinite; animation-delay: 1.5s; }
.float-circle-3 { animation: orbit-3 8s ease-in-out infinite; animation-delay: 3s; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up,
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
