/*
 * ANIMATIONS.CSS - Modern Premium Effects
 * Techo Theme
 */

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Apply to elements */
.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-scale {
    animation: fadeInScale 0.6s ease forwards;
}

/* Staggered delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* ========================================
   CARD HOVER EFFECTS
   ======================================== */
.wire-card,
.review-card,
.enterprise-card,
.related-card,
.feed-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.wire-card:hover,
.review-card:hover,
.enterprise-card:hover,
.related-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(59, 130, 246, 0.1);
}

/* Card Shine Effect */
.wire-card::before,
.review-card::before,
.hero-main-card::before,
.side-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.wire-card:hover::before,
.review-card:hover::before,
.hero-main-card:hover::before,
.side-card:hover::before {
    left: 100%;
}

/* ========================================
   GLOW EFFECTS
   ======================================== */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
    }
}

@keyframes glow-border {

    0%,
    100% {
        border-color: rgba(59, 130, 246, 0.3);
    }

    50% {
        border-color: rgba(139, 92, 246, 0.5);
    }
}

.btn-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

.glow-border {
    animation: glow-border 3s ease-in-out infinite;
}

/* Neon Glow Text */
.neon-text {
    text-shadow:
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
}

/* ========================================
   BUTTON EFFECTS
   ======================================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.95);
}

/* Magnetic Button Effect */
.btn-magnetic {
    transition: transform 0.3s ease;
}

/* ========================================
   GRADIENT ANIMATIONS
   ======================================== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg,
            #3B82F6,
            #8B5CF6,
            #06b6d4,
            #3B82F6);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

.animated-gradient-text {
    background: linear-gradient(90deg,
            #3B82F6,
            #8B5CF6,
            #00F0FF,
            #3B82F6);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s linear infinite;
}

/* ========================================
   FLOATING ANIMATION
   ======================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* ========================================
   MORPHING BACKGROUND
   ======================================== */
@keyframes morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morph-bg {
    animation: morph 8s ease-in-out infinite;
}

/* ========================================
   SHIMMER LOADING EFFECT
   ======================================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ========================================
   PARALLAX EFFECT
   ======================================== */
.parallax-layer {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* ========================================
   HERO SECTION EFFECTS
   ======================================== */
.hero-main-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-main-card:hover {
    transform: scale(1.02);
}

.hero-title {
    transition: text-shadow 0.3s ease;
}

.hero-main-card:hover .hero-title {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.side-card {
    transition: all 0.4s ease;
}

.side-card:hover {
    transform: translateX(-5px);
    border-color: var(--primary);
}

/* ========================================
   BADGE EFFECTS
   ======================================== */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* ========================================
   IMAGE HOVER EFFECTS
   ======================================== */
.wire-img img,
.review-img img,
.enterprise-img img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.wire-card:hover .wire-img img,
.review-card:hover .review-img img,
.enterprise-card:hover .enterprise-img img {
    transform: scale(1.1);
}

/* ========================================
   HOT TOPICS ANIMATION
   ======================================== */
.topic-item {
    transition: all 0.3s ease;
}

.topic-item:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.topic-item i {
    transition: transform 0.3s ease;
}

.topic-item:hover i {
    transform: scale(1.2);
}

/* ========================================
   LINK UNDERLINE EFFECT
   ======================================== */
.fancy-link {
    position: relative;
}

.fancy-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.fancy-link:hover::after {
    width: 100%;
}

/* ========================================
   WIDGET EFFECTS
   ======================================== */
.widget-card {
    transition: all 0.4s ease;
}

.widget-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

/* ========================================
   FOOTER EFFECTS
   ======================================== */
.footer-social-icons a {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-icons a:hover {
    transform: translateY(-5px) rotate(10deg);
}

/* ========================================
   CURSOR EFFECTS
   ======================================== */
@media (hover: hover) {
    .interactive-cursor {
        cursor: none;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}