/* Custom styles for D Yari y Denis Celular */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1025;
}
::-webkit-scrollbar-thumb {
  background: #361e36;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4e2a4e;
}

/* Selection color */
::selection {
  background: rgba(212, 168, 67, 0.3);
  color: #f5f0f7;
}

/* Navbar transition states */
.nav-scrolled #nav-bg {
  background: rgba(14, 10, 20, 0.95);
  border-color: rgba(212, 168, 67, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger animation */
.menu-open #bar1 {
  transform: translateY(5px) rotate(45deg);
}
.menu-open #bar2 {
  opacity: 0;
}
.menu-open #bar3 {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* Service card shimmer on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card:hover::before {
  opacity: 1;
}

/* Gold accent line animation */
.gold-line {
  position: relative;
  display: inline-block;
}
.gold-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #d4a843, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.gold-line:hover::after {
  transform: scaleX(1);
}

/* Subtle floating animation for hero decoration */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Pulse for the green dot */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(212, 168, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0); }
}
.animate-pulse {
  animation: pulse-ring 2s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .service-card,
  a,
  .float-animation {
    transition: none;
    animation: none;
  }
  .animate-pulse {
    animation: none;
  }
}

/* Mobile menu link hover */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #d4a843;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #d4a843;
  outline-offset: 2px;
}

/* Image lazy load fade */
img[loading="lazy"] {
  transition: opacity 0.5s ease;
}
