/* ========== CUSTOM ANIMATIONS ========== */

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

@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 ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== NAVBAR SCROLL STATE ========== */
.nav-scrolled {
    background: rgba(250, 245, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(126, 34, 206, 0.08);
}

.nav-scrolled .nav-link {
    color: #581c87 !important;
}

.nav-scrolled .logo-text {
    color: #581c87 !important;
}

/* ========== SERVICE CARD HOVER ========== */
.service-card {
    border: 1px solid rgba(147, 51, 234, 0.08);
}

.service-card:hover {
    border-color: rgba(147, 51, 234, 0.2);
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ========== PREFERS REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    #hero h1 {
        font-size: 2.5rem !important;
    }

    #hero h1 span.text-3xl {
        font-size: 1.5rem !important;
    }
}

/* ========== FOCUS VISIBLE ========== */
*:focus-visible {
    outline: 3px solid #a855f7;
    outline-offset: 2px;
    border-radius: 8px;
}
