/* Custom styles for Elan Nails Salon */

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

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

::-webkit-scrollbar-track {
    background: #faf5f7;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a35572;
}

/* Selection color */
::selection {
    background: #e8cfd9;
    color: #4c2432;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(163, 85, 114, 0.08);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

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

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.25rem;
}

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

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

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

/* Service cards stagger animation */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

/* Scroll reveal base state - content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only apply hidden state when JS is active and prefers-reduced-motion is not set */
@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-start {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Gallery items */
.gallery-item {
    position: relative;
    cursor: pointer;
}

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #a35572, #d4a7b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for CTA */
@keyframes soft-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(163, 85, 114, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(163, 85, 114, 0); }
}

.btn-pulse {
    animation: soft-pulse 2.5s ease-in-out infinite;
}

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

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

.float-medium {
    animation: float 4s ease-in-out infinite;
}

/* Form styles */
.contact-form input,
.contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e8cfd9;
    padding: 0.75rem 0;
    width: 100%;
    font-family: inherit;
    color: #4c2432;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: #a35572;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #d4a7b8;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Success message */
.form-success {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success.show {
    opacity: 1;
    transform: translateY(0);
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #f3e8ed 0%, #faf1e4 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
