/* ===== he.coach v2 — Premium Styles ===== */

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

::selection {
  background-color: #06b6d4;
  color: white;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ---------- Navbar ---------- */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.navbar-scrolled {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu:not(.hidden) {
  animation: slideDown 0.35s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px) scaleY(0.95); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Glass cards ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ---------- Gradient text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #34d399 50%, #22d3ee 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Floating orbs ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb:nth-child(1) {
  width: 400px; height: 400px;
  background: rgba(6, 182, 212, 0.15);
  top: -5%; left: -5%;
  animation-delay: 0s;
}
.orb:nth-child(2) {
  width: 350px; height: 350px;
  background: rgba(52, 211, 153, 0.12);
  bottom: -5%; right: -5%;
  animation-delay: -7s;
}
.orb:nth-child(3) {
  width: 250px; height: 250px;
  background: rgba(168, 85, 247, 0.08);
  top: 40%; left: 50%;
  animation-delay: -14s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.05); }
  50% { transform: translate(-30px, 60px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ---------- Stats counter ---------- */
.stat-number {
  display: inline-block;
}

/* ---------- Pricing card highlight ---------- */
.pricing-featured {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(52, 211, 153, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.pricing-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #06b6d4, #34d399, #06b6d4);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

/* ---------- Testimonial card ---------- */
.testimonial-card {
  transition: all 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ---------- Button effects ---------- */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.btn-glow:hover::after {
  opacity: 1;
}

/* ---------- FAQ ---------- */
.faq-item {
  transition: all 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-item.open .faq-toggle i {
  transform: rotate(180deg);
  color: #06b6d4;
}

/* ---------- Particles canvas ---------- */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Form inputs ---------- */
.input-premium {
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
}
.input-premium::placeholder {
  color: rgba(148, 163, 184, 0.6);
}
.input-premium:focus {
  border-color: #06b6d4;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
  outline: none;
}
.input-premium option {
  background: #0f172a;
  color: white;
}

/* ---------- Loading spinner for form ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.fa-spinner {
  animation: spin 1s linear infinite;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .orb { display: none; }
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.15 !important;
  }
}
