/* Gamification & Dynamic Effects */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

h1, h2, h3, .logo {
    font-family: 'Russo One', sans-serif;
    letter-spacing: 1px;
}

/* Neon Text Effect */
.neon-text {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--primary-color), 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
}

/* Glitch Effect for Logo */
.glitch {
    position: relative;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 80px, 0); }
    20% { clip: rect(60px, 9999px, 10px, 0); }
    40% { clip: rect(40px, 9999px, 100px, 0); }
    60% { clip: rect(80px, 9999px, 5px, 0); }
    80% { clip: rect(10px, 9999px, 60px, 0); }
    100% { clip: rect(50px, 9999px, 30px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(120px, 9999px, 10px, 0); }
    20% { clip: rect(10px, 9999px, 100px, 0); }
    40% { clip: rect(90px, 9999px, 50px, 0); }
    60% { clip: rect(30px, 9999px, 120px, 0); }
    80% { clip: rect(100px, 9999px, 20px, 0); }
    100% { clip: rect(60px, 9999px, 80px, 0); }
}

/* 3D Game Button */
.btn-game {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    font-size: 1.2rem;
    overflow: hidden;
    transition: 0.2s;
    border-radius: 5px;
    background: #ff4500;
    box-shadow: 0 5px 0 #b33100;
}

.btn-game:hover {
    background: #ff5722;
    box-shadow: 0 5px 0 #b33100, 0 0 20px #ff5722;
    transform: translateY(-2px);
}

.btn-game:active {
    background: #e63e00;
    box-shadow: 0 2px 0 #b33100;
    transform: translateY(3px);
}

/* Floating Assets */
.float-asset {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.card-float {
    width: 80px;
    animation: floatCard 6s ease-in-out infinite;
}

.coin-float {
    width: 50px;
    animation: floatCoin 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatCoin {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

/* Wave Divider */
.custom-shape-divider-bottom-1678901234 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1678901234 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom-1678901234 .shape-fill {
    fill: #252525;
}

/* Gradient Border for Cards */
.gradient-border {
    position: relative;
    background: #111;
    border-radius: 10px;
    z-index: 1;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    border-radius: 12px;
    animation: rotateBorder 20s linear infinite;
    background-size: 400%;
}

@keyframes rotateBorder {
    0% { background-position: 0 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
