/* Custom animations and utilities */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal - progressive enhancement via JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

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

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

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

::-webkit-scrollbar-track {
    background: #1a0f30;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #7c1fff;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: white;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Navbar transition */
.navbar-scrolled {
    background: rgba(26, 15, 48, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(93, 15, 191, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #fcd34d, #fbbf24, #d4a843);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass card effect */
.glass-card {
    background: rgba(45, 27, 78, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(93, 15, 191, 0.3);
}

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

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

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