/* Custom styles for Stories Royal Jewellery */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Reveal animations - only for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Geometric accent shapes */
.geometric-accent {
    position: absolute;
    pointer-events: none;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

/* Image hover zoom */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #ff5544;
    outline-offset: 2px;
}

/* Ensure all text has proper contrast */
.text-gray-400 {
    color: #9ca3af;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-500 {
    color: #6b7280;
}

/* Hero specific - dark background with light text */
#hero {
    background-color: #1a1a1a;
}

#hero h1,
#hero h2,
#hero h3,
#hero p,
#hero span {
    color: #ffffff;
}

#hero .text-gray-400 {
    color: #9ca3af;
}

/* Service cards */
.group:hover .group-hover\:bg-coral-500\/20 {
    background-color: rgba(255, 85, 68, 0.2);
}

/* Footer */
footer {
    background-color: #2d2d2d;
}

/* Contact form */
#contact-form input,
#contact-form select,
#contact-form textarea {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #4a4a4a;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #6b7280;
}
