/* Custom styles for Pearl Nails */

:root {
    --color-terracotta: #e2725b;
    --color-sand: #f2e6c8;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #e2725b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c45a3f;
}

/* Navbar transitions */
.nav-brand-text {
    transition: color 0.3s ease;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e2725b;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}
.navbar-scrolled .nav-brand-text {
    color: #0f172a;
}
.navbar-scrolled .nav-link {
    color: #334155;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children reveal */
.grid > .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.grid > .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.grid > .scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.grid > .scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.grid > .scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.grid > .scroll-reveal:nth-child(6) { transition-delay: 0.3s; }
.grid > .scroll-reveal:nth-child(7) { transition-delay: 0.35s; }
.grid > .scroll-reveal:nth-child(8) { transition-delay: 0.4s; }

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-2deg); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delay {
    animation: float-delay 8s ease-in-out infinite;
}
.animate-float-slow {
    animation: float-slow 7s ease-in-out infinite;
}

/* Scroll line animation */
@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-float, .animate-float-delay, .animate-float-slow {
        animation: none;
    }
    .animate-scroll-line {
        animation: none;
    }
}
