/* ══════════════════════════════════════════════════════════════
   Razex Solutions — Global Animation Enhancement Layer
   Liquid Glass × Aurora × Glow × Magnetic
   ══════════════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes aurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(3deg); }
  66%       { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(110,231,255,.2); }
  50%       { box-shadow: 0 0 40px rgba(110,231,255,.5), 0 0 80px rgba(124,92,255,.2); }
}
@keyframes pulse-glow-purple {
  0%, 100% { box-shadow: 0 0 20px rgba(124,92,255,.2); }
  50%       { box-shadow: 0 0 40px rgba(124,92,255,.5), 0 0 80px rgba(110,231,255,.2); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes border-dance {
  0%, 100% { border-color: rgba(110,231,255,.2); }
  25%       { border-color: rgba(124,92,255,.35); }
  50%       { border-color: rgba(0,255,178,.2); }
  75%       { border-color: rgba(255,110,219,.25); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes gradient-text-flow {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes particle-drift {
  0%   { transform: translate(0,0) scale(1); opacity: .4; }
  33%  { transform: translate(30px,-40px) scale(1.1); opacity: .7; }
  66%  { transform: translate(-20px,-20px) scale(.9); opacity: .3; }
  100% { transform: translate(0,0) scale(1); opacity: .4; }
}
@keyframes orb-move {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(60px,-80px) scale(1.15); }
  66%       { transform: translate(-40px,40px) scale(.9); }
}
@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes blink {
  0%, 100% { border-color: var(--cyan, #6EE7FF); }
  50%       { border-color: transparent; }
}

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

/* ── Aurora hero overlay ───────────────────────────────────── */
.hero-aurora {
  position: relative;
  overflow: hidden;
}
.hero-aurora::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(110,231,255,.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 80% 60%, rgba(124,92,255,.12) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 50% 80%, rgba(0,255,178,.07) 0%, transparent 60%);
  animation: orb-move 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-aurora > * { position: relative; z-index: 1; }

/* ── Animated gradient text ────────────────────────────────── */
.grad-text-anim,
.gradient-text-animated {
  background: linear-gradient(135deg, #6EE7FF, #7C5CFF, #FF6EDB, #6EE7FF);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-text-flow 6s ease-in-out infinite;
}

/* ── Floating elements ─────────────────────────────────────── */
.float-anim { animation: float-y 4s ease-in-out infinite; }
.float-slow  { animation: float-slow 8s ease-in-out infinite; }
.float-delay-1 { animation-delay: .5s; }
.float-delay-2 { animation-delay: 1s; }
.float-delay-3 { animation-delay: 1.5s; }

/* ── Glow pulse on primary elements ───────────────────────── */
.btn.btn-primary,
.btn-primary,
.btn--primary {
  position: relative;
  animation: pulse-glow 3s ease-in-out infinite;
  transition: transform .2s, box-shadow .2s, opacity .2s !important;
}
.btn.btn-primary:hover,
.btn-primary:hover { transform: translateY(-2px) scale(1.02) !important; }

/* ── Card enhancements ─────────────────────────────────────── */
.service-card,
.portfolio-card,
.project-card,
.post-card,
.svc-card,
.feat-card,
.price-card,
.stack-card {
  transition: transform .28s cubic-bezier(.34,1.56,.64,1),
              box-shadow .28s ease,
              border-color .28s ease !important;
}
.service-card:hover,
.portfolio-card:hover,
.project-card:hover,
.post-card:hover,
.svc-card:hover,
.feat-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.4),
              0 0 0 1px rgba(110,231,255,.15),
              0 0 30px rgba(110,231,255,.06) !important;
  border-color: rgba(110,231,255,.18) !important;
}

/* ── Shimmer on section labels / badges ────────────────────── */
.section-label,
.tag-label,
.hero-tag,
.pp-badge,
.blog-hero-label,
.featured-label {
  position: relative;
  overflow: hidden;
}
.section-label::after,
.hero-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(110,231,255,.3) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

