/* Minecraft-inspired parallax landing page */

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

:root {
    --minecraft-green: #5d9c59;
    --minecraft-brown: #8b6914;
    --minecraft-stone: #7d7d7d;
    --minecraft-dirt: #6d4c3d;
    --minecraft-sky: #87CEEB;
    --minecraft-night: #1a1a2e;
    --gold: #ffd700;
    --torch-orange: #ff6600;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    height: 350vh;
    position: relative;
    background-color: #0a0a0a;
}

/* Fixed Header Bar */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.95), rgba(20, 20, 20, 0.85));
    backdrop-filter: blur(15px);
    padding: 12px 0;
    z-index: 1000;
    border-bottom: 3px solid #5d4c37;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.fixed-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.fixed-header .logo h2 {
    color: var(--gold);
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.fixed-header nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.fixed-header nav ul li a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.fixed-header nav ul li a:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

/* Scene container */
.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Parallax layers */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350vh;
    overflow: hidden;
    pointer-events: none;
}

/* Background - Sky */
.layer.background {
    z-index: 1;
}

.sky {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #6bb3f0, #87CEEB);
    transition: background 0.3s ease;
}

/* Stars */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 250px 150px, white, transparent),
        radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 350px 180px, white, transparent),
        radial-gradient(2px 2px at 400px 60px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 450px 200px, white, transparent),
        radial-gradient(2px 2px at 500px 100px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 550px 160px, white, transparent),
        radial-gradient(2px 2px at 600px 40px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 650px 140px, white, transparent);
    background-size: 700px 250px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Sun/Moon */
.sun-moon {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    top: 12%;
    left: 15%;
    background: radial-gradient(circle at 35% 35%, #fff5cc, #ffcc00);
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.8), 0 0 80px rgba(255, 165, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

.sun-moon::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 100, 0.3), transparent 70%);
}

/* Mountain layers */
.layer.mountains {
    width: 120%;
    left: -10%;
}

.layer.mountains.far {
    z-index: 2;
    top: 20%;
}

.layer.mountains.mid {
    z-index: 3;
    top: 30%;
}

.layer.mountains.near {
    z-index: 4;
    top: 45%;
}

.mountain-svg {
    width: 100%;
    height: auto;
    min-height: 300px;
}

/* Foreground layers */
.layer.foreground {
    z-index: 5;
}

.layer.foreground.front {
    top: 70%;
}

.layer.foreground.back {
    top: 60%;
}

/* Wall textures */
.wall-texture {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 250px;
    background-repeat: repeat;
    background-size: 32px 32px;
}

