/* ══════════════════════════════════════════════════
   SoWeb — Custom CSS
   Supplements Tailwind CDN with custom components
   ══════════════════════════════════════════════════ */

/* ── Keyframe animations ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-24px) scale(1.04); }
}

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

@keyframes ping {
  75%, 100% { transform: scale(1.8); opacity: 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

/* ── Scroll fade-up ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Gradient text ── */
.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glassmorphism ── */
.glass {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
}

/* ── Section label ── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #818cf8;
}

/* ── Navbar scrolled state ── */
#navbar.is-scrolled {
  background: rgba(8,8,15,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-top: .875rem;
  padding-bottom: .875rem;
}

.nav-link {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.04);
}

/* ══ BUTTONS ══ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .9375rem;
  background: #6366f1;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(99,102,241,.35);
}
.btn-primary:hover  { background: #4f46e5; box-shadow: 0 6px 30px rgba(99,102,241,.5); }
.btn-primary:active { transform: scale(.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .9375rem;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn-secondary:hover  { background: rgba(255,255,255,.12); color: #fff; }
.btn-secondary:active { transform: scale(.97); }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .9375rem;
  background: #fff;
  color: #4338ca;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.btn-white:hover  { background: rgba(255,255,255,.9); }
.btn-white:active { transform: scale(.97); }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .2s, background .2s, transform .15s;
}
.btn-ghost-white:hover  { color: #fff; background: rgba(255,255,255,.1); }
.btn-ghost-white:active { transform: scale(.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .875rem;
  color: #818cf8;
  background: transparent;
  border: 1px solid rgba(129,140,248,.3);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.btn-outline:hover  { border-color: #818cf8; color: #fff; background: rgba(99,102,241,.1); }
.btn-outline:active { transform: scale(.97); }

.btn-lg {
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
}

/* Arrow icon hover */
.arrow-icon {
  transition: transform .2s;
}
.group:hover .arrow-icon {
  transform: translateX(4px);
}

/* ══ HERO ══ */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.22) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image:
    linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 80px 80px;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 480px; height: 480px;
  top: -120px; right: -80px;
  background: rgba(99,102,241,.12);
  animation-duration: 9s;
}
.orb-2 {
  width: 360px; height: 360px;
  bottom: -60px; left: -60px;
  background: rgba(139,92,246,.1);
  animation-duration: 11s;
  animation-delay: -4s;
}

/* ── Pulse dot ── */
.pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: #818cf8;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #818cf8;
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}

/* ══ MARQUEE / TRUST ══ */
.marquee-wrap {
  position: relative;
  overflow: hidden;
}

.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-left  { left: 0;  background: linear-gradient(to right, #08080f, transparent); }
.marquee-fade-right { right: 0; background: linear-gradient(to left,  #08080f, transparent); }

.marquee-track {
  overflow: hidden;
}

.marquee-content {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}

.logo-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.logo-chip:hover {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.15);
}

/* ══ SERVICE CARDS ══ */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  text-decoration: none;
  cursor: pointer;
}
.service-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-4px);
}
.service-card:hover .service-card-glow {
  opacity: 1;
}

.service-card-glow {
  position: absolute;
  inset: 0;
  background: var(--glow, rgba(99,102,241,.1));
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  border-radius: inherit;
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: .75rem;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  margin-top: auto;
  transition: color .2s;
}
.service-card:hover .service-link {
  color: #818cf8;
}

/* ══ DIFFERENTIATION / FEATURE CARDS ══ */
.feature-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .3s, background .3s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,.2);
  background: rgba(99,102,241,.04);
}

.feature-icon {
  width: 38px; height: 38px;
  border-radius: .625rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin-bottom: .875rem;
}

/* Diff line decoration */
.diff-line {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: #818cf8;
  border-radius: 9999px;
  transition: width .2s;
}
.group:hover .diff-line {
  width: 3rem;
}

