/* ============================================
   PROFILE MK — CSS Animations
   Keyframe Animations & Micro-interactions
   ============================================ */

/* ─────────────────────────────────────────
   SMOOTH SCROLL & PERFORMANCE
   ───────────────────────────────────────── */

/* html {
    scroll-behavior: smooth; removed for Lenis
} */

/* ─────────────────────────────────────────
   LITE SCROLL REVEAL (Performance Optimized)
   ───────────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for groups */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}


/* 3D perspective for card effects */
.service-card,
.testimonial-card,
.expertise-card,
.authority-image-wrapper,
.about-hero-image-wrapper,
.story-image-wrapper {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Smooth transitions for all interactive elements */
.btn,
.navbar-link,
.footer-link,
.project-option,
.budget-option,
.faq-question {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   MOBILE & STATIC PAGE INSTANT VISIBILITY
   ───────────────────────────────────────── */
.is-static-page .reveal-up,
.is-static-page .reveal-on-scroll,
.is-static-page .reveal-left,
.is-static-page .reveal-right,
.is-static-page .timeline-item,
.is-static-page .service-card,
.is-static-page .expertise-card,
.is-static-page .testimonial-card,
.is-static-page .authority-stat,
.is-static-page .fact-card,
.is-static-page .cta-box,
.is-static-page .comparison-card,
.is-static-page .vs-badge,
.is-static-page .comparison-list li,
.is-static-page .section-header,
.is-static-page .modal-reveal,
.is-static-page .about-content>*,
.is-static-page .about-visual,
.is-static-page .experience-badge,
.is-static-page .authority-content,
.is-static-page .authority-visual,
.is-static-page .story-visual,
.is-static-page .story-content,
.is-static-page .cta-inner,
.is-static-page .about-cta-inner,
.is-static-page .transformation-before,
.is-static-page .transformation-after,
.is-static-page .transformation-arrow,
.is-static-page .faq-item,
.is-static-page .project-option,
.is-static-page .card-before,
.is-static-page .card-after,
.is-static-page .timeline-journey-card,
.is-static-page .timeline-dot,
.is-static-page .timeline-year,
.is-static-page h1,
.is-static-page h2,
.is-static-page h3,
.is-static-page h4,
.is-static-page h5,
.is-static-page h6,
.is-static-page p,
.is-static-page .hero-badge,
.is-static-page .about-hero-label,
.is-static-page .hero-visual,
.is-static-page .image-wrapper,
.is-static-page .text-reveal-inner {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
}

@media (max-width: 768px) {

    .reveal-up,
    .reveal-on-scroll,
    .reveal-left,
    .reveal-right,
    .timeline-item,
    .service-card,
    .expertise-card,
    .testimonial-card,
    .authority-stat,
    .fact-card,
    .cta-box,
    .comparison-card,
    .vs-badge,
    .comparison-list li,
    .section-header,
    .modal-reveal,
    .about-content>*,
    .about-visual,
    .experience-badge,
    .authority-content,
    .authority-visual,
    .story-visual,
    .story-content,
    .cta-inner,
    .about-cta-inner,
    .transformation-before,
    .transformation-after,
    .transformation-arrow,
    .faq-item,
    .project-option,
    .card-before,
    .card-after,
    .timeline-journey-card,
    .timeline-dot,
    .timeline-year,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    .hero-badge,
    .about-hero-label,
    .hero-visual,
    .image-wrapper,
    .text-reveal-inner {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ─────────────────────────────────────────
   FADE ANIMATIONS
   ───────────────────────────────────────── */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─────────────────────────────────────────
   SCALE ANIMATIONS
   ───────────────────────────────────────── */

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(130, 36, 227, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(130, 36, 227, 0.6);
    }
}

/* ─────────────────────────────────────────
   TEXT REVEAL ANIMATIONS
   ───────────────────────────────────────── */

@keyframes revealText {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes slideReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Text Reveal Container */
.text-reveal {
    overflow: hidden;
}

.text-reveal-inner {
    display: inline-block;
    transform: translateY(100%);
}

.text-reveal.is-visible .text-reveal-inner {
    animation: slideReveal 0.8s var(--ease-out) forwards;
}

/* Split Text Animation Ready */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
}

.split-text .word {
    display: inline-block;
    overflow: hidden;
}

/* ─────────────────────────────────────────
   FLOAT & HOVER ANIMATIONS
   ───────────────────────────────────────── */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatRotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(2deg);
    }

    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

.hover-float {
    transition: transform var(--duration-normal) var(--ease-out);
}

.hover-float:hover {
    transform: translateY(-8px);
}

.hover-scale {
    transition: transform var(--duration-normal) var(--ease-out);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* ─────────────────────────────────────────
   LINE ANIMATIONS
   ───────────────────────────────────────── */

@keyframes drawLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes drawLineVertical {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--duration-normal) var(--ease-out);
}

.animated-underline:hover::after,
.animated-underline.active::after {
    width: 100%;
}

/* ─────────────────────────────────────────
   LOADING ANIMATIONS
   ───────────────────────────────────────── */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Dot Loading */
@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-dots {
    display: flex;
    gap: var(--space-2);
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ─────────────────────────────────────────
   BACKGROUND ANIMATIONS
   ───────────────────────────────────────── */

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
}

/* Particle Float Effect */
@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(20px) rotate(720deg);
        opacity: 0;
    }
}