/* Stone texture */
.wall-texture.stone {
    background-image: 
        linear-gradient(30deg, #6a6a6a 12%, transparent 12.5%, transparent 87%, #6a6a6a 87.5%, #6a6a6a),
        linear-gradient(150deg, #6a6a6a 12%, transparent 12.5%, transparent 87%, #6a6a6a 87.5%, #6a6a6a),
        linear-gradient(30deg, #6a6a6a 12%, transparent 12.5%, transparent 87%, #6a6a6a 87.5%, #6a6a6a),
        linear-gradient(150deg, #6a6a6a 12%, transparent 12.5%, transparent 87%, #6a6a6a 87.5%, #6a6a6a),
        linear-gradient(60deg, #7d7d7d 25%, transparent 25.5%, transparent 75%, #7d7d7d 75%, #7d7d7d),
        linear-gradient(60deg, #7d7d7d 25%, transparent 25.5%, transparent 75%, #7d7d7d 75%, #7d7d7d);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    background-color: #5a5a5a;
}

/* Dirt texture */
.wall-texture.dirt {
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><rect width="32" height="32" fill="%235d4037"/><circle cx="8" cy="8" r="3" fill="%234e342e" opacity="0.5"/><circle cx="24" cy="16" r="2" fill="%236d4c41" opacity="0.5"/><circle cx="16" cy="28" r="2" fill="%234e342e" opacity="0.4"/><rect x="0" y="0" width="16" height="16" fill="%234e342e" opacity="0.3"/><rect x="16" y="16" width="16" height="16" fill="%236d4c41" opacity="0.3"/></svg>');
}

/* Torch lighting */
.torch {
    position: absolute;
    top: -80px;
    width: 10px;
    height: 60px;
    z-index: 10;
}

.torch::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8px;
    height: 40px;
    background: linear-gradient(to top, #4a3728, #6b4c38);
    border-radius: 2px;
}

.torch-flame {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 25px;
    background: linear-gradient(to top, #ff4500, #ffcc00, #ffff00);
    border-radius: 50% 50% 20% 20%;
    animation: flicker 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 10px #ff6600, 0 0 20px #ff4500;
}

.torch-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(255, 165, 0, 0.15), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.1) rotate(1deg); opacity: 0.9; }
    100% { transform: translateX(-50%) scale(0.95) rotate(-1deg); opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* Cave shadow overlay */
.cave-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(20, 10, 5, 0.7));
    pointer-events: none;
}

/* Content layer */
.layer.content {
    position: relative;
    z-index: 100;
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 100px;
    pointer-events: none;
}

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

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Sections */
section {
    padding: 80px 30px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(10, 10, 10, 0.6);
    border-radius: 20px;
    margin: 30px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

h1, h2, h3 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--gold);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 15px;
    width: 100%;
    max-width: 400px;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #e0e0e0;
}

p {
    color: #ccc;
    line-height: 1.7;
    max-width: 700px;
}

/* Welcome Section */
#welcome-section {
    min-height: 90vh;
    justify-content: center;
    background: transparent;
    border: none;
}

#welcome-section h1 {
    font-size: 4rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.tagline {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-primary, .btn-secondary, a.btn-primary, a.btn-secondary {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #5d9c59, #4a7c47);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 156, 89, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 156, 89, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #7289da, #5b6eae);
    color: white;
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.6);
}

/* Server Info */
.server-info {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(93, 156, 89, 0.5);
    border-radius: 15px;
    padding: 40px;
}

.ip-address {
    font-size: 2.5rem;
    font-weight: bold;
    color: #7cfc00;
    font-family: 'Consolas', monospace;
    text-shadow: 0 0 15px rgba(124, 252, 0, 0.6);
    margin: 15px 0;
    letter-spacing: 2px;
}

.instruction {
    font-size: 1rem;
    color: #999;
}

/* Live Map */
.live-map {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(100, 149, 237, 0.3);
}

.map-container {
    width: 100%;
    max-width: 700px;
    margin: 20px 0;
}

.map-placeholder {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px dashed rgba(100, 149, 237, 0.5);
    border-radius: 12px;
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-loading {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(100, 149, 237, 0.3);
    border-top-color: #6495ed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.map-note {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin-top: 15px;
}

/* Map Preview */
.map-preview {
    width: 100%;
    max-width: 700px;
}

.fake-map {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a4a2e, #0d2b1a);
    border-radius: 12px;
    border: 3px solid #2d5a3d;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.map-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    padding: 5px;
}

.map-biome {
    border-radius: 3px;
    position: relative;
}

.map-biome.forest { background: #2d5a2d; }
.map-biome.plains { background: #4a7c3a; }
.map-biome.mountains { background: #5a5a5a; }
.map-biome.desert { background: #c4a35a; }
.map-biome.ocean { background: #2a4a6a; }
.map-biome.taiga { background: #2d4a3d; }

.map-player {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    border: 2px solid white;
    box-shadow: 0 0 8px #00ff00;
    animation: pulse 2s ease-in-out infinite;
}

.map-player.p1 { top: 30%; left: 25%; }
.map-player.p2 { top: 50%; left: 60%; }
.map-player.p3 { top: 70%; left: 45%; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.map-spawn {
    position: absolute;
    top: 45%;
    left: 50%;
    font-size: 1.5rem;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    animation: spin 4s linear infinite;
}

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

.map-fullscreen-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #2d5a3d, #1a4a2e);
    color: #7cfc00;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #4a8a5d;
}

.map-fullscreen-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #3d7a4d, #2a5a3e);
    box-shadow: 0 5px 20px rgba(124, 252, 0, 0.3);
}

/* Server version badge */
.server-version {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.version-badge {
    background: linear-gradient(135deg, #5d9c59, #4a7c47);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.version-label {
    color: #888;
    font-size: 0.9rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 40px 30px;
}

.feature-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

.feature-card p {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 20px;
}

.btn-minecraft {
    background: linear-gradient(135deg, #5d9c59, #4a7c47);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-minecraft:hover {
    background: linear-gradient(135deg, #6dac69, #5a8c57);
    transform: scale(1.05);
}

/* News */
.latest-news {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.news-card {
    background: rgba(25, 25, 25, 0.8);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    border-left: 4px solid var(--gold);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateX(5px);
    background: rgba(35, 35, 35, 0.8);
}

.news-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.news-card h3 {
    color: var(--gold);
    font-size: 1.2rem;
}

.news-card p {
    font-size: 0.9rem;
    color: #999;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 15px;
}

/* Player Stats */
.player-stats {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 191, 255, 0.3);
}

.leaderboard {
    width: 100%;
    max-width: 500px;
}

.leaderboard-placeholder {
    background: rgba(0, 30, 50, 0.5);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
}

.stats-loading {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 191, 255, 0.3);
    border-top-color: #00bfff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

/* Server Rules */
.server-rules {
    background: rgba(20, 15, 10, 0.6);
    border: 2px solid rgba(139, 69, 19, 0.4);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.rule-card {
    background: rgba(30, 20, 10, 0.6);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.rule-number {
    background: var(--gold);
    color: #1a1a1a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.rule-card p {
    font-size: 0.95rem;
    color: #ccc;
}

/* Store */
.store {
    background: rgba(30, 20, 15, 0.7);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.store-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 700px;
    margin: 30px 0;
}

.store-feature {
    background: rgba(40, 25, 15, 0.6);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.store-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.store-feature h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.store-feature p {
    font-size: 0.9rem;
    color: #999;
}

.btn-store {
    background: linear-gradient(135deg, #8b6914, #a67c00);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-store:hover {
    background: linear-gradient(135deg, #a67c00, #b8922a);
    transform: scale(1.05);
}

/* About */
.about {
    background: rgba(10, 20, 25, 0.6);
    border: 2px solid rgba(93, 156, 89, 0.3);
}

.server-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
}

/* Contact */
.contact {
    background: rgba(15, 15, 25, 0.6);
    border: 2px solid rgba(114, 137, 218, 0.3);
}

.contact-options {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.contact-btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-btn.discord {
    background: linear-gradient(135deg, #7289da, #5b6eae);
    color: white;
}

.contact-btn.email {
    background: linear-gradient(135deg, #d74a3b, #c03b2d);
    color: white;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 0.9rem;
    background: rgba(5, 5, 5, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .fixed-header .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .fixed-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    
    #welcome-section h1 { font-size: 2.8rem; }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .ip-address {
        font-size: 1.8rem;
    }
    
    .server-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-options {
        flex-direction: column;
    }
}