/* Custom styles that complement Tailwind */

body {
    background: #030814;
}

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

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f8fafc;
}

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(3, 8, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(22, 42, 74, 0.5);
}

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

/* Mint text gradient */
.mint-gradient {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold divider line */
.gold-line {
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    height: 1px;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.6), 0 0 40px rgba(212, 168, 83, 0.08);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Gold pulse animation */
.pulse-gold {
    animation: pulse-gold 3s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(212, 168, 83, 0);
    }
}

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

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

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

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

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

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

/* Image aspect ratios */
.aspect-square {
    aspect-ratio: 1 / 1;
}

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

/* Ensure all text is readable on dark backgrounds */
.text-slate-400 {
    color: #94a3b8;
}

.text-slate-500 {
    color: #64748b;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0f1f36 inset !important;
    -webkit-text-fill-color: #f8fafc !important;
}
