/* Animation effects for gaming website */

/* Floating animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Pulsating glow effect */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255, 70, 85, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 70, 85, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 70, 85, 0.5); }
}

/* Rotating Logo */
.rotate-slow {
    animation: rotate-slow 12s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Perspective hover effect */
.perspective-hover {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-style: preserve-3d;
}

.perspective-hover:hover {
    transform: perspective(500px) rotateX(5deg) rotateY(10deg) scale(1.05);
}

/* Neon text effect */
.neon-text {
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 70, 85, 0.8),
        0 0 15px rgba(255, 70, 85, 0.6),
        0 0 20px rgba(255, 70, 85, 0.4);
}

/* Glitchy text effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-anim-1 0.4s infinite;
    color: #0ff;
    clip: rect(44px, 450px, 56px, 0);
    left: 1px;
}

.glitch::after {
    animation: glitch-anim-2 0.4s infinite;
    color: #f0f;
    clip: rect(44px, 450px, 56px, 0);
    left: -1px;
}

@keyframes glitch-anim-1 {
    0%, 100% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 94px, 0); }
    40% { clip: rect(43px, 9999px, 24px, 0); }
    60% { clip: rect(41px, 9999px, 24px, 0); }
    80% { clip: rect(15px, 9999px, 54px, 0); }
}

@keyframes glitch-anim-2 {
    0%, 100% { clip: rect(93px, 9999px, 100px, 0); }
    20% { clip: rect(13px, 9999px, 55px, 0); }
    40% { clip: rect(45px, 9999px, 46px, 0); }
    60% { clip: rect(54px, 9999px, 73px, 0); }
    80% { clip: rect(84px, 9999px, 35px, 0); }
}

/* Game card hover effects */
.card-3d-effect {
    transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    transform-style: preserve-3d;
}

.card-3d-wrapper {
    perspective: 1500px;
}

/* Scale in animation */
.scale-in {
    animation: scale-in 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes scale-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Background particle effects */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.particle-1 {
    width: 2px;
    height: 2px;
    animation: float-around 15s linear infinite;
}

.particle-2 {
    width: 4px;
    height: 4px;
    animation: float-around 25s linear infinite;
}

.particle-3 {
    width: 6px;
    height: 6px;
    animation: float-around 20s linear infinite;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--x, 100px), var(--y, 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Button hover effects */
.btn-hover-effect {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-hover-effect:hover::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

/* Loading animation */
.loading-dots::after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Neo-brutalism box effect */
.neo-brutalism {
    box-shadow: 
        5px 5px 0px rgba(0, 0, 0, 0.8),
        10px 10px 0px rgba(255, 70, 85, 0.5);
    border: 2px solid #000;
    transform: translate(-5px, -5px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.neo-brutalism:hover {
    transform: translate(0, 0);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.8), 0px 0px 0px rgba(255, 70, 85, 0.5);
}

/* Text gradient animation */
.text-gradient {
    background-image: linear-gradient(45deg, #FF4655, #26BBFF, #8C52FF, #FFD600);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3D button effect */
.btn-3d {
    transform: translateY(0);
    box-shadow: 0 10px 0 rgba(204, 58, 70, 1);
    transition: all 0.2s;
}

.btn-3d:hover {
    transform: translateY(5px);
    box-shadow: 0 5px 0 rgba(204, 58, 70, 1);
}

.btn-3d:active {
    transform: translateY(10px);
    box-shadow: 0 0 0 rgba(204, 58, 70, 1);
}

/* Reveal animation */
.reveal {
    position: relative;
    overflow: hidden;
}

.reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FF4655, #8C52FF);
    transform: translateX(-100%);
    animation: reveal 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.reveal > * {
    opacity: 0;
    animation: reveal-content 0.1s 0.6s forwards;
}

@keyframes reveal {
    0% { transform: translateX(-100%); }
    40%, 60% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes reveal-content {
    to { opacity: 1; }
}

/* Apply animated background to body */
.animated-bg {
    background: linear-gradient(-45deg, #0A0A0A, #1A1A1A, #222222, #333333);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Custom scroll animations */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Shake animation */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Sheen effect */
.sheen {
    position: relative;
    overflow: hidden;
}

.sheen::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: sheen 3s infinite;
}

@keyframes sheen {
    0% {
        transform: rotate(30deg) translate(-30%, -30%);
    }
    100% {
        transform: rotate(30deg) translate(130%, 130%);
    }
} 