:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --red-primary: #ff3333;
    --red-dark: #cc0000;
    --red-glow: rgba(255, 51, 51, 0.5);
    --gray-dark: #1a1a1a;
    --gray-medium: #2a2a2a;
    --gray-light: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-dark: #888888;
    --gold: #ffaa00;
    --shadow-red: 0 0 20px var(--red-glow);
    --minecraft-border: 4px;
}

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

body {
    font-family: 'Press Start 2P', cursive;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    image-rendering: pixelated;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at top, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
}

.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 51, 51, 0.03) 2px, rgba(255, 51, 51, 0.03) 4px);
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

/* Navigation */
.minecraft-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 4px solid var(--red-primary);
    box-shadow: 0 4px 0 var(--red-dark), var(--shadow-red);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo-link {
    text-decoration: none;
    display: block;
}

.logo-text {
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: linear-gradient(180deg, var(--red-primary) 0%, var(--red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px var(--red-glow));
    animation: glow 2s ease-in-out infinite alternate;
    white-space: nowrap;
    padding: 0.5rem 1rem;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px var(--red-glow)); }
    to { filter: drop-shadow(0 0 15px var(--red-glow)); }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-primary);
    border: 2px solid var(--red-primary);
    box-shadow: inset 0 0 10px var(--red-glow);
}

/* Minecraft Button Styles */
.minecraft-button {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    padding: 1rem 2rem;
    border: none;
    background: var(--gray-medium);
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.1s;
    box-shadow: 
        0 4px 0 var(--gray-dark),
        0 0 0 2px var(--gray-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.minecraft-button:hover {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 var(--gray-dark),
        0 0 0 2px var(--gray-light);
}

.minecraft-button:active {
    transform: translateY(4px);
    box-shadow: 
        0 0 0 var(--gray-dark),
        0 0 0 2px var(--gray-light);
}

.minecraft-button.primary {
    background: linear-gradient(180deg, var(--red-primary) 0%, var(--red-dark) 100%);
    box-shadow: 
        0 4px 0 #8b0000,
        0 0 0 2px var(--red-primary),
        var(--shadow-red);
}

.minecraft-button.primary:hover {
    box-shadow: 
        0 2px 0 #8b0000,
        0 0 0 2px var(--red-primary),
        var(--shadow-red);
}

.minecraft-button.secondary {
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--gray-medium) 100%);
}

.minecraft-button.large {
    font-size: 1rem;
    padding: 1.5rem 3rem;
}

.button-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: 
        linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23111" width="50" height="50"/><rect fill="%23151515" x="50" width="50" height="50"/><rect fill="%23151515" y="50" width="50" height="50"/><rect fill="%23111" x="50" y="50" width="50" height="50"/></svg>');
    background-size: cover, 20px 20px;
}

.redstone-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--red-primary) 0px,
        var(--red-primary) 20px,
        transparent 20px,
        transparent 30px
    );
    box-shadow: var(--shadow-red);
    animation: redstone-pulse 2s ease-in-out infinite;
}

.redstone-line.top {
    top: 80px;
}

.redstone-line.bottom {
    bottom: 0;
}

@keyframes redstone-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 51, 51, 0.2);
    border: 2px solid var(--red-primary);
    color: var(--red-primary);
    font-size: 0.6rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px var(--red-glow);
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 
        4px 4px 0 var(--red-dark),
        0 0 30px var(--red-glow);
    animation: title-glitch 5s infinite;
}

@keyframes title-glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 0;
    background: var(--gray-dark);
    border: 4px solid var(--red-primary);
    box-shadow: 
        0 8px 0 var(--red-dark),
        var(--shadow-red);
    padding: 2rem;
    animation: stats-slide-in 1s ease-out 0.5s backwards;
}

@keyframes stats-slide-in {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-box {
    padding: 0 3rem;
    text-align: center;
}

.stat-divider {
    width: 2px;
    background: var(--red-primary);
    box-shadow: 0 0 10px var(--red-glow);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--red-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--red-glow);
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-dark);
    letter-spacing: 2px;
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    position: relative;
    background: var(--darker-bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.diamond-icon {
    font-size: 3rem;
    color: var(--red-primary);
    margin-bottom: 1rem;
    animation: diamond-spin 4s linear infinite;
}

@keyframes diamond-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 var(--red-dark);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray-dark);
    border: 4px solid var(--gray-light);
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover {
    border-color: var(--red-primary);
    box-shadow: 
        inset 0 0 20px var(--red-glow),
        0 0 30px var(--red-glow);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.1rem;
    color: var(--red-primary);
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Gallery Section */
.gallery {
    padding: 8rem 2rem;
    background: var(--dark-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 4px solid var(--gray-light);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: var(--red-primary);
    box-shadow: 0 0 30px var(--red-glow);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 0.8rem;
    color: var(--red-primary);
}

/* Community Section */
.community {
    padding: 8rem 2rem;
    background: var(--darker-bg);
    position: relative;
}

.community-box {
    background: var(--gray-dark);
    border: 4px solid var(--red-primary);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 0 var(--red-dark),
        var(--shadow-red);
}

.lava-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, 
        var(--red-primary) 0%,
        var(--gold) 25%,
        var(--red-primary) 50%,
        var(--gold) 75%,
        var(--red-primary) 100%
    );
    background-size: 200% 100%;
    animation: lava-flow 3s linear infinite;
}

@keyframes lava-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.community-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 4px 4px 0 var(--red-dark);
}

.community-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 4px solid var(--red-primary);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 0.9rem;
    color: var(--red-primary);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--red-primary);
}

.ip-box {
    background: var(--gray-dark);
    border: 2px solid var(--red-primary);
    padding: 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-box:hover {
    background: var(--gray-medium);
    box-shadow: inset 0 0 20px var(--red-glow);
}

.copy-icon {
    font-size: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
    font-size: 0.6rem;
    color: var(--text-dark);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--red-primary);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 4px solid var(--red-dark);
    font-size: 0.8rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    box-shadow: 0 4px 0 var(--red-dark), var(--shadow-red);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-text {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        text-align: center;
        font-size: 0.65rem;
        padding: 0.5rem 0.75rem;
    }

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

    .hero-subtitle {
        font-size: 0.7rem;
    }

    .stats-container {
        flex-direction: column;
        padding: 1rem;
    }

    .stat-divider {
        width: 100%;
        height: 2px;
        margin: 1rem 0;
    }

    .stat-box {
        padding: 1rem 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .minecraft-button {
        width: 100%;
        justify-content: center;
    }

    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .community-box {
        padding: 2rem 1rem;
    }
}