/* ============================================
   Phung Lucky Nails Spa — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(211, 65, 114, 0.3);
    color: #f9d0dc;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030712;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d34172, #f59e0b);
    border-radius: 4px;
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-12px) scale(1.01); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* --- Hero Animations --- */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.orb-1 { animation: float 8s ease-in-out infinite; }
.orb-2 { animation: floatSlow 10s ease-in-out infinite; }
.orb-3 { animation: float 12s ease-in-out infinite; }

/* --- Section Animations --- */
.section-label {
    animation: fadeInDown 0.6s ease-out both;
}

.section-title {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.section-desc {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* --- Service Cards --- */
.service-card {
    animation: scaleIn 0.5s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

/* --- Gallery --- */
.gallery-item {
    animation: scaleIn 0.5s ease-out both;
}

.gallery-item:nth-child(1) { animation-delay: 0.02s; }
.gallery-item:nth-child(2) { animation-delay: 0.04s; }
.gallery-item:nth-child(3) { animation-delay: 0.06s; }
.gallery-item:nth-child(4) { animation-delay: 0.08s; }
.gallery-item:nth-child(5) { animation-delay: 0.1s; }
.gallery-item:nth-child(6) { animation-delay: 0.12s; }
.gallery-item:nth-child(7) { animation-delay: 0.14s; }
.gallery-item:nth-child(8) { animation-delay: 0.16s; }

/* --- CTA Orbs --- */
.cta-orb { animation: float 10s ease-in-out infinite; }

/* --- Info Cards --- */
.info-card {
    animation: fadeInUp 0.5s ease-out both;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

/* --- Scroll-triggered animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    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; }

/* --- Navbar --- */
#navbar.scrolled {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#mobileMenu.open {
    display: block;
}

#mobileMenu.hidden {
    display: none;
}

/* --- Button hover effects --- */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Focus styles --- */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* --- Gallery grid responsive --- */
@media (max-width: 639px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- About image --- */
.about-image .relative {
    animation: fadeInUp 0.8s ease-out both;
}

/* --- Contact form --- */
#contactForm .space-y-5 > * {
    animation: fadeInUp 0.5s ease-out both;
}

#contactForm .space-y-5 > *:nth-child(1) { animation-delay: 0.1s; }
#contactForm .space-y-5 > *:nth-child(2) { animation-delay: 0.15s; }
#contactForm .space-y-5 > *:nth-child(3) { animation-delay: 0.2s; }
#contactForm .space-y-5 > *:nth-child(4) { animation-delay: 0.25s; }
#contactForm .space-y-5 > *:nth-child(5) { animation-delay: 0.3s; }
#contactForm .space-y-5 > *:nth-child(6) { animation-delay: 0.35s; }

/* --- Selection gradient text fallback --- */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* --- Print styles --- */
@media print {
    nav, .gallery-grid, iframe { display: none; }
    body { background: white; color: black; }
}
