/* ─────────────────────────────────────────────────────────────
   Custom Layout Styles - Lorensoft
   ───────────────────────────────────────────────────────────── */

/* Brand font */
@font-face {
  font-family: "Baumans";
  src: url("/fonts/Baumans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.hero-title {
  font-family: "Baumans", sans-serif;
}

/* Custom scrollbar (dark default) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

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

/* Offset anchor targets so the fixed navbar doesn't cover section headings */
section[id] {
  scroll-margin-top: 6rem;
}

/* Navbar scroll effect */
header > nav {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
header > nav.nav-scrolled {
  background-color: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(51, 65, 85, 0.6) !important;
}
html.light header > nav.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(226, 232, 240, 0.8) !important;
}

/* Selection */
::selection {
  background-color: rgba(59, 130, 246, 0.3);
  color: #f1f5f9;
}
html.light ::selection {
  background-color: rgba(59, 130, 246, 0.2);
  color: #1e293b;
}

/* Print styles */
@media print {
  header,
  footer,
  .btn-primary,
  .btn-secondary,
  #theme-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  a {
    color: black !important;
    text-decoration: underline;
  }

  .hero-surface {
    background: white !important;
    border: none !important;
    box-shadow: none !important;
  }

  .step-card,
  .glow-card,
  .card {
    border: 1px solid #ccc !important;
    background: white !important;
    box-shadow: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   FANCY EFFECTS
   ───────────────────────────────────────────────────────────── */

/* Animated gradient for brand text */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.brand-gradient {
  background: linear-gradient(270deg, #38bdf8, #34d399, #60a5fa, #a78bfa, #38bdf8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

/* CTA button glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.2); }
}
.cta-glow {
  animation: glowPulse 3s ease-in-out infinite;
}
.cta-glow:hover {
  animation: none;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 100px rgba(59, 130, 246, 0.3);
}

/* Scroll reveal */
.reveal {
  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(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Animated nav underline */
header nav a {
  position: relative;
}
header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #34d399);
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}
header nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Dot grid background */
.dot-grid {
  background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Enhanced card shimmer on hover */
.step-card {
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.04), transparent);
  transition: left 0.6s ease;
}
.step-card:hover::before {
  left: 100%;
}

/* Floating orbs */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, -15px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-25px, 20px); }
  66% { transform: translate(15px, -25px); }
}
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  pointer-events: none;
}
.floating-orb-1 {
  animation: float1 20s ease-in-out infinite;
}
.floating-orb-2 {
  animation: float2 25s ease-in-out infinite;
}

/* Stats number hover */
.stat-number {
  transition: transform 0.3s ease;
}
.stat-number:hover {
  transform: scale(1.1);
}

/* Glassmorphism enhancement for nav */
header nav {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
