/* ========================================
   The Nail Suite — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcfa;
}
::-webkit-scrollbar-thumb {
    background: #b9ddc0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #88c498;
}

/* Selection */
::selection {
    background: #dceee0;
    color: #1d5535;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(19, 54, 36, 0.08);
}

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

.nav-scrolled .nav-link {
    color: #1d5535 !important;
}

.nav-scrolled .nav-link:hover {
    color: #358a56 !important;
}

.nav-scrolled .menu-line {
    background: #1d5535 !important;
}

/* Mobile menu */
.mobile-menu-open {
    transform: translateX(0) !important;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Ensure content is visible without JS */
@media screen and (max-width: 360px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

/* Subtle pulse for the live indicator */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #88c498;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
    .group:hover {
        transform: none;
    }
    .group:hover .group-hover\\:scale-105 {
        transform: none;
    }
}
