/* ============================================
   ASHLEY NICHOLE NAILS AND PMU
   Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F9F0E8;
}

::-webkit-scrollbar-thumb {
    background: #D49476;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C06C4B;
}

/* Selection */
::selection {
    background: #C06C4B;
    color: #FDF9F5;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 249, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(192, 108, 75, 0.1);
}

#navbar.scrolled .font-serif {
    color: #5E3026;
}

/* Mobile Menu */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu Toggle */
.menu-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #5E3026;
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Floating Cards */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Service Cards */
.service-card {
    opacity: 1;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(192, 108, 75, 0.15);
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(94, 48, 38, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(94, 48, 38, 0.1);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.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; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .floating-card:nth-child(1) {
        display: block;
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 1rem;
        animation: none;
    }
}

@media (min-width: 769px) {
    .floating-card {
        display: block;
    }
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-color: #C06C4B !important;
    box-shadow: 0 0 0 3px rgba(192, 108, 75, 0.1);
}

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

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:active::after {
    width: 300px;
    height: 300px;
}

/* Decorative Lines */
.deco-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, #ECCEBE, transparent);
}
