:root {
    --primary-color: #55FF55; /* Minecraft Lime */
    --secondary-color: #AA0000; /* Minecraft Dark Red */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --accent: #ffaa00; /* Minecraft Gold */
    --grass-green: #3e8e41;
    --stone-grey: #4a4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    top: -50%;
    z-index: 0;
    animation: move-grid 20s linear infinite;
}

@keyframes move-grid {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.glitch {
    position: relative;
    color: white;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    /* ... more keyframes simplified for brevity in logic ... */
    100% { clip: rect(89px, 9999px, 98px, 0); }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    margin-right: 20px;
}

.btn-primary:hover {
    background-color: #77ff77;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(85, 255, 85, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

/* Sections */
.features, .community, .join {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    font-weight: 900;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Community Section */
.community {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://via.placeholder.com/1920x1080?text=Minecraft+Community'); /* Placeholder background */
    background-size: cover;
    background-position: center;
    color: var(--text-main);
}

.community-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-discord {
    background-color: #7289DA;
    color: #fff;
}
.btn-discord:hover {
    background-color: #8B9ECC;
}

.btn-forum {
    background-color: var(--stone-grey);
    color: #fff;
}
.btn-forum:hover {
    background-color: #6a6a6a;
}

/* Join Section */
.join-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ip-container {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-container code {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent);
    font-size: 1.2rem;
}

.btn-copy {
    background-color: var(--primary-color);
    color: #000;
    padding: 10px 20px;
}

.btn-copy:hover {
    background-color: #77ff77;
}

.copy-success {
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
    display: none;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-primary, .btn-secondary {
        margin: 0;
        width: 80%;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card {
        padding: 30px;
    }

    .ip-container {
        flex-direction: column;
        gap: 15px;
    }
    .btn-copy {
        width: 100%;
    }
}