/* Custom styles for Mane Serenity */

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

/* Base animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-up:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-up:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal-up:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal-up:nth-child(4) {
    animation-delay: 0.4s;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile menu animations */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.active {
    transform: translateX(0);
}

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

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

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

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #6ee7b7 !important;
}

/* Hover transitions for links */
a {
    transition: color 0.3s ease;
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

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

/* Loading state for form */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
