body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #34495e, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
}

/* Sections (scroll + hover combined properly) */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.4s ease;
    will-change: opacity, transform;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 🔥 Hover raise ONLY when visible (fixes glitching) */
section.visible:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Smooth floating animation (replaces bounce) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

/* Links hover */
a:hover,
button:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
}

/* Background animation */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Rules */
.rules-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Discord icon */
.fab.fa-discord {
    transition: transform 0.3s ease;
}

.fab.fa-discord:hover {
    transform: scale(1.2);
}

/* FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-content {
    max-height: 180px;
    opacity: 1;
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Particles */
#particles-js {
    position: absolute;
    height: 700px;
    margin: 0 auto;
    left: 0;
    right: 0;
    pointer-events: none;
    width: 100%;
    z-index: 1;
}

canvas {
    display: block;
    vertical-align: bottom;
}

/* Responsive */
@media only screen and (max-width: 1105px) {
    #particles-js {
        max-width: 100%;
        width: auto;
    }
}