/* Custom styles for Beauty And Wellness By Angelia */

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

/* Prevent FOUC on scroll reveal elements */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(61, 112, 61, 0.12) !important;
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* Gallery item overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 82, 44, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 112, 61, 0.12) !important;
}

/* Hero fade-in for decorative elements */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcfa;
}
::-webkit-scrollbar-thumb {
    background: #c5dfc5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #99c799;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button focus visible */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #4a8a4a;
    outline-offset: 2px;
}

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