/* Custom styles for 前程国际教育Future IntEdu */

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

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

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

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

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Scroll reveal - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(30, 15, 36, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(125, 78, 145, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6a3f7a;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

/* Ensure contrast on all text elements */
.text-plum-200 {
    color: #d6c2e0;
}

.text-plum-300 {
    color: #b899c8;
}

.text-plum-400 {
    color: #966aad;
}

/* Hero image overlay fix */
.hero-overlay {
    background: linear-gradient(135deg, rgba(30, 15, 36, 0.92) 0%, rgba(54, 32, 63, 0.85) 50%, rgba(30, 15, 36, 0.88) 100%);
}
