/* Custom styles for Darlena's Nail Spa */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Decorative animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

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

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

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

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

body.menu-open .menu-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
    opacity: 0;
}

/* Scroll indicator */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

/* Hero decorative elements */
.deco-line {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.deco-line:nth-child(1) { animation-delay: 0.5s; }
.deco-line:nth-child(2) { animation-delay: 0.7s; }
.deco-line:nth-child(3) { animation-delay: 0.9s; }

.deco-circle {
    opacity: 0;
    animation: float 6s ease-in-out infinite;
}

.deco-circle:nth-child(4) { animation-delay: 0.3s; }
.deco-circle:nth-child(5) { animation-delay: 0.6s; }

/* Reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service cards */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

nav.scrolled .nav-link {
    color: #111d35;
}

nav.scrolled .menu-line {
    background: #111d35;
}

/* Smooth image loading */
img {
    image-rendering: auto;
}

/* Selection color */
::selection {
    background: #14b8a6;
    color: white;
}
