/* ============================================
   TEAK IT EASY — Animations & Keyframes
   ============================================ */

/* ---- Fade In Up (IntersectionObserver driven) ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.fade-in-up[data-delay="100"] { transition-delay: 0.1s; }
.fade-in-up[data-delay="200"] { transition-delay: 0.2s; }
.fade-in-up[data-delay="300"] { transition-delay: 0.3s; }
.fade-in-up[data-delay="400"] { transition-delay: 0.4s; }
.fade-in-up[data-delay="500"] { transition-delay: 0.5s; }

/* ---- Scale In Up (IntersectionObserver driven) ---- */
.scale-in-up {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in-up.visible {
    opacity: 1;
    transform: scale(1);
}

.scale-in-up[data-delay="100"] { transition-delay: 0.1s; }
.scale-in-up[data-delay="200"] { transition-delay: 0.2s; }

/* ---- Marquee Scroll ---- */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Float (for product images) ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

/* ---- Pulse ---- */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---- Bounce ---- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ---- Scale In ---- */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---- Decorative Circle Pulse ---- */
@keyframes circleFloat {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
}

.deco-circle {
    animation: circleFloat 8s ease-in-out infinite;
}

.deco-circle-2 {
    animation-delay: 2s;
}

.deco-circle-3 {
    animation-delay: 1s;
}

.deco-circle-4 {
    animation-delay: 3s;
}

/* ---- Image Deco Circle Rotate ---- */
@keyframes decoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image-deco-circle {
    animation: decoRotate 20s linear infinite;
}

/* ---- Button Ripple ---- */
.stk-btn {
    position: relative;
    overflow: hidden;
}

.stk-btn .btn-ripple {
    position: absolute;
    z-index: -1;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(200, 168, 85, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
}

.stk-btn:hover .btn-ripple {
    width: 300%;
    height: 600px;
}

/* ---- Card Hover Transitions ---- */
.role-card,
.income-card,
.fit-card,
.risk-card,
.included-item,
.feature-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* ---- Gallery Image Zoom ---- */
.gallery-item img {
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ---- Gallery Overlay Fade ---- */
.gallery-overlay {
    transition: opacity 0.4s ease;
}

/* ---- Hamburger Animation ---- */
.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Back to Top Bounce ---- */
.back-to-top:hover {
    animation: bounce 0.6s ease;
}

/* ---- Shimmer Loading State ---- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- Counter Glow ---- */
@keyframes goldGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(200, 168, 85, 0.3); }
    50% { text-shadow: 0 0 20px rgba(200, 168, 85, 0.6); }
}

/* ---- Link Underline Animation ---- */
.header-nav .nav-menu .menu-item a::after {
    transition: width 0.4s ease;
}

/* ---- 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;
    }

    .fade-in-up,
    .scale-in-up {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }

    .floating-image {
        animation: none;
    }

    .deco-circle {
        animation: none;
    }

    .image-deco-circle {
        animation: none;
    }
}
