/* ============================================
   21st.dev EFFECTS — Antigravity Digital
   ============================================ */

/* ── 1. AURORA ANIMATED BACKGROUND ──────────── */
.aurora-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
}

.aurora-orb-1 {
  width: 700px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(200, 168, 75, 0.2) 0%, transparent 65%);
  top: -120px;
  left: -80px;
  animation: aurora-fade-in 2.5s ease 0.2s forwards, aurora-drift-1 14s ease-in-out 2.5s infinite alternate;
}

.aurora-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 123, 237, 0.13) 0%, transparent 65%);
  top: -60px;
  right: -100px;
  animation: aurora-fade-in 2.5s ease 0.5s forwards, aurora-drift-2 18s ease-in-out 2.5s infinite alternate;
}

.aurora-orb-3 {
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(124, 92, 252, 0.11) 0%, transparent 65%);
  bottom: 0;
  left: 35%;
  animation: aurora-fade-in 2.5s ease 0.8s forwards, aurora-drift-3 20s ease-in-out 2.5s infinite alternate;
}

@keyframes aurora-fade-in {
  to { opacity: 1; }
}

@keyframes aurora-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 40px) scale(1.08); }
}

@keyframes aurora-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 50px) scale(0.93); }
}

@keyframes aurora-drift-3 {
  from { transform: translate(0, 0); }
  to   { transform: translate(70px, -30px); }
}

/* ── 2. BACKGROUND PATHS ANIMATED ───────────── */
.bg-paths {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-paths svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-path {
  fill: none;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}

.bg-path-1 {
  stroke: rgba(200, 168, 75, 0.1);
  stroke-width: 1.5;
  animation: draw-path 5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.bg-path-2 {
  stroke: rgba(59, 123, 237, 0.07);
  stroke-width: 1;
  animation: draw-path 6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.bg-path-3 {
  stroke: rgba(200, 168, 75, 0.06);
  stroke-width: 1;
  animation: draw-path 7s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

/* ── 3. SHINY TEXT ───────────────────────────── */
.shiny-text {
  background: linear-gradient(
    90deg,
    #a07830 0%,
    #C8A84B 15%,
    #E4C97A 30%,
    #fff8e1 45%,
    #E4C97A 60%,
    #C8A84B 75%,
    #a07830 90%,
    #C8A84B 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shiny-slide 5s linear infinite;
}

@keyframes shiny-slide {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* ── 4. ANIMATED TABS ────────────────────────── */
.portfolio-tabs-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(200, 168, 75, 0.18), rgba(200, 168, 75, 0.07));
  border: 1px solid rgba(200, 168, 75, 0.3);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.portfolio-tabs-wrapper .filter-btn {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
  font-size: 0.8125rem;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.25s;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.portfolio-tabs-wrapper .filter-btn.active {
  color: var(--gold);
}

.portfolio-tabs-wrapper .filter-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* ── 5. BEAMS BACKGROUND ─────────────────────── */
.beams-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.beam {
  position: absolute;
  width: 1.5px;
  border-radius: 100px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(200, 168, 75, 0.5) 40%,
    rgba(200, 168, 75, 0.8) 50%,
    rgba(200, 168, 75, 0.5) 60%,
    transparent 100%
  );
  animation: beam-fall linear infinite;
  opacity: 0;
}

.beam:nth-child(1)  { left: 8%;  height: 180px; animation-duration: 3.2s; animation-delay: 0s; }
.beam:nth-child(2)  { left: 20%; height: 280px; animation-duration: 4.1s; animation-delay: 0.7s; }
.beam:nth-child(3)  { left: 34%; height: 230px; animation-duration: 3.8s; animation-delay: 1.4s; }
.beam:nth-child(4)  { left: 50%; height: 200px; animation-duration: 4.6s; animation-delay: 0.3s; }
.beam:nth-child(5)  { left: 64%; height: 310px; animation-duration: 3.4s; animation-delay: 1.9s; }
.beam:nth-child(6)  { left: 78%; height: 190px; animation-duration: 5.0s; animation-delay: 0.9s; }
.beam:nth-child(7)  { left: 90%; height: 240px; animation-duration: 3.6s; animation-delay: 2.3s; }

@keyframes beam-fall {
  0%   { top: -320px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* ── 6. CARROSSEL DE CARDS (Process steps) ───── */
.process-carousel-wrap {
  position: relative;
}

.process-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step-card {
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.process-step-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.process-step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(200, 168, 75, 0.1);
}

.process-step-card:hover::after { opacity: 1; }

.process-step-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(200, 168, 75, 0.08);
  position: absolute;
  top: 16px;
  right: 20px;
  pointer-events: none;
  user-select: none;
}

.process-step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(200, 168, 75, 0.07);
  border: 1px solid rgba(200, 168, 75, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.process-step-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.process-step-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
}

.process-step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Carousel scroll on mobile */
@media (max-width: 768px) {
  .process-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding-bottom: 12px;
  }

  .process-carousel::-webkit-scrollbar { display: none; }

  .process-step-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
}

/* ── 7. PRICING CARDS HOVER LIFT ─────────────── */
.pricing-cards-grid .pricing-card {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.38s;
}

.pricing-cards-grid .pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(200, 168, 75, 0.15);
}

.pricing-cards-grid .pricing-card.featured:hover {
  box-shadow: 0 40px 80px rgba(200, 168, 75, 0.2), 0 0 0 1px rgba(200, 168, 75, 0.35);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .aurora-orb-1 { width: 400px; height: 280px; }
  .aurora-orb-2 { width: 350px; height: 350px; }
  .aurora-orb-3 { width: 300px; height: 220px; }
}

@media (max-width: 640px) {
  .aurora-orb-1, .aurora-orb-2, .aurora-orb-3 { filter: blur(60px); }
}
