/* ============================================
   VIVA NAIL AND SPA — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #d4941a;
    border-radius: 3px;
}

/* --- Selection --- */
::selection {
    background: #d4941a;
    color: #102a43;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Hero Gradient Orbs Animation --- */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-gradient-orb {
    animation: float-slow 20s ease-in-out infinite;
}

.hero-gradient-orb2 {
    animation: float-slow 25s ease-in-out infinite reverse;
}

/* --- Scroll Line Animation --- */
@keyframes scroll-down {
    0% { top: -16px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% + 4px); opacity: 0; }
}

.scroll-line {
    animation: scroll-down 2s ease-in-out infinite;
}

/* --- Service Cards --- */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-hidden {
    opacity: 0;
    transform: translateY(25px);
}

.service-card:hover .service-card img {
    transform: scale(1.05);
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(10, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 148, 26, 0.1);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled #nav-logo {
    color: #fff;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
}

/* --- Form Select Styling --- */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4941a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

select option {
    background: #102a43;
    color: #fff;
}

/* --- Input Focus States --- */
input:focus, textarea:focus, select:focus {
    border-bottom-color: #d4941a !important;
}

/* --- Button Ripple on Focus --- */
button:focus-visible, a:focus-visible {
    outline: 2px solid #d4941a;
    outline-offset: 2px;
}

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

/* --- Print --- */
@media print {
    #navbar, .scroll-indicator {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
