/* Custom styles for Polette's Nail Supply */

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(249, 240, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 33, 85, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1a0a18 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #c4905a !important;
}

.navbar-scrolled .nav-link {
    color: #49173c !important;
}

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

.menu-line:nth-child(3) {
    transform-origin: center;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: translateX(8px) rotate(-45deg);
    width: 24px;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-float,
    .hero-dot {
        animation: none;
    }
}

/* Hero decorative animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(15px) rotate(40deg); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

.hero-float:nth-of-type(2) {
    animation: float-reverse 8s ease-in-out infinite;
}

.hero-dot {
    animation: pulse-dot 3s ease-in-out infinite;
}

.hero-dot:nth-child(5) {
    animation-delay: 1s;
}

.hero-dot:nth-child(6) {
    animation-delay: 2s;
}

/* Decorative line animation on hover */
a.group {
    position: relative;
}

/* Image hover overlay */
.group .absolute.inset-0 {
    transition: opacity 0.5s ease;
}

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

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

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

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

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

/* Testimonial card hover */
.bg-plum-50:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Button ripple effect */
button::after,
a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* Selection color */
::selection {
    background: #e8c2dd;
    color: #1a0a18;
}
