/* ============================================
   KAY NAILS — Premium Dark Luxury Styles
   ============================================ */

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

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

body {
    background-color: #0D0A0E;
    color: #F5F0F2;
    font-family: 'Raleway', Helvetica, sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1218;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C9A84C, #A68A32);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E5AC2E, #C9A84C);
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #F5F0F2;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(13, 10, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #C9A84C, #E5AC2E);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
#bar1.active {
    transform: translateY(3.5px) rotate(45deg);
}
#bar2.active {
    opacity: 0;
    transform: scaleX(0);
}
#bar3.active {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.5rem;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #D1C2C9;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #E5AC2E;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

/* Scroll indicator animation */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scrollDown {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-up.visible ~ .reveal-up {
    transition-delay: 0.1s;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.05);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201, 168, 76, 0);
    border-radius: inherit;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(201, 168, 76, 0.3);
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(201, 168, 76, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1) !important;
}

input::placeholder,
textarea::placeholder {
    color: #5E4250;
}

/* ============================================
   Button ripple effect
   ============================================ */
button, a {
    position: relative;
    overflow: hidden;
}

/* ============================================
   Gold shimmer on CTA buttons
   ============================================ */
.bg-gradient-to-r.from-gold-500.to-gold-400 {
    position: relative;
}

.bg-gradient-to-r.from-gold-500.to-gold-400::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.bg-gradient-to-r.from-gold-500.to-gold-400:hover::before {
    left: 100%;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 80px;
    }

    .service-card {
        padding: 1.5rem !important;
    }

    .floating-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1rem;
    }
}

/* ============================================
   Reduce motion for accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Loading state
   ============================================ */
.page-loaded .reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

/* Decorative sparkle animation */
@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.animate-pulse {
    animation: sparkle 3s ease-in-out infinite;
}
