/* Nicholas Kansas — Premium Dark Luxury Styles */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #f5f5f5;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}

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

/* Navbar */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid rgba(200, 164, 94, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(46, 46, 46, 0.5);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Hero floating cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 2deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotate, 2deg)); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, -1deg)); }
    50% { transform: translateY(-8px) rotate(var(--rotate, -1deg)); }
}

@keyframes float-small {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 1deg)); }
    50% { transform: translateY(-6px) rotate(var(--rotate, 1deg)); }
}

/* Apply float animations only when reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
    .hero-float-1 {
        --rotate: 2deg;
        animation: float 6s ease-in-out infinite;
    }
    
    .hero-float-2 {
        --rotate: -1deg;
        animation: float-slow 7s ease-in-out infinite;
    }
    
    .hero-float-3 {
        --rotate: 1deg;
        animation: float-small 5s ease-in-out infinite;
    }
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Product cards */
.product-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Gold shimmer effect on hover */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s ease;
}

.shimmer-btn:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

/* Image hover zoom */
img {
    display: block;
    max-width: 100%;
}

/* Feature cards */
.feature-card {
    transition: border-color 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon {
    transition: transform 0.3s ease;
}

/* CTA section */
.cta-section {
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(200, 164, 94, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

/* Utility: ensure all text is readable */
.text-charcoal-50 { color: #f5f5f5; }
.text-charcoal-100 { color: #e0e0e0; }
.text-charcoal-200 { color: #bdbdbd; }
.text-charcoal-300 { color: #9e9e9e; }
.text-charcoal-400 { color: #757575; }

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c8a45e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image aspect ratios */
img {
    height: auto;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}
