/* Custom styles for Beautiful Nails */

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Navbar scroll behavior */
#navbar.scrolled {
  background: rgba(254, 253, 249, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(13, 29, 63, 0.08);
}

#navbar.scrolled .nav-text {
  color: #152a56 !important;
}

#navbar.scrolled .nav-link {
  color: #4164af !important;
}

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

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

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

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

.reveal[data-reveal="left"] {
  transform: translateX(-30px);
}

.reveal[data-reveal="right"] {
  transform: translateX(30px);
}

.reveal[data-reveal="scale"] {
  transform: scale(0.95);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .animate-float,
  .animate-float-delayed {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #b07d10;
}

/* Selection color */
::selection {
  background: #f3d89a;
  color: #152a56;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Image aspect ratio helpers */
.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Print styles */
@media print {
  #navbar,
  .animate-float,
  .animate-float-delayed {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