/* ── Animated gradient border on cards on hover ────────────── */
.service-card,
.project-card,
.post-card,
.price-card {
  background-image: none;
  position: relative;
}
.service-card::before,
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(110,231,255,0), rgba(124,92,255,0), rgba(0,255,178,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.service-card:hover::before,
.project-card:hover::before {
  background: linear-gradient(135deg, rgba(110,231,255,.4), rgba(124,92,255,.4), rgba(0,255,178,.3));
  opacity: 1;
}

/* ── Particle dots background ──────────────────────────────── */
.particles-bg {
  position: relative;
  overflow: hidden;
}
.particles-bg::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,231,255,.06) 0%, transparent 70%);
  top: 10%; right: 5%;
  animation: particle-drift 12s ease-in-out infinite;
  pointer-events: none;
}

/* ── Animated underline on nav links ───────────────────────── */
a.nav-links a,
.footer-col a,
.footer__links a {
  position: relative;
}
.footer-col a::after,
.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan, #6EE7FF);
  transition: width .25s ease;
}
.footer-col a:hover::after,
.footer__links a:hover::after { width: 100%; }

/* ── Stats counter animation ───────────────────────────────── */
.stat-num,
.stat-item .num {
  background: linear-gradient(135deg, #6EE7FF, #7C5CFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Spinning ring decoration ──────────────────────────────── */
.spin-ring {
  animation: spin-slow 20s linear infinite;
}
.spin-ring-rev {
  animation: spin-slow 15s linear infinite reverse;
}

/* ── AOS overrides — smoother, spring feel ─────────────────── */
[data-aos] {
  transition-timing-function: cubic-bezier(.34,1.2,.64,1) !important;
}

/* ── Stagger helper classes ────────────────────────────────── */
.stagger-1  { animation-delay: .05s !important; }
.stagger-2  { animation-delay: .10s !important; }
.stagger-3  { animation-delay: .15s !important; }
.stagger-4  { animation-delay: .20s !important; }
.stagger-5  { animation-delay: .25s !important; }
.stagger-6  { animation-delay: .30s !important; }

/* ── Glassmorphism card variant ────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,.04) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}
.glass-card:hover {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(110,231,255,.2) !important;
}

/* ── Scroll progress bar at top ────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #6EE7FF, #7C5CFF, #FF6EDB);
  z-index: 10000;
  width: 0%;
  transition: width .05s linear;
}

/* ── Cursor glow effect ────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,231,255,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left .12s ease, top .12s ease;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   Tech Stack Marquee
   ══════════════════════════════════════════════════════════════ */
.tech-stack-section {
  padding: 40px 0 20px;
  overflow: hidden;
}
.tech-stack__label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  margin-bottom: 20px;
}
.tech-marquee-wrap {
  width: 100%;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.tech-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-marquee-wrap:hover .tech-marquee__track {
  animation-play-state: paused;
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #94a3b8);
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
  cursor: default;
}
.tech-chip:hover {
  color: var(--cyan, #6EE7FF);
  border-color: rgba(110,231,255,.3);
  background: rgba(110,231,255,.06);
}

/* ══════════════════════════════════════════════════════════════
   Comparison Table
   ══════════════════════════════════════════════════════════════ */
.compare-wrap {
  margin-top: 40px;
}
.compare-table {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.compare-header {
  display: grid;
  grid-template-columns: 1fr 140px 130px 130px;
  background: rgba(110,231,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  gap: 12px;
  align-items: center;
}
.compare-header__col { text-align: center; color: var(--muted, #94a3b8); }
.compare-header__col--razex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--cyan, #6EE7FF);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 140px 130px 130px;
  padding: 14px 20px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13.5px;
  transition: background .15s;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: rgba(255,255,255,.025); }
.compare-row__feature { color: var(--fg, #e2e8f0); font-weight: 500; }
.compare-cell {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 5px 8px;
}
.compare-cell--yes {
  color: #34d399;
  background: rgba(52,211,153,.08);
}
.compare-cell--no {
  color: #f87171;
  background: rgba(248,113,113,.07);
  font-size: 12px;
}
.compare-cell--partial {
  color: #fbbf24;
  background: rgba(251,191,36,.07);
  font-size: 12px;
}
.compare-cta {
  text-align: center;
  margin-top: 36px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(110,231,255,.06), rgba(124,92,255,.06));
  border-radius: 16px;
  border: 1px solid rgba(110,231,255,.12);
}
.compare-cta p {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg, #e2e8f0);
}
@media (max-width: 768px) {
  .compare-header,
  .compare-row {
    grid-template-columns: 1fr 90px 90px 90px;
    font-size: 12px;
    padding: 12px 14px;
    gap: 8px;
  }
  .compare-header__col--razex svg { display: none; }
}
@media (max-width: 560px) {
  .compare-header { display: none; }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
    position: relative;
  }
  .compare-cell { display: inline-flex; align-items: center; gap: 4px; text-align: left; }
  .compare-cell::before { font-weight: 400; font-size: 11px; color: var(--muted); }
  .compare-cell:nth-child(2)::before { content: "Razex: "; }
  .compare-cell:nth-child(3)::before { content: "Freelancers: "; }
  .compare-cell:nth-child(4)::before { content: "Agencies: "; }
}

/* ══════════════════════════════════════════════════════════════
   FAQ Accordion (service pages)
   ══════════════════════════════════════════════════════════════ */
.faq-section { padding: 80px 0; }
.faq-grid {
  max-width: 780px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(110,231,255,.25); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg, #e2e8f0);
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--cyan, #6EE7FF);
  flex-shrink: 0;
  transition: transform .25s ease;
  line-height: 1;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted, #94a3b8);
  padding: 0 22px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 22px 18px;
}

/* ══════════════════════════════════════════════════════════════
   Stats Band
   ══════════════════════════════════════════════════════════════ */
.stats-band {
  padding: 48px 0;
  background: linear-gradient(135deg, rgba(110,231,255,.04), rgba(124,92,255,.04));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stats-band__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 40px;
  position: relative;
}
.stats-band__num {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  background: linear-gradient(135deg, #6EE7FF, #7C5CFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
}
.stats-band__plus {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  color: #6EE7FF;
  position: absolute;
  top: 12px;
  right: calc(50% - 36px);
  line-height: 1;
  transform: translateX(100%);
}
.stats-band__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #64748b);
  text-align: center;
  letter-spacing: .02em;
}
.stats-band__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .stats-band__inner { gap: 8px; }
  .stats-band__item { padding: 10px 20px; }
  .stats-band__divider { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   Multi-step Project Wizard
   ══════════════════════════════════════════════════════════════ */
.wizard {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wizard__progress {
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
}
.wizard__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6EE7FF, #7C5CFF);
  border-radius: 4px;
  transition: width .4s ease;
}
.wizard__steps-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}
.wizard__step-title {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  color: var(--fg, #e2e8f0);
  margin-bottom: 4px;
}
.wizard__step-sub {
  font-size: 14px;
  color: var(--muted, #64748b);
  margin-bottom: 20px;
}
.wizard__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.wizard__options--budget {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.wizard__opt input { display: none; }
.wizard__opt-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.wizard__opt--sm .wizard__opt-inner {
  padding: 10px 14px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.wizard__opt-inner i {
  font-size: 18px;
  color: var(--cyan, #6EE7FF);
  margin-bottom: 4px;
}
.wizard__opt-inner strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg, #e2e8f0);
}
.wizard__opt-inner em {
  font-size: 11px;
  font-style: normal;
  color: var(--muted, #64748b);
}
.wizard__opt input:checked + .wizard__opt-inner {
  border-color: rgba(110,231,255,.5);
  background: rgba(110,231,255,.08);
}
.wizard__opt-inner:hover {
  border-color: rgba(110,231,255,.3);
  background: rgba(110,231,255,.04);
}
.wizard__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 12px;
}
.wizard__field-group { display: flex; flex-direction: column; gap: 6px; }
.wizard__label { font-size: 13px; font-weight: 700; color: var(--fg, #e2e8f0); }
.wizard__contact-form { display: flex; flex-direction: column; gap: 14px; }
.wizard__success {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 32px;
  color: #34d399;
}
@media (max-width: 560px) {
  .wizard { padding: 20px; }
  .wizard__options { grid-template-columns: 1fr 1fr; }
  .wizard__nav { flex-direction: column-reverse; }
  .wizard__nav .btn { width: 100%; justify-content: center; }
}
