/* 🎬 Entrance Animations (Integrated with AOS and Animate.css) */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* 🧩 Grid / Puzzle Effects */
.mosaic-reveal {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    gap: 10px;
}

.mosaic-reveal .tile {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-reveal.active .tile {
    opacity: 1;
    transform: scale(1);
}

/* 🎥 Cinematic Effects */
.cinematic-reveal {
    position: relative;
    overflow: hidden;
}



.cinematic-reveal.active::after {
    transform: translateX(101%);
}

/* � Scroll Based Effects */
.scroll-parallax {
    transform: translateY(var(--parallax-y, 0));
}

/* �💎 Hover Effects */
.hover-glow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(208, 24, 24, 0.4);
    transform: translateY(-5px);
}

.hover-tilt-3d {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.hover-zoom-image {
    overflow: hidden;
}

.hover-zoom-image img {
    transition: transform 0.5s ease;
}

.hover-zoom-image:hover img {
    transform: scale(1.1);
}

.hover-gradient-shift {
    background: linear-gradient(45deg, #D01818, #ff4b2b, #4b6cb7, #182848);
    background-size: 400% 400%;
    transition: 0.5s;
}

.hover-gradient-shift:hover {
    background-position: 100% 100%;
}

/* Hover Shadow Expand */
.hover-shadow-expand {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-shadow-expand:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-10px);
}

/* ⚡ Button Animations */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(208, 24, 24, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(208, 24, 24, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(208, 24, 24, 0);
    }
}

.glow-button {
    position: relative;
    z-index: 0;
}

.glow-button:before {
    content: '';
    /* background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); */
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-button:hover:before {
    opacity: 1;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* 📦 Loading Effects */
.skeleton-loader {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* 🌊 Background Effects */
.animated-gradient-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
}

@keyframes gradient-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 🧠 Advanced UI Effects */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
}

.neumorphism {
    background: #e0e0e0;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    border-radius: 20px;
}

/* 3D Card Stack */
.card-stack-3d {
    perspective: 1000px;
}

.card-stack-3d .card {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-stack-3d:hover .card {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Magnetic Cursor Support */
.magnetic-wrap {
    display: inline-block;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    /* background: rgba(208, 24, 24, 0.5); */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

/* 🚀 Ultra Modern Effects */
.glitch-effect:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
    }
}

/* Character Animation */
.split-text-animation .char {
    display: inline-block;
    transform-origin: center bottom;
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(208, 24, 24, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

