/* Custom styles for Nailsby_nancy */

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

/* Navbar transitions */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-logo-text {
  color: #0018b3;
}

#navbar.scrolled .nav-link {
  color: #1a3aff;
}

#navbar.scrolled .nav-link:hover {
  color: #45a874;
}

/* Reveal animations — progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile links */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(69, 168, 116, 0.1);
  color: #0018b3;
  text-decoration: none;
  font-weight: 500;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f4faf8;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #6fbf96, #4168ff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #45a874, #1a3aff);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #45a874;
  outline-offset: 2px;
}

/* Hero floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Subtle pulse for CTA */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(69, 168, 116, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(69, 168, 116, 0); }
}

/* Back to top */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Service card hover glow */
.group:hover .rounded-2xl {
  box-shadow: 0 20px 60px -15px rgba(69, 168, 116, 0.15);
}

/* Gallery image hover overlay */
.group .absolute {
  transition: opacity 0.5s ease;
}
