/* Custom styles for Keith Dean Inc. */

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

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

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

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

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

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

.animate-float-delayed-2 {
  animation: float-delayed-2 4s ease-in-out infinite 1s;
}

/* Navbar scroll effect */
.nav-scrolled {
  background: rgba(253, 248, 242, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-scrolled .nav-text {
  color: #4a3f35 !important;
}

.nav-scrolled .nav-subtext {
  color: #867568 !important;
}

.nav-scrolled .nav-link {
  color: #6b5b4e !important;
}

/* Mobile menu animation */
.menu-line {
  transition: all 0.3s ease;
}

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

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

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

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-float-delayed,
  .animate-float-delayed-2 {
    animation: none;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #d4784a;
  border-radius: 5px;
}

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

/* Selection color */
::selection {
  background: #fce4d8;
  color: #6c2217;
}
