/* ===== Custom Styles for Villa Nails ===== */

/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-float {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .service-card,
    .review-card {
        transition: none;
    }
    .service-card:hover,
    .review-card:hover {
        transform: none;
    }
    img {
        transition: none;
    }
    img:hover {
        transform: none;
    }
}

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .service-card:hover {
        transform: translateY(-4px);
    }
    .review-card:hover {
        transform: translateY(-4px);
    }
}

/* ===== Review Cards ===== */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Navbar Scrolled State ===== */
#navbar.scrolled {
    background: rgba(250, 240, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(92, 29, 57, 0.08);
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

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

/* ===== Back to Top ===== */
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf0f6;
}
::-webkit-scrollbar-thumb {
    background: #e092b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c04880;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
    background: #edbcd4;
    color: #360e1f;
}
