/* Custom styles for Bahama Nails */

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

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

/* Scroll reveal base — always visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 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; }
}

/* Navbar transitions */
.nav-text-color {
    color: #1e293b;
}

.nav-border-color {
    border-color: #cbd5e1;
}

.nav-line-color {
    background-color: #1e293b;
}

/* Dark navbar state */
nav.dark .nav-text-color {
    color: #f1f5f9;
}

nav.dark .nav-border-color {
    border-color: rgba(255, 255, 255, 0.2);
}

nav.dark .nav-line-color {
    background-color: #f1f5f9;
}

nav.dark {
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile nav links */
.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Service card hover image effect */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    border-color: rgba(13, 148, 136, 0.3);
}

/* Gallery hover */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.2) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Custom selection color */
::selection {
    background-color: rgba(13, 148, 136, 0.3);
    color: #0f172a;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Form focus animations */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Hero text animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Subtle pulse for CTA */
@keyframes pulse-subtle {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
}

/* Mobile menu animation */
#mobile-menu {
    pointer-events: none;
}

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

/* Hamburger animation */
#mobile-toggle.active #menu-line-1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#mobile-toggle.active #menu-line-2 {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Image loading placeholder */
img {
    background-color: #e2e8f0;
}

/* Print styles */
@media print {
    nav, #contact, .gallery-item { display: none; }
    body { color: #000; background: #fff; }
}