/* ─────────────────────────────────────────
   SCROLL INDICATOR
   ───────────────────────────────────────── */

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
}

.scroll-indicator-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color-hover);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: scrollBounce 2s infinite;
}

/* ─────────────────────────────────────────
   STAGGER DELAYS (for JS animations)
   ───────────────────────────────────────── */

[data-stagger="1"] {
    --stagger-delay: 0.1s;
}

[data-stagger="2"] {
    --stagger-delay: 0.2s;
}

[data-stagger="3"] {
    --stagger-delay: 0.3s;
}

[data-stagger="4"] {
    --stagger-delay: 0.4s;
}

[data-stagger="5"] {
    --stagger-delay: 0.5s;
}

[data-stagger="6"] {
    --stagger-delay: 0.6s;
}

/* ─────────────────────────────────────────
   UTILITY ANIMATION CLASSES
   ───────────────────────────────────────── */

.animate-fade-in {
    animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown var(--duration-slow) var(--ease-out) forwards;
}

.animate-scale-in {
    animation: scaleIn var(--duration-slow) var(--ease-out) forwards;
}

.animate-pulse {
    animation: pulse 2s var(--ease-in-out) infinite;
}

.animate-float {
    animation: float 3s var(--ease-in-out) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   FLOATING ORB ANIMATIONS — Premium
   ───────────────────────────────────────── */

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-20px, -60px) scale(0.9);
        opacity: 0.5;
    }

    75% {
        transform: translate(-40px, -20px) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-60px, 40px) rotate(120deg) scale(1.2);
    }

    66% {
        transform: translate(40px, 80px) rotate(240deg) scale(0.8);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        filter: blur(40px);
    }

    50% {
        transform: translate(80px, -40px) scale(1.3);
        filter: blur(60px);
    }
}

.orb-1 {
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    animation: orbFloat2 25s ease-in-out infinite;
}


