/* Custom styles for Ocean View Jewelers */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reveal animation for scroll-triggered elements */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero reveal animations (visible by default for above-fold) */
#hero .reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
#hero .reveal:nth-child(1) { transition-delay: 0.1s; }
#hero .reveal:nth-child(2) { transition-delay: 0.2s; }
#hero .reveal:nth-child(3) { transition-delay: 0.3s; }
#hero .reveal:nth-child(4) { transition-delay: 0.4s; }

/* Below-fold reveal (initially hidden, shown by JS) */
section:not(#hero) .reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Underline animation for coral text */
.text-coral-400 {
    position: relative;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff7043;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    min-height: 200px;
}

/* Selection color */
::selection {
    background: rgba(255, 112, 67, 0.3);
    color: white;
}