/* ══ PORTFOLIO ══ */
.portfolio-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  transition: border-color .3s, transform .3s;
}
.portfolio-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-4px);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.portfolio-card:hover .portfolio-image {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,15,.8) 0%, transparent 60%);
  transition: opacity .3s;
}
.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(8,8,15,.9) 0%, rgba(99,102,241,.1) 100%);
}

.portfolio-icon-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s, transform .3s;
}
.portfolio-card:hover .portfolio-icon-btn {
  opacity: 1;
  transform: scale(1);
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  padding: .2rem .625rem;
  border-radius: 9999px;
  letter-spacing: .02em;
}
.tag-blue   { background: rgba(59,130,246,.12);  color: #60a5fa; border: 1px solid rgba(59,130,246,.2);  }
.tag-green  { background: rgba(16,185,129,.12);  color: #34d399; border: 1px solid rgba(16,185,129,.2);  }
.tag-amber  { background: rgba(245,158,11,.12);  color: #fbbf24; border: 1px solid rgba(245,158,11,.2);  }
.tag-rose   { background: rgba(244,63,94,.12);   color: #fb7185; border: 1px solid rgba(244,63,94,.2);   }

/* ══ PROCESS ══ */
.process-step {
  position: relative;
  padding-top: 1rem;
  overflow: hidden;
}

.process-icon-wrap {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 1rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin-bottom: 1.25rem;
  z-index: 1;
}

.process-num {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 9999px;
  background: #6366f1;
  font-size: .625rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-watermark {
  position: absolute;
  top: -8px; right: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ══ TESTIMONIALS ══ */
.testimonial-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .3s;
}
.testimonial-card:hover {
  border-color: rgba(99,102,241,.2);
}

.avatar {
  width: 36px; height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ══ CTA BLOCK ══ */
.cta-block {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
}

.cta-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.1)  0%, transparent 50%);
}

.cta-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image:
    linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}
.cta-orb-1 { width: 256px; height: 256px; top: -64px;    right: -64px;  background: rgba(255,255,255,.1);  }
.cta-orb-2 { width: 256px; height: 256px; bottom: -64px; left: -64px;   background: rgba(167,139,250,.2);  }

/* ══ FOOTER ══ */
.footer-heading {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-link {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover {
  color: #818cf8;
}

.social-icon {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.social-icon:hover {
  color: #fff;
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.1);
}

/* ══ MODAL ══ */
.modal-panel {
  background: #0f0f1a;
  border: 1px solid #1e1e30;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
}

.modal-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 1.5rem 1.5rem 0 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Modal open state */
#modal.open,
#modal-backdrop.open {
  display: flex;
}

/* ══ FORM ELEMENTS ══ */
.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  margin-bottom: .375rem;
}

.form-input {
  width: 100%;
  border-radius: .75rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  outline: none;
  transition: background .2s, border-color .2s;
  font-family: inherit;
}
.form-input::placeholder { color: rgba(255,255,255,.25); }
.form-input:hover  { border-color: rgba(255,255,255,.15); }
.form-input:focus  { background: rgba(255,255,255,.08); border-color: rgba(99,102,241,.6); }
.form-input.error  { border-color: rgba(244,63,94,.5); background: rgba(244,63,94,.05); }
.form-input option { background: #0f0f1a; color: #fff; }

.form-error {
  margin-top: .25rem;
  font-size: .75rem;
  color: #fb7185;
}

/* ══ WHATSAPP FLOATING BUTTON ══ */
.wa-ping {
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  border-radius: 9999px;
  background: rgba(37,211,102,.7);
}
.wa-ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(37,211,102,.6);
  animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite;
}

/* ── Spin animation ── */
.spin {
  animation: spin .8s linear infinite;
}

/* ── Smooth scroll padding for fixed navbar ── */
html { scroll-padding-top: 80px; }

/* ── Focus visible (accessibility) ── */
:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* ── Scrollbar (webkit) ── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #08080f; }
::-webkit-scrollbar-thumb { background: #1e1e30; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #6366f1; }

/* ── Selection color ── */
::selection { background: rgba(99,102,241,.3); color: #fff; }
