/* 
==================================================
 MOTION DESIGN SYSTEM - OM INNOVENTURES & BUILD AI
================================================== 
*/

:root {
    /* Timing tokens */
    --duration-instant: 150ms;
    --duration-fast: 250ms;
    --duration-normal: 400ms;
    --duration-slow: 750ms;
    --duration-relaxed: 1100ms;
    
    /* Easing curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-bounce-soft: cubic-bezier(0.34, 1.3, 0.64, 1);
    
    /* Stagger rhythm */
    --stagger-delay: 80ms;
}

/* 
==================================================
 1. HERO AMBIENT MOTION & FLOATING
================================================== 
*/
@keyframes heroFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.4deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6);
    }
    50% {
        transform: scale(1.35);
        box-shadow: 0 0 0 7px rgba(255, 106, 0, 0);
    }
}

/* Saffron Section Heading Motions */
@keyframes saffronPulseDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7), 0 0 8px rgba(255, 106, 0, 0.6);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 6px rgba(255, 106, 0, 0), 0 0 16px rgba(255, 140, 0, 0.8);
    }
}

@keyframes saffronBarPulse {
    0%, 100% {
        width: 58px;
        box-shadow: 0 0 12px rgba(255, 106, 0, 0.5), 0 2px 4px rgba(255, 106, 0, 0.3);
        filter: brightness(1);
    }
    50% {
        width: 76px;
        box-shadow: 0 0 20px rgba(255, 120, 0, 0.8), 0 3px 8px rgba(255, 106, 0, 0.5);
        filter: brightness(1.2);
    }
}

@keyframes saffronShimmer {
    0% {
        transform: translateX(-120%) skewX(-20deg);
    }
    30%, 100% {
        transform: translateX(250%) skewX(-20deg);
    }
}

@keyframes saffronFloatBox {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 0 4px 16px rgba(255, 106, 0, 0.18);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(255, 106, 0, 0.3);
    }
}

@keyframes saffronGlowBorder {
    0%, 100% {
        border-color: rgba(255, 106, 0, 0.4);
        box-shadow: 0 0 10px rgba(255, 106, 0, 0.15);
    }
    50% {
        border-color: rgba(255, 106, 0, 0.8);
        box-shadow: 0 0 20px rgba(255, 106, 0, 0.35);
    }
}

@keyframes saffronHeadingGlow {
    0%, 100% {
        box-shadow: 0 6px 22px rgba(255, 106, 0, 0.16), 0 0 0 1px rgba(255, 106, 0, 0.15);
    }
    50% {
        box-shadow: 0 10px 30px rgba(255, 106, 0, 0.28), 0 0 16px rgba(255, 106, 0, 0.35);
    }
}

@keyframes saffronHeadingShimmer {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }
    35%, 100% {
        transform: translateX(250%) skewX(-20deg);
    }
}

@keyframes subtleGlow {
    0%, 100% {
        filter: drop-shadow(0 15px 30px rgba(10, 25, 47, 0.05));
    }
    50% {
        filter: drop-shadow(0 25px 40px rgba(255, 106, 0, 0.14));
    }
}

.hero-video {
    animation: heroFloat 6s ease-in-out infinite, subtleGlow 8s ease-in-out infinite;
    will-change: transform, filter;
}

.ann-dot {
    animation: pulseDot 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Saffron Headings and Eyebrows */
.eyebrow,
.saas-eyebrow {
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-fast) var(--ease-out-expo),
                box-shadow var(--duration-fast) var(--ease-out-expo),
                border-color var(--duration-fast) ease !important;
}

.eyebrow::after,
.saas-eyebrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.75) 50%,
        transparent 100%
    );
    animation: saffronShimmer 4s infinite ease-in-out;
    pointer-events: none;
}

.eyebrow:hover,
.saas-eyebrow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.3) !important;
    border-color: #FF6A00 !important;
}

.highlight-saffron,
.saffron-box,
.saffron-highlight {
    animation: saffronFloatBox 4s ease-in-out infinite alternate;
}

/* 
==================================================
 2. SKELETON LOADER & IMAGE FADES
================================================== 
*/
.skeleton-wrapper {
    position: relative;
    overflow: hidden;
    background-color: rgba(10, 25, 47, 0.04);
}

.skeleton-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: shimmer 1.6s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.img-loaded {
    opacity: 1 !important;
    transition: opacity var(--duration-normal) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo) !important;
}

.img-loading {
    opacity: 0;
}

/* 
==================================================
 3. INTERACTIVE CARDS & HOVER STATES
================================================== 
*/
.hover-card,
.service-card,
.product-card,
.capability-card,
.industry-card,
.saas-card,
.feature-card,
.pricing-card {
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-fast) ease;
    will-change: transform, box-shadow;
}

.hover-card:hover,
.service-card:hover,
.product-card:hover,
.capability-card:hover,
.industry-card:hover,
.saas-card:hover,
.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
}

.hover-image-zoom,
.service-hover-image {
    overflow: hidden;
    border-radius: 12px;
}

.hover-image-zoom img,
.service-hover-image img {
    transition: transform var(--duration-slow) var(--ease-out-expo);
    will-change: transform;
}

.hover-image-zoom:hover img,
.service-card:hover .service-hover-image img {
    transform: scale(1.06);
}

/* 
==================================================
 4. BUTTON MICRO-INTERACTIONS
================================================== 
*/
.btn-primary,
.btn-outline,
.btn-gold,
.cta-button,
.hero-actions a {
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-fast) var(--ease-out-expo),
                box-shadow var(--duration-fast) var(--ease-out-expo),
                background-color var(--duration-fast) ease,
                color var(--duration-fast) ease;
    will-change: transform, box-shadow;
}

.btn-primary:hover,
.btn-gold:hover,
.cta-button:hover,
.hero-actions a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 25, 47, 0.15);
}

.btn-outline:hover,
.hero-actions a.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 25, 47, 0.08);
}

.btn-primary:active,
.btn-outline:active,
.cta-button:active {
    transform: translateY(0px) scale(0.98);
}

/* 
==================================================
 5. REVEAL UTILITIES & PRE-GSAP STATES
================================================== 
*/
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
}

.reveal-fade {
    opacity: 0;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
}

/* 
==================================================
 6. ACCORDION & MODAL TRANSITIONS
================================================== 
*/
.faq-item,
.accordion-item {
    transition: all var(--duration-normal) var(--ease-out-expo);
}

/* 
==================================================
 7. REDUCED MOTION ACCESSIBILITY
================================================== 
*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-video,
    .ann-dot {
        animation: none !important;
    }
    
    .reveal-up,
    .reveal-fade,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hover-card:hover,
    .service-card:hover,
    .product-card:hover,
    .btn-primary:hover,
    .btn-outline:hover {
        transform: none !important;
    }
    
    .hover-image-zoom:hover img,
    .service-card:hover .service-hover-image img {
        transform: none !important;
    }
}
