/* =========================================================
   Lumina Animations & Footer Component
   ========================================================= */

/* --- 1. Keyframes --- */
@keyframes libFadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes libFadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes inkPulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* --- 2. Utility Animation Classes --- */
.reveal-up {
    opacity: 0;
    animation: libFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.reveal-down {
    opacity: 0;
    animation: libFadeInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

.pulse-gold { animation: inkPulse 2s infinite; }

.text-shimmer {
    background: linear-gradient(to right, #C5A059 20%, #E2C285 40%, #E2C285 60%, #C5A059 80%);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

html { scroll-behavior: smooth; }

/* --- 3. Footer & Newsletter Components --- */
.newsletter-section {
    position: relative;
    z-index: 2;
    margin-bottom: -60px; /* Pulls the box down over the footer */
}

.newsletter-box {
    background: #1A2B45;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(197, 160, 89, 0.3);
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.btn-subscribe {
    background: #C5A059;
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-subscribe:hover { background: #E2C285; color: #1A2B45; }

.newsletter-box .form-control {
    border-radius: 8px 0 0 8px;
    height: 55px;
    padding-left: 20px;
}

.lib-footer {
    background-color: #0F1A2A; 
    padding-top: 110px; /* Space for the overlap */
    color: #fff;
    position: relative;
    z-index: 1;
}

.footer-heading {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background: #C5A059;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a, .contact-list a { color: rgba(255, 255, 255, 0.6); transition: all 0.3s ease; }
.footer-links a:hover, .contact-list a:hover { color: #C5A059; padding-left: 5px; }

.contact-list li { color: rgba(255, 255, 255, 0.6); margin-bottom: 15px; display: flex; }
.contact-list i { color: #C5A059; margin-right: 15px; margin-top: 5px; font-size: 1.1rem; }

.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05);
    color: #fff; border-radius: 50%; margin-right: 10px; transition: all 0.3s ease;
}
.social-icons a:hover { background: #C5A059; transform: translateY(-3px); }

/* --- 4. Hero Slider Dynamic Text Animations --- */
.hero-slider-item .animate-layer {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slider-item.slick-active .animate-layer {
    opacity: 1;
    transform: translateY(0);
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}