/* Custom styles for Salon Pryme */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Decorative background elements */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 229, 189, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.deco-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
    bottom: 10%;
    right: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.deco-circle--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 124, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation: float-slow 18s ease-in-out infinite;
}

.deco-diamond {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(253, 229, 189, 0.06);
    transform: rotate(45deg);
    top: 30%;
    right: 10%;
    animation: spin-slow 25s linear infinite;
}

.deco-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(74, 222, 128, 0.05);
    bottom: 20%;
    left: 15%;
    animation: float-slow 22s ease-in-out infinite;
}

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

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Reveal animations (progressive enhancement) */
@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);
    }

    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(5, 46, 22, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

/* Button hover effects */
a[href^="tel:"], a[href^="mailto:"] {
    text-decoration: none;
}

/* Image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: rgba(22, 163, 74, 0.3);
    color: #052e16;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}
