/* Custom styles for NK Beauty Bar */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #a8b8cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c94b2;
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #0f1a28;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(15, 26, 40, 0.08);
}

nav.scrolled .font-display {
    color: #0f1a28 !important;
}

nav.scrolled a:not(.bg-midnight-700) {
    color: #192a41 !important;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero parallax-like effect */
#hero {
    scroll-snap-align: start;
}

/* Card hover glow effect */
.group:hover .w-14 {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

/* Subtle gradient text for accent */
.gradient-text {
    background: linear-gradient(135deg, #2d4a6b, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gallery image overlay on hover */
.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 40, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 1rem;
}

.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .rounded-2xl.overflow-hidden img,
    .rounded-2xl.overflow-hidden {
        transition: none !important;
    }
}

/* Mobile menu active state */
.mobile-link {
    position: relative;
}

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

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

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

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

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

.floating-delay {
    animation: float-delay 7s ease-in-out infinite;
    animation-delay: 1s;
}
