/* ============================================
   Classic Nails — Custom Styles
   Forest Green + Off-White | Fresh & Airy
   ============================================ */

/* Custom scrollbar */
html {
    scroll-behavior: smooth;
}

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

/* Selection color */
::selection {
    background-color: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image rendering */
img {
    -webkit-font-smoothing: antialiased;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1B4332;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

/* Hero underline animation */
h1 span.relative {
    position: relative;
    display: inline-block;
}

/* Service card hover glow */
.group:hover .absolute.top-0.right-0 {
    filter: brightness(1.1);
}

/* Gallery image hover */
.group .absolute.inset-0 {
    transition: background-color 0.5s ease;
}

/* Map container */
.rounded-3xl.overflow-hidden iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

.rounded-3xl.overflow-hidden:hover iframe {
    filter: saturate(1) contrast(1);
}

/* Testimonial card shimmer */
.bg-white\/10 {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Tablet adjustments */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #1B4332;
    }
}