/* File Synced: 2026-01-26 01:30 AM */
.orb-3 {
    animation: orbFloat3 18s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   AURORA BACKGROUND EFFECT
   ───────────────────────────────────────── */

@keyframes aurora {

    0%,
    100% {
        background-position: 0% 50%;
        opacity: 0.5;
    }

    25% {
        background-position: 50% 100%;
        opacity: 0.7;
    }

    50% {
        background-position: 100% 50%;
        opacity: 0.6;
    }

    75% {
        background-position: 50% 0%;
        opacity: 0.8;
    }
}

.aurora-bg {
    background: linear-gradient(45deg,
            rgba(130, 36, 227, 0.15) 0%,
            rgba(20, 184, 166, 0.1) 25%,
            rgba(245, 158, 11, 0.1) 50%,
            rgba(236, 72, 153, 0.1) 75%,
            rgba(130, 36, 227, 0.15) 100%);
    background-size: 400% 400%;
    animation: aurora 15s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   MAGNETIC HOVER EFFECT
   ───────────────────────────────────────── */

.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.magnetic-hover:hover {
    transform: scale(1.02);
}

/* ─────────────────────────────────────────
   RIPPLE EFFECT
   ───────────────────────────────────────── */

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* ─────────────────────────────────────────
   GLOW PULSE ANIMATIONS
   ───────────────────────────────────────── */

@keyframes glowPulsePrimary {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(130, 36, 227, 0.3), 0 0 40px rgba(130, 36, 227, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(130, 36, 227, 0.5), 0 0 80px rgba(130, 36, 227, 0.2);
    }
}

@keyframes glowPulseGold {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 0 80px rgba(245, 158, 11, 0.2);
    }
}

@keyframes glowPulseTeal {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(20, 184, 166, 0.3), 0 0 40px rgba(20, 184, 166, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(20, 184, 166, 0.5), 0 0 80px rgba(20, 184, 166, 0.2);
    }
}

.glow-pulse-primary {
    animation: glowPulsePrimary 3s ease-in-out infinite;
}

.glow-pulse-gold {
    animation: glowPulseGold 3s ease-in-out infinite;
}

.glow-pulse-teal {
    animation: glowPulseTeal 3s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   SLIDE IN ANIMATIONS
   ───────────────────────────────────────── */

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-left {
    animation: slideInFromLeft 0.8s var(--ease-out) forwards;
}

.animate-slide-right {
    animation: slideInFromRight 0.8s var(--ease-out) forwards;
}

.animate-slide-bottom {
    animation: slideInFromBottom 0.8s var(--ease-out) forwards;
}

/* ─────────────────────────────────────────
   BOUNCE ANIMATION
   ───────────────────────────────────────── */

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-20px);
    }

    70% {
        transform: translateY(-10px);
    }

    90% {
        transform: translateY(-4px);
    }
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

/* ─────────────────────────────────────────
   SHAKE ANIMATION (for errors/attention)
   ───────────────────────────────────────── */

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* ─────────────────────────────────────────
   ICON SPIN ON HOVER
   ───────────────────────────────────────── */

.icon-spin-hover svg {
    transition: transform 0.5s var(--ease-out);
}

.icon-spin-hover:hover svg {
    transform: rotate(360deg);
}

/* ─────────────────────────────────────────
   CARD TILT EFFECT (3D)
   ───────────────────────────────────────── */

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out);
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

/* ─────────────────────────────────────────
   BORDER GLOW ANIMATION
   ───────────────────────────────────────── */

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(130, 36, 227, 0.3);
    }

    50% {
        border-color: rgba(130, 36, 227, 0.8);
    }
}

.border-glow-animated {
    animation: borderGlow 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   FOCUS RING ANIMATION
   ───────────────────────────────────────── */

@keyframes focusRing {
    0% {
        box-shadow: 0 0 0 0 rgba(130, 36, 227, 0.5);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(130, 36, 227, 0);
    }
}

input:focus,
textarea:focus,
select:focus {
    animation: focusRing 0.4s ease-out;
    outline: none;
    border-color: var(--color-primary);
}

/* ─────────────────────────────────────────
   PAGE LOAD ANIMATIONS
   ───────────────────────────────────────── */

@keyframes pageEntry {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-entry {
    animation: pageEntry 0.6s var(--ease-out) forwards;
}

/* Staggered page entry */
.page-entry-stagger>* {
    opacity: 0;
    animation: pageEntry 0.6s var(--ease-out) forwards;
}

.page-entry-stagger>*:nth-child(1) {
    animation-delay: 0.1s;
}

.page-entry-stagger>*:nth-child(2) {
    animation-delay: 0.2s;
}

.page-entry-stagger>*:nth-child(3) {
    animation-delay: 0.3s;
}

.page-entry-stagger>*:nth-child(4) {
    animation-delay: 0.4s;
}

.page-entry-stagger>*:nth-child(5) {
    animation-delay: 0.5s;
}

/* ─────────────────────────────────────────
   SUCCESS/ERROR STATE ANIMATIONS
   ───────────────────────────────────────── */

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.success-animation {
    animation: successPop 0.5s var(--ease-spring) forwards;
}

.success-animation svg path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark 0.5s ease-out 0.3s forwards;
}

/* ─────────────────────────────────────────
   REDUCED MOTION PREFERENCES
   ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .orb-1,
    .orb-2,
    .orb-3,
    .aurora-bg,
    .glow-pulse-primary,
    .glow-pulse-gold,
    .glow-pulse-teal {
        animation: none !important;
    }
}