/* CSA Digital — Shared Animations & Mobile Menu */

html { scroll-behavior: smooth; }

/* ─── Keyframes ─── */

@keyframes float {
  0%, 100% { transform: perspective(900px) rotateY(-7deg) rotateX(4deg) translateY(0); }
  50%       { transform: perspective(900px) rotateY(-7deg) rotateX(4deg) translateY(-14px); }
}

@keyframes shimmer-grad {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0,183,255,0); }
  50%       { box-shadow: 0 0 22px rgba(0,183,255,0.3); }
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0,174,255,0.32); }
  50%       { box-shadow: 0 0 58px rgba(0,174,255,0.68); }
}

@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0,183,255,0.4)); }
  50%       { filter: drop-shadow(0 0 26px rgba(0,183,255,0.95)); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Applied Animations ─── */

.gradient-text {
  background: linear-gradient(270deg, #07d9ff, #0044ff, #00ccff, #0066ff) !important;
  background-size: 400% 400% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
  animation: shimmer-grad 5s ease infinite;
}

.badge { animation: badge-glow 3s ease-in-out infinite; }

.btn {
  animation: btn-pulse 2.5s ease-in-out infinite;
}
.btn:hover { animation: none !important; }

.icon { animation: icon-glow 2.5s ease-in-out infinite; }

.mockup.floating {
  animation: float 6s ease-in-out infinite;
}

.process-number {
  background: linear-gradient(135deg, #07d9ff, #006bff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.stat strong,
.screen-stats strong {
  text-shadow: 0 0 18px rgba(0,207,255,0.45);
}

/* Hero entrance */
.hero-anim-0 { animation: fadeUp 0.7s ease 0.05s both; }
.hero-anim-1 { animation: fadeUp 0.7s ease 0.2s  both; }
.hero-anim-2 { animation: fadeUp 0.7s ease 0.35s both; }
.hero-anim-3 { animation: fadeUp 0.7s ease 0.5s  both; }
.hero-mockup-anim { animation: fadeUp 0.9s ease 0.3s both; }

/* ─── Animated Background Orbs ─── */

.csa-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.csa-orb.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(0,153,255,0.13);
  animation: orb-float-1 16s ease-in-out infinite;
}

.csa-orb.orb-2 {
  width: 480px;
  height: 480px;
  background: rgba(0,80,255,0.09);
  animation: orb-float-2 20s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-6vw, 10vh) scale(1.12); }
  66%      { transform: translate(4vw, -6vh) scale(0.94); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(5vw, -8vh) scale(1.08); }
  66%      { transform: translate(-4vw, 10vh) scale(1.12); }
}

/* ─── Button Ripple ─── */

@keyframes csa-ripple {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(1); opacity: 0; }
}

/* ─── Hamburger / Mobile Nav ─── */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #d7e6f5;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 19;
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

@media (max-width: 980px) {
  .hamburger { display: flex !important; }

  nav {
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    height: 100vh !important;
    width: 260px !important;
    background: rgba(2,7,17,0.97) !important;
    backdrop-filter: blur(24px) !important;
    border-left: 1px solid rgba(255,255,255,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 40px 30px !important;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1) !important;
    z-index: 99 !important;
  }

  nav.open { right: 0 !important; }

  nav a {
    display: block !important;
    margin: 12px 0 !important;
    margin-left: 0 !important;
    font-size: 18px !important;
  }
}

@media (max-width: 620px) {
  header { position: sticky !important; }
  .logo img { width: 150px !important; }
}
