/* Custom styles for Chennault Appliance */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a0f24;
}
::-webkit-scrollbar-thumb {
  background: #3d2b52;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4e3a68;
}

/* Selection color */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #f5dfa0;
}

/* Floating animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}
@keyframes scroll-line {
  0% { top: -100%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 200%; opacity: 0; }
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}
.animate-float-medium {
  animation: float-medium 4.5s ease-in-out infinite;
}
.animate-float-fast {
  animation: float-fast 3.5s ease-in-out infinite;
}
.animate-scroll-line {
  animation: scroll-line 2s ease-in-out infinite;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(26, 15, 36, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(77, 58, 104, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.visible {
  opacity: 1;
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Gold shimmer on hover for cards */
.shimmer-card {
  position: relative;
  overflow: hidden;
}
.shimmer-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(212, 160, 23, 0) 0%,
    rgba(212, 160, 23, 0) 40%,
    rgba(212, 160, 23, 0.03) 50%,
    rgba(212, 160, 23, 0) 60%,
    rgba(212, 160, 23, 0) 100%
  );
  transform: rotate(45deg) translate(-100%, -100%);
  transition: transform 0.8s ease;
}
.shimmer-card:hover::after {
  transform: rotate(45deg) translate(0%, 0%);
}

/* Input autofill override for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5dfa0;
  -webkit-box-shadow: 0 0 0px 1000px #2d1f3d inset;
  transition: background-color 5000s ease-in-out 0s;
}
</style>
