/* Custom styles for RoCo Hair Shop */

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Hero shape animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-shape {
        animation: float 6s ease-in-out infinite;
    }

    .shape-circle-1 {
        animation-delay: 0s;
    }

    .shape-circle-2 {
        animation-delay: 1.5s;
    }

    .shape-rect-1 {
        animation-delay: 0.75s;
    }

    .shape-rect-2 {
        animation-delay: 2.25s;
    }

    .shape-triangle {
        animation-delay: 1s;
    }

    .shape-dots {
        animation-delay: 3s;
    }
}

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

.shape-rect-1 {
    --rotation: 12deg;
}

.shape-rect-2 {
    --rotation: -12deg;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(255, 251, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9c1540;
}

/* Selection color */
::selection {
    background-color: #f9cfd9;
    color: #3b0713;
}
</style>
