/* ===== Custom Styles for Brilliantly Baby ===== */

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

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

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

::-webkit-scrollbar-thumb {
  background: #7B2D8E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6a2578;
}

/* Navigation transitions */
#navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

#navbar.scrolled .nav-link {
  color: #35113b;
}

#navbar.scrolled .nav-link:hover {
  color: #7B2D8E;
}

#navbar.scrolled .font-display {
  color: #35113b;
}

/* Mobile menu animations */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover effects */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(123, 45, 142, 0.2);
}

/* Testimonial cards */
.bg-plum-50 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-plum-50:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(123, 44, 142, 0.1);
}

/* Input focus animations */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.1);
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero image parallax */
#hero img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating card animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.absolute.-bottom-6.-left-6 {
  animation: float 4s ease-in-out infinite;
}

/* Pulse animation for status dot */
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: softPulse 2s ease-in-out infinite;
}

/* Mobile menu link hover */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #F5A623;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.mobile-link:hover::after {
  width: 80%;
}

/* Button ripple effect */
button, a {
  position: relative;
  overflow: hidden;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  #navbar,
  #hero .absolute.bottom-8,
  .service-card:hover {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .absolute.-bottom-6.-left-6 {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid #7B2D8E;
  }

  input,
  textarea,
  select {
    border-width: 2px;
  }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
  .service-card {
    padding: 2.5rem;
  }
}

/* Touch device adjustments */
@media (hover: none) {
  .service-card:hover {
    transform: none;
  }

  .service-card:active {
    transform: scale(0.98);
  }
}
