/* Custom styles and overrides */

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

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

::-webkit-scrollbar-track {
    background: #020c1b;
}

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

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

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #FDF6CD;
}

/* Base font improvements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Animation for scroll reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(2, 12, 27, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Button ripple effect */
button,
a[role="button"] {
    position: relative;
    overflow: hidden;
}

/* Custom select styling */
select option {
    background: #0a192f;
    color: white;
    padding: 10px;
}
