/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #E6D5B8;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent flash of unstyled content */
.no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:translate-y-\\[-4px\\] {
    transform: translateY(-4px);
}

/* Ensure form inputs have proper focus states */
input:focus, select:focus, textarea:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

/* Map filter override for dark theme */
iframe[src*="google.com/maps"] {
    filter: grayscale(80%) invert(92%) contrast(90%) brightness(90%);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
