/* ==========================================================
   ANIMATION ADDITIONS — append to the end of main.css
   ========================================================== */

/* ---------- SCROLL TO TOP BUTTON ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
}
@media (max-width: 768px) {
    .scroll-to-top { bottom: 82px; right: 16px; }
}

/* ---------- STICKY HEADER ENHANCED ---------- */
.site-header {
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

/* ---------- CARD HOVER ENHANCEMENTS ---------- */
.material-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.material-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}
.feature-item:hover .feature-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.industry-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

/* ---------- PROCESS STEP HOVER ---------- */
.process-step {
    transition: all 0.3s ease;
}
.process-step:hover .process-number {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
    transition: all 0.3s ease;
}

/* ---------- CERT CARD HOVER ---------- */
.cert-card {
    transition: all 0.3s ease;
}
.cert-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ---------- TESTIMONIAL CARD HOVER ---------- */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

/* ---------- STATS COUNTER ANIMATION ---------- */
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    transition: color 0.3s;
}
.stat-item:hover .stat-number {
    color: var(--color-cta);
}

/* ---------- NAV LINK UNDERLINE ANIMATION ---------- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after,
.nav-item.current-menu-item > .nav-link::after {
    width: 100%;
    left: 0;
}

/* ---------- CONSULT BANNER PULSE ---------- */
.consult-banner .btn-cta {
    animation: subtle-pulse 3s infinite;
}
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 135, 77, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(212, 135, 77, 0.5); }
}

/* ---------- HERO IMAGE FLOAT ---------- */
.hero-image {
    animation: gentle-float 6s ease-in-out infinite;
}
@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- MOBILE TOGGLE ANIMATION ---------- */
.mobile-toggle span {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ---------- PRELOADER (optional) ---------- */
.site-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
.site-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
