/* Base styles and custom properties */
:root {
    --color-charcoal-900: #0d0d0d;
    --color-charcoal-800: #1a1a1a;
    --color-charcoal-700: #2a2a2a;
    --color-charcoal-600: #3a3a3a;
    --color-coral: #FF6F61;
    --color-coral-light: #FF8A7A;
    --color-gold: #D4A843;
    --color-gold-light: #E8C068;
}

html {
    scroll-behavior: smooth;
}

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

/* Gold line decoration */
.gold-line {
    display: inline-block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin-bottom: 1rem;
}

/* Scroll reveal animations — progressive enhancement via JS */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 168, 67, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-600);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral);
}

/* Selection color */
::selection {
    background: var(--color-coral);
    color: white;
}

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

/* Button hover lift effect */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image lazy load fade */
img {
    transition: opacity 0.3s ease;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Subtle gold shimmer on hover for special elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Decorative corner accents */
.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(212, 168, 67, 0.3);
    border-style: solid;
}

.corner-accent::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.corner-accent::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

/* Smooth image loading */
img {
    opacity: 1;
}
