/* Custom animations and utility styles */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

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

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

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

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

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

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

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

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

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

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

/* Selection color */
::selection {
    background: #F9E4D0;
    color: #5C2816;
}

/* Header scroll state */
header.scrolled {
    box-shadow: 0 4px 30px rgba(192, 86, 42, 0.08);
}

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Image hover effects */
img {
    transition: transform 0.7s ease;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #E89F6D !important;
    box-shadow: 0 0 0 3px rgba(232, 159, 109, 0.15) !important;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.75rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* 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;
    }
}
