/* === Custom Styles for Leaps And Bounds === */

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

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

/* === Animations === */

/* Fade-in-up for hero elements */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Particle animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.6;
    }
}

.particle {
    animation: float 6s ease-in-out infinite;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        animation: none;
    }
    .particle {
        animation: none;
        opacity: 0.3;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === Navbar === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 10, 8, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.mobile-link {
    display: block;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* === Selection Color === */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fefdf8;
}

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

::-webkit-scrollbar-track {
    background: #050a08;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 160, 23, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 160, 23, 0.5);
}

/* === Focus styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* === Select styling === */
select option {
    background: #0f1f17;
    color: #fdf9ef;
}

/* === Image lazy loading placeholder === */
img {
    background: linear-gradient(135deg, #0a1410 0%, #0f1f17 100%);
}

/* === Gold accent line decoration === */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4a017, transparent);
}

/* === Card hover glow effect === */
.group:hover .group-hover\:from-emerald-900\/20 {
    box-shadow: inset 0 0 40px rgba(6, 78, 59, 0.1);
}

/* === Button shine effect === */
.bg-gradient-to-r.from-cream-gold.to-cream-gold-light {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r.from-cream-gold.to-cream-gold-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.bg-gradient-to-r.from-cream-gold.to-cream-gold-light:hover::after {
    left: 100%;
}
