/* ============================================
   XIMENI GRASSI MAKEUP — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* --- Base & Reset --- */
*, *::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-color: rgba(180, 46, 54, 0.4);
    color: #fce7e7;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a0b;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7f1f26, #3a0a0e);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9a242c, #6b1b20);
}

/* --- Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for service cards */
    .service-card:nth-child(1) { transition-delay: 0ms; }
    .service-card:nth-child(2) { transition-delay: 100ms; }
    .service-card:nth-child(3) { transition-delay: 200ms; }
    .service-card:nth-child(4) { transition-delay: 300ms; }
    .service-card:nth-child(5) { transition-delay: 400ms; }
    .service-card:nth-child(6) { transition-delay: 500ms; }
}

/* --- Navbar Scroll State --- */
.nav-scrolled {
    background: rgba(13, 10, 11, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 75, 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.nav-scrolled .logo-text {
    color: #e8c16d !important;
}

/* --- Gold Gradient Text --- */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d48a, #d4a84b, #e8c16d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Service Card Hover Glow --- */
.service-card:hover {
    box-shadow: 0 20px 60px rgba(127, 31, 38, 0.15),
                0 0 0 1px rgba(212, 168, 75, 0.1);
    transform: translateY(-4px);
}

/* --- Input Autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #141012 inset !important;
    -webkit-text-fill-color: #f3f4f6 !important;
    caret-color: #f3f4f6;
}

/* --- Mobile Menu Animation --- */
#mobileMenu {
    animation: slideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Button Ripple Effect --- */
button, a {
    position: relative;
    overflow: hidden;
}

/* --- Selection Highlight --- */
::selection {
    background: rgba(180, 46, 54, 0.5);
    color: #fce7e7;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid rgba(212, 168, 75, 0.5);
    outline-offset: 2px;
}

/* --- Mobile Menu Link Hover --- */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a84b;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* --- Image Lazy Load Fade --- */
img {
    transition: opacity 0.4s ease;
}

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