/* =================================================================
   c:\Users\chand\OneDrive\Desktop\aone website\assets\css\animations.css
   AONE — Animation Keyframes & Effects
   ================================================================= */

/* ============================
   KEYFRAMES
   ============================ */

/* Float Up — particles rising */
@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.12; }
    90% { opacity: 0.12; }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Pulse Glow — subtle element glow */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(26,107,255,0.2); }
    50% { box-shadow: 0 0 25px rgba(26,107,255,0.4); }
}

/* Gradient Shift — background gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glitch — logo glitch effect */
@keyframes glitchAnim {
    0%, 89%, 100% {
        transform: translate(0);
        text-shadow: none;
    }
    90% {
        transform: translate(-3px, 1px);
        text-shadow: 3px 0 #1a6bff, -3px 0 #f5a623;
    }
    92% {
        transform: translate(3px, -1px);
        text-shadow: -3px 0 #1a6bff, 3px 0 #f5a623;
    }
    94% {
        transform: translate(0, 2px);
        text-shadow: 2px 0 #f5a623, -2px 0 #1a6bff;
    }
    96% {
        transform: translate(-2px, -1px);
        text-shadow: none;
    }
    98% {
        transform: translate(1px, 1px);
        text-shadow: 1px 0 #1a6bff, -1px 0 #f5a623;
    }
}

/* Shimmer — light sweep effect */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Ripple — button click ripple */
@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* Draw Line — timeline line drawing */
@keyframes drawLine {
    0% { height: 0; }
    100% { height: 100%; }
}

/* Spin Slow — decorative rotation */
@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bounce In — entrance animation */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Typewriter cursor */
@keyframes blinkCursor {
    0%, 100% { border-right-color: var(--gold-primary); }
    50% { border-right-color: transparent; }
}

/* Fade Up */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade Down */
@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade Left */
@keyframes fadeLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade Right */
@keyframes fadeRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Up */
@keyframes slideInUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================
   SCROLL ANIMATION CLASSES
   ============================ */

/* Initial state — hidden */
[data-animate] {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-down"] {
    transform: translateY(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(-40px);
}

[data-animate="fade-right"] {
    transform: translateX(40px);
}

[data-animate="scale-in"] {
    transform: scale(0.9);
}

[data-animate="zoom-in"] {
    transform: scale(0.8);
}

/* Visible state */
[data-animate].visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays */
[data-animate-delay="100"] { transition-delay: 0.1s; }
[data-animate-delay="200"] { transition-delay: 0.2s; }
[data-animate-delay="300"] { transition-delay: 0.3s; }
[data-animate-delay="400"] { transition-delay: 0.4s; }
[data-animate-delay="500"] { transition-delay: 0.5s; }
[data-animate-delay="600"] { transition-delay: 0.6s; }
[data-animate-delay="700"] { transition-delay: 0.7s; }
[data-animate-delay="800"] { transition-delay: 0.8s; }

/* ============================
   PAGE TRANSITIONS
   ============================ */
.page-transition-enter {
    animation: fadeUp 0.4s ease forwards;
}

.page-transition-leave {
    animation: fadeDown 0.3s ease forwards;
    opacity: 0;
}

/* ============================
   SPECIAL EFFECTS
   ============================ */

/* Magnetic effect */
.magnetic-btn {
    transition: transform 0.2s ease;
}

/* Tilt card */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Count up number (JS managed) */
.count-number {
    transition: all 0.3s ease;
}

/* Shimmer overlay for buttons */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

/* Typewriter */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--gold-primary);
    white-space: nowrap;
    animation: blinkCursor 0.7s step-end infinite;
}

/* Section reveal */
.section-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.visible {
    clip-path: inset(0 0 0% 0);
}

/* ============================
   AOS OVERRIDES (if using)
   ============================ */
[data-aos] {
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}
