/* ===== OX Digital — Estilos customizados ===== */

/* ---------- Texto com gradiente ---------- */
.text-gradient {
  background: linear-gradient(90deg, #2fc9d4 0%, #7fe6ee 50%, #2fc9d4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  to { background-position: 200% center; }
}

/* ---------- Botão CTA principal (animado) ---------- */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #020010 !important;
  background: linear-gradient(135deg, #2fc9d4, #25aeb8);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta-sm { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

/* Brilho que atravessa o botão */
.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%   { left: -75%; }
  60%  { left: 125%; }
  100% { left: 125%; }
}

/* Pulso de glow */
.btn-glow {
  animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(47, 201, 212, 0.45), 0 8px 30px rgba(47, 201, 212, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(47, 201, 212, 0), 0 12px 40px rgba(47, 201, 212, 0.45);
    transform: scale(1.03);
  }
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 15px 45px rgba(47, 201, 212, 0.55) !important;
}

.btn-cta:active { transform: translateY(-1px) scale(1.01) !important; }

/* ---------- Botão fantasma ---------- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  border: 1px solid rgba(47, 201, 212, 0.4);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  border-color: #2fc9d4;
  background: rgba(47, 201, 212, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(47, 201, 212, 0.2);
}

/* ---------- Cards de vidro ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

/* ---------- Card de serviço ---------- */
.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 201, 212, 0.5);
  box-shadow: 0 20px 50px rgba(47, 201, 212, 0.15);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img { transform: scale(1.06); }

/* ---------- Card de projeto ---------- */
.project-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
}

.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img { transform: scale(1.08); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 0, 16, 0.95) 0%, rgba(2, 0, 16, 0.2) 60%);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 10;
}

/* ---------- Flutuação suave ---------- */
.floating { animation: float 6s ease-in-out infinite; }
.floating-delayed { animation: float 6s ease-in-out 1.5s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---------- Reveal no scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navbar com scroll ---------- */
#navbar.scrolled {
  background: rgba(2, 0, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(47, 201, 212, 0.15);
}

/* ---------- Select dropdown ---------- */
select {
  color: rgba(255, 255, 255, 0.5) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

select:focus {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

select option {
  background-color: #0a0020 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.75rem !important;
}

select option:hover,
select option:focus,
select option:active,
select option:checked {
  background-color: rgba(47, 201, 212, 0.25) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

select:invalid,
select option[value=""] {
  color: rgba(255, 255, 255, 0.3) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.3) !important;
}

/* ---------- Hero slideshow ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* ---------- Selo 32 anos ---------- */
.selo-dourado {
  background: radial-gradient(circle, rgba(250, 204, 21, 0.12) 0%, transparent 80%);
  animation: selo-float 3s ease-in-out infinite;
}

.selo-dourado::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #facc15, #f59e0b, #facc15, #f59e0b, #facc15);
  opacity: 0.5;
  animation: selo-glow 3s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes selo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes selo-glow {
  0% { opacity: 0.3; filter: blur(8px); }
  100% { opacity: 0.6; filter: blur(12px); }
}

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

.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

@media (max-width: 1023px) {
  #selo-anos {
    right: calc(0.75rem + 8px) !important;
    top: 56% !important;
  }
  .selo-dourado {
    width: 5.5rem !important;
    height: 5.5rem !important;
  }
  .selo-dourado .font-extrabold {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  #selo-anos {
    right: calc(6% + 54px) !important;
    top: 22% !important;
    transform: translateY(-50%) scale(0.85) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selo-dourado,
  .selo-dourado::before,
  .animate-spin-slow {
    animation: none !important;
  }
}

/* ---------- Respeita usuários com movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-cta::before,
  .btn-glow,
  .floating,
  .floating-delayed,
  .text-gradient {
    animation: none !important;
  }
  .hero-slide {
    transition: none !important;
  }
}

