/* ==================== BACKGROUND ELEMENTS ==================== */

.floating-blocks {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.block {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--block-green) 0%, #6ba93a 100%);
    box-shadow:
        inset 0 -3px 0 rgba(0,0,0,0.2),
        inset -3px 0 0 rgba(0,0,0,0.1),
        0 3px 0 rgba(0,0,0,0.3);
    animation: floatBlock 15s infinite linear;
    transition: transform 0.2s ease;
    pointer-events: none;
}


@keyframes floatBlock {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    box-shadow:
        inset 0 -2px 0 rgba(0,0,0,0.2),
        0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 1;
    animation: particleBurst 0.6s ease-out forwards;
}

@keyframes particleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes blockPop {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, var(--block-brown) 0%, #6d4730 100%);
    box-shadow:
        inset 0 -4px 0 rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.4);
    border-bottom: 3px solid #5a3825;
    transition: box-shadow 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo img {
    height: 45px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--block-green) 0%, #6ba93a 100%);
    color: white;
    text-decoration: none;
    font-family: var(--font-game);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    box-shadow:
        inset 0 -4px 0 rgba(0,0,0,0.3),
        0 4px 0 #5a8030;
    font-size: 0.9rem;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--laser-orange) 0%, #ff5722 100%) !important;
    box-shadow:
        inset 0 -4px 0 rgba(0,0,0,0.3),
        0 2px 0 #cc4422 !important;
    transform: translateY(2px);
}

.nav-btn:hover:not(.active) {
    background: linear-gradient(135deg, #4a6f2a 0%, #3a5020 100%);
    box-shadow:
        inset 0 -4px 0 rgba(0,0,0,0.3),
        0 6px 0 #3a5020;
    transform: translateY(-2px);
}

.nav-btn:active:not(.active) {
    transform: translateY(2px);
    box-shadow:
        inset 0 -4px 0 rgba(0,0,0,0.3),
        0 2px 0 #3a5020;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: white;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== FOOTER ==================== */
footer {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(180deg, #6d4730 0%, var(--block-brown) 100%);
    box-shadow:
        inset 0 4px 0 rgba(0,0,0,0.3),
        0 -4px 8px rgba(0,0,0,0.4);
    border-top: 3px solid #5a3825;
    margin-top: auto;
    position: relative;
    z-index: 10;
    pointer-events: none;
    transition: box-shadow 0.3s;
}

footer > * {
    pointer-events: auto;
}


.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.footer-content > * {
    pointer-events: auto;
}

.footer-logo {
    height: 30px;
    opacity: 0.9;
    filter: brightness(1.2);
}

footer p {
    color: white;
    font-weight: 500;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--block-brown);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}
