/* Custom Styles for BBeautiful Natural Hair Care */

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

/* Scroll Reveal Base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.animated.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Decorative Circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.deco-1 {
    width: 400px;
    height: 400px;
    background: white;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 250px;
    height: 250px;
    background: white;
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.deco-3 {
    width: 150px;
    height: 150px;
    background: white;
    top: 40%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
}

.deco-4 {
    width: 80px;
    height: 80px;
    background: white;
    bottom: 20%;
    right: 30%;
    animation: float 7s ease-in-out infinite reverse;
}

/* Light decorative circles for contact section */
.deco-circle-light {
    position: absolute;
    border-radius: 50%;
    background: white;
    opacity: 0.06;
}

.deco-cl-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
    animation: float 9s ease-in-out infinite;
}

.deco-cl-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation: float 7s ease-in-out infinite reverse;
}

.deco-cl-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: -30px;
    animation: float 11s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Navbar Styles */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 246, 238, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
    color: #854d0e !important;
}

/* Mobile Menu Transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

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

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

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

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

/* Button Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e86a34;
    outline-offset: 2px;
}

/* Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Selection Color */
::selection {
    background: #f6b48e;
    color: #3d130b;
}
