/* ===== Custom Styles for Mainland Mandarin Learning Center ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #f4a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4456a;
}

/* ===== Hero Animations ===== */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-images {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ===== Program Cards ===== */
.program-card {
    opacity: 1;
}

.program-card:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Why Cards ===== */
.why-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.why-card:hover {
    transform: translateY(-4px);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(127, 29, 52, 0.08);
}

.nav-scrolled .logo-text {
    color: #7f1d34;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== Focus Styles ===== */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* ===== Utility ===== */
.text-gradient {
    background: linear-gradient(135deg, #7f1d34, #d4456a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Print Styles ===== */
@media print {
    nav, #contact, footer {
        display: none;
    }
}
