/* ============================================
   Nailspree — Custom Styles
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(160, 194, 132, 0.3);
    color: #1f3316;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Navbar Transition --- */
.nav-link {
    position: relative;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #76a356;
}

/* --- Image Hover Effects --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Form Focus Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Mobile Menu Transitions --- */
#mobile-menu {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* --- Hero Decorative Animation --- */
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(3deg); }
}

/* --- Button Ripple Effect (subtle) --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Print Styles --- */
@media print {
    nav, .reveal, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #1f3316;
        background: #faf9f6;
    }
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* --- Loading State --- */
.page-loaded .reveal {
    opacity: 1;
    transform: translateY(0);
}
