body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background: #050505; /* Super dark */
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Stop global scrolling */
    position: relative;
}

#scroll-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 5;
}

/* Fundo com efeito radial */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(30, 10, 60, 0.5) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

#particles-container, #enemies-container, #pickaxe-falling-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100vh; /* Empurra hero e painéis 100% para baixo */
}

/* Título estilo bloco Minecraft */
.block-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 5vw;
    line-height: 1.6;
    text-align: center;
    background: url('../block/diamond_ore.png');
    background-size: 80px 80px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
    margin-bottom: 20px;
    letter-spacing: 5px;
}

@media (max-width: 768px) {
    .block-text {
        font-size: 7vw;
        letter-spacing: 2px;
    }
}

.block-text span {
    display: inline-block;
    transition: transform 0.2s, opacity 0.5s;
    position: relative;
}

/* Efeito de quebra/dano */
.block-text span.damaged {
    transform: rotate(15deg) translate(5px, 10px);
    filter: drop-shadow(0 0 15px rgba(255, 50, 50, 0.8)) hue-rotate(-45deg);
}

.block-text span.broken {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 1.2s;
}

.subtitle {
    font-size: 1.5rem;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    margin-bottom: 50px;
    font-weight: 600;
}

.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

/* Cards Neon */
.card {
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

/* Borda neon no hover */
.card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #ff0050, #00f2fe, #4facfe, #ff0050);
    z-index: -1;
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-15px);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
    object-fit: contain;
}

.bounce {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.spin-slow {
    animation: spin 15s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.card h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group input {
    padding: 18px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #00ffff;
    font-size: 1.2rem;
    outline: none;
    transition: all 0.3s;
    text-align: center;
}

.input-group input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.btn {
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.8);
    transform: scale(1.05);
}

.btn-secondary {
    background: linear-gradient(45deg, #ff0050, #8f00ff);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.4);
    width: 100%;
}

.btn-secondary:hover {
    box-shadow: 0 0 25px rgba(255, 0, 80, 0.8);
    transform: scale(1.05);
}

/* Animações dinamicas de background */
.floating-enemy {
    position: absolute;
    transition: transform 0.1s linear;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8));
    will-change: transform;
}

.falling-pickaxe {
    position: absolute;
    width: 70px;
    height: 70px;
    background-image: url('../pickaxe/diamond_pickaxe.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 20;
    transform-origin: bottom left;
    animation: fallAndStrike 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    filter: drop-shadow(0 0 10px rgba(0,255,255,0.5));
}

@keyframes fallAndStrike {
    0% { transform: translateY(-300px) translateX(100px) rotate(-90deg); opacity: 0; }
    30% { opacity: 1; }
    80% { transform: translateY(0) translateX(0) rotate(45deg); }
    90% { transform: translateY(0) translateX(0) rotate(60deg); }
    100% { transform: translateY(20px) translateX(-20px) rotate(120deg); opacity: 0; }
}
