/* Custom styles for Joei Ellis: Skin-Wax-Nail Pro */

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

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

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(79, 122, 46, 0.08);
}

/* Mobile menu animations */
#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}
#mobile-menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f7a2e, #72a04a);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::after {
    width: 100%;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 41, 15, 0.08);
}

/* Subtle line animations */
@keyframes growDown {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 6rem;
        opacity: 1;
    }
}

@keyframes growRight {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 4rem;
        opacity: 1;
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.delay-1 {
        transition-delay: 0.1s;
    }

    .reveal.delay-2 {
        transition-delay: 0.2s;
    }

    .reveal.delay-3 {
        transition-delay: 0.3s;
    }
}

/* Selection color */
::selection {
    background-color: #c5d9b0;
    color: #1a290f;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d8d0bc;
    border-radius: 3px;
}

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

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(79, 122, 46, 0.2);
}

/* Button ripple effect */
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:active::after {
    width: 200px;
    height: 200px;
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Decorative corner accents */
.corner-accent {
    position: relative;
}

.corner-accent::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 24px;
    height: 24px;
    border-top: 1px solid #d8d0bc;
    border-left: 1px solid #d8d0bc;
}

.corner-accent::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 24px;
    height: 24px;
    border-bottom: 1px solid #d8d0bc;
    border-right: 1px solid #d8d0bc;
}

/* Gallery image hover overlay */
.aspect-square {
    position: relative;
}

.aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 10, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.aspect-square:hover::after {
    opacity: 1;
}

/* Mobile link animation */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #4f7a2e;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}
